@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700&display=swap');
*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins',sans-serif;
    box-sizing: border-box;
    user-select: none;
  
}
html {
    scroll-behavior: smooth;
  }
.close {
    position: absolute;
    right: 20px;
    cursor: pointer;
}

.maincontainer{
    min-height: 100vh;
    width: 100%;
    background: url('themes/daymode.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    
}
header#header {
    align-items: center;
    position: relative;
    font-weight: 600;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 100px;
    display: flex;
    
}
.logo{
text-decoration: none;
font-size: 1.8rem;
color: #292b5b;
margin-right: 2rem;

}
#header a::before {
    position: absolute;
    content: '=';
    left: 45px;
    display: none;
}

.weatherwrap {
    margin-top: 6rem;
    display: flex;
    justify-content: center;
    min-height: auto;
    width: 100%;
    align-items: center;
    flex-direction: column;
    user-select: none;
}
.cityname {
    border-bottom: 6px solid;
    font-size: 3rem;
    font-weight: 800;
    color: #8c569a;
    border-radius: 25px;
    margin-top: 2rem;
    text-align: center;
    padding: 0 10px
}
.temp {
    margin-bottom: 0.8rem;
    font-size: 4rem;
    color: #292b5b;
}
.desc {
    margin-bottom: 0.8rem;
    
    color: #ffffff;
    display: flex;
}
.humid {
    border-right: 5px solid;
}
.humid, .wind {
    
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 0 45px;
}
.nature {
    margin-bottom: 2.8rem;
    color: white;
    padding: 0 20px;
    background: linear-gradient(62deg, #FBAB7E 0%, #fbab7e 33%, #F7CE68 66%, #f7ce68 100%);
border-bottom-right-radius: 20px;
    border-top-left-radius: 20px;
}

.searchholder {
    margin-top: 2rem;
    padding: 3px 0;
    border: none;
    outline: none;
    background: transparent;
    border-bottom: 6px solid white;
    font-size: 1.3rem;
    color: #585454;
    text-align: center;
    border-radius: 25px;
    text-transform: capitalize;
}
::-webkit-input-placeholder{
    text-align: center;
    font-size: inherit;
}

.loader{
    display: none;
    position: absolute;
    top: 50%;   left: 50%;
    transform: translate(-50%,-50%);
    width: 300px;  height: 300px;
    border: 10px solid #fff;
    border-color: #f1c40f transparent #8e44ad transparent;
    border-radius: 50%;
    animation: animate 2s infinite linear;
    z-index: 1;
}
.loader::before,.loader::after{
    content: '';
    position: absolute;
    top: 50%;   left: 50%;
    transform: translate(-50%,-50%);
    border: 10px solid #fff;
    border-radius: 50%;
    animation: animate 1.8s infinite linear;
}
.loader::before{
    width: 60%;  height: 60%;
    border-color: #c0392b transparent #3498db transparent;
}
.loader::after{
    width: 30%;  height: 30%;
    border-color: #27ae60 transparent #7f8c8d transparent;
    animation-duration: 1.5s;
}
.mode img,.sharebody img {
    width: 26px;
    height: 26px;
    object-fit: cover;
}
h5#modedesc {
    display: flex;
    align-items: center;
    margin: 0 15px;
    background: #efaaed;
    padding: 0 10px;
    border-radius: 20px;
}
.share{
    position: relative;
    margin-bottom: 1rem;
    
}
.share:hover #sharedesc{
display: block;
}

.share img{
    width: 40px;
    height: 40px;
    object-fit: cover;
    cursor: pointer;
    transition: 0.5s ease-in-out;
}
h6#sharedesc {
    position: absolute;
    color: white;
    display: none;
}
.sharepopup {
    z-index: -1;
    width: 20rem;
    height: 6rem;
    background: white;
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%,-50%);
    transition: 1s ease-in-out;
    opacity: 0;
   
}
.sharepopvisible{
    
    opacity: 100%;
    z-index: 1;
    top: 50%;
}
.sharehead {
    color: #292b5b;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 3px solid white;
    background: #909bed;
}
.sharebody {
    height: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
.sharebody img {
    margin: 0 15px;
    cursor: pointer;
}
.disabled {
    filter: grayscale(1);
}
@keyframes animate{
    0%{
        transform: translate(-50%,-50%) rotate(0deg);
    }
    100%{
        transform: translate(-50%,-50%) rotate(360deg);
    }
}
.error {
    position: absolute;
    top: 4%;
    left: 50%;
    transform: translateX(-50%);
   
    color: white;
    transition: 0.5s ease-in-out;
    padding: 5px 54px;
    opacity: 0;
    text-align: center;
  
}

.errorraise{
   
    z-index: 1;
    top: 8rem;
    opacity: 100%;
    background: #e53333;
}
.successraise{
    z-index: 1;
    top: 8rem;
    opacity: 100%;
    background: #28a745;
    
}

.mode {
    display: flex;
  
    cursor: pointer;
}
.sidebar {
    margin: 0;
    position: absolute;
    z-index: 1;
    background: orange;
    padding: 25px 5px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    cursor: pointer;
}
.themewindow {
    width: 25rem;
    background: white;
    position: absolute;
    top: 50%;
    left: 15%;
    transform: translate(-50%,-50%);
    transition: 0.5s ease-in-out;
    opacity: 0;
    
}

.themeheader {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 10px 0;
    background: rebeccapurple;
    color: white;
    font-weight: 600;
}
.theme img {
    height: 6.5rem;
    width: 8rem;
    margin: 5px 10px 0;
    object-fit: cover;
}
.themebody {
    overflow: scroll;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.themevisible{
  
    opacity: 100%;
    z-index: 1;
    left: 50%;
}

.theme {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}
.theme h6 {
    background: #292b5b;
    color: white;
    width: 8rem;
    text-align: center;
    padding: 3px 0;
}
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
  }
  
 
   
  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: #888; 
    border-radius: 20px;
  }
/** NIGHT MODE CSS **/
.nightmode{
   
    background: url('themes/nighmode.jpg');
    background-size: cover;
    
    
}
.nightwhite{
    color:#ffffff;
}
.nightcity{
    color:#f7ce68;
}
.nightblack{
    color: #000000;

}

@media screen and (max-width: 854px){
    .error{
        left: 0;
        transform: none;
        
    }
    #searchholder{
        margin-top: 0;
    }
}

@media screen and (max-height: 600px){
.weatherwrap{
    margin-top: 0;
}


    
}
@media screen and (max-width: 600px){
    #header{
        flex-direction: column;
       
    }
    .logo{
        margin-right: 0;
        margin-top: 1rem;
    }
}
@media screen and (max-width: 823px){
    #header ul{
        flex-direction: column;
    display: none;
    margin-top: 1rem;
    }
    
    #header a::before{
        display: block;
    }
    .city h1{
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    .degree h1{
        font-size: 2.8rem;
        margin-bottom: 0.8rem;
    }
    .nature{
        padding: 5px 20px;
        font-size: 0.8rem;
        margin-bottom: 1.3rem;
    }
    .desc{
        
        font-size: 0.8rem;
    }
    .loader{
        width: 150px;
        height: 150px;
    }
    input#searchholder{
    font-size: 1rem;
    }
}

::-webkit-search-cancel-button{
    appearance: none;
}