body, h1, p {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f7f7f7;
    overflow: hidden;
}

.main {
    margin: 18px;
    box-shadow: 0 0 20px rgba(6, 4, 3, .1);
    padding: 20px;
    box-sizing: border-box;
    background-color: #f7f7f7;
    border-radius: 9px;
    animation: fadeIn 1s ease-in-out; 
}

.cityname {
    text-align: center;
    color: #db3734;
}

.place {
    color: #db3734;
}

.mainsection {
    display: flex;
    justify-content: space-around;
    padding-top: 1rem;
    margin: 1rem;
    background-color: rgba(255, 255, 255, 0);
    border-radius: 10px;
    overflow: hidden;
    animation: slideIn 1s ease-in-out; 
}

.section {
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: space-around;
    margin: 8px;
    padding-top: 1rem;
}

.weather-info img {
    height: 10rem;
    margin-bottom: 3px;
    animation: scaleIn 1s ease-in-out; 
}

.weather-info img {
    margin-left: 10px;
}

h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.search {
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
}

input[type="text"] {
    padding: 10px;
    padding-left: 19px;
    font-size: 15px;
    border: none;
    border-radius: 4rem;
    outline: 1px solid #3498db;
    margin-right: 10px;
}

button#getWeatherButton {
    padding: 11px 15px;
    border-radius: 3rem;
    font-size: 16px;
    background-color: #00d90b;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

button#getWeatherButton:hover {
    background-color: #1abc9c;
    color: #000000;
    transform: scale(1.05);
}

.right-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideIn 1s ease-in-out; 
}

.right-content img {
    border-radius: 3rem;
    max-width: 100%;
    height: auto;
    animation: fadeIn 1s ease-in-out; 
}

.container {
    flex: 2;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    animation: fadeIn 1s ease-in-out; 
}

.container h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
}

.container p {
    font-size: 18px;
    margin-bottom: 20px;
}

.unit-toggle {
    display: flex;
    justify-content: center;
    margin-top: 25px;
    margin-bottom: 17px;
}

label {
    font-size: 20px;
    margin-right: 20px;
}

.weather-info {
    display: flex;
    justify-content: center;
}

.weather-info img {
    height: 10rem;
}

.weather-info h2 {
    font-size: 3rem;
}

.attribute {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.section h1{
    font-size: 2rem;

}

@media screen and (max-width: 740px) {
    .right-content img {
        display: none;
    }
    .main {
        background-color:aqua;
    }
    .mainsection {
        flex-direction: column;
    }

    .section {
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .unit-toggle {
        align-items: center;
        margin-top: 10px;
    }

    .weather-info {
        display: flex;
        justify-content: center;
    }

    .weather-info img {
        height: 10rem;
    }

    .weather-info h2 {
        font-size: 3rem;
    }
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}




 



    .error{
        margin-top: 2rem;
        color: red;
        font-size: 3rem;
        font-weight: 600;

     .cityname{
            display: none;
        }
    }



    .title{
        display: flex;
        text-align: center;
    

    }
    .title img{
        height:1.9rem;

     margin-right: 4px;
        animation: rotate 4s linear infinite;
      
    }
    @keyframes rotate {
        from {
            transform: rotate(0deg); 
        }
        to {
            transform: rotate(360deg); 
        }
    }