body {
    margin: 0;
    
    color: white; /* fill color of the text */
    /* font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; */
    font-family: 'Rubik', sans-serif;
}

/* Headings */
h1 {
    /* font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif; */
    font-size: clamp(2em, 5vw, 3em); /* scales between 2em and 3em depending on screen width */
    text-align: center;
    margin: 20px 0;
    -webkit-text-stroke: 2px black; /* width and color */
}

/* Button container */
#startBtnContainer {
    text-align: center;
    margin: 20px 0;
}

/* Buttons */
.btn {
    width: clamp(7em, 20vw, 9em);   /* button scales between 7em and 9em */
    height: clamp(2.5em, 6vh, 3em);
    border-radius: 30em;
    font-size: clamp(12px, 1.2vw, 15px);
    font-family: inherit;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 6px 6px 12px #c5c5c5,
                -6px -6px 12px #ffffff;
    background-color: #6eac71;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn::before {
    content: '';
    width: 0;
    height: 100%;
    border-radius: 30em;
    position: absolute;
    top: 0;
    left: 0;
    background-image: linear-gradient(to right, #0f3d01 0%, #6eac71 100%);
    transition: 0.5s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

/* Centered text or elements */
#peng {
    text-align: center;
}

/* Background video */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

    object-position: center 65%; /* Shift down slightly (30% from top) */
    
    z-index: -1;
    opacity: 0.4;
}

/* Page content styling */
.content {
    position: relative;
    color: white;
    padding: clamp(20px, 5vw, 50px);
    text-align: center;
}

/* Responsive tweaks for small screens */
@media (max-width: 600px) {
    h1 {
        font-size: 2em;
    }
    
    .btn {
        width: 80%;
        font-size: 14px;
    }
    
    .content {
        padding: 20px;
    }
}





/* MODAL SECTION */

.modal {
  display: none; /* hidden by default */
  position: fixed;
  z-index: 1000; /* on top of everything */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* scroll if content is tall */
  background-color: rgba(0, 0, 0, 0.5); /* semi-transparent overlay */
}

/* Modal box */
.modal-content {
  background-color: #fff;
  color:#000;
  margin: 10% auto; /* center vertically and horizontally */
  padding: 20px;
  border-radius: 10px;
  width: 80%;       /* responsive width */
  max-width: 800px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  text-align: center;
}

/* Close button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}



/* BLINKING PENG SECTION */

/* .blink {
  width: 200px;
  animation: blink 4s infinite;
  transform-origin: center;
}

@keyframes blink {
  0%, 94%, 100% {
    transform: scaleY(1);
  }
  95%, 97% {
    transform: scaleY(0.05);
  }
} */

.dialogue-wrapper {
  display: flex;
  gap: 20px;
  align-items: flex-end;
}

/* Character image */
.character img {
  width: 120px;
  height: auto;
}

/* Dialogue box */
.dialogue-box {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 30px;
  flex: 1;
  position: relative;
}

/* Speech bubble tail */
.dialogue-box::before {
  content: "";
  position: absolute;
  left: -10px;
  bottom: 20px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid #f5f5f5;
}

/* Buttons */
.dialogue-controls {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.dialogue-controls button {
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
}

.signature {
  position: fixed;
  bottom: 10px;
  right: 14px;
  font-size: 12px;
  opacity: 0.6;
  font-family: Verdana, sans-serif;
  pointer-events: none; /* prevents clicking */
}

/* CUSTOM LETTER SELECTOR STYLE */


/* FORM STYLE */
.mode-switch {
  height: 10vh;
 display: flex;
    align-items: center;
    justify-content: center;
}

/* Center form */
.form-container {
   
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form styling */
form {
    background: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
}

/* Title */
form h2 {
    color: #fff;
    margin-bottom: 20px;
}

/* Inputs */
form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
    outline: none;
}

/* Button */
form button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: #00c853;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

form button:hover {
    background: #00a844;
}



.tooltip { position: relative; display: inline-block; }
.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%; /* Position above the text */
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}
.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.flex-container1 {
  display: flex; /* Makes the child divs flex items and puts them side by side */
  /* Optional: Adds space between the divs */
  gap: 20px;
}
