*, *::before, *::after {
  box-sizing: border-box;
}

*, *:hover, button, a, input[type="button"], input[type="submit"], select {
  cursor: url("../art/retro-cursor.png") 16 16, auto !important;
}

/* General/Main Page Stuff */
html, body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  background: white;
  color: black;
  font-family: "Coral Pixels", serif;;
  font-size: 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  cursor: url("../art/retro-cursor.png") 16 16, auto;
}


main {
  padding-top: 20px;
  padding-left: 20px;
  display: flex;
  gap: 20px;
  
}

main > * {
  flex: 1;
}

ul {
  text-align: center;
}

@media (max-width: 768px) {
  main{
    flex-direction: column;
    padding: 20px;
  }

  main > * {
    flex: none;
  }

}

button {
  margin-top: 20px;
  padding: 14px 24px;
  font-size: 16px;
  text-decoration: underline;
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-top: 30px;
}

header img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  padding: 0px;
  
  /* Animated Logo Effects */
  animation: logoGlitch 1.2s ease-in-out infinite,
             logoGlitchSecondary 2.3s linear infinite,
             logoGlitchTertiary 3.1s ease-out infinite;
  filter: drop-shadow(2px 2px 0px rgba(255, 0, 255, 0.3)) 
          drop-shadow(-1px -1px 0px rgba(0, 255, 255, 0.3));
  transition: all 0.3s ease;
}

header img:hover {
  animation-play-state: paused;
  transform: scale(1.02);
  filter: drop-shadow(3px 3px 0px rgba(255, 0, 255, 0.5)) 
          drop-shadow(-2px -2px 0px rgba(0, 255, 255, 0.5)) 
          brightness(1.1);
}

@keyframes logoGlitch {
  0%, 85%, 100% {
    transform: translateX(0) skewX(0deg);
  }
  
  86% {
    transform: translateX(-3px) skewX(-1deg);
    filter: drop-shadow(5px 2px 0px rgba(255, 0, 255, 0.8)) 
            drop-shadow(-4px -1px 0px rgba(0, 255, 255, 0.8));
  }
  
  87% {
    transform: translateX(4px) skewX(1.5deg);
    filter: drop-shadow(1px 4px 0px rgba(255, 0, 255, 0.9)) 
            drop-shadow(-3px -3px 0px rgba(0, 255, 255, 0.9));
  }
  
  88% {
    transform: translateX(-2px) skewX(-0.8deg);
    filter: drop-shadow(6px 1px 0px rgba(255, 0, 255, 0.7)) 
            drop-shadow(-1px -4px 0px rgba(0, 255, 255, 0.7));
  }
}

@keyframes logoGlitchSecondary {
  0%, 93%, 100% {
    filter: drop-shadow(2px 2px 0px rgba(255, 0, 255, 0.3)) 
            drop-shadow(-1px -1px 0px rgba(0, 255, 255, 0.3));
  }
  
  94% {
    transform: translateY(-1px);
    filter: drop-shadow(-2px 3px 0px rgba(255, 0, 255, 0.6)) 
            drop-shadow(3px -2px 0px rgba(0, 255, 255, 0.6));
  }
  
  95% {
    transform: translateY(2px);
    filter: drop-shadow(4px -1px 0px rgba(255, 0, 255, 0.8)) 
            drop-shadow(-3px 3px 0px rgba(0, 255, 255, 0.8));
  }
}

@keyframes logoGlitchTertiary {
  0%, 96%, 100% {
    transform: translateX(0) translateY(0);
  }
  
  97% {
    transform: translateX(1px) translateY(-1px) skewX(0.3deg);
    filter: drop-shadow(3px 4px 0px rgba(255, 0, 255, 0.5)) 
            drop-shadow(-2px -2px 0px rgba(0, 255, 255, 0.5));
  }
  
  98% {
    transform: translateX(-1px) translateY(1px) skewX(-0.2deg);
    filter: drop-shadow(2px -3px 0px rgba(255, 0, 255, 0.7)) 
            drop-shadow(-4px 2px 0px rgba(0, 255, 255, 0.7));
  }
}

#diploma {
  width: 100%;
  padding-top: 11px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45));
  transition: filter 0.3s ease;
}

#diploma:hover {
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.55));
}

input {
  border: 2px solid black;
  background-color: white;
}

#signup-form input {
  border: 3px inset #cccccc;
  background-color: white;
  font-family: "Coral Pixels", serif;;
  font-size: 18px;
  padding: 12px 16px;
  font-weight: bold;
  border-radius: 0;
  box-shadow: 
    inset 2px 2px 4px rgba(0, 0, 0, 0.1),
    inset -1px -1px 2px rgba(255, 255, 255, 0.8),
    2px 2px 4px rgba(0, 0, 0, 0.2);
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transition: all 0.1s ease;
  min-width: 300px;
}

#signup-form input:focus {
  outline: none;
  border: 3px inset #ffffff;
  background-color: #f8f8f8;
  box-shadow: 
    inset 3px 3px 6px rgba(0, 0, 0, 0.15),
    inset -2px -2px 3px rgba(255, 255, 255, 0.9),
    0px 0px 8px #d81f264d;
}



/*Start Screen Stuff*/
#start-screen {
  position: fixed;
  inset: 0;
  background: white;
  overflow-y: auto;
  padding: 20px;
}

#start-box {
  max-width: 600px;
  text-align: center;
  margin: auto;
  min-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#added-to-diploma-list {
  display: none;
}

#submit-for-reminder {
  background-color: #d81f26;
  color: white;
  font-family: "Pixelify Sans", sans-serif;
  border: 3px outset #d81f26;
  border-radius: 0;
  padding: 12px 24px;
  font-weight: bold;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 
    inset 2px 2px 0px rgba(255, 255, 255, 0.3),
    inset -2px -2px 0px rgba(0, 0, 0, 0.3),
    4px 4px 0px #8b0000,
    6px 6px 8px rgba(0, 0, 0, 0.4);
  text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.5);
  transition: all 0.1s ease;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;

}

#submit-for-reminder:hover {
  background-color: #e63946;
  border-color: #e63946;
  box-shadow: 
    inset 2px 2px 0px rgba(255, 255, 255, 0.4),
    inset -2px -2px 0px rgba(0, 0, 0, 0.4),
    3px 3px 0px #8b0000,
    4px 4px 6px rgba(0, 0, 0, 0.5);
  transform: translate(1px, 1px);
}

#submit-for-reminder:active {
  border: 3px inset #d81f26;
  box-shadow: 
    inset 3px 3px 4px rgba(0, 0, 0, 0.3),
    2px 2px 0px #8b0000;
  transform: translate(2px, 2px);
}

/* =========================
   DOS FULLSCREEN CONTAINER
   ========================= */
#dos{
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 100;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 20px;
  box-sizing: border-box;
}

/* =========================
   CRT "SCREEN" AREA (wrapper)
   ========================= */
#dos-frame{
  aspect-ratio: 4 / 3;
  width: 95vw;
  max-height: calc(95vh - 60px);

  background: #001100;
  position: relative;
  overflow: hidden;

  border-radius: clamp(14px, 2vw, 26px) / clamp(12px, 1.6vw, 22px);
  border: 4px solid #001b00;

  /* keep blend effects contained */
  isolation: isolate;

  /* Enhanced curvature shadows for 3D depth illusion */
  box-shadow:
    /* Multi-layered edge darkening - creates curved depth */
    inset 0 0 40px rgba(0, 0, 0, 1.0),
    inset 0 0 80px rgba(0, 0, 0, 0.85),
    inset 0 0 120px rgba(0, 0, 0, 0.6),
    inset 0 0 180px rgba(0, 0, 0, 0.35),
    
    /* Corner shadows - where curved screen naturally darkens */
    inset 35px 35px 50px rgba(0, 0, 0, 0.8),
    inset -35px 35px 50px rgba(0, 0, 0, 0.8),
    inset 35px -35px 50px rgba(0, 0, 0, 0.8),
    inset -35px -35px 50px rgba(0, 0, 0, 0.8),
    
    /* Green phosphor bloom - preserved from original */
    inset 0 0 140px rgba(0, 255, 0, 0.10),
    inset 0 0 140px rgba(0, 255, 0, 0.10);
}



/* SCANLINES OVERLAY ABOVE EVERYTHING */
#dos-frame::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      rgba(0, 255, 0, 0.16) 1px,
      rgba(0, 255, 0, 0.16) 2px,
      transparent 2px,
      transparent 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      rgba(255, 0, 255, 0.008) 1px,
      transparent 1px,
      transparent 8px
    ) !important;
  pointer-events: none !important;
  z-index: 999999999 !important;
  animation: scanlines 0.1s linear infinite, 
             scanlineGlow 3s ease-in-out infinite alternate,
             rgb-shift 8s linear infinite !important;
}

/* =========================
   GLASS / VIGNETTE (UNDER SCANLINES)
   ========================= */
/* Green phosphor + glass + vignette (UNDER scanlines) */
#dos-frame::after{
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 999999998 !important;

  background: 
    radial-gradient(ellipse at center, 
      rgba(0, 255, 0, 0.03) 0%, 
      rgba(0, 255, 0, 0.08) 40%, 
      rgba(0, 50, 0, 0.04) 100%) !important;

  animation: crtFlicker 0.5s ease-in-out infinite alternate,
             phosphorGlow 4s ease-in-out infinite alternate !important;


  /* “CRT juice” — tweak to taste */

}

@keyframes scanlines {
  0% { transform: translateY(0px); }
  100% { transform: translateY(5px); }
}

@keyframes scanlineGlow {
  0% { opacity: 0.92; }
  50% { opacity: 1; }
  100% { opacity: 0.96; }
}

@keyframes rgb-shift {
  0%, 98% { filter: none; }
  99% { filter: hue-rotate(10deg) contrast(1.1); }
  100% { filter: hue-rotate(-5deg) contrast(0.95); }
}

@keyframes crtFlicker {
  0% { opacity: 1; }
  100% { opacity: 0.96; }
}

@keyframes phosphorGlow {
  0% { 
    background: radial-gradient(ellipse at center, 
      rgba(0, 255, 0, 0.03) 0%, 
      rgba(0, 255, 0, 0.08) 40%, 
      rgba(0, 50, 0, 0.04) 100%);
  }
  100% { 
    background: radial-gradient(ellipse at center, 
      rgba(0, 255, 0, 0.04) 0%, 
      rgba(0, 255, 0, 0.09) 45%, 
      rgba(0, 60, 0, 0.05) 100%);
  }
}

@media (prefers-reduced-motion: reduce){
  #dos-frame::before,
  #dos-frame::after{
    animation: none !important;
  }
}
#dos-frame canvas {
  position: static !important;
  width: 100% !important;
  height: 100% !important;
  image-rendering: pixelated;
}

#dos-iframe {
  width: 100%; 
  height: 100%; 
  border: none;
  

}

/*AutoProctor Stuff*/
#test-container {
  position: fixed;
  inset: 0;
  background: black;
  display: none;
}

/* Exam Buttons */
#exam-buttons {
  display: flex;
  gap: 20px;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  flex-shrink: 1; /*You might want to change this to allow them to shrink */
}

#finish-btn, #door-codes-btn {
  padding: 10px 20px;
  font-size: 14px;
  border: 2px solid black;
  font-family: "Coral Pixels", serif;;
  display: inline-block;
  visibility: visible;
  position: static;
  flex-shrink: 1;
  min-width: 50px;
  white-space: nowrap;
}

#finish-btn {
  background: red;
  color: white;
}

#door-codes-btn {
  background: purple;
  color: white;
}

/* Responsive Elements */
@media (max-width: 768px) {
  #dos {
    padding: 10px;
  }

  #dos-frame {
    max-height: calc(95vh - 35px); /* Much less space needed since buttons shrink */
  }

  #finish-btn, #door-codes-btn {
    padding: 10px 20px; /* Smaller default size */
    font-size: 14px;
    min-width: 50px;
    min-height: 25px;
  }

  #exam-buttons {
    gap: 10px;
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  #dos-frame {
    max-height: calc(95vh - 30px); /* Minimal space since buttons are very compact */
  }
  
  #finish-btn, #door-codes-btn {
    padding: 6px 12px; /* Even smaller on phones */
    font-size: 12px;
    min-width: 45px;
    min-height: 22px;
  }
  
  #exam-buttons {
    gap: 5px;
    margin-top: 5px;
  }
}

#start-btn {
  font-family: "Coral Pixels", serif;;
 }

#submit-btn {
  font-family: "Coral Pixels", serif;;
  }



/* PDF overlay styles */
#pdf-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

#pdf-container {
  width: 90%;
  height: 90%;
  background: white;
  border: 3px solid #333;
  display: flex;
  flex-direction: column;
}

#pdf-header {
  background: #333;
  color: white;
  padding: 10px 20px;
  font-family: "Coral Pixels", serif;;
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#pdf-close {
  background: #54ff44;
  color: white;
  border: none;
  padding: 5px 10px;
  font-family: "Coral Pixels", serif;;
}

#pdf-viewer {
  flex: 1;
  border: none;
  width: 100%;
  height: 100%;
}


/*Combined Forms Container Styling*/
.forms-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

/* Draggable Container Styles */
.draggable-container {
  position: fixed;
  top: 100px;
  left: 50px;
  width: 500px;
  max-width: 90vw;
  background: white;
  border: 3px solid #333;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  font-family: "Coral Pixels", serif;;
}

/* Make door codes container larger for better visibility */
#door-codes-section {
  width: 800px !important;
  max-width: 95vw !important;
}

#door-codes-section #door-view {
  height: 600px;
  max-height: 70vh;
}

/* Responsive sizing for door codes */
@media (max-width: 900px) {
  #door-codes-section {
    width: 90vw !important;
  }
  
  #door-codes-section #door-view {
    height: 500px;
    max-height: 60vh;
  }
}

.drag-header {
  background: linear-gradient(90deg, #4a90e2, #357abd);
  color: white;
  padding: 10px 15px;
  border-radius: 4px 4px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: move;
  user-select: none;
  font-weight: bold;
  font-size: 16px;
}

.drag-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.close-button {
  background: #ff4444;
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.close-button:hover {
  background: #cc3333;
}

.forms-container {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.draggable-container.dragging {
  opacity: 0.8;
}

.diploma-forms-section {
  order: 1;
  background: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  border: 2px solid #333;
  color: black;
}

.screenshot-forms-section {
  order: 2;
  background: #e8f4f8;
  padding: 20px;
  border-radius: 8px;
  border: 2px solid #333;
}

#upload-status {
  color: #333;
  font-size: 16px;
  text-align: center;
  margin-top: 10px;
}

#screenshot-prompt {
  color: #333;
  font-size: 18px;
  text-align: center;
  margin-bottom: 15px;
  line-height: 1.4;
}

#screenshot-form {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

#choose-file-btn {
  padding: 8px 16px;
  font-family: 'Pixelify Sans', sans-serif;
  background: #444;
  color: black;
  border: none;
}

#filename-display {
  width: 240px;
  padding: 8px;
  font-family: 'Pixelify Sans', sans-serif;
  border: 2px solid white;
  background: black;
  color: white;
}

#screenshot-submit {
  padding: 8px 16px;
  font-family: 'Pixelify Sans', sans-serif;
  background: #4CAF50;
  color: white;
  border: none; 
}

#upload-status {
  margin-top: 10px;
  display: none;
}

#screenshot-input {
  display: none;
}


/*Exam Page Stuff*/

#exam_link {
  font-size: 60px;
  text-decoration: underline;
}

#consentShit {
  color: black;
  font-family: "Coral Pixels", serif;;
  font-size: 24px;
  text-align: center;
}


/* Fullscreen warning notification */
#fullscreen-warning {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ff4444;
  color: white;
  text-align: center;
  padding: 10px;
  z-index: 10000;
  display: none;
  font-family: "Coral Pixels", serif;;
  font-size: 18px;
}

#fullscreen-warning.show {
  display: block;
}

#fullscreen-warning button {
  margin-left: 10px;
  padding: 5px 10px;
  background: white;
  color: #ff4444;
  border: none;
  font-family: "Coral Pixels", serif;;
}


/* Fullscreen warning notification */
#fullscreen-warning {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ff4444;
  color: white;
  text-align: center;
  padding: 10px;
  z-index: 10000;
  display: none;
  font-family: "Coral Pixels", serif;;
  font-size: 18px;
}

#fullscreen-warning.show {
  display: block;
}

#fullscreen-warning button {
  margin-left: 10px;
  padding: 5px 10px;
  background: white;
  color: #ff4444;
  border: none;
  font-family: "Coral Pixels", serif;;
}




/* End Screen */
#end-screen {
  position: fixed;
  inset: 0;
  background: black;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Pixelify Sans', monospace;
  font-size: 24px;
  text-align: center;
}

/* THE REST */
  /* Styling for .container class */
     .container {
         margin: 0 auto;
         max-width: 1200px;
         padding: 20px;
    }
    
    /* Styling for .grid class */
     .ctas {
         display: grid;
         grid-template-columns: repeat(3, 1fr);
         gap: 10px;
    }
    
    /* Styling for button elements inside .grid */
     .ctas button {
         padding: 10px;
         border: none;
         border-radius: 5px;
    }
    
    
    /* Styling for .flex class */
     .flex {
         display: flex;
         align-items: center;
    }
    
    /* Styling for #ap-test-proctoring-status element */
     #ap-test-proctoring-status {
         margin-bottom: 2px;
         font-size: 3rem;
         font-weight: bold;
         margin-left: 14px;
         animation: pulse 15s infinite;
    }
     @keyframes pulse {
         0% {
             opacity: 1;
        }
         50% {
             opacity: 0.5;
        }
         100% {
             opacity: 1;
        }
    }
    
    /* Styling for #proctor-feedback element */
     #proctor-feedback {
         margin-bottom: 2px;
         background: none;
         border-radius: 9999px;
         transition: all 0.3s;
         color: #ff9800;
         font-weight: bolder;
         font-size: 0.75rem;
         padding: 8px 16px;
         text-transform: uppercase;
         letter-spacing: 0.1em;
    }
    
    /* Styling for #test-attempt-report container */
     #test-attempt-report {
         display: none;
    }
    
    /* Styling for #ap-test-report-overview element */
     #ap-test-report-overview {
         max-width: 72rem;
         margin: 0 auto;
         background-image: linear-gradient( to right, var(--gradient-from), var(--gradient-to) );
         padding: 10px;
         border-radius: 1rem;
         box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    }
    
    /* Styling for .flex element inside #test-attempt-report container */
     #test-attempt-report .flex {
         margin-top: 1rem;
    }
    
    /* Styling for .tab-button class */
     .tab-button {
         padding: 0.5rem 1rem;
         border: none;
         border-radius: 0.25rem;
         text-transform: uppercase;
         letter-spacing: 0.1em;
    }
    
    /* Styling for #tab-1 button */
    
    /* Styling for #tab-1-content and #tab-2-content elements */
     #tab-1-content, #tab-2-content {
         max-width: 72rem;
         margin: 0 auto;
         background-image: linear-gradient( to left, var(--gradient-from), var(--gradient-to) );
         padding: 10px;
         border-radius: 1rem;
         box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    }
    
    /* Styling for .max-w-5xl class */
     .max-w-5xl {
         max-width: 72rem;
    }
    
    /* Styling for h1 tag */
     .container h1 {
         font-size: 1.5rem;
         margin: 1rem 0;
    }
    
    /* Styling for .text-2xl class */
     .text-2xl {
         font-size: 1.25rem;
    }
    
    /* Styling for .text-3xl class */
     .text-3xl {
         font-size: 1.875rem;
    }
    
    /* Styling for .text-center class */
     .text-center {
         text-align: center;
    }
    
    /* Styling for .my-4 class */
     .my-4 {
         margin: 1rem 0;
    }
    
    /* Styling for .bg-gradient-to-l class */
     .bg-gradient-to-l {
         background-image: linear-gradient( to left, var(--gradient-from), var(--gradient-to) );
    }
    
    /* Styling for .p-10 class */
     .p-10 {
         padding: 2.5rem;
    }
    
    /* Styling for .rounded-2xl class */
     .rounded-2xl {
         border-radius: 2rem;
    }
    
    /* Styling for .shadow-2xl class */
     .shadow-2xl {
         box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    }
     .my-10 {
         margin-top: 2.5rem;
         margin-bottom: 2.5rem;
    }
    
    /* Styling for .bg-blue-300 class */
     .bg-blue-300 {
         background-color: #2196f3;
    }
    
    /* Styling for .bg-gray-500 class */
     .bg-gray-500 {
         background-color: #6b7280;
    }
    
    /* Styling for .text-gray-700 class */
     .text-gray-700 {
         color: #4b5563;
    }
    
    /* Styling for .text-white class */
     .text-white {
         color: #ffffff;
    }

/* Overlay backdrop */
#door-overlay {
  display: none;              /* toggled to flex in JS */
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(0,0,0,0.7);
  align-items: center;
  justify-content: center;
}

/* Modal box */
#door-container {
  width: min(900px, 92vw);
  height: min(90vh, 720px);
  background: white;
  border: 2px solid black;
  display: flex;
  flex-direction: column;
}

/* Header */
#door-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 2px solid black;
}

/* Nav controls */
.door-nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

#door-counter {
  min-width: 70px;
  text-align: center;
}

/* Scrollable image area */
#door-view {
  flex: 1;
  overflow: auto;     /* this enables scrolling */
  padding: 10px;
  background: #f7f7f7;
}

/* The image itself */
#door-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;     /* center horizontally */
}


footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  margin-top: auto;
  border-top: 0px;
  background: white;
}


footer div {
  flex: 1;
  text-align: center;
}


footer a {
  color: black;
  text-decoration: underline;
}

@media (max-width: 768px) {
  footer {
    flex-direction: column;
    gap: 15px;
    text-align: center;
    padding: 20px 10px;
  }
  
  footer div {
    flex: none;
    text-align: center;
    width: 100%;
  }
}


#mouse-control-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#mouse-control-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

#mouse-control-content h3 {
  margin-top: 0;
  color: #333;
  font-size: 28px;
}

#mouse-control-content p {
  margin: 15px 0;
  font-size: 18px;
  color: #666;
}

#close-mouse-modal {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 5px;
  margin-top: 10px;
}

#close-mouse-modal:hover {
  background: #45a049;
}

/* Time Reminder Modals - Same size as mouse control modal */
#time-reminder-modal-1,
#time-reminder-modal-2, 
#time-reminder-modal-3,
#time-reminder-modal-4 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
}

#time-reminder-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

#time-reminder-content h3 {
  margin-top: 0;
  color: #333;
  font-size: 28px;
}

#time-reminder-content p {
  margin: 15px 0;
  font-size: 18px;
  color: #666;
}

#close-time-modal-1,
#close-time-modal-2,
#close-time-modal-3,
#close-time-modal-4 {
  background: #ff6b35;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 5px;
  margin-top: 10px;
}

#close-time-modal-1:hover,
#close-time-modal-2:hover,
#close-time-modal-3:hover,
#close-time-modal-4:hover {
  background: #e55a2b;
}


.press-start-2p-regular {
  font-family: "Coral Pixels", serif;;
  font-weight: 400;
  font-style: normal;
}


.coral-pixels-regular {
  font-family: "Coral Pixels", serif;
  font-weight: 400;
  font-style: normal;
}