*{
    margin: 0;
    padding: 0;
    font-family:'Poppins', sans-serif;
    box-sizing: border-box;
}

body {
    width: 100%;
    background: url(./images/background-nature.jpg);
}

.title {
    color: white;
    width: 50%;
    text-align: center;
    z-index: 2;
    position: absolute;
    font-size: 35px; 
    left: 50%;
    top: 3%;
    text-shadow: 2px 4px 4px #000000;
    transform: translate(-50%, -25%);
    animation: animateText 2.5s ease-in;
}

@keyframes animateText {
    0%{
       opacity: 0;
    }
    50%{
        opacity: 1;
     }
}

.calender {
    width: 125px;
    height: 100px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.left, .right {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 10px;
}

.right {
    width: 42%;
    background: #f4351e;
    color: white;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.left{
    width: 58%;
}

.card {
    width: 90%;
    max-width: 470px;
    background: linear-gradient(135deg, #384065, rgb(68, 255, 255) );
    color: #fff;
    margin: 25px auto 0;
    border-radius: 20px;
    padding: 40px 35px;
    text-align: center;
}

.search {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search input {
    border: 0;
    outline: 0;
    background: #ebfffc;
    color: #555;
    padding: 10px 25px;
    height: 60px;
    border-radius: 30px;
    flex: 1;
    margin-right: 16px;
    font-size: 18px;
    transition: transform 0.5s;
}

.search input:hover {
    transform: translateY(-5px)
}

.search button{
    border: 0;
    outline: 0;
    background: #ebfffc;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: transform 0.5s
}
.search button:hover{
    transform: translateY(-5px)
}

.search button img { 
    width: 16px;
    transition: transform 0.5s
}

.weather-icon {
    width: 170px;
    margin-top: 30px;
}

.weather h1 {
    font-size: 80px;
    font-weight: 500;
}

.weather h2 {
    font-size: 45px;
    font-weight: 400;
    margin-top: -10px;
}

.details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    margin-top: 50px;
}

.col {
    display: flex;
    align-items: center;
    text-align: left;
}

.col img {
    width: 40px;
    margin-right: 10px;
}

.humidity, .wind {
    font-size: 28px;
    margin-top: -6px;
}

.weather {
    display: none; 
}

.error {
    text-align: left;
    margin-left: 10px;
    font-size: 14px;
    margin-top: 10px;
    display: none;
}

.clock {
    width: 100%;
    height: 25vh;
    display: flex;
    align-items: center;
    padding: 40px 35px;
    justify-content: center;
    position: relative;
    animation: animateClock 2.5s ease-in;
}

.clock h1 {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 50px;
    font-weight: 600;
    letter-spacing: 3px;
    text-shadow: 2px 4px 4px #000000;
    

}

@keyframes animateClock {
    0%{
       opacity: 0;
    }
    50%{
        opacity: 1;
     }
}

.dad-jokes{
    width: 100%;
    position: absolute;
    text-align: center;
    margin-bottom: 10px;
    bottom: 1%;
    color: #fff;
    font-size: 20px;
    font-weight: 500px;
    text-shadow: 2px 4px 4px #000000;
}

.date-jokes p{
    font-size: 45px;
    color: #fff;
    font-weight: 500;
}
.dad-jokes button{
    border: 0;
    outline: 0;
    background: #ebfffc;
    color: #555;
    padding: 10px 25px;
    height: 50px;
    border-radius: 30px;
    flex: 1;
    margin-top: 10px;
    margin-right: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: transform 0.5s;
}

.dad-jokes button:hover{
    transform: translateY(-5px)
}
#date{
    font-size: 35px;
    line-height: 45px;
}