body {
	font-family: Open Sans,Arial,sans-serif;
	margin: 0;
	padding: 0;
}
html {
	margin: 0;
	padding: 0;
	overflow-x: hidden;/* Prevents horizontal scrollbars */
}
/* HEADER BANNER MENU */
header {
	position: fixed;
	top: 0; /* Stick to the top */
	left: 0;
	width: 100%;
	/*height: 50px;/**/
	background-color: #003366; /* Dark blue color */
	color: white;
	padding: 20px 10px;
	/*padding: 0 20px; /* Prevents items from touching screen edges */
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between; /* Space out the logo and links */
	align-items: center;
	letter-spacing: 1px; /* Adjust as needed */
	box-shadow: 0 1px 4px rgba(0, 0, 0, 1.0); /* Dark shadow effect */
	z-index: 999;
}

@media screen and (max-width: 768px) and (orientation: landscape) {
  header {
    height: 60px;
    font-size: 16px;
    padding: 5px 10px;
    background-color: rgba(0,0,0,0.0);/**/
    box-shadow: none;
  }
  
  .dropdown {
        /*height: 40px; /* Makes it as tall as the header */
        border-radius: 6px;
        padding: 5px 5px;
        background-color: #003366;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 1.0); /* Dark shadow effect */
  }

  .image-wrapper {
        border-radius: 6px;
        padding: 5px 5px; 
        background-color: #003366;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 1.0); /* Dark shadow effect */
  }
  
  #GRAPHS {
    width: 100%;
    height: 100%;
  }
  
  #wave-data {
   height: 50%;
  }
}


* {
  box-sizing: border-box;
}




/* Logo style */
.logo {
	height: 30px; /* 30px  Adjust the size of the logo */
	/*margin-right: 20px; /* Space between logo and text */
	z-index: 1001;
}

.image-wrapper {
	/*background: linear-gradient(to top, #003366, #003366); /* Blue gradient: #4facfe, #00f2fe */
	/*background: radial-gradient(50% 50% at center, rgba(255,255,255,1) 0%, #003366 100%);/**/
	padding: 20px; /* Optional: space around the image */
	display: inline-block;
        color: #ffffff;
	border-radius: 10px; /* Optional: rounded corners */
}
.image-wrapper img {
	display: block;
	max-width: 100%;
	border-radius: 8px; /* Match wrapper if you want rounded corners */
}

/* Style for the links container */
.links {
	display: flex;
	gap: 20px; /* Space between the links */
	margin-left: auto; /* Pushes the links to the right */
	right: 0;
        padding-right: 20px;
	/*height: 50px; /**/
	justify-content: right;
}

/* Style for each link */
.links a {
	color: white;
	text-decoration: none;
	font-size: 16px;
	transition: all 0.5s ease; /* Smooth color transition */
	height: 50px; /**/
	display: flex;
	align-items: center;
}

/* Hover effect for the links */
.links a:hover {
	/*text-decoration: underline; /**/
	color: #eebb00;
}

/* Dropdown container */
.dropdown {
	position: relative;
	/*display: inline-block; /**/
	height: 50px; /* Makes it as tall as the header */
	display: flex;
	align-items: center;
}

/* Dropdown menu (initially hidden) */
.dropdown-menu {
	display: none;
	position: absolute;
	top: 100%; /**/
	/*height: 100%; /**/
        /*transform: translateY(20px); /**/
	/*left: 0; /**/
	right: 0; /* prevents going past the right edge of the screen*/
	background-color: white;
	opacity: 0;
	padding: 20px 20px;
	min-width: 130px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
	z-index: 1000;
	transition: opacity 0.8s ease-in-out; /**/
	pointer-events: none;
	/*border-radius: 4px; /**/
	/*box-shadow: 0 -4px 0 0px #3377ff; /**/
	border-top: 21px solid #003366; /* 21 */
}

.dropdown-menu a {
	display: block;
	padding: 10px 20px;
	color: #003366;
	white-space: nowrap;
}

.dropdown-menu a:hover {
	background-color: #f6f6f6;
	color: #556699; /*#eebb00; /**/
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
	display: block;
	opacity: 1;
	pointer-events: auto;
	/*opacity: 1; /**/
        /*transition: opacity 0.8s ease-in-out; /**/
}

/* MAIN CONTENT */
.container-top-header {
	background-image: url('https://www.rightsizingmedia.com/wp-content/uploads/2018/05/AdobeStock_36206851-e1526067465197.jpeg');
	background-size: cover; /* Makes image cover the whole div */
	background-position: center; /* Centers the image */
	background-repeat: no-repeat; /* Prevents tiling */
	height: 500px; /* Set a height so it shows */
	color: white; /* Optional: for contrast */
	display: flex;
	flex-wrap: wrap;
	align-items: center; /* vertical centering */
	/*justify-content: center; /* horizontal centering */
}

.container-grey-title {
  background-color: #f7f2ef;
  color: #333;
  text-align: center;
  font-weight: 700;
  padding: 20px;
  font-size: 28px;
}


/* big yellow font */
.overlay-text {
	color: #eebb00;
	font-size: 65px;
	font-weight: bold;
	margin-left: 100px;
	/*text-align: center; /**/
	background: rgba(0, 0, 0, 0.0); /* Optional: adds a dark transparent background */
	padding: 10px 20px;
	border-radius: 5px;
}

.container {
	display: flex;
	justify-content: center;
	/*margin-top: 30px; /**/
	padding: 20px;
	background: #ffffff;
	border: 1px solid #f7f7f7;
}

/* PANEL */
.panel {
	background: white;
	padding: 20px;
	width: 60%;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	border-radius: 8px;
}

/* WIDGET STYLES */
.panel_description {
	background: #003366;
	color: white;
	padding: 15px;
	margin: 10px 0;
	text-align: center;
	border-radius: 6px;
}

.panel_description button {
        
	background: #eeeeff; /*white;/**/
	color: #003366; /*#eebb00;/**/
	padding: 10px; /*15px 25px;/**/
        margin: 4px;
	border: 1px solid #bbeeff; /*2px solid #eebb00;/**/
	border-radius: 6px; /*25px;/**/
	cursor: pointer;
	/*font-size: 14px;/**/
	/*font-weight: bold;/**/
	/*margin-top: 10px;/**/
	transition: all 0.1s ease; /* Smooth color transition */
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.6); /* Dark shadow effect */
/*
        background: #eeeeff;
        color: #003366;
        padding: 10px;
        width: 100px;
        height: 100px;
        text-align: center;
        border: 1px solid #bbeeff;
        border-radius: 6px;
        box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
/**/
}

.panel_description button:hover {
	/*background: #ffffee; /**/
	/*color: #eebb00; /**/
	/*transform: translateY(-1px);/**/ /* Lifts the button up by 1 pixel */
	/*box-shadow: 0 1px 5px rgba(0, 0, 0, 1.0);/**/ /* Dark shadow effect */
        transform: translateY(-1px); /* Lifts the button up by 1 pixel */
        color: #aaddff;
        font-weight: bold;
        cursor: pointer;
}

.panel_description button:selected {
  background-color: #cdeaff;
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.2);
}


/* GRID FOR MULTIPLE WIDGETS */
.widget-grid {
	display: flex; /**/
	justify-content: center; /**/ /* toggle to below 2*/
	/*display: grid; /**/
	/*grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /**/
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

@media (max-width: 768px) {
 .panel {
   width: 100%;
   background: white;
   padding: 0px;
   box-shadow: none;
   border-radius: 0px;
   /*height: 60%;/**/
 }

 #plotly_graphs .js-plotly-plot {

  /*max-height: 40%;/**/
 }

 /*
 #GRAPHS {
   height: 70%;
 }

 #plotly_graphs {
   height: 70%;
 }/**/
  
}

/* TODO: work on these widgets and turn them into buttons */
.widget-box {
	background: #eeeeff;
	color: #003366;
	padding: 10px;
	width: 100px;
	height: 100px;
	text-align: center;
	border: 1px solid #bbeeff;
	/*border: 1px solid #ffeebb; /**/
	border-radius: 6px;
	box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.widget-box:hover {
	transform: translateY(-1px); /* Lifts the button up by 1 pixel */
	color: #aaddff;
	font-weight: bold;
	cursor: pointer;
}

.widget-box.selected {
  background-color: #cdeaff;
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.2);
}



#date-container {
  display: flex;
  gap: 1rem; /* optional spacing between the two */
  justify-content: space-between; /* pushes children to the edges */
  align-items: flex-start; /* vertically center labels and inputs */
}

#sdate-container, #edate-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* aligns labels and inputs to left */
  
}


/* embed VIDEO */
.video-container {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 aspect ratio */
	height: 0;
	overflow: hidden;
	margin-top: 20px;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	background: #ff0000;
}

.video-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
	background: #ff0000;
}


/* plotly graphs */
#plotly_graphs {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}

#plotly_graphs .js-plotly-plot {
  
  margin: 0;
  padding: 0;
}



/* MAP */
/* Set the size of the map */
#map {
	display: flex;
	justify-content: center;
	border: 4px solid #e7f7f7;
	/*align-items: center; /**/
	width: 80%; /**/
	height: 50vh; /**/
	/*bottom: 10px; /**/
	/*margin: auto; /**/
	/**/
}

.mapboxgl-canvas {
	position: relative;
	left: 0;
	top: 0;
	background-color: blue;
}

/* Custom style for popups */
.mapboxgl-popup-content {
	background-color: rgba(255, 255, 255, 0.8); /* White with 80% opacity */
	color: #000; /* Text color */
	border-radius: 5px; /* Rounded corners */
	/*padding: 10px; /**/
}

.mapboxgl-popup-tip {
	display: none; /* Hide the popup's "arrow" if you want to hide it */
}

footer {
	background-color: #222;
	color: #fff;
	padding: 20px;
	text-align: center;
	font-size: 0.9em;
}

footer a {
	color: #7ec8e3;
	text-decoration: none;
	margin: 0 10px;
}

footer a:hover {
	color: #eebb00;
}

