/* KIARIE NGIGI */
html{
    overflow:hidden;
}
.autocomplete_list {
  position: absolute;
  top: 100%; 
  left: 0;
  width: 91.5%;
  max-height: calc(5 * 2.5rem); 
  overflow-y: auto;
  background-color: white;
  border: 1px solid #ccc;
  border-top: none; 
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 1000;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.autocomplete_list li {
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.autocomplete_list li:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

h2, h1, h3, h4, h5, h6{
    padding: 0 !important;
    margin: 0 !important;
}
.raleway-uniquifier {
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: normal;
}
.main-city-text {
  font-size: clamp(2rem, 12vw, 7rem);
  line-height: 1;
}
.temp {
  font-size: clamp(3.5rem, 20vw, 14rem);
  line-height: 0.9;
  margin: 0;
}
.top_bar {
  gap: 1rem;
  padding-top: clamp(1rem, 3vw, 3rem);
}
.background_img{
    background: none;
    min-height: 150dvh;                     
    position: relative;
    display: flex;
    flex-direction: column;
    z-index: 0;
}
.background_img::before{
    content: "";
    position: absolute;
    top: -30%;
    left: 0;
    background: var(--bg-img) center/cover no-repeat;
    width: 100%;
    height: 100%;
    background-size: cover;
    z-index: -1;
}
.search_bar input, .search_bar button{
    border: none;
    outline: none;
    background-color: rgba(255, 255, 255, 0.3);
}
.search_bar input::placeholder{
    font-size: 1.2rem;
    font-family: 'Lato', sans-serif;
}
.search_bar {
  width: 100%;
  max-width: 28rem; 
}
.location_card{
    background-color: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between; 
    gap: 1rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.location_card:hover{
  transform: scale(1.02)
}
.location_card h1 {
  font-size: clamp(1.5rem, 6vw, 3rem);
  margin: 0;
}
@media (min-width: 992px) {
  .page_selector {
    flex-direction: column;
    gap: 1rem;
    display: flex;
  }
}

.page_button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.8);
  background: transparent;}
.footer .down-arrow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 10;
}
@media (max-width: 575.98px) {
  .location .fw-light,
  .extra_info h3 { font-size: 1rem; }
  .extra_info { gap: 1rem !important; }

  .footer .down-arrow { display: none;}
}
.page_button.active,
.page_button:hover {
  background: rgba(255,255,255,0.5);
  transform: scale(1.1);
}
@keyframes pulse {
  0%   { background-size: 100% 100%; }
  50%  { background-size: 120% 120%; }
  100% { background-size: 100% 100%; }
}

.cloud_img img{
    z-index: 1000;
    width: 25%;
    transition: opacity 0.5s ease;
    display: none;
}
.cloud_img{
    top: 20%;
    left: 35%;
}
@media (max-width: 768px){
    .cloud_img {
        top: -10%;
    }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.rain{
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 100000;
}
.rain canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}
canvas{
    display: block;
    width: 100%;
    height: 100vh;
}
.main_dash{
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: saturate(120%) blur(2px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 1.5rem;
}
.weather_info {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
}
@media (min-width: 992px) {
  .weather_info {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
  }
}
.other_locations {
  gap: .75rem;
}
.page_button{
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: none;
    outline: none;
    background-color: rgba(255, 255, 255, 0.3);
}
.page_button.active{
    background-color: white;
}

#scrollList{
  height: 25rem;
  overflow-y: auto;
  list-style: none;
  scroll-snap-type: y mandatory; 
  scroll-behavior: smooth;
}
#scrollList > li{
  box-sizing: border-box;
}

#scrollList::-webkit-scrollbar{
  display: none;
}

.list_item{
  scroll-snap-align: start;
  border-radius: 1.5rem;
}
