*{
    margin: 0;
    padding: 0;
}

body{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: black;
}

.video-wrapper {
    position: relative;
    width: 60vw;
    margin-top: 2rem;
    transition: box-shadow 0.4s ease;
}

video {
    width: 100%;
    display: block;
}

track{
  color: white;
}

  #sound-text {
    position: absolute;
    bottom: 22%;
    left: 50%;
    transform: translateX(-50%);
    color: #ffff00;
    font-family: sans-serif;
    font-size: 12px;
    font-style: italic;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transition: font-size 0.4s ease, opacity 0.4s ease;
    text-shadow:
      -2px -2px 0 rgba(0,0,0,1),
       2px -2px 0 rgba(0,0,0,1),
      -2px  2px 0 rgba(0,0,0,1),
       2px  2px 0 rgba(0,0,0,1),
       0 0 12px rgba(0,0,0,1);
  }

  .subtitle-controls {
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        gap: 10px;
        font-family: sans-serif;
        background-color: rgba(0, 0, 0, 0.6);
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 8px;
        white-space: nowrap;
      }
 
      .subtitle-controls button {
        width: 32px;
        height: 32px;
        font-size: 18px;
        cursor: pointer;
        border: 1px solid #888;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.2);
        color: white;
      }

      .subtitle-controls button:hover {
        background: rgba(255, 255, 255, 0.4);
      }
 
      .subtitle-controls span {
        font-size: 14px;
        min-width: 50px;
        text-align: center;
      }
 
      /* Stijl voor de ondertitels zelf */
      ::cue {
        font-family: var(--subtitle-font, sans-serif);
        font-size: var(--subtitle-size, 16px);
        color: white;
        background: rgba(0, 0, 0, 0.75);
      }

      /* Geluidsbeschrijvingen */
      ::cue(i) {
        color: #aaaaaa;
        font-style: italic;
      }

      ::cue(.sound) {
        color: #999999;
        font-style: italic;
        background: rgba(0, 0, 0, 0.5);
      }