body {
  font-family: 'Arial', sans-serif;
  background-color: #3a2317;
  background-image: url("Image/background2.jpg");
  color: #333;
  margin: 0;
  padding: 0; /* Remove padding for perfect centering */
  min-height: 100vh;
}

#messageContainer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5000;
    text-align: right;
    padding: 10px;
    transition: opacity 1s ease; /* smooth fade */
}

#messageContainer.fade-out {
    opacity: 0;
    pointer-events: none;
}

h1 {color: #c0d7ee;}

#mainMenu, #gameScene {
    opacity: 1;
    transition: opacity 1.5s;
}

#mainMenu {
  background-image: url('Image/Background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.box-container {
    aspect-ratio: 2480 / 1440;
    width: min(1050px, 95vw);
    height: auto;
    background-size: cover;      /* or 'contain' for full image without cropping */
    background-position: center; /* center the image */
    background-repeat: no-repeat;
    background-color: #fff;      /* fallback color */
    border: 2px solid #000;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 0;
    overflow: hidden;
    text-align: center;
    justify-content: center;
    z-index: 100;
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translate(-50%, 0);
}

.TitleAnimation {
  text-align: left;
  width: 100%;
  font-family: 'Allura', cursive;
  font-size: 70px;
  animation: TitleAnimation 2s ease-in-out infinite;
  margin-top: 0;
  position: relative;
}

.box-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* or 'contain' if you want the whole image visible */
  object-position: center;
  z-index: 1;
  display: block;
  pointer-events: none;
  background-size: cover;
  background-repeat: no-repeat;
  max-width: 100%;
  opacity: 1.0;
  transition: left 0.5s, top 0.5s, width 0.5s, height 0.5s, opacity 0.5s;
}

.OrigBtn:hover {
  transform: translateY(-12px); /* Move up by 8px */
  transition: transform 0.2s;
}

.OrigBtn {
  justify-content: center;
  margin-top: 50px;
}

@keyframes TitleAnimation {
  0%   { transform: translateY(0); }
  60%  { transform: translateY(15px); } /* slowly down */
  100% { transform: translateY(0); }     /* quick up */
}

#cutscene {
    width: 100%;
    display: block;
}

#dialogueBox {
    position: fixed;
    bottom: 30px;      /* distance from bottom of video */
    left: 50%;
    transform: translateX(-50%);
    height: auto; /* let height adjust based on content */
    width: 90%;        /* or set a fixed width if you prefer */
    max-width: 1000px; /* maximum width of the dialogue box */
    margin: 0;
    padding: 20px 30px;
    background: rgba(255,255,255,0.3);
    border: 2px solid black;
    border-radius: 15px;
    text-align: left;
    z-index: 100;
}

.button1, .button2 {
  background-color: white; 
  margin: 10px;
  color: black; 
  font-size: 20px;
  border: 2px solid black;
  border-radius: 10px;
  padding: 10px 20px;  /* makes them bigger */
  min-width: 200px;    /* prevents too small buttons */
  text-align: left;
  display: inline-block;
}

.fade {
    opacity: 1;
    transition: opacity 1s ease; /* 1 second fade */
}

.fade.hidden {
    opacity: 0;
}

.choice {
  display: block;
  margin: 10px 0;  /* positive margin instead of negative */
}

.choice, .no-bg {
    background: none;
    border: none;
    padding: 0;
    width: 100%;
}

.button1:hover, .button2:hover {
  transform: translateY(-8px); /* Move up by 12px */
  transition: transform 0.2s;
  cursor: pointer; /* Change cursor to pointer */
}

