@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&display=swap');



/* CSS Variables */
:root {
    --bg-color: linear-gradient(to right, #050d35, #1a2a6c);
    --font-family: "Merriweather", serif;
    --text-sunny:  #2b1a0e;  
    --text-cloudy: #101216;  
    --text-rainy:  #e8eef5;  
    --text-storm:  #f0eaff;  
    --text-snowy:  #0b1a2b;  
    --text-fog:    #1a1d21;
}

body {
  --from: #c8cdd4;
  --to:   #8a929e;
  --fg:   #111316;
  background: linear-gradient(180deg, var(--from), var(--to));
  transition: background 600ms ease, color 200ms ease;
  min-height: 100dvh;
  font-family: var(--font-family);
}
@media (prefers-reduced-motion: reduce) {
  body { transition: none; }
}

/* Sunny */
.background-sun {
  --from: #ffd166;
  --to:   #ff9e2c;
  --fg:   #1b150e;
  color: var(--text-sunny)
}

/* Cloudy / Overcast */
.background-cloudy {
  --from: #c8cdd4;
  --to:   #7d8590;
  --fg:   #111316;
  color: var(--text-cloudy);
}

/* Rainy */
.background-rain {
  --from: #4a5d73;
  --to:   #2f4858;
  --fg:   #e8eef5;
  color: var(--text-rainy);
}

/* Storm / Thunder */
.background-storm {
  --from: #2c1f4a;
  --to:   #0f0f1b;
  --fg:   #f0eaff;
  color: var(--text-storm);
}

/* Snowy */
.background-snow {
  --from: #e8f5ff;
  --to:   #a9d6ff;
  --fg:   #0b1a2b;
  color: var(--text-snowy);
}

/* Fog / Mist */
.background-fog {
  --from: #d5d7dc;
  --to:   #a9afb8;
  --fg:   #1a1d21;
  color: var(--text-fog);
}


#header, #footer {
    background: var(--header-bg, rgba(255,255,255,0.55));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--header-border, rgba(0,0,0,0.08));
    box-shadow: 0 6px 20px var(--header-shadow, rgba(0,0,0,0.08));
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    transition:
    background 400ms ease,
    color 200ms ease,
    border-color 400ms ease,
    box-shadow 400ms ease;
    padding: 0.75rem 1rem;
}


.map-container {
    position: relative;
    width: 100%;
    height: 60vh;
}

#map {
    height: 60vh;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);

}

#tempCard p {
    color: #2b1a0e ;
}

#toggle {
    position: absolute;
    bottom: 0.5vh;
    left: 20px;
    z-index: 10;
}

h2 {
    font-weight: bold;
}

/* Search Bar */

.input-container {
    position: relative;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 11;
    background-color: white;
    padding: 0;
    margin: 0;
}

.suggestions li {
    list-style-type: none;
    border: 1px solid black;
    margin: 0;
    padding: 8px 12px;
    color:black
}

.suggestions li:hover {
    background-color: rgb(214, 212, 212);
}

/* reset button */
.inv {
    visibility: hidden;
}

/* Buttons */

.btn-blue {
    background-color: #1a2a6c;
    color: white;
    border-radius: 0.5rem;
}

.btn-blue:hover {
    background-color: #050d35;
    color: white;
}

.btn-light {
    border: 1px solid grey;
}

.btn-xl {
    font-size: 1.25rem;
}

/* temp card */
#tempCard {
    position: absolute;
    width: fit-content;
    height: 4rem;
    top: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
}

#tempCard p {
    font-size: 3rem;
}

/* Weather cards */

.card-body p {
    text-transform: capitalize;
}

.card {
    max-width: 350px;
    margin: 10px;
    border: 2px solid #050d35;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    padding: 0px;
    font-weight: normal;
}

/* Scroll to top button */
#btnScrollToTop {
    position: fixed;
    right: 10px;
    z-index: 10;
    bottom: 10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #a0a0c0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
    color: white;
    outline: none;
    cursor: pointer;
}

#btnScrollToTop:active {
    background: #d3d3d8
}


#btnScrollToTop:active {
    background: #d3d3d8
}