/* CSS for Announcement Bar */
#announcement-bar {
    background-color: #ffd700; /* Change color as per your preference */
    color: #333; /* Change text color as per your preference */
    padding: 10px;
    text-align: center;
}

/* CSS for Header */
#header {
    background-color: #000080;
    color: #fff;
    padding: 5px;
    text-align: center;
    /* position: fixed; /* Fixed position to ensure it stays at the top */ */
    top: 10;
    left: 150px; /* Adjust based on sidebar width */
    right: 0;
    z-index: 999; /* Ensure the header is above the sidebar */
}

.menu-icon {
    display: none; /* Initially hide on larger screens */
    cursor: pointer;
}


#sidebar {
    width: 150px;
    background-color: #000080;
    color: #fff;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    z-index: 997; /* Ensure the sidebar is below the header */
}

#menu {
    padding: 0px;
	width: 150px;
}

#menu h1 {
    margin-top: 0;
}

#menu ul {
    list-style-type: none;
    padding: 0;
}

#menu ul li {
    margin-bottom: 10px;
}

#menu ul li a {
    color: #fff;
    text-decoration: none;
    display: block;
    /* Adjust font size */
    font-size: 12px;
    /* Reduce padding */
    padding: 2px 10px;
}

#menu ul li {
    position: relative;
}

/* CSS for Submenu */
.submenu {
    display: none; /* Initially hide the submenu */
    position: absolute;
    top: 0;
    left: -100%; /* Adjusted position to slide from left to right */
    background-color: #000080;
    padding: 10px;
    z-index: 1000;
    transition: left 10s ease; /* Apply transition effect */
}

#menu ul li:hover .submenu {
    display: block; /* Display the submenu when hovering over its parent */
    left: 0; /* Slide the submenu to the right when displayed */
}






/* Adjust styles for submenu links */
.submenu li {
    margin-bottom: 5px;
}

.submenu a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 5px 10px;
}

.submenu a:hover {
    background-color: #333;
}


#menu ul li:hover .submenu {
    display: block;
}

/* Inside your CSS file */

/* Show menu on mobile when toggled */
#menu.show-menu {
    display: block;
}

/* Hide menu by default */
.hide-menu {
    display: none;
}

/* Show menu icon on mobile */
.menu-icon {
    display: none; /* Initially hide on larger screens */
    cursor: pointer;
}

/* Adjust main content */
#content {
    margin-left: 150px; /* Adjust based on sidebar width */
    margin-top: 0px; /* Increase the margin-top value to create more space */
    padding: 20px; /* Adjust padding as needed */
}


/* Add your CSS styles for content here */
table {
    border-collapse: collapse;
    width: 100%;
}

th, td {
    border: 1px solid #dddddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

#meteogram-chart-container {
    display: none; /* Initially hide the meteogram */
    width: 100%;
    height: 400px;
    margin-top: 20px;
}

#map {
    height: 300px;
    width: 100%;
    margin-top: 20px;
}

.high-wind-gusts {
    color: red;
}

.high-temperature {
    color: red;
}

.low-temperature {
    color: blue;
}

@media only screen and (max-width: 1280px) {
    /* Adjust sidebar width for tablets */
    #sidebar {padding: 0px;
        width: 170px;
    }

    /* Adjust header and content padding */
    #header {
        left: 150px; /* Adjust based on updated sidebar width */
    }

    #content {
        padding-top: 70px;
    }
    
    /* Adjust menu width for PCs */
    #menu {
        width: 150px; /* Keep menu width as 300px for PCs */
    }
	    /* Hide submenu by default on touch devices */
    .submenu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #000080;
        padding: 10px;
        z-index: 1000;
    }

    #menu ul li:hover .submenu {
        display: block;
    }
	    #menu ul li a {
        font-size: 20px; /* Adjust the font size for tablets */
    }


}

/* Adjust styles for smaller screens (e.g., mobile) */
@media only screen and (max-width: 600px) {
    .menu-icon {
        display: block;
        position: absolute;
        top: 10px;
        left: 10px;
        z-index: 1001;
        color: #fff;
    }

    #content {
        padding-top: 50px;
    }

    #menu.show-menu {
        display: block;
        position: absolute;
        top: 50px;
        left: 0;
        background-color: #000080;
        width: 100%;
        z-index: 1000;
    }

    .submenu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #000080;
        padding: 10px;
        z-index: 1000;
    }

    #menu ul li:hover .submenu {
        display: block;
    }

    #sidebar {
        display: none !important;
    }

    #content {
        margin-left: 0 !important;
    }

    #header {
        background-color: #000080;
        color: #fff;
        padding: 30px 20px;
        text-align: center;
        position: fixed;
        top: 40px;
        left: 0;
        right: 0;
        z-index: 999;
        margin: 0;
    }

    #content {
        padding-top: 120px;
    }

    #menu {
        width: 30px%;
        background-color: #000080;
        padding: 20px;
        position: fixed;
        top: 60px;
        left: 0;
        z-index: 999;
    }

    #menu ul {
        text-align: left;
    }

    #menu h1 {
        text-align: left;
    }
}
