*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    font-size: 62.5%;
}

.container{
    padding: 1rem;
    display: grid;
    grid-template-rows: repeat(7,1fr);
    grid-template-columns: 0.6fr repeat(8, 1fr);
    gap: 2rem;
    height: 100vh;
}
.container > div{
    outline: 2px dashed black;
    border-radius: 3rem;
}
/* navbar */
.container .navbar{
    outline: none;
    grid-area: 1/1/8/2;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
     border: 2px solid gray;
    box-shadow: 3px 2px 4px rgb(70, 68, 68);
    background-color: rgb(249, 236, 236);
    overflow: hidden;
    
}
.navbar .line{
    width: 90%;             
    height: 2px;
    background-color: #999;  
    margin: auto 0; 
    margin-top: 2.5rem; 
    margin-bottom: 4rem;     
    border-radius: 1rem;
}
.navbar .top{
    margin-top: 1rem;
    height: 6rem;
    border-radius: 3rem;
    width: 80%;
}
.navbar .top img{
    height: 100%;
    width: 100%;
    border-radius: 50%;
}
.navbar .one {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.navbar .one > div{
    height: 8rem;
    width: 60%;
    transition: all 0.1s ease;
    position: relative;
    
}
.navbar .one > div > i{
    font-size: 8px;
}

.navbar .two {
    margin-top: auto;
    height: 6rem;
    border-radius: 3rem;
    width: 90%;
}
.navbar .two img{
    height: 100%;
    width: 100%;
    border-radius: 50%;
    border: 2px solid #999;
}
.navbar .one > div::before{
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    transform: rotate(45deg);
    background-color: #F29915;
    left: -80%;
    top: 30%;
    display: none;
}
.navbar .one .Aboutme, .navbar .one .ContactUs,.navbar .one .main-app{
    display: flex;
    align-items: center;
    justify-content: center;
}
.navbar .one .Aboutme i, .navbar .one .ContactUs i,.navbar .one .main-app i{
    color: #F29915;
    font-size: 4rem; 
    transition: all 0.1s ease;
}
.navbar .one > div:hover i{
    /* color: rgb(235, 103, 14); */
    transform: scale(1.3);
}

.navbar .one > div:hover::before{
    display: block;

}
.container .profilecard{
    grid-area: 1/2/2/6;
    padding: 2rem;
    display: flex;
    justify-content: flex-start;
    outline: none;

}
.container .profilecard .dp{
    height: 8rem;
    width: 8rem; 
    border: 2px solid black;
    border-radius: 2rem;
    background-repeat: no-repeat;
    background-size: contain;
    object-fit: contain;
}
.profilecard .txt{
    display: flex;
    padding-left: 2rem;
    padding-bottom: 1.8rem;
    flex-direction: column;
    justify-content: end;
}

.txt .place p{
    font-size: x-large;
    font-weight: 600;
}
.txt .name p{
    font-size: large;
    font-weight: 400;
}
.dp img{
    height: 100%;
    width: 100%;
}

/* search-toggle */
.container .search-toggle{
    grid-area: 1/6/2/10;
    outline: none;
    display: flex;
    padding:0 4rem;
    justify-content: flex-end;
    align-items: center;
}
.search-toggle .cont{
    /* outline: 2px dashed black; */
    display: flex;
    gap: 1rem;
}

.search-toggle .cont .search{
    position: relative;
}
.search-toggle .cont .search button{
    border: none;
}
.search-toggle .cont .search button i{
    position: absolute;
    scale: 2;
    right: 5%;
    top: 40%;
    color: #616060;
}

.search-toggle .cont .search input{
    outline: none;
    height: 6rem;
    width: 60rem;
    border-radius: 4rem;
    padding: 2rem;
    padding-left: 4.5rem;
    font-size:x-large;
    background-color: #E2E2E2;
}
.search-toggle .cont .left button{
    display: block;
    height: 6rem;
    width: 6rem;
    border: none;
    border-radius: 1rem;
}
.search-toggle .cont .left button i{
    transform: scale(2.5);
}

.container .weathercard{
    grid-area: 2/2/6/6;
    display: flex;
    padding: 1rem;
    background: url('./Assets/back.jpg');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    outline: none;
    border: 2px solid gray;
    box-shadow: 5px 5px 10px rgb(70, 68, 68);
}
.weathercard > div{
    height: 100%;
    width: 50%;

}
.weathercard .f{
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    /* background-color: aliceblue; */
}
.weathercard .f .loc{
    width: 80%;
    height: 5rem;
    border-radius: 4rem;
    padding: 1rem 2rem;
    background-color: #fff;
    border: 2px solid gray;
    box-shadow: 5px 5px 2px rgb(3, 3, 3);
}
.loc p{
    font-size: 24px;
}
.weathercard .f .text{
    width: 80%;
    height: 10rem;
    border-radius: 4rem;
    background-color: #fff;
    padding:1rem 2rem;
     border: 2px solid gray;
    box-shadow: 5px 5px 2px rgb(3, 3, 3);
}
.f .text h1{
    font-size: 5rem;
    color: #246a75;
}
.f .text p{
    font-size: 2rem;
    color: #5c8187;
    padding-left:1.5rem;
}
.weathercard .f .temp{
    width: 80%;
    height: 16rem;
    border-radius: 4rem;
    padding: 1rem 2rem;
    border: 2px solid gray;
    box-shadow: 5px 5px 2px rgb(3, 3, 3);
    background-color: #fff;
}
.f .temp h1{
    font-size: 6rem;
    color: #0a424a;
}
.f .temp p{
    font-size: 2rem;
    color: #5c8187;
}

.weathercard .t{
    display: flex;
    justify-content: space-evenly;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

.t .weather-image{
    height: 60%;
    width: 100%;
    border-radius: 4rem;
    overflow: hidden;
}
.t .hori{
    height: 40%;
    width: 100%;
    border-radius: 4rem;
    padding: 1.5rem;
    display: flex;

}
.t .hori > div{
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    border: 2px solid gray;
    box-shadow: 5px 5px 2px rgb(3, 3, 3);
    border-radius: 4rem;
    padding:3rem 4rem;
    width: 50%;
}
.t .hori > div h2{
    font-size: 2.6rem;
    font-weight: 600;
}
.t .hori > div p{
    text-align: center;
    font-size: 3rem;
    font-weight: 600;
}
.t .hori .humidity{
    background-color: #fff;
}
.t .hori .visiblity{
    margin-right: 2rem;
    background-color: #a5c18e;
}
.t .weather-image img{
    height: 100%;
    width: 100%;
    box-shadow: 4px 4px 8px 2px rgba(0, 0, 0, 0.4)
}
.container .map{
    grid-area: 2/6/6/10;
    overflow: hidden;
    outline: none;
     border: 2px solid gray;
    box-shadow: 5px 5px 10px rgb(70, 68, 68);

}
.map iframe{
    height: 100%;
    width: 100%;
}
.container .daywiseweather{
    grid-area: 6/2/8/7;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    outline: none;
    

}
.daywiseweather > div{
    height: 100%;
    width: 20%;
    border-radius: 3rem;
    border: 2px solid gray;
    box-shadow: 5px 5px 10px rgb(70, 68, 68);
    background-color: white;
}
.daywiseweather .item{
    display: flex;
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}
.daywiseweather .item .tup h3{
    text-align: center;
    font-size: 3rem;
}
.daywiseweather .item .tup{
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
    width: 100%;
    height: 20%;
    background-color: #bad0d3;
    border-bottom: #1e1d1d;
}
.daywiseweather .item > div:nth-child(2) i{
    font-size: 6rem;
}
.daywiseweather .item .small-temp{
    margin-bottom: 1rem;
}
.daywiseweather .item  .small-temp p{
    font-size: 3rem;

}
.container .extracard{
    grid-area: 6/7/8/10; 
    border: 2px solid gray;
    box-shadow: 5px 5px 10px rgb(70, 68, 68);
    outline: none;
    display: flex;
    /* background: url('./clear-blue-sky-background-free-vector.jpg'); */
    background-color: rgb(158, 228, 228);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    /* flex: 1; */
}
.extracard .firstHalf img{
    border-radius: 15px;
    margin: auto;
    object-fit: fill;
}
.extracard .firstHalf h2{
    font-size: 24px;
    background-color: #ffffff;
    box-shadow: 5px 5px 10px rgb(70, 68, 68);
    border-radius: 20px;
    text-align: center;
}

.extracard .firstHalf{
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 19px;
    overflow: hidden;
}
.extracard .secondHalf{
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.extracard .secondHalf h2{
    font-size: 24px;
    padding: 10px;
    background-color: #eef3c9;
    box-shadow: 5px 5px 10px rgb(70, 68, 68);
    border-radius: 20px;
    text-align: center;
}


.loader{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.hidden{
  display: none;
}

.spinner{
  width: 45px;
  height: 45px;
  border: 5px solid rgba(255,255,255,0.2);
  border-top: 5px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin{
  100%{ transform: rotate(360deg); }
}