body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}

h3 {
    color: #2c3e50;
    margin-left: 20px;
}

#parent {
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 400px;
    margin: auto;
}

#city {
    padding: 10px;
    font-size: 16px;
    width: 80%;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

button {
    padding: 10px 15px;
    font-size: 16px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

.weather-info {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.weather-info h2 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 10px;
}

.weather-info p {
    font-size: 16px;
    margin: 5px 0;
    color: #555;
}

#container {
    margin-top: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 400px;
    margin: auto;
}

#container div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

#container button {
    background-color: #e67e22;
}

#container button:hover {
    background-color: #d35400;
}

#container span {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
}

input[type="text"] {
    padding: 10px;
    font-size: 16px;
    width: 80%;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    #parent {
        width: 90%;
        margin-top: 30px;
    }

    .weather-info {
        padding: 15px;
    }

    #container {
        width: 90%;
        margin-top: 20px;
    }

    #container div {
        flex-direction: column;
        align-items: flex-start;
    }

    #container button {
        width: 100%;
        margin-top: 5px;
    }

    input[type="text"] {
        width: 100%;
        margin-bottom: 10px;
    }

    button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    h3 {
        font-size: 18px;
    }

    .weather-info h2 {
        font-size: 20px;
    }

    .weather-info p {
        font-size: 14px;
    }

    input[type="text"] {
        padding: 8px;
        font-size: 14px;
    }

    button {
        font-size: 14px;
        padding: 8px 12px;
    }

    #parent {
        width: 100%;
        margin-top: 20px;
    }

    #container {
        width: 100%;
    }

    #container div {
        flex-direction: column;
        align-items: flex-start;
       justify-content: space-around;
    }

    #container button {
        width: 100%;
        margin-top: 5px;
    }
}