body {
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  background-color: #FCF4E6;
  margin: 0;
  padding: 1rem 0;
}

#logo {
    max-width: 80%;
    height: auto;
    margin-bottom: 0.5rem;
}

#videoContainer {
  position: relative;
  width: 90%;
  max-width: 640px;
  aspect-ratio: 4 / 3;
  border: 1px solid black;
  margin-bottom: 1rem;
}

#video {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(-1);
  object-fit: cover;
}

canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: scaleX(-1);
}

button {
  /* Reset Appearance */
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent; /* Prevent tap highlight flicker on touch */
  /* Neobrutalist Styling */
  border: 2px solid black; /* Thick solid border */
  border-radius: 0; /* Square corners */
  background-color: #FFFFFF; /* Solid background */
  color: black;
  padding: 0.7rem 1.3rem; /* Adjust padding */
  font-size: 1rem;
  font-weight: 500; 
  cursor: pointer;
  /* Hard Shadow Effect */
  box-shadow: 4px 4px 0px black; /* Hard offset shadow */
  /* Transition */
  transition: transform 0.05s ease, box-shadow 0.05s ease;
}

button:hover {
  /* Optional: Slight interaction on hover, maybe shift */
  /* transform: translate(-1px, -1px); */
  /* box-shadow: 5px 5px 0px black; */
  /* Keeping it simple for now - no hover effect */
}

button:active {
  /* Press Effect - move into shadow */
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px black;
}

#startButton {
    margin-top: 1rem;
}

/* Add styles for the sound controls */
#soundControls {
    position: fixed;
    bottom: 10px;
    right: 10px;
    padding: 8px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

#soundControls label {
    font-size: 0.9em;
    color: black;
}

/* --- Range Input Base Styling (Adapted with Class) --- */
.volumeSliderInput {
    cursor: pointer;
    width: 100px;
    height: 20px; /* Increased height for easier touch */
    -webkit-appearance: none;
    appearance: none;
    background: #ddd;
    border-radius: 5px;
    outline: none;
}

/* --- Slider Thumb Styling (Adapted Pattern with Class) --- */
.volumeSliderInput::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px; /* Increased size */
    height: 22px; /* Increased size */
    border-radius: 50%;
    background: #04436B;
    cursor: pointer;
    border: none;
}

.volumeSliderInput::-moz-range-thumb {
    width: 22px; /* Increased size */
    height: 22px; /* Increased size */
    border-radius: 50%;
    background: #04436B;
    cursor: pointer;
    border: none;
}

#soundControls button {
    /* Make sound controls button slightly smaller */
    padding: 0.4rem 0.8rem; 
    font-size: 0.9rem;
    /* Adjust shadow/position for smaller size */
    box-shadow: 3px 3px 0px black;
}

#soundControls button:active {
  transform: translate(1.5px, 1.5px);
  box-shadow: 1.5px 1.5px 0px black;
}

/* Media Query for smaller screens */
@media (max-width: 600px) {
    #soundControls {
        position: static; /* Remove fixed positioning */
        width: 90%; /* Match container width */
        justify-content: center; /* Center the items */
        margin-top: 1rem; /* Add space above */
        margin-bottom: 1rem; /* Add space below */
    }

    #startButton {
        /* Ensure start button doesn't have extra margin when controls are below */
        /* margin-top might already be sufficient */
    }
}

#instructionsImage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 450px;
  width: 50%;
  max-height: 100%;
  height: auto;
  padding: 10px 0;
} 