/* Global Styles */
body {
    color: #333333;
    overflow-x: hidden;
}

img {
    border: none;
}

a {
    color: #007342;
}

h1, h2, h3 {
    font-family: Georgia, "Times New Roman", Times, serif;
    color: #f49622;
}

hr {
    color: #b2d5c6;
    background-color: #b2d5c6;
}

blockquote {
    background: url(../images/blockquote.gif) repeat-y;
    color: #363636;
}

/* Global Classes */
table.datatable {
    border-right: 1px solid #b2b2b2;
    border-top: 1px solid #b2b2b2;
}

table.datatable th {
    background-color: #fcdfbc;
    border-left: 1px solid #b2b2b2;
    border-bottom: 1px solid #b2b2b2;
}

table.datatable td {
    border-left: 1px solid #b2b2b2;
    border-bottom: 1px solid #b2b2b2;
}

/* Page Structure */
#content .twocolumn_right {
    border-left: 1px solid #b2d5c6;
}

#header {
    background: #007342 url(../images/header.gif) no-repeat;
    border-bottom: 1px solid #ffffff;
}

#mastercontainer {
    border-top: 3px solid #f49622;
    color: #FF0000;
}

#navigation {
    color: #cc00ff;
}

#content_positioning {
    color: #FF0000;
}

#content {
    color: #333333;
}

.clock-angle-table {
    width: auto;
}

#footer {
    border-top: 1px solid #f49622;
}

/* Navigation */
/* Utility Nav */
#header #utilitynav {
    border-top: 1px solid #80b9a1;
    border-bottom: 1px solid #80b9a1;
    color: #ffffff;
}

#header #utilitynav #stripe {
    background: #007342 url(../images/stripe.gif) no-repeat;
}

#header #utilitynav a {
    color: #ffffff;
}

/* Global Nav */
#navigation li {
    border-bottom: 1px solid #b2b2b2;
}

#navigation a {
    color: #007342;
}

#navigation a.current_page, #navigation a.current_page:hover {
    background-color: #007342;
    color: #ffffff;
}

#navigation a:hover {
    background-color: #dddddd;
}

/* Sub-Nav and Related Links */
#navigation li.subnav, #navigation #related ul {
    background-color: #d9eae3;
}

#navigation li.subnav a, #navigation #related li a {
    background: url(../images/bullet.gif) no-repeat 6px 8px;
    color: #000000;
}

#navigation li.subnav a:hover, #navigation #related li a:hover {
    background-color: #d9eae3;
}

#navigation #related h3 {
    color: #333333;
    border-bottom: 1px solid #b2b2b2;
}

/* Search */
#navigation #search {
    width: 0px;
    margin: 0;
    padding-left: 0px;
}

#navigation #search div#search-label {
    color: #666666;
}

#navigation #search #text {
    color: #333333;
    border: 1px solid #b2b2b2;
}

/* Left Controls */
.left-controls {
    float: left;
    margin-right: 20px;
}

.left-controls label, .left-controls select, .left-controls .checkboxes {
    display: block;
    margin-bottom: 5px;
}

.checkboxes label {
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 8px; /* Adjust to fit the number inside */
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}
/* Local styles specific to this page */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
}

.checkbox-label {
    cursor: pointer;
    font-size: 10px;
}

.checkbox-custom[data-order]:not([data-order=""])::after {
    content: attr(data-order);
}

/* Radio Buttons */
.radio-buttons {
    margin-top: 10px;
    margin-left: 0px;
}

.radio-buttons div {
    margin-bottom: 10px;
}

/* Image Styling */
.image {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    overflow: auto; /* Add this to hide overflow */
}

.image img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Ensure the content container does not cause overflow */
#content {
    max-width: 100%;
    overflow-x: auto;
}

/* Grid Layout */
.grid-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr; /* Make the first column 1.5 times larger */
    grid-template-rows: auto;
    gap: 10px;
    overflow: hidden;
}


.grid-item {
    border: 1px solid #ddd;
    padding: 5px;
}

.option-item {
    grid-column: span 1;
}

.checkbox-item {
    grid-column: span 1;
    grid-row: span 3;
}

.image-container {
    grid-column: span 3;
    grid-row: span 2;
}

/* New input styles */
.input-group {
    margin-bottom: 0px;
}

.input-group-label {
    font-weight: normal;
    font-size: 0.8em;
    color: #333;
    margin-right: 10px;
}

.input-row, .lab-lon-container {
    display: flex;
    align-items: center;
    margin-bottom: 3px;
}

.input-row input {
    margin-left: 10px;
    width: 100px;
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.lat-lon-container input {
    margin-left: 0px;
    width: 60%;
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.radio-group {
    display: flex;
    align-items: center;
    gap: 15px; 
}

.radio-group label {
    display: flex;
    align-items: center;
    font-size: 1em;
    cursor: pointer;
}

.radio-group label input {
    margin-right: 5px;
}

/* Fancy Checkboxes */
.checkbox-custom {
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 2px solid #007342;
    border-radius: 4px; /* Change to a square shape for fancy look */
    margin-right: 10px;
    position: relative;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    font-weight: bold;
    color: #007342;
    transition: background-color 0.3s, color 0.3s;
}

.checkbox-input:checked + .checkbox-custom {
    background-color: #007342;
    color: #fff;
}

/* Fancy Labels and Outlines Checkboxes */
.fancy-checkbox-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.fancy-checkbox-custom {
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 2px solid #007342;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s, color 0.3s;
}

.fancy-checkbox-input:checked + .fancy-checkbox-custom {
    background-color: #007342;
    color: #fff;
}

/* Add styles for checkbox rows */
/* Updated CSS */

.ind-radar-row {
    display: grid;
    grid-template-columns: 35% 10% 14% 15% 25%; /* Match the header's column widths */
    gap: 10px; /* Adds space between items */
    margin-bottom: 10px;
    align-items: center; /* Aligns items vertically in the center */
}

.checkbox-header {
    display: grid;
    grid-template-columns: 14% 21% 15% 19% 15% 15%; /* Defines five columns */
    align-items: center;
    margin-bottom: 10px;
    font-weight: normal;
    border: 1px solid #ccc;
    padding-top: 5px;
    padding-bottom: 5px;
}


.color-selector {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.current-color {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid #ccc;
}

.color-palette {
    display: none;
    position: absolute;
    top: 40px;
    left: 0;
    background: white;
    border: 1px solid #ccc;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 10px;
    grid-template-columns: repeat(2, 1fr); /* Two columns */
    gap: 10px; /* Space between color options */
}



.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-block;
    margin: 0;
    border: 2px solid transparent; /* Add border to color options */
}

.color-option:hover {
    border: 2px solid #000; /* Add a contrasting border on hover */
}

.outline-checkbox, .label-checkbox {
    width: 20px;
    height: 20px;
    background-color: #007342;
    border: 2px solid #007342;
    border-radius: 20%;
    margin-right: 0px;
    position: relative;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    font-weight: bold;
    color: #007342;
    transition: background-color 0.3s, color 0.3s;
}

.outline-checkbox-input:checked + .outline-checkbox {
    background-color: #fff;
    color: #fff;
}

.label-checkbox-input:checked + .label-checkbox {
    background-color: #fff;
    color: #fff;
}

.lo-checkbox-wrapper {
    display: flex;
    align-items: left;
    margin-bottom: 2px;
    position: relative;
}
.lo-checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkbox-header {
    display: grid;
    grid-template-columns: 14% 21% 15% 19% 15% 15%;; /* Defines five columns */
    align-items: center;
    margin-bottom: 10px;
    font-weight: normal;
    border: 1px solid #ccc;
    padding-top: 5px;
    padding-bottom: 5px;
}

.greyed-out {
    opacity: 0.5;
}

.greyed-out .checkbox-label,
.greyed-out .current-color,
.greyed-out .outline-checkbox,
.greyed-out .label-checkbox {
    opacity: 0.5;
}


.slider {
    width: 100%;
}

#resolution-select {
    padding: 2px;
    margin-top: 2px;
}

.resolution{
    border-radius: 7px;
    background-color: #f9f9f9;
}

.title{
    border-radius: 7px;
    background-color: #f9f9f9;
    margin-bottom: 10px;
    border-radius: 7px;
    background-color: #f9f9f9;
}


.btn , .download-btn {
    display: inline-block;
    padding: 5px 5px;
    margin: 5px;
    font-size: 12px;
    color: #fff;
    background-color: #017341;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.plot-btn {
    display: inline-block;
    padding: 8px 15px;
    margin: 5px;
    font-size: 16px;
    color: #fff;
    background-color: #017341;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
}
.download-btn:hover {
    background-color: #0056b3;
}



select, input[type="date"] {
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

input[type="date"] {
    cursor: pointer;
}

.region-div, .date-div, .orthographic-div, .resolution {
    margin-bottom: 10px;
}


.region-div, .date-div, .orthographic-div{
    border-radius: 7px;
    background-color: #f9f9f9;
}


#selected-list {
    display: none;
}


.toggle-buttons {
    display: grid;
    grid-template-columns: 30% 15% 17% 20% 15%; /* Defines five columns */
    align-items: center;
    margin-bottom: 10px;
    font-weight: normal;
    border: 1px solid #ccc;
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 3;
}

.toggle-buttons {
    margin: 10px 0;
}
.toggle-buttons button {
    margin-left: 10px;
}


.date-input {
    color: inherit;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: .75em;
}

.radar-button-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}
.radar-button {
    padding: 5px;
    text-align: center;
    cursor: pointer;
    border: 1px solid #007342;
    border-radius: 4px;
    user-select: none;
    width: 50px; /* Adjust width for better grid appearance */
    transition: background-color 0.3s, color 0.3s;
}
.radar-button.selected {
    background-color: #007342;
    color: white;
}

h6 {
    font-size: 10px;
    padding-top: 0px;
    padding-bottom: 0px;
    font-weight: lighter;
    margin-block-start: 0.2em;
    margin-block-end: 0.1em;
}

h5 {
    font-family: Georgia, "Times New Roman", Times, serif;
    color: #f49622;
    font-size: 15px;
    margin-block-start: 0.3em;
    margin-block-end: 0.3em;
}


/* Common checkbox styling */
.showOnlyCheckbox-buttons label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 10px;
    margin: 5px 0;
}

/* Custom checkbox styling */
.showOnlyCheckbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #007342; /* Dark Green */
    border-radius: 4px;
    margin-right: 20px;
    position: relative;
    background-color: white;
    transition: background-color 0.3s;
    margin-right: 8px;
}

.showOnlyCheckbox-buttons input[type="checkbox"] {
    display: none;
}

.showOnlyCheckbox-buttons input[type="checkbox"]:checked + .showOnlyCheckbox-custom {
    background-color: #007342; /* Green */
}

/* Differentiate Show All checkbox */
.showOnlyCheckbox-show-all .showOnlyCheckbox-custom {
    border: 2px solid #007342; /* Darker Green */
    background-color: white; /* Lighter Green */
}

.showOnlyCheckbox-show-all input[type="checkbox"]:checked + .showOnlyCheckbox-custom {
    background-color: #007342; /* Mid Green */
}

.showOnlyCheckbox-show-all {
    margin-bottom: 10px;
}

/* Group latitude checkboxes together */
.showOnlyCheckbox-latitudes {
    display: flex;
    gap: 10px;
    margin-right: 0px;
}

.showOnlyCheckbox-latitudes label {
    flex: 1;
    text-align: center;
    margin-left: 0px;
}

.showOnlyCheckbox-latitudes .showOnlyCheckbox-custom {
    margin-right: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

/* Hover effects */
.showOnlyCheckbox-buttons label:hover .showOnlyCheckbox-custom {
    border-color: #66BB6A; /* Mid Green */
}

.showOnlyCheckbox-show-all:hover .showOnlyCheckbox-custom {
    border-color: #388E3C; /* Dark Green */
}

/* Add some padding to the container */
.showOnlyCheckbox-buttons {
    padding: 10px;
    background-color: white; /* Very light green background */
    border-radius: 8px;
}



.gridCheckbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #007342; /* Dark Green */
    border-radius: 4px;
    margin-right: 20px;
    position: relative;
    background-color: white;
    transition: background-color 0.3s;
    margin-right: 8px;
}

.gridCheckbox input[type="checkbox"] {
    display: none;
}

.gridCheckbox label {
    display: flex;
    flex: 1;
    align-items: center;
    cursor: pointer;
    font-size: 10px;
    margin: 5px 0;
    text-align: center;
}

.gridCheckbox label:hover .gridCheckbox-custom {
    border-color: #66BB6A; /* Mid Green */
}

.gridCheckbox input[type="checkbox"]:checked + .gridCheckbox-custom {
    background-color: #007342; /* Mid Green */
}


.background-radio-group {
    margin-top: 15px;
}

.background-radio-group label {
    font-weight: normal;
    display: block;
    margin-bottom: 5px;
}

.background-radio-options {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.background-radio-options label {
    margin-right: 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.more-options {
    display: flex;
    flex-direction: column;
    margin-top: 5px;
}

.options-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.options-row label {
    display: flex;
    align-items: center;
    margin-right: 10px;
    margin-bottom: 5px;
}

.lat-label-check,
.black-background,
.country-lines-check,
.state-lines-check {
    margin-bottom: 0px;
}

.section-label {
    display: block;
    margin-top:5px;
    font-weight: normal;
    margin-bottom: 0px;
    font-size: 1.1em;
    color: #333;
}

.site-input {
    width: 40px;
}
