/* style.css */

  /* Base layout and background */
  html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #1a1a10;
    overflow: hidden;
  }

  /* CRT boot-up effect */
  #crt-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.5) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    z-index: 11;
    mix-blend-mode: screen;
  }

  /* CRT filter scanlines and noise */
  @keyframes crt-drift {
    0% { background-position: 0 0; }
    100% { background-position: 0 4px; }
  }
  #crt-filter {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;

    background-image:
      repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.205) 2px,
        transparent 4px,
        transparent 8px
      );
    background-color: rgba(0, 255, 128, 0.05);

    animation: crt-drift 0.08s infinite linear;
    opacity: 0.7;
  }
  
  /* Bouncing DEN logo */
  #den-logo {
    position: absolute;
    color: white;
    font-size: 150px;
    font-weight: bold;
    user-select: none;
  }

  /* Loading bar */
  #svg-loading-bar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    pointer-events: none;
  }
  
  #segments-group rect.filled {
    fill: #0ff;
    filter: drop-shadow(0 0 6px #0ff);
  }  
  
  /* Menu container */
  .menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    flex-direction: column;
    gap: 20px;
    color: white;
    font-size: 24px;
    text-align: center;
  }
  
  /* Menu item interaction */
  .menu-item:hover {
    color: #0ff;
    cursor: pointer;
    transform: scale(1.1);
    transition: all 0.2s ease;
  }

  /* Menu titles */
  #menu-items {
    margin-top: 20px;
    font-family: "Silkscreen", sans-serif;
  }

  .class-title {
    font-size: 18px;
    font-weight: 300;
    color: #aaa;
    margin-bottom: 5px;
    font-family: "Silkscreen", sans-serif;
  }

  .title {
    font-size: 80px;
    font-weight: bold;
    height: 100px;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 0 4px rgba(0,255,255,0.3), 0 0 10px rgba(0,255,255,0.2);
  }

  .menu-subtitle {
    font-size: 28px;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
    font-family: "Space Grotesk", sans-serif;
  }

  /* === Setup Pop-Out Layout === */

  #setup-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 16, 0.9);
    z-index: 100;
    align-items: center;
    justify-content: center;
  }  
  
  .setup-content {
    background: #111;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 255, 128, 0.2);
    font-family: "Space Grotesk", sans-serif;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 300px;
  }
  
  .setup-content input[type="text"],
  .setup-content input[type="number"],
  .setup-content input[type="range"] {
    width: 100%;
    padding: 6px;
    border: none;
    border-radius: 4px;
  }
  
  .setup-content button {
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 16px;
    font-family: "Silkscreen", sans-serif;
    border: none;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-shadow: 0 0 6px #0ff;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s ease;
  }
  
  .setup-content button:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
  }  
  
  .hidden {
    display: none;
  }  

  /* === Recording Page Layout === */

  body.recording-mode {
    margin: 0;
    background-color: #000;
    overflow: hidden;
    font-family: 'Space Grotesk', sans-serif;
    color: #39FF14;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    position: relative;
  }
  
  .video-container {
    width: 90%;
    position: relative;
    margin-bottom: 20px;
  }  

  body.recording-mode .back-button {
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 18px;
    font-family: "Silkscreen", sans-serif;
    border: none;
    border-radius: 8px;
    background-color: rgba(0, 255, 128, 0.15);
    color: #fff;
    text-shadow: 0 0 6px #39FF14;
    cursor: pointer;
    z-index: 2;
  }

  body.recording-mode .back-button:hover {
    background-color: rgba(0, 255, 128, 0.25);
  }

  /* === Mobile Layout === */

  @media (max-width: 600px) {
    #den-logo {
      font-size: 72px;
    }
  
    #dvd-menu {
      width: 80%;
    }    

    .menu {
      font-size: 16px;
      gap: 12px;
    }
  
    .title {
      font-size: 36px;
      height: 40px;
      width: 100%;
    }
  
    .menu-subtitle {
      font-size: 20px;
    }
  
    .class-title {
      font-size: 14px;
    }
  
    .setup-content {
      width: 90%;
      padding: 20px;
    }
  }
  