/* weatherDashboard.css */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    color:#003366;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
}

header {
    background-color: skyblue;
    color: #003366;
    padding: 20px 0;
    width: 100%;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid #003366;
}

main {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    margin: 20px auto;
    background-color: #F0F8FF;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    max-height: calc(100vh - 60px); /* Adjust height based on header size */
    z-index: 1;
    position: relative;
}

.search-section {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

#city-input {
    width: 70%;
    padding: 12px;
    border: 2px solid #F0F8FF;
    border-radius: 8px;
    font-size: 16px;
}

#search-btn {
    padding: 12px 20px;
    margin-left: 10px;
    border: none;
    border-radius: 8px;
    background-color: #FFD700;
    color: #F0F8FF;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#search-btn:hover {
    background-color: #FFD700;
}

.weather-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.data-box {
    width: 100%;
    padding: 20px;
    background-color:skyblue;
    border-radius: 10px;
    margin: 10px 0;
    box-shadow: 0 2px 4px #003366;
    text-align: center;
    background-size: cover;
    background-position: center;
    z-index: 1;
    position: relative;
}

.data-box div {
    margin: 10px 0;
}

.spinner {
    border: 4px solid #003366;
    border-top: 4px solid #003366;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
