/* Reset styles (keep the previous settings) */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  background: black;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: Arial, sans-serif;
}
.work-objects {
    position: absolute;
    z-index: 3;
    display: none;
    bottom: 10vh;
}
/* Full-screen container */
#screen {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Set initial height to match the viewport (can be overwritten) */
  width: 100%;
  height: 100vh;
  /* Keep responsive design based on vw */
  overflow: hidden; 

}

/* Remaining Styles (keep the previous styles): */

.red-line{
    background-image: url(../images/long-line.png);
    background-repeat: repeat-x, repeat-x;
    background-size: contain, cover;
    position: absolute;
    z-index: 99;
    display: block;
    bottom: 15vh;
    width: 100%;
    height: auto;
    left: 50vw;
    text-align-last: end;
}
/* Centered logo */
#logo-container {
  position: relative;
  z-index: 9999;
  justify-content: center;
  display: flex;
}

#logo {
  width: 25%;
}

/* Progress bar */
#progress-bar-container {
  position: absolute;
  bottom: 10%;
  width: 80%;
  height: 1.5vh;
  background-color: #fff;
  border-radius: 5px;
  overflow: hidden;
  z-index: 9999;
}

#progress-bar {
  width: 0;
  height: 100%;
  background-color: #e74c3c;
  transition: width 5s linear;
}

/* Game screen container */
#game-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

/* Dialogue box (general) */
#dialogue-box,
#dialogue-box-2,
#dialogue-box-3,
#dialogue-box-4,
#dialogue-box-5,
#dialogue-box-6,
#dialogue-box-7 {
  position: absolute;
  /* padding: 0% 2%; */
  /* margin: 8% 10%; */
  background-color: yellow;
  color: black;
  border-radius: 10px;
  text-align: center;
  z-index: 9999;
  box-sizing: border-box;
}

/* Dialogue box 1 */
#dialogue-box {
  top: 10vh;
  left: 13vw;
  width: 75%;
  border: 4px solid;
}

/* Dialogue box 2 */
#dialogue-box-2 {
  top: 47%;
  left: 13vw;
  background-color: unset;
}

/* Dialogue box 3 */
#dialogue-box-3 {
  top: 9%;
  left: 2%;
  right: 2%;
  border: 4px solid;
  text-align: left;
  
}

/* Dialogue box 4 */
#dialogue-box-4 {
  position: relative;
  top: 15%;
  background-color: unset;
  margin-bottom: 77px;
}

/* Dialogue box 5 */
#dialogue-box-5 {
  position: relative;
  top: 11%;
  background-color: unset;
}
#dialogue-box-7 {
  position: relative;
  top: 19%;
  background-color: unset;
}

/* Dialogue box 6 */
#dialogue-box-6 {
  top: 18vh;
  left: 2%;
  right: 2%;
  margin: 20px;
  max-height: 55vh;
  overflow-y: auto;
}

#icon-container {
  display: flex;
  justify-content: center;
}

#irpwm-icon {
    width: 8vw;
    height: 8vw;
    max-width: 50px;
    max-height: 50px;
    margin-top: -25px;
}

#dialogue-text {
  font-size: 2vw;
    font-weight: 600;
    padding: 15px;
}

/* Buttons inside the dialogue box (general) */
.dialogue-button,
.dialogue-button-1,
.dialogue-button-2,
.play-btn {
  margin-top: 1.5vh;
  padding: 1.2vh 2vw;
  background-color: yellow;
  border: 2px solid;
  border-radius: 5px;
  color: black;
  font-size: 2vw;
  box-sizing: border-box;
  text-align: center;
  font-weight: 600;
}

.play-btn {
  width: 15vw;
}

/* Dialogue button 1*/
.dialogue-button-1 {
  width: auto;
  max-width: 90%;
  border-radius: 25px;
}

/* Dialogue button 2*/
.dialogue-button-2 {
  width: auto;
  display: block;
}


.dialogue-button:hover,
.dialogue-button-1:hover,
.dialogue-button-2:hover {
  background-color: rgb(255 141 0 / 75%);
  transform: scale(1.05);
}



/* Character */
#character {
  position: absolute;
  top: 50%;
  bottom: 10%;
  left: 5% !important;
  width: 8vw;
  max-width: 150px;
  height: auto;
  z-index: 9999;
}

/* Next button container */
#button-container {
  position: absolute;
  bottom: 5%;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 9999;
}


/* close button */

#close-button {
  position: absolute;
  top: 1%;
  left: 4%;
  background-color: unset;
  border: unset;
  z-index: 10;
}


/* option-container */

#option-container {
  margin-bottom: 1vh;
  position: relative;
  padding: 0% 5%;
}

input[type="radio"] {
  display: none;
}

input[type="radio"]:checked+label {
  background-color: #e74c3c;
  color: white;
}


/* Table container */
#table-container {
  background-color: #fcfb5c;
    border: 3px solid #000000;
  border-radius: 13px;
}

#table-box {
  overflow-x: auto;
  border-radius: 13px;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
}

.custom-table td {
  padding: 1.5vh 2vw;
  text-align: left;
  color: black;
  font-size: 2.4vw;
  font-weight: 600;
}


.borderTd {
  border-right: 2px solid #000000;
    border-bottom: 2px solid #000000;
}

.inputChx {
  border-radius: 5px;
  height: 40px;
  font-size: 18px;
    font-weight: 600;
}



/* Dialogue Image*/
#dialogue-box-img {
  position: absolute;
  bottom: 15%;
  left: 22%;
  right: 22%;
  z-index: 9999;
  /* width: 50%; */
  height: auto;
}

/* Characters 1,2,3*/
#character-1,
#character-2,
#character-3 {
  position: absolute;
  bottom: 4%;
  z-index: 9999;
  width: 10vw;
  height: auto;
}

#character-1 {
  left: 5%;
}

#character-2 {
  left: 25%;
  transform: scaleX(-1);
}

#character-3 {
  right: 8%;
  bottom: 22vh;
}

/* Game background and containers */
#game-screen {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

#background {
  position: absolute;
  top: 0;
  left: 0;
  transition: left 0.3s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

#game-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
/* Full-screen container */
/* #screen {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; */
  /* Set initial height to match the viewport (can be overwritten) */
  /* width: 100%;
  height: 100vh; */
  /* Keep responsive design based on vw */
  /* overflow: hidden;  */

/* } */
/* Play character and walking  */
#play-character {
  position: absolute;
  top: 39%;
  left: 50%;
  transform: none;
  width: 9%;
  height: auto;
  z-index: 9999;
}

#character-walking {
  position: absolute;
  transition: left 0.3s ease;
  height: auto;
  width: 80px;
  top: 40%;
  left: 45%;
  z-index: 9999;
}

#player-move {
  width: 164px;
  top: 30%;
  left: 53%;
}
/* Backgrounds */

#game-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 2625%;
  /* Large width for background to scroll */
  height: 100%;
  background-image: url('../images/bg (2).webp');
  background-repeat: repeat-x, repeat-x;
  background-size: contain, cover;
  z-index: 1;
  transition: left 0.3s ease;
}
#game-background-bottom { 
  position: absolute;
  top: 0;
  /* right: -2320%; */
  width: 2387%;
  height: 100%;
  background-image: url('../images/second-image.webp');
  background-repeat: repeat-x, repeat-x;
  background-size: contain, cover;
  z-index: 3;
  transition: left 0.3s ease;
}
#game-background-2 {
  display: none;
  position: absolute;
  top: 0; 
  width: 2625%;
  height: 100%;
  background-image: url('../images/main-bg.webp');
  /*background-repeat: repeat-x, repeat-x;*/
  background-repeat: no-repeat;
  background-size: contain, cover;
  z-index: 2;
  transition: left 0.3s ease;
}


/* Static characters */
#static-character-1,
#static-character-2,
#static-character-3,
#static-character-1of2 {
  position: absolute;
  top: 40%;
  width: 140px;
  height: auto;
  z-index: 2;
  display: none;
  /*transform: scaleX(-1)*/
}


/* object position */
.obj-position {
  position: absolute;
  top: 52%;
  right: 55%;
  width: 10%;
  height: auto;
  z-index: 3;
  display: none;
}


/* Circle shape */
.circle {
  background: white;
  border: 1px solid red;
  border-radius: 50%;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
  height: 30px;
  width: 30px;
  padding: 5px;
}

.circle .text {
  font-size: 2.5vw;
  font-weight: bold;
  color: black;
  font-family: Arial, sans-serif;
  line-height: 1;
}

/* popup */
#popup-contain {
  position: absolute;
  top: 10vh;
  width: 40%;
  display: flex;
  justify-content: end;
  z-index: 10000;
  right: 1%;
}

#pop-dialog {
  font-size: 1.8vw;
  padding: 4px;
  background: white;
  border: 3px solid;
  border-radius: 10px;
}

/* Detonator objects*/
#detonator-obj-1,
#detonator-obj-2,
#detonator-obj-3 {
  position: absolute;
  z-index: 3;
  width: 25px;
  display: none;
}

#detonator-obj-1 {
  top: 60%;
  right: 55%;
}

#detonator-obj-2 {
  top: 63.5%;
  right: 55%;
}

#detonator-obj-3 {
  top: 60.5%;
  right: 55%;
}

#sign {
  position: absolute;
  bottom: 36%;
  width: 100%;
  height: 5%;
  display: flex;
  justify-content: space-between;
  z-index: 9999;
}

.container {
  width: 300px;
  height: 300px;
  background-image: url('/images/dil.png');
  background-size: cover;
  background-position: center;
  position: relative;
  border: 2px solid black;
}

.container .text {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 24px;
  font-weight: bold;
  color: black;
  background: rgba(255, 255, 255, 0.8);
  padding: 5px;
  border-radius: 5px;
}


#sign2 {
  position: absolute;
  bottom: 45%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  height: 5%;
  z-index: 1;
}

#play-train {
  display: none;
  position: absolute;
  top: 40.5%;
  left: 50%;
  transform: translateX(-50%);
  height: 100px;
  z-index: 9999;
}

/* buttons  */

.move-button {
  position: absolute;
  bottom: 20px;
  font-size: 16px;
  cursor: pointer;
  z-index: 9999;
  background: transparent;
  border: none;
  width: 7%;
}

#backward-button {
  right: 15%;
}

#forward-button {
  right: 5%;
}

#distance-counter {
  position: absolute;
  bottom: 20%;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 9999;
}
#work-site{
  position: absolute;
  bottom: 11.5%;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 9999;
}

/* button container*/
#button-container-1 {
  position: absolute;
  top: 1%;
  width: 25%;
  display: flex;
  justify-content: end;
  z-index: 9999;
  right: 1%;
}

.button {
  background: none;
  border: none;
}
img#directionbanner {
  position: absolute;
  z-index: 1;
  height: 5vh;
  bottom: 45vh;
}