html, body {
  margin: 0;
  background-color: #ffffff !important;
}

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
textarea,
button,
input,
select {
  font-family: "Open Sans", sans-serif;
}

h1 {
  font-weight: 700;
  color: #1F2331;
}

/* Link styles */
a {
  color: #00607A;
  transition: color 0.2s ease;
}

a:hover {
  color: #00475C;
  text-decoration: underline;
}

a:focus {
  background-color: #FDCB33;
  box-shadow: inset 0 -2px 0 0 #1F2331;
  outline: 2px solid transparent;
  outline-offset: 2px;
  color: #1F2331;
}

/* Font styles */
.text-light {
  font-weight: 300;
}

/* Base styles */

.is-hidden {
  display: none !important;
}

.header {
  padding: 20px;
}

.footer {
  background-color: #f6f6f5 !important;
  border-top: 1px solid #92949b;
  padding: 1rem 1rem 1rem 1rem;
  color: #5e616b;
  flex-shrink: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  margin-top: 1rem;
}

.footer-title {
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-text {
  font-family: "Open Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: #5e616b;
  line-height: 1.7;
  margin-bottom: 0.8rem;
}

.footer-text a {
  color: #00607A;
  text-decoration: none;
}

.footer-text a:hover {
  color: #00475C;
  text-decoration: underline;
}

.footer-copyright {
  font-family: "Open Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: #5e616b;
  border-top: 1px solid #d0d0d0;
  padding-top: 1rem;
  margin-top: 1rem;
}

.footer-copyright a {
  color: #5e616b;
  text-decoration: none;
}

.footer-copyright a:hover {
  color: #00607A;
}

.footer-logos img {
  display: inline-block;
  margin: 0 0.5rem;
}

.main-container {
  flex: 1 0 auto;
}

.button {
  background-color: #ffffff;
  font-weight: 600;
  color: #00607A;
  border: 1px solid #00607A;
  border-radius: 3px;
  padding: 0.2em 1em !important;
  margin: 0.5em;
}

.button:hover {
  background-color: #00607A;
  color: #ffffff;
}

.button.is-active {
  background-color: #00607A !important;
  color: #ffffff !important;
}

.menu-background {
  background-position-y: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: left bottom;
}

.round-border {
  border-radius: 9999px;
}

.small-round-border {
  border-radius: 3px;
}

input {
  border-radius: 3px !important;
}

table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  border-radius: 3px !important;
  overflow: hidden !important;
  border: 1px solid #00607A !important;
}

table thead {
  background-color: #ffffff !important;
  color: #00607A !important;
  border-bottom: 2px solid #00607A !important;
}

table thead th {
  font-weight: 700;
  color: #00607A !important;
}

table tbody td {
  background-color: #ffffff !important;
  border-bottom: 1px solid #e0e0e0 !important;
}

table th,
table td {
  font-weight: 400;
}

.full-height {
  height: 100%;
}

.overflow-hidden {
  overflow: hidden;
}

#table-view {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
#table-view > .grid-x {
  flex: 1 1 auto;
  overflow: auto;
}

.digher-background {
  background-color: #f9f9f9 !important;
}

.white-background {
  background-color: #ffffff !important;
}

.icon-only-button {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  font-size: 1.5rem;
  color: #00607A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-only-button:hover {
  color: #00475C;
}

.icon-only-button.is-active {
  color: #00475C;
}

/* Index page styles */

.custom-card {
  max-width: 400px;
  border-radius: 3px;
  border: 1px solid #00607A;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 0.2rem 0.2rem;
  background: white;
  text-align: center;
  position: relative;
}

.custom-card img.card-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 3px;
  object-fit: cover;
  border: 4px solid white;
  margin: 0 auto 1.5rem;
  display: block;
}

.custom-card h4 {
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #000;
}

.custom-card p {
  font-size: 0.8rem;
  color: #333;
  margin: 0.5rem 2rem 3rem 2rem;
}

.card-dot {
  width: 48px;
  height: 48px;
  background-color: #b6edb2;
  border-radius: 50%;
  position: absolute;
  bottom: 0;
  right: 10%;
  z-index: 2;
}

.lime {
  background-color: #c3e89e;
}
.green {
  background-color: #00c38e;
}
.blue {
  background-color: #00bcbc;
}

.white-text {
  background-color: #ffffff !important;
}

.wave-background {
  /*background-size: cover;
  background-repeat: no-repeat;*/
  min-height: 554px;

  border-top: 1px solid #d0d0d0;
  border-bottom: 1px solid #d0d0d0;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.models-card {
  position: relative;
  text-align: center;
  margin-top: 2em;
}

.models-card:hover .models-card-content {
  display: block;
}

.models-card h4 {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #00607A;
  font-size: 1.5em;
  text-align: center;
  z-index: 1;
  background-color: #ffffff;
  border: 1px solid #00607A;
  border-radius: 3px;
  font-weight: 600;
  width: calc(100% - 2rem);
  box-sizing: border-box;
  margin: 0;
  padding: 0rem 1rem;
}

.models-card-content {
  padding: 1rem;
  color: #ffffff;
  position: absolute;
  bottom:auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, 0);
  max-width: 90%;
  background: #00000080;
  border-radius: 3px;
  display: none;
}

.models-card img {
  width: 100%;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.element-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-logo {
  object-fit: contain !important;
  padding: 1.5rem;
  background-color: #e8e8e8;
}

.models-card a {
  color: #ffffff;
}

/* Custom controls for the mesh viewer */

.mesh-custom-controls {
  position: absolute;
  z-index: 10000;
  width: 200px;
  right: 0;
  top: 0px;
  background: #dddddd20;
  color: white;
  padding: 0.3em 0.8em;
  font-family: "system-ui";
  border-radius: 0em 0em 0.3em 0.3em;
}

.viewer-logos {
  position: fixed;
  z-index: 100;
  bottom: 0;
  left: 0;
  width: 30%;
  min-width: 250px;
  max-width: 500px;
}

.viewer-logos > img {
  display: inline;
  vertical-align: middle;
}

.viewer-copyright {
  position: fixed;
  z-index: 100;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: #ffffff;
  background-color: #00000080;
  padding: 0.2rem 0.5rem;
  border-radius: 0.3rem;
}

.copyright-text {
  font-size: 0.8rem;
  color: #ffffff;
  margin-top: 0.5rem;
}

.corner-video {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  border: 2px solid white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  background-color: black;
}

/* Map Styles */

.custom-layer-control {
  background: #d2d0d6;
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  font-family: 'Open Sans', sans-serif;
  color: #333;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.custom-layer-control label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
}

.check-icon {
  width: 24px;
  height: 24px;
  background-color: #00607A;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.check-icon::before {
  content: '✓';
  color: white;
  font-weight: bold;
}

.check-icon.dark::before {
  color: #1F2331;
}

.type-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.green     { background-color: #2db600; }
.orange    { background-color: #ffa633; }
.pink      { background-color: #fd007b; }
.darkblue  { background-color: #1F2331; }

.label-text {
  font-size: 1rem;
  color: #2b2b3d;
}

/* Advanced Search Styles */
.slider {
  width: 100%;
  background: #ddd;
  border-radius: 5px;
  outline: none;
}

.slider-handle {
  border-radius: 50%;
}

.sensor-icon {
    font-size: 2em;
    color: red;
    pointer-events: auto;
    cursor: pointer;
    text-shadow: 0 0 4px #fff, 0 0 2px #000;
}

.callout.alert {
    padding-right: 2.5rem;
}
.callout.alert p {
    margin: 0;
    padding-right: 0.5rem;
}

/* Language Selector Styles — !important needed to override Foundation prototype CDN */
select.language-selector,
select.language-selector:not([multiple]) {
  display: inline-block !important;
  width: auto !important;
  min-width: 3.5rem;
  height: auto !important;
  margin: 0 !important;
  background-color: #ffffff !important;
  border: 1px solid #00607A !important;
  border-radius: 2em;
  padding: 0.2rem 1.8rem 0.2rem 0.5rem !important;
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 400;
  color: #00607A !important;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 12 12'%3E%3Cpath fill='%2300607A' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.6rem center !important;
  background-size: 8px !important;
  background-origin: border-box !important;
}

select.language-selector:hover {
  background-color: #f0f0f0 !important;
  border-color: #00475C !important;
}

select.language-selector:focus {
  outline: none;
  border-color: #00475C !important;
  box-shadow: 0 0 0 2px rgba(0, 96, 122, 0.2) !important;
}

/* Institutional logos bar */
.institutional-logos-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}

.institutional-logos-bar img {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.institutional-logos-bar .logo-dga {
  margin-left: auto;
}

.footer-institutional-logos {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  padding: 1rem 0;
  margin-bottom: 1rem;
  border-bottom: 1px solid #d0d0d0;
}

.footer-institutional-logos img {
  height: 50px;
  width: auto;
  object-fit: contain;
}
