/* === Base Reset === */
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: 'Nunito';
  font-weight: 500;
  font-size: 18px;
}

#deck-container {
  width: 100vw;
  height: 100vh;
}

#deck-container canvas {
  z-index: 1;
  background: none;
}

.mapboxgl-ctrl,
.mapboxgl-ctrl-attrib-inner {
  display: none !important;
}

/* === Utility Classes === */
.video-hide {
  display: block;
}

.highlight-link {
  color: white;
  text-decoration: none;
  transition: color 0.1s, text-decoration 0.1s;
}

.highlight-link:hover {
  color: #ff8097;
  text-decoration: underline;
}

/* === Bottom Overlay === */
.bottom-overlay {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 15px;
  border-radius: 8px;
  z-index: 9999;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* === Filter Overlay === */
#filter-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.7);
  padding: 20px;
  border-radius: 8px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.filter-section {
  display: flex;
  align-items: flex-start;
  color: white;
}

.filter-section label {
  margin-bottom:5px
}

.filter-section strong {
  margin-bottom: 10px;
}

.years,
.missions-1, .missions-2 {
  display: flex;
  flex-direction: column;
}

.missions-1 {
  margin-left: 50px;
}

.missions-2 {
  margin-left: 50px;
}

.years label,
.missions label {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

h3 {
  margin-top: 0;
  color: #fff;
}

input[type="checkbox"] {
  accent-color: white;
}

/* === Overlay Box (Top Right Info Panel) === */
.overlay {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 15px;
  border-radius: 8px;
  width: 250px;
  z-index: 9999;
}

.overlay .logo-container {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.overlay .logo-container img {
  width: 40px;
  height: 40px;
  margin-right: 15px;
}

.overlay .logo-container span {
  font-weight: bold;
}

.overlay .title {
  margin-bottom: 10px;
}

.overlay .author,
.overlay .source,
.overlay .contributor{
  font-size: 16px;
  margin-bottom: 5px;
}

/* === Social Media Icons === */
.social-icons {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.social-icons a img {
  width: 25px;
  height: 25px;
  transition: opacity 0.3s;
}

.social-icons a img:hover {
  opacity: 0.8;
}

/* === Tooltip Content === */
.tooltip-content {
  max-width: 400px;
  padding: 10px;
  color: #fff !important;
}

.tooltip-content h2 {
  margin-top: 0;
  font-size: 24px;
}

.tooltip-content p {
  margin: 8px 0;
  font-size: 18px;
}

.tooltip-content video {
  margin-top: 10px;
}

#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.spinner {
  border: 8px solid rgba(255, 255, 255, 0.2);
  border-top: 8px solid #e63b3b;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.custom-warning-swal {
  background-color: rgba(0, 0, 0, 0.8); /* Dark blueish background */
  color: #ffffff;            /* White text */
  border: 2px solid #ca2323;
  border-radius: 10px;
}

/* Change the warning icon color */
.custom-warning-swal > .swal2-warning {
  border-color: #ca2323; /* custom border color */
  color: #ca2323;         /* checkmark or "!" color */
}

div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm) {
  background-color: #ca2323;
}

.submit-section {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

#submit-btn {
  background-color: #ca2323;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: inherit;
}

#submit-btn:hover {
  background-color: #a11414; /* Darker green on hover */
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.filter-header strong {
  color: white;
}

#close-filter-btn {
  color: white;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

#filter-icon-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  background-color: #ca2323;
  color: white;
  border: none;
  padding: 10px;
  font-size: inherit;
  border-radius: 8px;
  cursor: pointer;
  z-index: 1100;
}

.hidden {
  display: none !important;
}

input[type="checkbox"]:checked {
  accent-color: #ca2323;
}

.tooltip-container {
  position: relative;
  cursor: pointer;
  display: inline-block;
  margin: 4px 0;
}

.tooltip-container .tooltip-text {
  visibility: hidden;
  width: max-content;
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 4px 8px;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  bottom: 125%; /* Adjust above the label */
  left: 0;
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}