@import url('https://fonts.googleapis.com/css2?family=Amatic+SC&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&family=Roboto:wght@400;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    background-image: url('../static/images/cartoon2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Ensure background covers entire viewport */
}

.container {
    margin: 50px 50px 80px 50px;
    padding: 30px;
    background-color: #F5E8DD;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px; 
    width: 90%; 
}

h1 {
    text-align: center; 
    padding: 20px; 
    font-family: 'Amatic SC', cursive; 
    font-size: 40px; 
}

form {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="text"] {
    width: calc(100% - 22px);  /* Adjusted for input padding */
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    width: calc(100% - 22px);
    padding: 10px;
    background-color: #eed3d9;
    color: #000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;

}

button:hover {
    background-color: #eed3d9;
}
input[type="text"], button {
    box-sizing: border-box;
    width: 100%;
}
/* For smaller screens (phones) */
@media (max-width: 768px) {
    .container {
        max-width: 300px; 
    }
    /* Adjust input and button width for smaller screens */
    input[type="text"], button {
        box-sizing: border-box;
        width: 100%;
    }
}

/* For larger screens (desktops) */
@media (min-width: 768px) {
    .container {
        width: 30vw;
        display: flex;
        flex-direction: column;
        align-items: center;
        
    }
}

.weather-info {
    text-align: center;
    flex-grow: 1;
}

.weather-icon {
    width: 100px; 
    height: 100px;
    margin-bottom: 20px; 
    border-radius: 50%; 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); 
    background-color: #B5C0D0;
}
.errorpage{
    max-width: 300px;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: rgba(181, 192, 208, 0.95);
    text-align: center;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    margin-top: auto;
}

.error {
    color: #ff0000;
}
