@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
* {
  box-sizing: border-box;
}

body{
    font-family: "DM Sans", sans-serif;
    font-size: 18px;
    background-color: hsl(243, 96%, 9%);
    color: hsl(0, 0%, 100%);
    padding: 48px 32px 80px 32px;
    display: flex;
    flex-direction: column;
    gap: 64px;
} 

.container{  
 
}
header{
    height: 43px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 64px;
}
ul{
    list-style: none;
    display: flex;
    gap: 32px;
}
ul > li{
     position: relative;
     margin: 0;
     padding: 0;
}
.Units-container{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
     position: relative;
    gap: 10px;
    width: 119px;
    height: 43px;
    padding: 12px 16px 12px 16px; /* top right   bottom left */
    border-radius: 8px;
   background-color: hsl(243, 27%, 20%);
    cursor: pointer;
     transition: all 0.2s ease;
}
.Units-container:hover{
     border: hsl(243, 96%, 9%) solid 2px;
    outline: hsl(0, 0%, 100%) solid 2px;
    cursor: pointer;
}
.dropdown{
    position: absolute;
    height: 412px;
    width: 214px;
    border-radius: 12px;
    padding: 6px 8px;
    background-color:  hsl(243, 27%, 20%);
    border: hsl(243, 23%, 30%)  solid 1px;
    display: none;
    gap: 8px;
    top: 50px;
    right: 1px;
    z-index: 10;
}
.form-units-container{
    display: flex;
    flex-direction: column;
    align-items:flex-start;
    justify-content: space-between;
    gap: 4px;
    padding: 0;
    margin: 0;
    
}
.Units-container:hover .dropdown{
    display: block;
}

.unit-title{
   width: 100%;
    height: 39px;
    padding: 10px 8px;
    text-align: left center;
    border-radius: 8px;
    color: hsl(0, 0%, 100%);
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
}
.unit-title:hover{
    border: hsl(243, 96%, 9%) solid 1px;
    outline: hsl(0, 0%, 100%) solid 1px;
    cursor: pointer;
}
.has-main-container{
    height: 113px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 0;
    border-bottom: hsl(243, 23%, 30%) solid 1px;
}
.precipitation-container{
    height: 113px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.has-title{
    padding: 6px 8px 0px 8px;
    height: 23px;
    text-align: left center;
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
    color: hsl(240, 6%, 70%);
}
.options-container{
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    margin: 0;
}
.Celsius-container, .Fahrenheit-container, 
.kili-meter, .mile-per-hour,
.Milimeters-container, .Inches-container {
    height: 39px;
    width: 100%;
    display: flex;
    flex-direction: row;
    border-radius: 8px;
    padding: 10px 8px;
    cursor: pointer;
}

.Celsius-container, .kili-meter, .Milimeters-container{
    background-color: hsl(243, 23%, 24%);
     
}

.has-title-label{
    width: 100%;
    color: hsl(0, 0%, 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 500;
    line-height: 24px;
    text-align: left;
}
.Celsius-container:hover, .kili-meter:hover, 
.Milimeters-container:hover, .Fahrenheit-container:hover,
.mile-per-hour:hover, .Inches-container:hover{
    border: hsl(0, 0%, 100%) solid 1px;
    cursor: pointer;
}
/*.Fahrenheit-container{
  height: 39px;
    width: 100%;
    display: flex;
    flex-direction: row;
    border-radius: 8px;
    padding: 10px 8px;
      border: white solid 1px;
}
*/

/* Hide default radio button */
.unit-container input[type="radio"] {
  display: none;
}
/* Hide SVG by default */
.checkmark {
  width: 14px;
  height: 14px;
  display: none;
}
/* When radio is checked → show SVG checkmark */
.unit-container input[type="radio"]:checked ~ .custom-radio .checkmark {
  display: block;
}
.main-title{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.title{
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 52px;
    font-weight: 700;
    line-height: 32px;
    margin-bottom: 64px;
}
.main-container{
   width: 100%;
   height: 797px;
   display: flex;
    flex-direction: column;
    gap: 48px;
    justify-content: flex-start;
    margin-bottom: 30px;
    border: none ;
}
.search-bar{
    display: flex;
    justify-content: center;
    align-items: center;
    
}
.Search-Container{
    width: 656px;
    height: 56px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
   gap: 16px;
    
}
.search-input{
    width: 526px;
    height: 56px;
    background-color: hsl(243, 27%, 20%);
    border: none;
    color: white;
    font-size: 18px;
    padding: 16px 24px 16px 24px;
    border-radius: 12px;
   display: flex;
    align-items:flex-start;
    gap: 16px;
    position: relative;
  transition: all 0.2s ease;
}
.search-input:hover{
  border: hsl(243, 96%, 9%) solid 2px;
    outline: hsl(0, 0%, 100%) solid 2px;
    cursor: pointer;
}
input[type="search"] {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
   color: hsl(0, 0%, 100%);
   font-size: 20px;
   line-height: 24px;
    
}

i{
    font-size: 20px;
}
.search-dropdown{
  width:526px;;
  height: 184px;
  position: absolute;
  top: 65px;
  left: 1px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  gap:4px;
  border-radius: 12px;
  border: hsl(243, 23%, 24%) solid 1px;
  padding: 8px 8px;
  background-color: hsl(243, 27%, 20%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.recent-searches-item{
    width: 100%;
    height: 39px;
    padding: 8px 10px;
    margin: 0;
    text-align: left;
    color: hsl(0, 0%, 100%);
    border-radius: 8px;
    font-size: 1rem;    
    font-weight: 400;
    line-height: 24px;
    cursor: pointer;
}
.searches-item-1{
 background-color: hsl(243, 23%, 24%);
}
.recent-searches-item:hover{
    background-color: hsl(243, 23%, 30%);
    cursor: pointer;
}
.search-input:focus-within .search-dropdown {
  display: flex;
}

.primary-button{
    width: 114px;
    height: 56px;
    padding: 16px 24px 16px 24px;
    background-color: hsl(243, 96%, 65%);
    border: none;
    color: white;
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    border-radius: 12px;
    cursor: pointer;
     transition: all 0.2s ease;
}
.primary-button:hover{
    background-color: hsl(233, 67%, 56%);
     border: hsl(243, 96%, 9%) solid 2px;
    outline: hsl(0, 0%, 100%) solid 2px;
    cursor: pointer;
}
.content-container{
    width: 100%;
    height: 693px;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 32px;
    margin-bottom: 64px;
    padding-bottom: 64px;
    }

.left-content{
    width: 800px;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}
    
.Weather-Info-Container{
    width: 800px;
    height: 436px;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}
.main-card{
    background-image: url(./assets/images/bg-today-large.svg);
    background-repeat:no-repeat;
    background-size: cover;
    background-position: center center;
    width: 100%;
    height: 286px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    border-radius: 20px;
    padding: 80px 24px 80px 24px;
}
.location-date{
    height: 68px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    gap: 12px;
}
#location{
    font-size: 28px;
    font-weight: 600;
    display: flex;
    align-items: center;
    
}
#date{
    font-size: 18px;
    font-weight: 400;
    color: hsl(240, 5%, 65%);
}
.temperature-container{
    height: 120px;
    width: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-left: auto;
}
.temperature-container img{
    width: 120px;
    height: 120px;
    
}
.temperature{
    font-size: 96px;
    font-weight: 700;
    font-style: italic;
    text-align: center;
    color: hsl(0, 0%, 100%);
    
}
.details-card{
    width: 100%;
    height: 118px;
    display: flex;
    justify-content: space-evenly;
    gap: 24px;
}
.is-details-card{
    width: 182px;
    height: 100%;
    padding:20px 20px;
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    justify-content: center;
    gap: 24px;
   background-color: hsl(243, 27%, 20%);
   border-radius: 12px;
}
.label{
    font-size: 18px;
    font-weight: 200;
    line-height: 24px;
    color: hsl(250, 6%, 84%);
    margin: 0;
    padding: 0;
}
.value{
    font-size: 32px;
    font-weight: 300;
    line-height: 32px;
    color: hsl(0, 0%, 100%);
    margin: 0;
    padding: 0;
}
.Daily-forecast-container{
    width: 100%;
    height: 209px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.title-forecast{
    font-size: 20px;
    text-align: left;
    color: hsl(0, 0%, 100%);
    font-weight: 500;
    line-height: 32px;
    margin: 0;
    padding: 0;
}
.days{
    width: 100%;
    height: 165px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.is-day{
    width: 100px;
    padding: 16px 10px 16px 10px;
    gap: 8px;
    background-color: hsl(243, 27%, 20%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
   
}
.is-day:hover {
  background-color: hsl(243, 23%, 30%);
  transform: scale(1.05);
  transition: all 0.2s ease;
}
.day-label{
    width: fit-content;
    height: 22px;
    text-overflow: clip;
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    color: hsl(0, 0%, 100%);
    margin: 0;
    padding: 0;
    text-align: center;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.weaher-icon{
    width: 60px;
    height: 60px;
}
.temperature-numbers{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 80px;
    margin: 0;
    padding: 0;  
}
.min-temperature, .max-temperature{
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
    padding: 0;
   
}
.min-temperature{
      color: hsl(0, 0%, 100%);
      display:flex;
      
}
.max-temperature{
    color: hsl(250, 6%, 84%);
}
.hourly-forecast-container{
    width: 384px;
    height: 693px;
    background-color: hsl(243, 27%, 20%);
    border-radius: 20px;
    padding: 24px 24px 24px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;

}
.hourly-forecast-header{
    width: 100%;
    height: 37px;
    display: flex;
    padding: 0 0 0 0;
    margin: 0;
    justify-content: space-between;
    align-items: center;
}
.daily-forecast-title{
    font-size: 20px;
    font-weight: 500;
    line-height: 32px;
    text-wrap: wrap;
    color: hsl(0, 0%, 100%);
    margin: 0;
    padding: 0;
}
.hourly-forecast-dropdown{
    position: relative;
     width: 120px;
    height: inherit;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 8px 16px 8px 16px;
    border-radius: 8px;
    background-color: hsl(243, 23%, 30%);
    color: hsl(0, 0%, 100%);
    border: none;
   font-size: 1rem;
    font-weight: 400;
    line-height: 24px;
    cursor: pointer;
     color:hsl(0, 0%, 100%);
}  
.hourly-forecast-dropdown:hover{
    border: hsl(243, 96%, 9%) solid 2px;
    outline: hsl(0, 0%, 100%) solid 2px;
    cursor: pointer;
}
.days-dropdown{
    display: none;
    flex-direction: column;
    position: absolute;
    top: 45px;
    border: hsl(243, 23%, 30%) solid 1px;
    right: 0.1px;
    width: 214px;
    height: 313px;
    background-color: hsl(243, 27%, 20%);
    border-radius: 12px;
    padding: 8px 8px;
    text-align: left;
    z-index: 10;
    gap: 4px;
   
}
.daily-focus-title{
    height: 39px;
    width: 100%;
    border-radius: 8px;
    padding: 8px 10px 8px 10px;
    text-align: left;
    z-index: 10;
    margin: 0;
    color: hsl(0, 0%, 100%);
    font-size: 1rem;    
    font-weight: 400;
    line-height: 24px;
    cursor: pointer;
    
}
.daily-focus-title:hover{
    background-color: hsl(243, 23%, 24%);
    cursor: pointer;
}
.hourly-forecast-dropdown:hover .days-dropdown{
    display: block;
}
.hourly-weather-card{
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items:center;
    flex-direction: row;
    padding: 10px 16px 10px 12px;
    background-color: hsl(243, 23%, 24%);
    border-radius: 8px;
}
.weather-icon-time{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}
.weather-icon-time img{
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
}
footer{
    font-size: 1.2rem;
    text-align: center;
    color: hsl(240, 5%, 65%);
    margin-top: 32px;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Media Queries for responsiveness */

/*TABLET
@media only screen and (max-width:768px){
    .container{
        max-width: 768px;
    }
    .content-container{
        flex-direction: column;
        align-items: center;
        height: auto;
    }
    .left-content{
        width: 100%;
        height: auto;
    }
    .Weather-Info-Container{
        width: 100%;
        height: auto;
    }
    .main-card{
        width: 100%;
        height: auto;
        padding: 48px 24px 48px 24px;
        flex-wrap: wrap;
        gap: 32px;
        justify-content: center;
    }
    .temperature-container{
        margin-left: 0;
        width: auto;
        height: auto;
    }
    .details-card{
        flex-wrap: wrap;
        height: auto;
    }
    .is-details-card{
        width: 45%;
        margin-bottom: 16px;
    }
    .Daily-forecast-container{
        width: 100%;
        height: auto;
    }
    .days{
        justify-content: center;
        flex-wrap: wrap;
        height: auto;
    }
    .is-day{
        width: 120px;
    }
    .hourly-forecast-container{
        width: 100%;
        height: auto;
        margin-top: 32px;
    }
}
*/
/*larger screens*/
@media only screen and (min-width: 1440px){
    body{
    max-width: 1440px;
    padding: 48px  112px 80px 112px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3rem;
}
header{
    height: auto;
    margin-bottom: 0;
    padding: 0;
}
.Units-container{
    width: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

ul{
    padding: 0;
    margin: 0;
}
.title{
    font-size: 3.1rem;
    font-weight: 700;
    line-height: 3.5rem;
    text-align: center;
    margin: 0;
}
.main-container{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    justify-content: space-between;
    align-items:center ;
   
}

.Search-Container{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
   gap: 1rem;
    
}
.search-input{
    width: 36.9rem;
     height: 56px;
     flex: 1;
}
.primary-button{
    width: 114px;
    height: 56px;
     transition: all 0.2s ease;
}
.search-dropdown{
  width: 36.9rem;
  height: 184px;
  position: absolute;
  top: 70px;
  left: 0px;
  right:0px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  gap:4px;
  border-radius: 12px;
  border: hsl(243, 23%, 24%) solid 1px;
  padding: 8px 8px;
  background-color: hsl(243, 27%, 20%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.recent-searches-item{
    width: 100%;
    height: 39px;
    padding: 8px 10px;
    margin: 0;
    text-align: left;
    color: hsl(0, 0%, 100%);
    border-radius: 8px;
    font-size: 1rem;    
    font-weight: 400;
    line-height: 24px;
    cursor: pointer;
}
.content-container{
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    
    
}
.left-content{
    width: 800px;
    height: 693px;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
   align-items: stretch;
    gap: 48px;
    
}
    
.Weather-Info-Container{
    width: 800px;
    max-width: 800px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap:2rem;
    
}
.main-card{
    width: 800px;
    height: 286px;
    background-image: url(./assets/images/bg-today-large.svg);
    background-repeat:no-repeat;
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    padding:80px 24px 80px 24px;
    flex-wrap: wrap;
    gap: 1rem;
   
}
.temperature-container {
  height: 120px;
  width: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  /* Remove margin-left: auto */
}

.details-card{
    width: 100%;
    height: 118px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: stretch; /* Change this to stretch for equal heights */
    gap: 1.3rem;
}

.is-details-card{
    flex: 1 1 calc(25% - 1rem); /* Two cards per row */
    max-width: calc(25% - 1rem);
    height: 7.4rem; 
    padding: 1.2rem 1.2rem; 
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    justify-content: center;
    gap: 1.5rem;
    background-color: hsl(243, 27%, 20%);
    border-radius: 12px;
}

.Daily-forecast-container{
    width: 100%;
    height: 209px;
    display: flex;           
    flex-direction: column;  
    gap: 1.5rem;
}
.days{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1rem;
}
.is-day{
       flex: 0 0 calc(14.28% - 0.86rem); /* 7 cards per row */
    max-width: calc(14.28% - 0.86rem);
    width: auto;
    height: auto;
    padding: 1rem 0.5rem 1rem 0.5rem;
    gap: 0.5rem;
}
.temperature-numbers{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 80px;
    margin: 0;
    padding: 0;  
}
.hourly-forecast-container{
    width: 384px;
    height: 693px;
    background-color: hsl(243, 27%, 20%);
    border-radius: 20px;
    padding: 24px 24px 24px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;

}

    
}
/*TABLET*/
@media only screen and (min-width: 768px) and (max-width: 1439px) {
   .body{
    max-width: 1439;
    padding: 1rem rem 3rem 1rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3rem;
}
header{
    height: auto;
    margin-bottom: 0;
    padding: 0;
}
.Units-container{
    width: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

ul{
    padding: 0;
    margin: 0;
}
.title{
    font-size: 3.1rem;
    font-weight: 700;
    line-height: 3.5rem;
    text-align: center;
    margin: 0;
}
.main-container{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    justify-content: space-between;
    align-items:center ;
}
.search-bar{
    width: 100%;
    height: auto;
}
.Search-Container{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
   gap: 1rem;
    
}
.search-input{
    width: 36.9rem;
     height: 56px;
     flex: 1;
}
.search-dropdown{
        width: 100%;  
        height: 184px;
        position: absolute;
        top: 70px;
        left: 0px;
        right: 0px;
        display: none;
        flex-direction: column;
        justify-content: space-between;
        gap: 4px;
        border-radius: 12px;
        border: hsl(243, 23%, 24%) solid 1px;
        padding: 8px 8px;
        background-color: hsl(243, 27%, 20%);
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    
    .recent-searches-item{
        width: 100%;
        height: 39px;
        padding: 8px 10px;
        margin: 0;
        text-align: left;
        color: hsl(0, 0%, 100%);
        border-radius: 8px;
        font-size: 1rem;    
        font-weight: 400;
        line-height: 24px;
        cursor: pointer;
    }
.primary-button{
    width: 114px;
    height: 56px;
     transition: all 0.2s ease;
}
.left-content{
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
   align-items: stretch;
    gap: 48px;
    
}
.content-container{
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    height: auto;
}
.Weather-Info-Container{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap:2rem
}
.main-card{
    background-image: url(./assets/images/bg-today-small.svg);
    background-repeat:no-repeat;
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    padding:80px 24px 80px 24px;
    flex-wrap: wrap;
    gap: 1rem;
   
}
.temperature-container {
  height: 120px;
  width: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  /* Remove margin-left: auto */
}

.details-card{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: stretch; /* Change this to stretch for equal heights */
    gap: 1.3rem;
}

.is-details-card{
    flex: 1 1 calc(25% - 1rem); /* Two cards per row */
    max-width: calc(25% - 1rem);
    height: 7.4rem; 
    padding: 1.2rem 1.2rem; 
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    justify-content: center;
    gap: 1.5rem;
    background-color: hsl(243, 27%, 20%);
    border-radius: 12px;
}

.Daily-forecast-container{
    width: 100%;
    height: auto;
    gap: 1.5rem;
}
.days{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.is-day{
       flex: 0 0 calc(14.28% - 0.86rem); /* 7 cards per row */
    max-width: calc(14.28% - 0.86rem);
    width: auto;
    height: auto;
    padding: 1rem 0.5rem 1rem 0.5rem;
    gap: 0.5rem;
}
.temperature-numbers{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 80px;
    margin: 0;
    padding: 0;  
}
.hourly-forecast-container{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}
    
}
/*MOBILE*/
@media only screen and (max-width: 768px){

header{
    height: auto;
    margin-bottom: 0;
    padding: 0;
}
.Units-container{
    width: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}
.logo{
    width: 137.9px;
}
ul{
    padding: 0;
    margin: 0;
}
.title{
    font-size: 3.1rem;
    font-weight: 700;
    line-height: 3.5rem;
    text-align: center;
    margin: 0;
}
.main-container{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    justify-content: space-between;
    align-items:center ;
}
.search-bar{
    width: 100%;
    height: 7.8rem;
}
.Search-Container{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
   gap: 1rem;
    
}
.search-input{
    width: 100%;
     height: auto;
}
.search-dropdown{
        width: 100%;  
        height: 184px;
        position: absolute;
        top: 70px;
        left: 0px;
        right: 0px;
        display: none;
        flex-direction: column;
        justify-content: space-between;
        gap: 4px;
        border-radius: 12px;
        border: hsl(243, 23%, 24%) solid 1px;
        padding: 8px 8px;
        background-color: hsl(243, 27%, 20%);
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    
    .recent-searches-item{
        width: 100%;
        height: 39px;
        padding: 8px 10px;
        margin: 0;
        text-align: left;
        color: hsl(0, 0%, 100%);
        border-radius: 8px;
        font-size: 1rem;    
        font-weight: 400;
        line-height: 24px;
        cursor: pointer;
    }
.primary-button{
    width: 100%;
    height: 56px;
     transition: all 0.2s ease;
}
.content-container{
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    height: auto;
}
.left-content{
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
   align-items: stretch;
    gap: 48px;
    
}
.Weather-Info-Container{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap:2rem
}
.main-card{
    background-image: url(./assets/images/bg-today-small.svg);
    background-repeat:no-repeat;
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    padding:80px 24px 80px 24px;
    flex-wrap: wrap;
    gap: 1rem;
   
}

.temperature-container {
  height: 120px;
  width: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  /* Remove margin-left: auto */
}

.details-card{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: stretch; /* Change this to stretch for equal heights */
    gap: 2rem;
}

.is-details-card{
    flex: 1 1 calc(50% - 1rem); /* Two cards per row */
    max-width: calc(50% - 1rem);
    height: 7.4rem; 
    padding: 1.2rem 1.2rem; 
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    justify-content: center;
    gap: 1.5rem;
    background-color: hsl(243, 27%, 20%);
    border-radius: 12px;
}

.Daily-forecast-container{
    width: 100%;
    height: auto;
    display: flex; 
    flex-direction: column;  
    gap: 1.5rem;
}
.days{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.is-day{
    flex: 1 1 calc(33.333% - 0.67rem); /* Three cards per row */
    max-width: calc(33.333% - 0.67rem);
    width: auto;
    height: auto;
    padding: 1rem 0.5rem 1rem 0.5rem;
    gap: 0.5rem;
}
.hourly-forecast-container{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}
}
