/* === Fonts & Base === */
body {
    font-family: 'Libre Baskerville', serif;
    background-color: #fcf8e3;
    background-image: url('https://www.transparenttextures.com/patterns/paper-fibers.png'); /* subtle film grain */
    color: #3b2f1e;
    margin: 0;
    padding: 0;
  }
  
  /* === Title === */
  h1 {
    font-size: 3rem;
    text-align: center;
    color: #000;
    margin: 40px 0 20px;
    font-family: 'Libre Baskerville', serif;
  }
  
  /* === Section Headings === */
  h2 {
    font-size: 2rem;
    color: #3b2f1e;
    margin: 20px 0 10px;
    text-align: center;
    font-family: 'Libre Baskerville', serif;
  }
  
  /* === Home Grid === */
  .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 20px;
    max-width: 960px;
    margin: 0 auto;
  }
  
  .grid img {
    width: 100%;
    height: auto;
    border: 4px solid #bcb08c;
    border-radius: 6px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(59, 47, 30, 0.3);
    cursor: pointer;
  }
  
  .grid img:hover {
    transform: scale(1.05);
  }
  
  /* === Video Options Layout === */
  .video-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 20px auto;
    padding: 10px;
    max-width: 800px;
  }

  /*
  .video-option.selected {
    background-color:white !important;
    color: #fffdd0;
    font-weight: bold;
    box-shadow: 0 0 0 3px #c1975b;
  }
*/

.video-option.selected {
  background-color: #ffffff !important;
  color: #3b2f1e;
  border: 2px dashed #bcb08c;
  box-shadow: 0 0 6px rgba(0,0,0,0.2);
}
  
  /* === Option Buttons === */
  #optionButtons button {
    background-color: #c1975b;
    color: #2f1e13;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 1rem;
    font-family: 'Special Elite', monospace;
    cursor: pointer;
    box-shadow: 0 3px 5px rgba(0,0,0,0.2);
    transition: background-color 0.2s ease;
  }
  
  #optionButtons button:hover {
    background-color: #a5794a;
    transform: scale(1.05);
  }
  
  /* === Go Back Button (from Options) === */
  #goBackFromOptions {
    display: block;
    margin: 30px auto;
    background-color: #704214;
    color: #fff5dc;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    padding: 12px 24px;
    cursor: pointer;
    font-family: 'Special Elite', monospace;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: background-color 0.2s ease;
  }
  
  #goBackFromOptions:hover {
    background-color: #5b3513;
  }
  
  /* === Video Player Layout === */
  .video-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 30px 20px;
    background-color: #fcf8e3;
    text-align: center;
  }
  
  .video-layout video {
    max-width: 100%;
    width: 640px;
    border: 8px solid #bcb08c;
    border-radius: 8px;
    background-color: #000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }
  
  /* === Go Back Button (from Video) === */
  .video-layout button {
    background-color: #704214;
    color: #fff5dc;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    padding: 12px 24px;
    cursor: pointer;
    font-family: 'Special Elite', monospace;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: background-color 0.2s ease;
    margin: 0 auto; 
  }
  
  .video-layout button:hover {
    background-color: #5b3513;
  }
  
  /* === Section Visibility Control === */
  .section {
    display: none;
  }
  
  .section.active {
    display: block;
  }
  
  /* === Responsive Adjustments === */
  @media (max-width: 768px) {
    .grid {
      grid-template-columns: repeat(2, 1fr);
    }
  
    .video-layout video {
      width: 100%;
    }
  
    h1 {
      font-size: 2.4rem;
    }
  
    h2 {
      font-size: 1.6rem;
    }
  }
  
  @media (max-width: 480px) {
    .grid {
      grid-template-columns: 1fr;
    }
  
    #optionButtons button,
    #goBackFromOptions,
    .video-layout button {
      font-size: 1rem;
      padding: 10px 18px;
    }
  }

  .thumbnail-wrapper {
    text-align: center;
  }
  
  .thumbnail {
    width: 100%;
    height: auto;
    border: 4px solid #bcb08c;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(59, 47, 30, 0.3);
    transition: transform 0.3s ease;
  }
  
  .thumbnail:hover {
    transform: scale(1.05);
  }
  
  .thumbnail-caption {
    margin-top: 6px;
    font-size: 1.8rem;
    color: #3b2f1e;
    font-family: 'Special Elite', monospace;
  }

  .reset-selection {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #a5794a;
    color: white;
    font-family: 'Special Elite', monospace;
    font-size: 1rem;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 100;
    transition: background-color 0.2s ease;
    display: none; /* start hidden */
  }
  
  .reset-selection:hover {
    background-color: #8a653b;
  }
  

