/* Body styling to center content */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Full viewport height */
    margin: 0;
    background-image: url('assets/backg.jpg'); /* Background image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: Arial, sans-serif;
}

/* Container styling to center content inside a white box */
.container {
    background: white; /* White background */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow effect */
    width: 400px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Weather data styling */
.weather-data h3 {
    margin: 10px 0;
    color: #333;
}

/* Flex container for input and button to align them side by side */
.input-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Add space between input and button */
}

/* Input styling */
input[type="text"] {
    width: 200px; /* Fixed width to avoid stretching */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

/* Button styling */
button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

/* Weather image styling */
#weather-img {
    margin-top: 20px;
    max-width: 100%; /* Ensure the weather image is responsive */
    height: auto;
}

/* Container for input and buttons */
#i1 {
    display: flex;
    flex-direction: column; /* Stack search bar and current location button vertically */
    align-items: center;
    gap: 10px; /* Add space between elements */
    width: 100%; /* Full width to ensure it adjusts on smaller screens */
    position: absolute;
    top: 60px; /* Adjust the distance from the top */
    text-align: center;
    margin-bottom: 0px; 
}

/* Styling for the weather data container (#i2) */
#i2 {
    background: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */
    padding: 20px;
    border-radius: 15px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow effect */
    text-align: center; /* Center align text and image */
    width: 400px;
    margin-top: 60px; /* Increase this value to pull it down further */
}

/* Weather data text styling */
#i2 h3 {
    font-size: 22px; /* Increase font size */
    font-family: 'Arial',
}

#myButton {
    background-color: #2bb9a6; /* Green */
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 20px;
    margin: 20px 2px; /* Add margin for spacing below */
    cursor: pointer;
    border-radius: 8px;
    border: none;
    transition: background-color 0.3s ease;
}
