body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #202020;
    color: rgb(142, 174, 223);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.navBar nav {
    background-color: #222; /* Darker background for the navbar */
    padding: 10px 0;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.8); /* Adds a subtle shadow under the nav bar */
}

.navBar nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    justify-content: center; /* Center align nav items */
}

.navBar nav ul li {
    margin: 0 15px; /* Increased spacing between items */
}

a {
    color: #85b6ee; /* Link color */
    text-decoration: none; /* Removes underline from links */
    font-size: 1.1em; /* Slightly larger font size for better readability */
    transition: color 0.3s; /* Smooth transition for hover effects */
}

a:hover, a:focus {
    color: #cfd8dc; /* Lighter blue for hover state */
}

h1, h2, h3, h4 {
    text-align: center;
    color: #6ba1df;
}


.container {
    width: 80%; /* Or whatever percentage or fixed width you prefer */
    max-width: 1600px; /* Or whatever maximum width you find suitable */
    margin: 0 auto; /* This centers the container */
    padding: 0 10px; /* Adds some padding inside the container */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}   

iframe {
    width: 100%; /* Example width */
    height: 400px; /* Example height */
    margin: 0px auto; /* Centers the iframe and adds vertical spacing */
    display: block;
    border: none; /* Removes the border */
    border-radius: 10px;
}

h1, nav {
    text-align: center;
    width: 100%;
}

header {
    margin: 0;
    padding: 0;
    width: 100%;
}

header, .main-layout {
    align-self: flex-start;
}


.main-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin: auto;
    margin-right: 5px;
    padding: 0;
    width: 100%;
}


.weather-stats-container {
    flex: 0 0 225px; 
    align-self: flex-start; 
    order: -1; 
    margin-left: 20px; 
    
}

.dashboard-content {
    flex-grow: 1; 
    
}

.timeframe-selector-iframes {
    margin-bottom: 10px;
    text-align: center;
    color: #fff; /* White text color */
}

.timeframe-selector-iframes label {
    margin-right: 10px;
    color:#6ba1df
}

#timeframe {
    padding: 8px;
    background-color: #1c243f; /* Dark blue background */
    color: #fff; /* White text color */
    border: 1px solid #413c3c; /* Dark border */
    border-radius: 5px;
    width: auto; /* Adjust width as needed */
    cursor: pointer; /* Pointer cursor on hover */
}

#timeframe:focus {
    outline: none; /* Removes the outline to keep the style clean */
    box-shadow: 0 0 0 2px #7491c7; /* Adds a focus shadow */
}


/* Styles for date and time inputs */
input[type="date"], input[type="time"] {
    background-color: #1c243f; /* Dark blue background */
    border: 1px solid #413c3c; /* Matching the theme's border color */
    color: #fff; /* White text color for readability */
    padding: 8px; /* Padding for better touch interaction */
    border-radius: 5px; /* Rounded corners */
    font-family: Arial, sans-serif; /* Consistent font family */
    font-size: 16px; /* Legible font size */
    width: auto; /* Auto width based on content */
    margin: 5px; /* Spacing around inputs */
    cursor: pointer; /* Pointer cursor to indicate it's interactive */
}

input[type="date"]:hover, input[type="time"]:hover {
    background-color: #29395f; /* Slightly lighter blue on hover */
}

input[type="date"]:focus, input[type="time"]:focus {
    outline: none; /* Removes the default focus outline */
    box-shadow: 0 0 0 2px #7491c7; /* Blue glow to indicate focus */
}

.hamburger-button {
    background: none;
    border: none;
    color: #85b6ee; /* Adjust color to fit your design */
    font-size: 30px; /* Adjust size as needed */
    display: none; /* Hidden by default */
    cursor: pointer;
}

@media (max-width: 768px) {
    .main-layout {
        flex-direction: column; /* Stack vertically on smaller screens */
        align-items: center; /* Center items horizontally */
    }

    .weather-stats-container,
    #weather-stats-iframe {
        width: 90%; /* Adjust the width for smaller screens */
        margin-right: 0; /* Remove right margin for smaller screens */
        margin-bottom: 20px; /* Add some space below */
        align-self: center; /* Center the iframe in the container */
    }

    .dashboard-content {
        width: 90%; /* Full width for the content on small screens */
    }
    .navBar {
        width: 100%; 
        overflow: hidden; 
    }

    .navBar nav {
        width: 100%;  
    }

    .navBar nav ul {
        flex-direction: column;  
        align-items: center;  
        width: 100%; 
    }

    .navBar nav ul li {
        width: 100%;  
        text-align: center; 
    }

    .navBar a {
        display: block;  
        padding: 10px;  
        width: 100%;  
        box-sizing: border-box;  
    }
    .hamburger-button {
        display: block; /* Show button on small screens */
    }

    .navBar nav ul {
        display: none; /* Hide the menu initially */
        width: 100%;
        flex-direction: column;
        text-align: center;
    }
}