@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
*{
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style-type: none;
    text-decoration: none;
    scroll-behavior: smooth;
    scroll-padding: 2rem;
    /* border-bottom: none; */
}



html {
    height: 100%;
}

h2,
h3,
h4,
h5,
h6 {
    font-family: "Orbitron", serif;
}


.home .container {
    padding-top: 100px;
    /* position: relative; */
    /* z-index: 10; */
    
}

#menu,
#close {
    display: none;

}

/*
body{
    font-family: Arial, Helvetica, sans-serif;
    /* background-color: rgb(228, 215, 215); 
    margin: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: url(1771844156647.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    animation: change 60s infinite ease-in-out, fadeIn 1.2s ease-in-out;
    min-height: 100vh;
}*/
body{
    width:100%;
    /* height:100vh; */
    /* background:linear-gradient(-45deg, rgba(0, 255, 238, 0.501), rgb(75, 75, 236), rgb(36, 36, 109), rgb(0, 217, 255)); */
    background-size: 400% 400%;
    align-items: center;
    display: flex;
    flex-direction: column;
    z-index: 1;
    animation:change 120s ease infinite;
    background-attachment: fixed;
    background-size: cover;
    
}

@keyframes change {
    0%{
        background-image: url(bg/pexels-aliakbar-nosrati-453685724-15544309.jpg);
    }
    25%{
        background-image: url(bg/pexels-goumbik-296234.jpg);
    }
    50%{
        background-image: url(bg/pexels-guilherme-stecanella-173739360-16014755.jpg);
    }
    75%{
        background-image: url(bg/pexels-mareefe-5710764.jpg);
    }
    100%{
        background-image: url(bg/pexels-nikiemmert-18417065.jpg);
    }
    
}

@keyframes animate{
    0%{
        background-position:0 50% ;
    }
    50%{
        background-position: 100% 50%;
    }
    100%{
        background-position: 0 50%;
    }
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 1rem;
    text-decoration: none;

}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: center;
    z-index: 100;
    background-color: #000a;

}

.lg-hidden {
    display: none;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo-link {
    display: flex;
    font-size: 22px;
    font-weight: 500;
    color: #aaa;
    font-family: "Orbitron", serif;
    text-decoration: none;
}

.header .logo-link span {
    display: flex;
    font-size: 22px;
    font-weight: 600;
    color: rgb(45, 192, 233);
    font-family: "Orbitron", serif;
}

.navigation {
    display: flex;
    gap: 1.1rem;

}
.weatherModal {
    display: flex;
    gap: 1.1rem;

}

.navigation .link {
    color: #aaa;
    text-transform: capitalize;
    text-transform: all 1s;
    font-size: 16.5px;
    position: relative;
    text-decoration: none;
}

.navigation .link:hover {
    color: #ffffff;

}

.navigation .link::after {

    position: absolute;
    content: '';
    bottom: -0.5rem;
    left: 0;
    height: 2px;
    width: 0%;
    background-color: white;
    transition: all 1s;
}

.navigation .link:hover::after {
    width: 95%;

}

.controls {
    display: flex;
    gap: 1.1rem;

}




.button {
    padding: 0.85rem 2rem;
    font-size: 15.5px;
    line-height: 15.5px;
    font-weight: 500;
    text-transform: capitalize;
    border: 2px solid rgb(52, 52, 250);
    cursor: pointer;
    transition: all 1s;
    background-color: transparent;
    box-shadow: 0 0 6px rgb(75, 75, 236);
    color: white;
}

.icon {
    padding: 0.85rem 0.85rem;
    font-size: 15.5px;
    line-height: 15.5px;
    font-weight: 500;
    text-transform: capitalize;
    border: 2px solid rgb(64, 64, 248);
    cursor: pointer;
    transition: all 1s;
    background-color: transparent;
    box-shadow: 0 0 6px rgb(0, 0, 0);
    color: white;
}

.space{
    /* display:  */
    justify-content: space-between;
}

.icon:hover {
    border: 2px solid rgb(75, 75, 236);
    cursor: pointer;
    transition: all 1s;
    background-color: rgb(26, 117, 245);
    box-shadow: 0 0 6px rgb(0, 0, 0);

}

button.btn-signup {
    text-transform: capitalize;
    border-color: rgb(75, 75, 236);
    background-color: rgb(45, 192, 233);
    color: white;
}

.controls button.btn-signup:hover {

    border-color: #ffffff;
    background-color: rgb(255, 255, 255);
    color: rgb(75, 75, 236);
}

.controls button:hover {

    text-transform: capitalize;
    border-color: #ff0000;


    background-color: rgb(75, 75, 236);
    color: white;
}




.weatherForm{
    margin: 20px;
    transform: translateY(40px);
    animation: floatUp 0.8s ease-out forwards;
}



@keyframes floatUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.cityInput{
    padding: 10px;
    font-size: 1rem;
    font-weight: bold;
    border: 2px solid black;
    border-radius: 10px;
    margin: 10px;
    width: 300px;
}
label   {
    font-size: 1.5rem;
    font-weight: bold;
}
#email{
    padding: 10px;
    font-size: 1.3rem;
    font-weight: bold;
    border: 2px solid black;
    border-radius: 10px;
    margin: 10px;
    width: 80%;
}
 #message{
    padding: 10px;
    font-size: 1.3rem;
    font-weight: bold;
    border: 2px solid black;
    border-radius: 10px;
    margin: 10px;
    width: 80%;
    height: 150px;
}
button[type="submit"]{
    padding: 10px 20px;
    font-weight: bold;
    font-size: 1rem;
    background-color:rgb(45, 192, 233);
    color: black;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
button[type="submit"]:hover{
    background-color:rgb(75, 75, 236);
    color: white;
}
.card{
    background: linear-gradient(180deg, rgb(75, 75, 236), rgb(45, 192, 233));
    padding: 50px;
    box-shadow:2px 2px 5px rgba(0, 0, 0, 0.518); 
    min-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    width: 75%;
}
h1{
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 10px;

}
p{
    font-size: 1.5rem;
    margin: 5px 0px;

}
.cityDisplay, .tempDisplay {
    font-size: 2rem;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.761);
    margin-bottom: px;
}
.humidityDisplay{
    
    font-weight: bold;
   margin-bottom: 25px;
}
.descDisplay{
    font-style: italic;
    font-weight: bold;
    font-size: 2rem;
}
.weatherEmoji{
    margin: 0;
    font-size: 7.5rem;
}
.errorDisplay{
    font-size: 2rem;
    font-weight: bold;
    color: black;
}
.nav-bar{
    background-color: black;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
}
.nav-bar ul{
    list-style-type: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 5px;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;

}
.nav-bar a{
    color: rgb(255, 255, 255);
    text-decoration: none;
    background-color: black;
    padding: 15px;
    display: block;
    font-size: 1.3rem;
}
.nav-bar a:hover{
    background-color:rgb(75, 75, 236);
}
.nav-bar li{
    float: left;
    
}

.intro-section {
    max-width: 600px;
    text-align: center;
    margin: 30px 20px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    transform: translateY(40px);
    animation: floatUp 0.8s ease-out forwards;
    
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }}

.intro-text {
    font-size: 1.1rem;
    color: white;
    line-height: 1.6;
    margin-bottom: 15px;
}

.designer-credit {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    margin: 0;
}


.weatherModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.2s ease;
}
.weatherModal.active {
    visibility: visible;
    opacity: 1;
}
.weatherModal .elfsight-app-47fa723b-e84c-48fd-a9a0-73d0a362adc6 {
    /* max-width: 90%; */
    /* max-height: 90%; */
    /* margin: auto; */
    max-width: 800px;
    min-width: 400px;
}


#p2{
    margin-top: auto;
}
footer{
    margin-top: auto;

    bottom: 0;
}
.copyright {
    padding: 10px;
    text-align: center;
    color: #ffffff;
    background: transparent;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    /* z-index: 1000; */
    /* height: 30px; */
    font-size: 0.8rem;

}

.menu-toogle{
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: white;
    background-color: black;
    width: 100%;
    text-align: right;
    padding: 15px;
    box-sizing: border-box;
}
@media(max-width:1120px) {

    .controls .btn-promo,
    .controls .btn-signup {
        display: none;
    }

    #menu,
    #close {
        display: block;

    }

    .lg-hidden {
        display: initial;
    }

    #close {
        position: absolute;
        top: 1.6rem;
        right: 1.6rem;
        border: 2px solid rgb(0, 0, 0);
    }

    .pill {
        display: none;
    }


    .navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 380px;
        min-height: 100vh;
        background-color: rgb(0, 0, 0);
        transition: all 1s;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: black;
        gap: 1.8rem;


    }

    .navigation.active {
        position: fixed;
        top: 0;
        right: 0;

    }
    

    .navigation .link {
        font-size: 22px;
    }
     #acc {
        display: block;
    }
}

@media (max-width: 768px) {

   
    body {
        padding: 0 10px;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    p {
        font-size: 1rem;
        margin: 3px 0px;
    }

    .intro-section {
        max-width: 90%;
        margin: 15px auto;
        padding: 15px;
    }

    .intro-text {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    .designer-credit {
        font-size: 0.8rem;
    }

    .weatherForm {
        width: 100%;
        margin: 15px 0;
    }

    .cityInput {
        padding: 8px;
        font-size: 0.9rem;
        margin: 8px 0;
        width: 100%;
        box-sizing: border-box;
    }

    button[type="submit"] {
        padding: 10px 15px;
        font-size: 1.rem;
        width: 100%;
        box-sizing: border-box;
    }

    .card {
        padding: 20px;
        min-width: auto;
        max-width: 100%;
        margin: 10px 0;
    }

    .cityDisplay, .tempDisplay {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .descDisplay {
        font-size: 1.2rem;
    }

    .weatherEmoji {
        font-size: 4rem;
    }

    .errorDisplay {
        font-size: 1.3rem;
    }

    .nav-bar {
        width: 100%;
        flex-wrap: wrap;
       
        top: 0;
    }

    .nav-bar ul {
        display: none;
        width: auto;
        flex-direction: column;
        /* background-color: black; */
    }

    .nav-bar ul.active {
        display: flex;
        flex-direction: column;
        width: auto;
        
    }

    .nav-bar a {
        padding: 12px;
        text-align: center;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-bar li {
        float: none;
    }

    .menu-toogle {
        display: block;
    }

    .row {
        flex-direction: column;
    }

}



.logo-container {
    padding-left: 0;
    display: grid;
    display: flex;
    justify-content: space-between;
    right: 0;
    width:100%;
    
    
}
footer{
    bottom: 0;
}

img.logo {
    width: 220px;
    height: auto;
    border-radius: 10px;
    opacity: 0.85;
    mix-blend-mode: screen;
}
#p2{
    font-size: small;
}
.nav-bar input{
    display: none;
}


.news-search-input{
    background: rgb(255, 255, 255, 0.1);
    border: none;
    padding: 10px 12px;
    width: 12rem;
    border-radius: 5px;
    color: rgb(0, 0, 0);
    outline: none;
}
.news-search-input::placeholder{
    color: rgb(0, 0, 0);

}
.conetnt{
    border: 2px solid blue;
    display: flex;
    justify-content: center;
    padding: 1rem;
}
.conetnt-wrapper{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    border: 2px solid black;
    gap:1.5rem;
}
.card2{
    background:white;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
    border-radius: 10px;


}
.card-image-wrapper{
    height: 200px;
    overflow:hidden;

}
.card-image-wrapper img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    transition: 0.3s ease;
}
.card-image-wrapper img:hover{
    transform: scale(1.1);
    transition: transform 0.3s ease;
}
.card-content{
    padding: 0.8em;
    border:solid;
}
.card-date, .card-description{
   color:#7f7f7f; 

}
.card-title a{
    color: black;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-title a:hover{
    text-decoration: underline;
}
.card-description{
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media screen and (max-width: 500px) {
    .card-image-wrapper {
        height: 150px;
        grid-template-columns: repeat(2, 1fr);
    }
    .intro-section {
        max-width: 100%;
        /* margin: 15px auto; */
        /* padding: 15px; */
    }

    
.card{
    width:100%;
}
}


    
