/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden; /* Prevent scrolling */
}

.opening-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensure it fills the screen without distortion */
  z-index: 2;
  display: block; /* Initially visible */
}

/* Video Container */
#video-container {
  position: relative; /* For proper layering */
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Background Video */
#background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures video covers the container */
  z-index: 1; /* Bottom layer */
}

/* Overlay GIF */
.gif {
  position: absolute;
  bottom: 0; /* Anchored to bottom */
  left: 0; /* Anchored to left */
  width: auto;
  height: 100%;
  z-index: 2; /* Above video */
  display: none; /* Initially hidden */
}

/* Text Bubble */
.text-bubble {
  position: absolute;
  bottom: 30%;
  left: 45%;
  transform: translateX(-50%); /* Center horizontally */
  padding: 20px;
  background-color: white;
  border: 2px solid black;
  border-radius: 10px;
  font-size: 20px;
  font-family: 'Nunito', sans-serif;
  color: black;
  max-width: 42%;
  z-index: 3; /* Above GIF */
  display: none; /* Initially hidden */
}
@keyframes pulse {
  0% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.1);
  }
  100% {
    transform: translateX(-50%) scale(1);
  }
}
/* Buttons */
.button {
  position: absolute;
  width: 200px;      /* Set the button width */
  height: 60px;      /* Set the button height */
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%); /* Center horizontally */
  padding: 10px 20px;
  font-size: 30px;
  font-family: 'Nunito', sans-serif;
    color: black;
  background-color: #c2d028;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: none; /* Initially hidden */
  z-index: 3;
  animation: pulse 1.5s infinite; /* Add pulse animation */
}

.button:hover {
  background-color: #48c214; /* Slightly darker blue */
}
