body {
  width: 100%;
  height: 100%;
  background-color: #ffff;
}

#wrapper {
  position: absolute;
  width: 780px;
  height: 750px;
  background-color: #ffffff;
  /* background-image: url(bg.jpeg); */
  -webkit-user-select: none;
  /* Safari */
  -khtml-user-select: none;
  /* Konqueror HTML */
  -moz-user-select: none;
  /* Old versions of Firefox */
  -ms-user-select: none;
  /* Internet Explorer/Edge */
  user-select: none;
  /* Non-prefixed version, currently
                                  supported by Chrome, Opera and Firefox */
}

#viewport {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%);
  background-color: #e7ecff00;
  
}

#score {
  position: absolute;
  right: 30px;
  bottom: 20px;
  width: 146px;
  height: 45px;

  /* Softer gradient */
  background: linear-gradient(135deg, #ffb347, #ff5f6d);

  /* Rounded capsule shape */
  border-radius: 50px;

  /* Simple soft shadow */
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#scorevalue {
  position: absolute;
  width: 146px;
  height: 45px;
  line-height: 45px; /* Vertically center text */
  text-align: center;

  /* White text with subtle shadow */
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}


/* Circular button stays the same */
#replay {
  position: absolute;
  left: 20px;
  bottom: 15px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb347, #ff5f6d);
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#replay:hover {
  transform: scale(1.08);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

/* Loop arc */
#replay::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 3px solid white;
  border-radius: 50%;
  border-top-color: transparent;
  transform: rotate(-45deg);
}

/* Arrow head */
#replay::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 23px;
  width: 0;
  height: 0;
  border-left: 6px solid white;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  transform: rotate(45deg);
}






#restart {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 459px;
    width: 224px;
    height: 48px;
    border-radius: 60px;

    background: linear-gradient(135deg, #ffb347, #ff5f6d);

    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);

    cursor: pointer;

    font-size: 30px;
    color: white;
    font-weight: bold;
    text-align: center;
    line-height: 48px;

    transition: transform 0.15s ease, box-shadow 0.15s ease;

    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  #restart:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
  }
/* Restart icon (circular arrow) */
/* #restart::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 3px solid white;
  border-radius: 50%;
  border-top-color: transparent;
  transform: rotate(45deg);
  position: relative;
}

#restart::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 31px;
  border: solid white;
  border-width: 3px 3px 0 0;
  display: inline-block;
  padding: 4px;
  transform: rotate(45deg);
} */




#logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100px;
  width: 400px;
  height: 365px;
  background-image: url(logo.png);
  background-size: cover;
}

#instruction {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 780px;
  height: 750px;
  background: #000000cf;
  display: none;
}

/* #instruction_1 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 62px;
  width: 628px;
  height: 78px;
  background: #000000a3;
  display: none;
} */

#text {
  position: absolute;
  color: white;
  font-size: 24px;
  font-family: Verdana;
  width: 80%;
  left: 75px;
  top: 200px;
  text-align: center;
}

#playbutton {
  position: absolute;
  left: 270px;
  top: 439px;
  width: 224px;
  height: 48px;
  border-radius: 60px; /* same capsule shape as score button */

  /* Gradient background like score box */
  background: linear-gradient(135deg, #ffb347, #ff5f6d);

  /* Soft border and shadow */
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);

  cursor: pointer;

  /* Text styling */
  font-size: 30px;
  color: white;
  font-weight: bold;
  text-align: center;
  line-height: 48px; /* perfectly centers text vertically */

  /* Hover effect */
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#playbutton:hover {
  transform: scale(1.05);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

#instructionbtn {
  position: absolute;
  right: 180px;
  top: 3px;
  width: 40px;
  height: 40px;
  border-radius: 50%; /* same circular shape as replay */

  /* Matching gradient background */
  background: linear-gradient(135deg, #ffb347, #ff5f6d);

  /* Soft border and shadow */
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);

  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Smooth hover */
  transition: transform 0.15s ease, box-shadow 0.15s ease;

  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%; /* ensures the icon fits well */
/* fits logo nicely */
   /* your instruction icon */
   background-image: url(instruction.png);
   
}

#instructionbtn:hover {
  transform: scale(1.08);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}


#play_audio,
#pause_audio {
  width: 40px;
  height: 40px;
  border-radius: 50%; /* same circular shape as replay */

  /* Matching gradient background */
  background: linear-gradient(135deg, #ffb347, #ff5f6d);

  /* Soft border and shadow */
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);

  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Hover animation */
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#play_audio:hover,
#pause_audio:hover {
  transform: scale(1.08);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

/* Position */
#play_audio {
  position: absolute;
  right: 90px;
  top: 3px;
}

#pause_audio {
  position: absolute;
  right: 40px;
  top: 3px;
}

/* Play icon (triangle) */
#play_audio::before {
  content: "";
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent white;
  margin-left: 4px; /* small nudge to center visually */
}

/* Pause icon (two vertical bars) */
#pause_audio::before,
#pause_audio::after {
  content: "";
  width: 4px;
  height: 16px;
  background-color: white;
  display: inline-block;
}

#pause_audio::before {
  margin-right: 4px;
}


.start{
  position: absolute;
  z-index: 2;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url(bg3.jpg);
  background-size: cover;
}

 .playbtn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 450px;
    width: 224px;
    height: 48px;
    border-radius: 60px;

    background: linear-gradient(135deg, #ffb347, #ff5f6d);

    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);

    cursor: pointer;

    font-size: 30px;
    color: white;
    font-weight: bold;
    text-align: center;
    line-height: 48px;
 }
    /* transition: transform 0.15s ease, box-shadow 0.15s ease;
  } */

  .playbtn:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
  }