:root{
    --main-bg-color: #001F3F;
    --main-text-color: rgb(255, 255, 255);
    /* --secondary-text-color: #A6AEBF; */
    --secondary-text-color: #ECEFCA;
    --button-bg-color:#a3dcf7b1;
    --button-text-color:#1168c0;
    --card-bg:#2B4368;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

ul{
    list-style: none;
}
main{
    flex: 1;
}

.site{
    padding-top: 80px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4) ), url(../images/sky.jpg) center / cover ;
    background-attachment: fixed;
    min-height: 100vh;
    z-index: -7;
}
.contact{
    padding-top: 80px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4) ), url(../images/sky.jpg) center / cover ;
    background-attachment: fixed;
    min-height: 100vh;
    z-index: -7;
}
.site-title{
    font-size: 1.125rem;
}

.logo{
    max-width: 50px;
}
.smallP{
    color: var(--secondary-text-color);
    font-size: .625em;
}
nav .nav-link{
    position: relative;
    color: var(--main-text-color);
    font-weight: 600;
}
nav .nav-link:hover{
    color: var(--main-bg-color) ;
}
nav .nav-link::before{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    z-index: -1;
}
nav .nav-link:hover::before{
    animation: bgmove 1s forwards;

}
@keyframes bgmove {
    0%{
        width: 0%;
    }
    50%{
        width: 100%;
        height: 2px;
    }
    100%{
        width: 100%;
        height: 100%;
        background: linear-gradient(#d5e3eb , #6A9AB0) ;
    }
}


button{
    background-color: var(--button-bg-color) !important;
    color: var(--button-text-color) !important;
    border-radius: 50px !important;
}

button:hover {
    box-shadow: 0 0 10px #a3dcf7b1, 0 0 20px #1168c0;
    transform: scale(1.05);
    transition: all 0.3s ease-in-out;
}

/******************** SearchForm **********************/
.searchForm{
    gap: 10px;
    flex-wrap: wrap;
}
.searchBox{
    width: 100%;
    min-width: 250px;
    max-width: 300px;
}
.searchBox input{
    width: 100%;
    height: 50px;
    padding-right: 50px;
    padding-left: 15px;
    border-radius: 50px;
    border: none;
    outline: none;
}
.searchBox button{
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);

}

/* ************ wheather Cards ***********************/

.mainCard {
    position: relative;
    width: 100%;
    height: auto;
}
.weatherCard {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.baseCard {
    z-index: 2;
    background-color:rgba(255, 255, 255, 0.1);
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.4s ease-in-out;
}
.secCard {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    background-color: var(--card-bg);
    color: var(--main-text-color);
    border-radius: 20px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease-in-out;
}
.mainCard:hover .secCard {
    opacity: 1;
    pointer-events: auto;
    z-index: 3;
}
.myImg {
    width: 100px;
    height: 100px;
}
.date{
    color: var(--main-bg-color);
    font-size: 1.3em;
}
.climateIcon{
    width: 30px;
}
.temp {
    font-size: 2.3em;
    font-weight: 700;
    margin-top: 0.5em;
}

.country {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--main-bg-color);
}
.status{
    font-size: 1em;
    font-weight: 600;
}


/*===================== footer ============================== */
footer{
    color: var(--secondary-text-color);
    background-color:var(--main-bg-color);
    padding: 2rem 1rem;
}
/******************** subscribeForm **********************/
.subscribeForm{
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.subscribeBox{
    width: 100%;
    min-width: 500px;
    max-width: 300px;
}
.subscribeBox input{
    width: 100%;
    height: 50px;
    padding-right: 50px;
    padding-left: 15px;
    border-radius: 50px;
    border: none;
    outline: none;
}
.subscribeBox button{
    position: absolute;
    right: 5px;
    top: 45%;
    transform: translateY(-50%);
}
/* ---------------------------- */
footer ul li{
    position: relative;
    width: 40px;
    height: 40px;
    border-radius:50%;
    background-color: #3C5B6F;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer ul li a{
    color: var(--main-text-color);
    font-size: 1.2em;
}
footer ul li a.facebook:hover{
    color: #1168c0;
}
footer ul li a.gmail:hover{
    color: rgb(154, 11, 11);
}
footer ul li a.x:hover{
    color: black;
}
footer ul li a.pinterest:hover{
    color: rgb(181, 19, 19);
}
footer ul li .tooltip{
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: black;
    color: var(--main-text-color);
    padding: 6px 10px;
    border-radius: 5px;
    opacity: 0;
    display: none;
    font-size: 14px;
    transition: all 0.3s ease;
}
footer ul li:hover .tooltip{
    opacity: 1;
    display: block;
    bottom: -50px;
}



/* ============ contact=============== */
#contactForm input{
    border-radius: 50px !important;
    box-shadow: none;
    transition: all 0.4s;
    border: 3px solid gray;
}
#contactForm input:hover{
    border: 3px solid #009ad8;
}
#contactForm textarea{
    height: 150px;
    border-radius: 30px;
    box-shadow: none;
    transition: all 0.4s;
    border: 3px solid gray;

}
#contactForm textarea:hover{
    border: 3px solid #009ad8;
}
#contactForm button:hover{
    background-color: #2B4368 !important;
    color: white !important;
}
.contact .card iframe {
    width: 100% !important;
    height: 300px;
}





.loader {
    width: 48px;
    height: 48px;
    display: block;
    margin: 20px auto;
    position: relative;
    border: 3px solid #FFF;
    border-radius: 50%;
    box-sizing: border-box;
    animation: animloader 2s linear infinite;
  }
  .loader::after {
    content: '';  
    box-sizing: border-box;
    width: 6px;
    height: 24px;
    background: #FFF;
    transform: rotate(-45deg);
    position: absolute;
    bottom: -20px;
    left: 46px;
  }
  
  @keyframes animloader {
    0% {
      transform: translate(-10px, -10px);
    }
    25% {
      transform: translate(-10px, 10px);
    }
    50% {
      transform: translate(10px, 10px);
    }
    75% {
      transform: translate(10px, -10px);
    }
    100% {
      transform: translate(-10px, -10px);
    }
  }
      

