* {
    font-family: "Noto Sans Thai", sans-serif !important;
  }

  body {
    overflow: hidden;
    margin: 0;
    padding: 0;
    background-color: #000;
  }

  #bgIMG {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    object-fit: cover;
 }

 /*.center-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
 }

 .center-screen-info {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(80%);
    max-width: 400px;
    max-height: 1000px;
  }*/

  .center-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.center-screen-info {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 400px;
    width: 80vw;
    max-height: 85vh;
}

.image-center img {
    max-width: 80vw;
    height: auto;
}

 .btn {
    /* transform: scale(0.5); Initial scale */
    transition: transform 0.8s ease; /* Smooth transition */
    max-width: 50vw;
}

.btn:hover {
    transform: scale(0.6); /* Scale up on hover */
}

#bgIMG {
    transition: opacity 1s ease; /* Smooth fade effect over 1 second */
    opacity: 1; /* Initial opacity */
}

input[type=input] {
    border: none;
  }

 .q-room-input {
    margin-top: 10%;
 }

 .input {
    width: 100%;
    height: 100;
    outline: none;
    border:none;
    display: block;
    background-image: url("../media/text_box.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 9px;
    background-color:transparent;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;  
  }

  .input-answer {
    width: 100;
    height: 100;
    outline: none;
    border:none;
    display: block;
    background-image: url("../media/text_box.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 9px;
    background-color:transparent;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;  
  }

.hidden {
    opacity: 0; /* Faded out */
}

.white-text{
    color: white;
}

 .bn632-hover {
    width: 160px;
    font-size: 2rem;
    font-weight: 300;
    color: #fff;
    cursor: pointer;
    margin: 20px;
    height: 55px;
    text-align:center;
    border: none;
    background-size: 300% 100%;
    border-radius: 50px;
    moz-transition: all .4s ease-in-out;
    -o-transition: all .4s ease-in-out;
    -webkit-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
  }
  
  .bn632-hover:hover {
    background-position: 100% 0;
    moz-transition: all .4s ease-in-out;
    -o-transition: all .4s ease-in-out;
    -webkit-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
  }
  
  .bn632-hover:focus {
    outline: none;
  }
  
  .bn632-hover.bn19 {
    background-image: linear-gradient(
      to right,
      #bb5e57,
      #7f1b1d
    );
    box-shadow: 0 4px 15px 0 rgba(255, 0, 0, 0.75);
  }

/* Original Image Placeholder (Fixed Size) */
#uploadPic {
  max-width: 40%; /* Fixed width */
  height: auto; /* Fixed height */
  object-fit: cover; /* Ensures the image covers the entire area */
}

/* Modal Styles */
.modal {
  display: block;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 200vh;
  overflow: auto;
  /* background-color: rgba(0, 0, 0, 0.5); */
  padding-top: 60px;
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  text-align: center;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#previewContainer {
  width: 100%;
  max-width: 100%;
  margin: auto;
  text-align: center;
}

#imagePreview {
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.flash-card {
  max-width: 95vw;
  position: absolute;

}

.card-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.5s;
  transform-style: preserve-3d;
  position: absolute;
  top: 2%;
}

.front, .back {
  position: absolute;
  width: 100%;
  /* height: 100%; */
  display: flex;
  justify-content: center;
  align-items: center;
  backface-visibility: hidden;
}

.front {
  /* background-color: green; */
  z-index: 2;
}

.back {
  /* background-color: orange; */
  transform: rotateY(180deg);
}

.flip {
  transform: rotateY(var(--rotation-angle, 0deg));
}

.gray-text {
  color: #646365;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #00000049;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}