/*header*/

body {
  scroll-behavior: smooth;
}

.header {
    background-color: white;
    color: black;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #e6f2fb;
}
.logo img {
    max-width: 50%; /* Adjust logo size as needed */
    height: auto;
}

.nav-menu {
    margin-right: 5%;
}
.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end; /* Align menu items to the right */
}
.menu li {
    margin-left: 20px;
}
.menu li:first-child {
    margin-left: 0;
}
.menu li a {
    text-decoration: none;
    color: black;
    font-size: 1.2rem;
    white-space: nowrap; /* Prevent line breaks */
}
.menu-icon {
    cursor: pointer;
    color: #124265;
    font-size: 1.5rem;
    display: none; /* Initially hide the menu icon */
    position: fixed; /* Fix the position of the menu icon */
    top: 10px; /* Adjust the top position as needed */
    right: 5%; /* Set the initial right margin to 5% */
    z-index: 1001; /* Ensure the icon appears above other content */
}
/* Menu Popup */
.menu-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: none; /* Initially hide the menu popup */
    justify-content: center;
    align-items: center;
    z-index: 999; /* Adjust the z-index to be below the header */
}
.menu-column {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    height: 80%;
    width: 80%;
    position: relative; /* Add relative position */
}
.menu-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.menu-column ul li {
    margin-bottom: 10px;
}
.menu-column ul li a {
    color: black;
    text-decoration: none;
    font-size: 1.2rem;
}


/* Close button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 1.5rem;
    color: black;
}
/*
end of header*/
body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 50vh; /* This ensures that the footer sticks to the bottom */
}




section {
    flex: 1; 
    padding: 40px 0;
    display: block;
}

/*footer*/

/* Footer styling */
.footer {
    background-color: #333;
    color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-below {
    color: white;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 30px 0 30px 0;
}



.menu-links a {
    color: black;
    text-decoration: none;
    margin-bottom: 5px; /* Add margin between menu items */
    display: block; /* Ensure each menu item takes the full width */
}

.left {
    margin-left: 5%;
     display: flex;
     flex-direction: column;

}

.right {
    margin-right: 5%;
    width: 10%;
}

.right a{
    font-size: 18px;
    display: inline-block;
    background: #2487ce;
    color: white;
    line-height: 1;
    width: 36px;
    height: 36px;
    padding: 8px 0;
    border-radius: 5px;
    text-align: center;
}

.copyright {
    margin-bottom: 5px;
}

.rights-reserved {
 
}

/*spinner animation*/
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's on top */
}

/* Spinner animation */
.spinner {
    border: 6px solid rgba(255, 255, 255, 0.3); /* Light border */
    border-top: 6px solid #007bff; /* Blue border */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1.5s linear infinite;
}

/* Animation for spinning */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Optional: Main content styles */
.main-body {
    display: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column; /* Stack sections vertically */
    align-items: center;
    width: 100%;
    font-family: Arial, sans-serif;
}


/*data with background pic*/
.main-body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    position: relative;
    height: 100vh;
    font-family: Arial, sans-serif;
}

.main-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../photos/test.png'); /* Replace with your image */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.6; /* Adjust opacity value to your preference */
    z-index: -1; /* Make sure it's behind the content */
}

.big-box {
    position: relative;
    z-index: 1; /* Content will be above the background */
    width: 95%;
    max-width: 1000px;
    background-color: #007bff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: white;
    padding: 20px;
    gap: 20px;
    margin-top: 100px; /* Space from the header */
}


/*tab*/

.prime-tab {
    margin-left: 5%;
    margin-right: 5%;
}

.prime-tab table {
    width: 100%;
}

.prime-tab thead {
    font-size: 24px;
    font-weight: bold;
}

.tab {
  width: 100%; /* Ensures tab buttons take full width */
  overflow: hidden; /* Prevents floating issues */
}

.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  color: black;
  text-align: center;
  border-bottom: 2px solid #ccc;
  font-size: 18px;
  font-weight: bold;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #007bff;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #007bff;
}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 10px;
}

.simplytable td {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}

.details td {
    font-size: 18px;
    text-align: center;
}

.table2 {
    display: flex; /* Flexbox container */
    width: 100%; /* Full width */
    text-align: center;
}
.left-box {
    flex: 0 0 50%; /* Left side takes 50% width */
    padding: 20px;
    box-sizing: border-box;
}
.left-image {
    height: 400px;
}
.right-box {
    flex: 0 0 50%; /* Right side takes 50% width */
    padding: 20px;
    box-sizing: border-box;
}
.row {
    display: flex; /* Row to contain two boxes */
    margin-bottom: 10px; /* Space between rows */
}
.top-row {
    margin-bottom: 20px; /* Additional space between the top row and the rest */
}
.box {
    background-color: #f1f1f1; /* Light box color */
    margin-right: 10px; /* Space between boxes */
    padding: 20px;
    flex: 0 0 48%; /* Each box takes up 48% of the row */
    text-align: center;
    border: 1px solid #ccc;
}
.row .box:last-child {
    margin-right: 0; /* Remove right margin for the last box in each row */
}

/* Add this to your CSS */
.fade {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Header Section */
.header-section {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

.header-box {
    width: 45%;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
}

.header-left {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 5px;
}

.header-right {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 5px;
}

/* 8-square layout */
.data-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 20px;
    width: 100%;
}

.square {
    width: 200px;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 10px;
}

/* Label container */
.label-container {
    background-color: #007bff;
    color: white;
    padding: 10px 0;
    width: 100%;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 10px;
}

.label {
    font-size: 1.2rem;
    font-weight: bold;
}

.reading {
    font-size: 1.5rem;
    color: #555;
}

/*charts*/
.chart-container {
    height: 830px;
    width: 100%;
}

.chart-container h3 {
    text-align: center;
    font-size: 32px;
}

canvas {
    max-height: 350px !important;
    max-width: 90% !important;
    border: 1px solid blue;
    margin-left: 5%;
}


/*Map Content*/
#map {
    width: 90%;
    height: 500px;
    margin-left: 5%;
}

/*flex box for report table*/

.table-title {
    font-size: 32px;
    padding: 5px;
    margin: 5px;
    text-align: left;
    margin-left: 5%;
    margin-top: 3%;
}

/*extract container*/

.extract-content {
    padding: 20px;
    display: flex;
    flex-wrap: wrap; /* Allow the containers to wrap */
    gap: 15px;
    margin-left: 3%;
}

.extract-container {
    border: 2px solid #ccc;
    border-radius: 10px;
    width: 200px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 10px;
}

.extract-header {
    padding: 15px;
    background-color: #007bff;
    color: white;
    text-align: center;
    border-bottom: 2px solid #ccc;
    font-size: 18px;
    font-weight: bold;
    border-radius: 10px 10px 0 0;
}

.extract-section {
    position: relative;
    width: 100%; /* Make each dropdown take the full width */
}

.dropdown-btn {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: left;
}

.dropdown-btn:hover {
    background-color: #0056b3;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 5px;
    z-index: 1;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-content a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
}

.dropdown-content a:hover {
    background-color: #eee;
}

.extract-section:hover .dropdown-content {
    display: block;
}
/*
end of extract*/

/* Basic styling for the calendar */
#calendar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
    max-width: 100%;
    margin: 20px auto;
    margin-left: 5%;
    margin-right: 5%;
}

.month-block {
    text-align: center;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative;
}

.month-block:hover {
    background-color: #cce5ff;
}

#year-title {
    font-size: 20px;
    font-weight: bold;
}

.fc-prev-button, .fc-next-button {
    font-size: 18px;
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    float: right;
}

/* Pop-up styling */
#popup {
    display: none; /* Hidden by default */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 50%;
    text-align: center;
}

#popup table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

#popup table, #popup th, #popup td {
    border: 1px solid #ddd;
}

#popup th, #popup td {
    padding: 8px;
    text-align: left;
}

#popup .close-btn {
    background-color: #007bff;
    color: white;
    padding:2px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
    z-index: 999; /* Overlay sits above the page content */
}

/* Dimmed background for calendar */
.fc-daygrid-day {
    pointer-events: auto; /* Enable clicking */
}

.no-click .fc-daygrid-day {
    pointer-events: none; /* Disable clicking when popup is open */
}



/* responsive design */
@media screen and (max-width: 1280px) {
    .menu {
        display: none; /* Hide the menu by default on smaller screens */
    }

    .menu-icon {
        display: block; /* Show the menu icon on smaller screens */
    }

    .menu-popup {
        display: none; /* Show the menu popup */
    }

    .main-body {
        height: 60vh;
    }

    .big-box {
        width: 90%;
        margin-top: 50px;
        padding: 15px;
    }

    .header-section {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .header-box {
        width: 100%;
        font-size: 20px;
    }

    .square {
        width: 150px;
        height: 120px;
        padding: 8px;
    }

    .label-container {
        font-size: 1rem;
        padding: 8px 0;
    }

    .label {
        font-size: 1rem;
    }

    .reading {
        font-size: 1.2rem;
    }

    .right-box {
        flex: 0 0 45%;
        font-size: 0.8rem;
    }

    .left-image {
        height: 350px;
    }

    .simplytable td, th, .details td{
        font-size: 0.9rem;
    }

    .tab button {
        font-size: 12px;
    }

    .box-legend {
        font-size: 0.9rem;
    }
}



@media (max-width:  837px) {
    .main-body {
        height:  40vh;
    }

    .table2 {
        flex-direction: column;
    }

    .box {
        margin-right: 7px;
        padding: 12px;
    }


    .header-legend2 {
        flex-direction: row; /* Keep items in row format */
    }

    .box-legend {
        width: 25%; /* Adjust box width for 2 items per row */
        font-size: 0.9rem;
    }

    .header {
        height: 185px;
    }

    .logo img {
        margin-bottom: 18%;
    }
}

/* Styles for Small Screens (Mobile Devices) */
@media (max-width: 768px) {

    #table-1 {
        overflow-x: auto;  /* Horizontal scroll if table is too wide */
        overflow-y: auto;  /* Vertical scroll if table has too many rows */
    }

    .simplytable td, .details td {
        font-size: 0.7rem;
    }

}

@media (max-width: 481px) {
    .header-section {
        gap: 5px;
    }

    .main-body {
        height: 20vh;
    }

    .square {
        width: 120px;
        height: 100px;
        padding: 5px;
    }

    .label-container {
        font-size: 0.9rem;
        padding: 5px 0;
    }

    .label {
        font-size: 0.9rem;
    }

    .reading {
        font-size: 1rem;
    }

    .left-image {
        height: 350px;
    }

    .simplytable td, th, .details td{
        font-size: 0.6rem;
    }

    .tab button {
        font-size: 0.9rem;
    }

    .box-legend {
        width: 30%; /* Adjust box width for 2 items per row */
        font-size: 2.5vw;
    }

    .logo img {
        margin-bottom: 35%;
    }

    .header {
        height: 215px;
    }

    .legend {
        font-size: 20px;
        left: 50px;
    }
}


