@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&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;
}



html {
    height: 100%;
}



/*
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, rgb(0, 255, 238), 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:animate 15s ease infinite;
    
}
@keyframes animate{
    0%{
        background-position:0 50% ;
    }
    50%{
        background-position: 100% 50%;
    }
    100%{
        background-position: 0 50%;
    }
}




.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;
}

@keyframes change {
    0%{
        background-image: url(1771844156647.jpg);
    }
    25%{
        background-image: url(1771844156683.jpg);
    }
    50%{
        background-image: url(1771844156771.jpg);
    }
    75%{
        background-image: url(1771846724955.jpg);
    }
    100%{
        background-image: url(1771846724982.jpg);
    }
    
}
.container{
    background-color: black;
    line-height: 50px;
    width: 100%;
    
}
#p2{
    margin-top: auto;
}
footer{
    margin-top: auto;
}

.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: 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;
       transition: 3s all ease-in-out;
        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;
        /* height: 100vh; */
        
        
    }

    .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;
    }

}

header {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.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;
}

.header::before{
    content: '';
    width: 100%;
    top: 0;
    right: 0;

}
.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);
    }
    
.card{
    width:100%;
}
}


    
