#slide-mission #vote {
  width: 100%;
  margin: 2rem auto 0 auto;
  box-sizing: border-box;
}
#slide-mission #vote h4 {
  width: 100%;
  text-align: center;
  margin-bottom: 1.5rem;
}
#vote-iframe-container {
  width: 100%;
  margin: 2rem 0 0 0;
}

#vote-iframe-container iframe {
  width: 100%;
  height: 400px;
  border-radius: 0.5rem;
  box-shadow: 0 0 16px 4px #6e2b8f66;
  background: #1a002a;
  display: block;
}
/* CSS Hotfix for Vote Container */
#vote {
    text-align: left; /* Overrides the parent's center alignment */
}

#vote h2 {
    text-align: center; /* Re-applies center alignment to just the header */
}

#vote iframe {
    width: 100%; /* Ensures the iframe fills the container */
    border: 1px solid rgba(0, 245, 212, 0.3); /* Optional: Adds a subtle border */
    box-sizing: border-box; /* Ensures padding/border are included in the width */
}
@media (max-width: 700px) {
  #vote-iframe-container iframe {
    width: 98vw;
    min-width: 250px;
    max-width: 100vw;
  }
}

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #0d1117; /* Dark, almost black background for classified feel */
    color: #00ff00; /* Neon green text for terminal feel */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    overflow: hidden; /* Hide scrollbars if content overflows viewport */
}

#dossier-app {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 90vh;
  max-height: 800px;
  background-color: #161b22; /* Slightly lighter dark for dossier background */
  border: 2px solid #00f5d4; /* Electric blue border */
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.5); /* Glowing effect */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: visible;
  padding: 2vw 2vw 2vw 2vw;
}

.dossier-slide {
    position: absolute; /* Position slides on top of each other */
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.dossier-slide.active {
    opacity: 1;
    visibility: visible;
}

/* Cover Page Specific Styles */
.cover-image {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
}

.top-secret-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-20deg);
    font-size: 3em;
    font-weight: bold;
    color: red;
    border: 5px solid red;
    padding: 10px 20px;
    opacity: 0.8;
    animation: pulse 1.5s infinite alternate;
    pointer-events: none; /* Allows clicks to pass through */
}

.decryption-bar {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    background-color: #333;
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 5px 10px;
    text-align: left;
    font-size: 0.9em;
}

/* Profile Slide Specific Styles */
.profile-image {
  max-width: 350px;
  width: 100%;
  height: auto;
  border: 1px solid #00f5d4;
  margin-bottom: 2vw;
  border-radius: 1rem;
}

.profile-text {
    text-align: center;
    max-width: 80%;
}

.profile-text h2 {
    color: #00f5d4;
    margin-bottom: 5px;
}

.profile-text h3 {
    color: #fff;
    font-size: 1.2em;
    margin-top: 0;
}

.profile-text p {
    font-size: 1em;
    line-height: 1.4;
    margin-bottom: 10px;
}



.dossier-link, .fundraising-link, .next-slide-button {
  background: #6e2b8f;
  color: #e0e0e0cc;
  border: 1.5px solid #bdbdbd;
  padding: 14px 28px;
  font-size: 1.15em;
  cursor: pointer;
  margin-top: 12px;
  margin-bottom: 8px;
  text-decoration: none;
  border-radius: 0.75rem;
  box-shadow: 0 2px 16px 2px #6e2b8f44, 0 1px 0 0 #fff inset;
  font-weight: 700;
  letter-spacing: 0.7px;
  transition: background 0.3s, color 0.3s, transform 0.2s;
  display: inline-block;
  text-align: center;
  word-break: break-word;
  text-shadow: 0 1px 0 #fff, 0 0 8px #e0e0e0cc;
}

.dossier-link:hover, .fundraising-link:hover, .next-slide-button:hover {
  background: linear-gradient(135deg, #f5f5fa 0%, #e0e0e0 60%, #bdbdbd 100%);
  color: #222;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 24px 4px #6e2b8f88, 0 2px 0 0 #fff inset;
  outline: 2px solid #00f5d4;
  text-shadow: 0 1px 0 #fff, 0 0 12px #e0e0e0cc;
}
#fundraising-slide .fundraising-grid {
  gap: 2em;
  margin-bottom: 2em;
}
#fundraising-slide .fundraising-grid > div {
  background: #1a002a;
  border-radius: 1em;
  box-shadow: 0 0 16px 2px #6e2b8f44;
  padding: 1.5em 1em;
  min-width: 220px;
  max-width: 320px;
  color: #fff;
  margin-bottom: 0;
}
#fundraising-slide .fundraising-grid h3 {
  color: #00f5d4;
  font-size: 1.15em;
  margin-bottom: 0.7em;
  font-weight: 700;
}
#fundraising-slide .profile-text p {
  font-size: 1.08em;
  line-height: 1.6;
  margin-bottom: 1.2em;
  text-align: justify;
  text-justify: inter-word;
}

/* Cryptic Message Overlays */
.cryptic-message {
    position: absolute;
    bottom: 80px; /* Adjust position */
    right: 30px; /* Adjust position */
    font-size: 2em;
    color: #ff00ff; /* Magenta for cryptic elements */
    cursor: pointer;
    animation: blink 1.5s infinite alternate;
}

.cryptic-content {
    display: none; /* Hidden by default */
    position: absolute;
    bottom: 100px;
    right: 30px;
    width: 250px;
    background-color: rgba(25, 25, 50, 0.9); /* Semi-transparent dark blue */
    border: 1px solid #ff00ff;
    padding: 15px;
    text-align: left;
    font-size: 0.9em;
    color: #fff; /* White text for readability in pop-up */
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.7);
    z-index: 1000; /* Ensure it's on top */
}

/* Modal styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 0, 20, 0.96); /* darker overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-content {
  background: linear-gradient(135deg, #1a002a 90%, #6e2b8f 100%);
  color: #fff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 40px 12px #6e2b8fcc;
  max-width: 600px;
  width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
}
#dossier-content {
  white-space: pre-wrap;
  font-family: inherit;
  margin-top: 1.5rem;
  text-align: left;
}

/* Mission Report Slide Styles */
#slide-mission .profile-text,
#fundraising-slide .profile-text {
  width: 100%;
  max-width: 700px;
  margin: 2rem auto;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, #1a002a 90%, #6e2b8f 100%);
  border-radius: 1rem;
  box-shadow: 0 0 32px 8px #6e2b8f99;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  overflow-y: auto; /* Allows vertical scrolling */
  max-height: 90%;  /* Ensures it doesn't overflow the slide */
  padding-right: 15px; /* Prevents scrollbar from overlapping text */
}

#slide-mission section, #slide-mission h2, #slide-mission h3, #slide-mission h4, #slide-mission h5, #slide-mission p, #slide-mission .choice-option {
  width: 100%;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
#slide-mission iframe {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  border-radius: 0.5rem;
  box-shadow: 0 0 16px 4px #6e2b8f66;
  background: #1a002a;
  margin: 2rem 0 0 0;
  display: block;
}
#slide-mission .next-slide-button {
  margin: 2rem auto 0 auto;
  display: block;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  background: #6e2b8f;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 0 8px 2px #6e2b8f66;
  cursor: pointer;
}
@media (max-width: 800px) {
  #slide-mission .profile-text {
    max-width: 98vw;
    padding: 1rem 0.5rem;
  }
  #slide-mission section, #slide-mission h2, #slide-mission h3, #slide-mission h4, #slide-mission h5, #slide-mission p, #slide-mission .choice-option, #slide-mission iframe {
    max-width: 98vw;
  }
  #slide-mission iframe {
    margin: 1rem auto 0 auto;
  }
  #slide-mission .next-slide-button {
    width: 100%;
    font-size: 1rem;
    padding: 0.75rem 0.5rem;
  }
}

/* Keyframe Animations */
@keyframes pulse {
    from { transform: translate(-50%, -50%) rotate(-20deg) scale(1); opacity: 0.8; }
    to { transform: translate(-50%, -50%) rotate(-20deg) scale(1.05); opacity: 1; }
}

@keyframes blink {
    from { opacity: 1; }
    to { opacity: 0.3; }
}