body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column; /* Stack items vertically */
    height: 100vh; /* Full viewport height */
}

#map {
    flex: 2; /* Take more space compared to info-section */
    width: 100%; /* Full width */
}

#info-section {
    flex: 1; /* Allow the info-section to take less space */
    width: 100%; /* Make the info-section take full width */
    background: #f9f9f9;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    padding: 15px; /* Adjust padding as needed */
    overflow-y: auto; /* Enable scrolling if necessary */
}

#info-box {
    margin-top: 10px; /* Space above the info box */
    padding: 1px; /* Inner padding */
    border: 1px solid #ccc; /* Light gray border */
    background-color: #f9f9f9; /* Same background as info section */
    border-radius: 5px; /* Rounded corners */
    overflow-y: auto; /* Enable scrolling within the info box */
    height: 300px; /* Fixed height for the info box */
}


.marker {
    background-color: #3887be; /* Blue background color */
    color: white; /* White text color */
    border-radius: 50%; /* Circular shape */
    width: 40px; /* Width of the marker */
    height: 40px; /* Height of the marker */
    display: flex; /* Use flexbox to center text */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    font-size: 12px; /* Font size for the temperature */
    font-weight: bold; /* Make the text bold */
    /* border: 2px solid white; */ /* Removed border */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); /* Optional: shadow for depth */
}


.legend {
    position: absolute;
    bottom: 20px; /* Adjust as necessary */
    right: 10px; /* Adjust as necessary */
    background: white; /* Semi-transparent background */
    padding: 10px; /* Padding */
    border-radius: 5px; /* Rounded corners */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); /* Shadow for visibility */
    z-index: 1000; /* Ensure it appears on top of other elements */
}

.legend-title {
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 14px;
}

.legend-item {
    margin-bottom: 5px;
    font-family: Arial, sans-serif;
    font-size: 12px;
}

.legend-color {
    display: inline-block;
    width: 20px;
    height: 10px;
    margin-right: 5px;
}

#playButton, #pauseButton {
    background: none; /* Remove background */
    border: none; /* Remove border */
    padding: 0; /* Remove padding */
    cursor: pointer; /* Change cursor to pointer */
    outline: none; /* Remove outline on focus */
}

#playButton img, #pauseButton img {
    display: block; /* Ensure images are block elements */
    width: 25px; /* Set the image width */
    height: 25px; /* Set the image height */
}

.downward-triangle {
    width: 0; /* No width */
    height: 0; /* No height */
    border-left: 17px solid transparent; /* Left side */
    border-right: 17px solid transparent; /* Right side */
    border-top: 26px solid; /* Solid color for the top part */
    display: inline-block; /* Allows positioning with other elements */
    position: relative; /* Needed for positioning the number */
}

.AQHI_number {
    position: absolute;
    bottom: 10px; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Offset to center */
    color: white; /* Text color */
    font-weight: bold; /* Bold text */
    font-size: 12px; /* Adjust size as needed */
    line-height: 1; /* Avoid extra space */
    text-align: center;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
    font-size: 12px;
}

th, td {
    border: 1px solid black;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

.forecast-table {
    font-size: 15px;
    width: 100%;
    border-collapse: collapse; /* Ensures no space between borders */
    table-layout: auto; /* Allows the table to adjust column widths based on content */
}

.forecast-table th,
.forecast-table td {
    padding: 10px; /* Padding for cells */
    text-align: left; /* Align text to the left */
}

.forecast-table th {
    background-color: #94c9f5; /* Light background for header */
    font-weight: bold; /* Bold text for header */
}

.forecast-table tr:hover {
    background-color: #d1cfcf; /* Change background on hover */
}

.forecast-table tr:nth-child(even) {
    background-color: #bce8f7; /* Light blue for even rows */
}

.forecast-table tr:nth-child(odd) {
    background-color: #94c9f5; /* Dark blue for odd rows */
}

/* Remove borders */
.forecast-table th, 
.forecast-table td {
    border: none; /* No borders */
}

.custom-popup .forecast-table {
    width: 100%; /* Set the desired table width */
    max-width: none; /* Prevent it from being limited by the parent */
    min-width:550px; /* Optional: Set a minimum width */
}

.custom-popup .forecast-table th:nth-child(1),
.custom-popup .forecast-table td:nth-child(1) {
    width: 20%; /* Adjusted width */
}

.custom-popup .forecast-table th:nth-child(2),
.custom-popup .forecast-table td:nth-child(2) {
    width: 20%; /* Adjusted width */
}

.custom-popup .forecast-table th:nth-child(3),
.custom-popup .forecast-table td:nth-child(3) {
    width: 25%; /* Adjusted width */
}

.custom-popup .forecast-table th:nth-child(4),
.custom-popup .forecast-table td:nth-child(4),
.custom-popup .forecast-table th:nth-child(5),
.custom-popup .forecast-table td:nth-child(5) {
    width: 12.5%; /* Adjusted width */
}

.custom-popup .forecast-table th,
.custom-popup .forecast-table td {
    padding: 10px;
    text-align: left;
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Add ellipsis for overflowing text */
    white-space: nowrap; /* Prevent text from wrapping */
}

.custom-popup .forecast-table th {
    background-color: #94c9f5;
    font-weight: bold;
}

.compass {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 100%;
  box-shadow: 0 0 10px rgba(0, 0, 0, .85);
  position: relative;
  font-family: 'Dosis';
  color: #555;
  text-shadow: 1px 1px 1px white;
}

.compass .direction {
  height: 100%;
  width: 100%;
  display: block;
  background: #f2f6f5;
  border-radius: 100%;
  position: relative; /* Adjusted for centering text */
}

.compass .direction p {
  text-align: center;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centering the text */
  font-size: 14px; /* Adjust font size */
  font-weight: bold; /* Make it stand out */
}

.compass .direction span {
  display: block;
  line-height: normal;
  font-size: 11px; /* Adjust font size for wind speed */
  text-transform: uppercase;
  font-weight: normal;
}

.compass .arrow {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0; /* Ensure it's anchored correctly */
}

.compass .arrow:after {
content: "";
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 11px solid red; /* Make the arrow larger */
position: absolute;
top: -6px; /* Adjust based on the desired position */
left: 50%;
margin-left: -5px;
z-index: 99;
transform: rotate(180deg); /* Rotate the arrowhead by 180 degrees */
}

/* Direction classes for arrows */
/*
.arrow.nne { transform: rotate(22.5deg); }
.arrow.ne { transform: rotate(45deg); }
.arrow.ene { transform: rotate(67.5deg); }
.arrow.e { transform: rotate(90deg); }
.arrow.ese { transform: rotate(112.5deg); }
.arrow.se { transform: rotate(135deg); }
.arrow.sse { transform: rotate(157.5deg); }
.arrow.s { transform: rotate(180deg); }
.arrow.ssw { transform: rotate(202.5deg); }
.arrow.sw { transform: rotate(-135deg); }
.arrow.wsw { transform: rotate(-114.5deg); }
.arrow.w { transform: rotate(-90deg); }
.arrow.wnw { transform: rotate(-69.5deg); }
.arrow.nw { transform: rotate(-45deg); }
.arrow.nnw { transform: rotate(-24.5deg); }
*/

.arrow.northeast { transform: rotate(45deg); }
.arrow.east { transform: rotate(90deg); }
.arrow.southeast { transform: rotate(135deg); }
.arrow.south { transform: rotate(180deg); }
.arrow.southwest { transform: rotate(-135deg); }
.arrow.west { transform: rotate(-90deg); }
.arrow.northwest { transform: rotate(-45deg); }
.arrow.variable { transform: rotate(0deg); }

.selector {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    z-index: 1000;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Stack the selectors vertically */
    gap: 0; /* Remove space between the selectors */
}

.selector div {
    display: flex;
    flex-direction: column; /* Stack label and select vertically */
    align-items: flex-start; /* Align items to the start */
}

.selector select {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    min-width: 150px; /* Minimum width */
}

.legend-triangle {
    width: 0;
    height: 0;
    border-left: 8px solid transparent; /* Increased from 5px to 10px */
    border-right: 8px solid transparent; /* Increased from 5px to 10px */
    border-top: 12px solid black; /* Increased from 8px to 15px */
    display: inline-block;
    margin-right: 5px;
    font-family: Arial, sans-serif; /* Ensure font consistency */
    font-size: 14px; /* Ensure font consistency */
}


.legend-marker {
    width: 15px; /* Set the size of the normal marker */
    height: 15px; /* Set the size of the normal marker */
    background-color: transparent; /* Set to transparent for unfilled */
    border: 1.5px solid black; /* Add border for outline effect */
    display: inline-block;
    margin-right: 5px;
    margin-left: 2px;
    border-radius: 50%; /* Make it circular */
    font-family: Arial, sans-serif; /* Ensure font consistency */
    font-size: 14px; /* Ensure font consistency */
}

.legend-icon {
    width: 20px;  /* Set the desired width */
    height: 19px; /* Maintain aspect ratio */
    margin-right: 5px; /* Space between icon and text */
    margin-top: 1.5px
}

.marker-type-description {
    display: flex;
    flex-direction: column;
}

.marker-type-description h4 {
    margin-bottom: 5px; /* Space below the title */
}

.marker-type-description div {
    display: flex; /* Aligns text and marker in a row */
    align-items: left; /* Vertically center align items */
    margin-bottom: 5px; /* Space between items */
}

.custom-popup {
    width: 600px; /* Set your desired width */
    max-height: 300px; /* Set a maximum height for the popup */
    overflow-y: auto; /* Enable vertical scrolling */
    padding: 0; /* Remove any default padding */
    margin: 0; /* Remove any default margin */
    box-sizing: border-box; /* Include padding and borders in width/height */
}