.h5p-question-image-scalable {
  margin-left: auto;
  margin-right: auto;
}

#h5p-container  div.h5p-question-image-scalable {
  margin-left: auto;
  margin-right: auto;
}


.arrow {
  border: solid black;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 3px;
  margin: 3px;
  cursor: pointer;
}

.hidden {
  display:none;
}

#fullScreenPopup #closePopup {
  display:none;
}

.room_no_map {
  background-color: #fff100;
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;

  border: 3px solid white;
  border-radius: 10px;
}

.mlr-30 {
  margin: 0px 40px;
}

iframe.fullscreen-layout {
  position: fixed;
  top: 0;
  left: 0;
  width: 100dvw;
  height: 100dvh;
}

body {
  overflow: visible !important;
}
.right {
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
}

.left {
  transform: rotate(135deg);
  -webkit-transform: rotate(135deg);
}

.up {
  transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
}

.down {
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
}

.card-header .title {
  font-size: 17px;
  color: #000;
}
.card-header .accicon {
  float: right;
  font-size: 20px;
  width: 1.2em;
}
.card-header{
  cursor: pointer;
  border-bottom: none;
}
.card{
  border: 1px solid #ddd;
}
.card-body{
  border-top: 1px solid #ddd;
}
.card-header:not(.collapsed) .rotate-icon {
  transform: rotate(180deg);
}

.disabled {
  opacity: 0.6;
  cursor: not-allowed !important;
}

.sortBtn {
  /*border: 2px solid black;
  border-radius: 2px;
  padding: 2px;*/

  font-size: 1.2rem;
}

.comet-frontend .maincontent .games-row h3 {
  font-size: 1.3rem;
}

.games-row .btn.btn-sm {
  padding: .6rem 2rem;
}

.game-preview-img {
  padding: 5px; 
  background-color: #fff;
  box-shadow: 0px 0px 14px 0px rgba(0, 0, 0, 0.15);
  border-radius: .3rem;
}

.game-rating .badge.badge-info  {
  font-size: .9rem;
  background-color: #05c105 !important;
}

.game-rating-txt {
  color: #8d8d8d;
  font-size: .95rem;
}

.text-big {
  font-size: 1.1rem;
}

.list-mini-room h4 {
  font-size: 1.2rem;
}

/* ###### Rating Test ###### */

.rating {
  border: none;
  float: left;
}

.rating > label {
  color: #90A0A3;
  float: right;
}

.rating > label {
  margin: 5px;
  font-size: 1.7rem;
}

.rating > input {
  display: none;
}

.rating > input:checked ~ label,
.rating:not(:checked) > label:hover,
.rating:not(:checked) > label:hover ~ label {
  color: #FF8800;
}

.rating > input:checked + label:hover,
.rating > input:checked ~ label:hover,
.rating > label:hover ~ input:checked ~ label,
.rating > input:checked ~ label:hover ~ label {
  color: #ffbb33;
}

.roomBox {
  border: 2px solid black;
  border-radius: 5px;
  padding: 5px;
  margin: 5px;
}

.fillableRoomBox {
  background: white;
  padding: 10px !important;
  border: 3px solid black;
  border-radius: 10px;
}

.fillableRoomBox .close-icon {
  float: right;
  cursor: pointer;
}

.fillableRoomBox p {
  overflow:auto;
}

.start-game-btn {
  border: 3px solid white !important;
  border-radius: 10px !important;
}

.hidden_room_entrance {
  top: 0;
  left: 0;
  display: none;
}

.full-width-height-absolute {
  position: absolute;
  width: 100%;
  height: 100%;
}

.hidden_room_question_mark {
  display: none;
}

.room_on_map_middle {
  position: absolute;
  transform: translateY(-50%);
  width: auto;
}

.room_on_map_middle:hover {
  z-index: 9999;
}

@media (max-width: 1200px) {

  .room-list-row {
    justify-content: center;
  }

  .exit-fullscreen-wrapper {
    justify-content: flex-end !important;
  }

  .fillableRoomBox {
    width: 80%;top: 50% !important;
    left: 50% !important;
    transform: translate(-50%,-50%);
  }
}

.tx-gtn-escape-game .map-area {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tx-gtn-escape-game #map-container {
  max-height: 85vh;
  width: fit-content;
}

.room-list-row {
  row-gap: 40px;
}
.room-list-row .col-room {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  flex: 0 1 300px;
  text-align: center;
}


.tx-gtn-escape-game #map-image {

  max-height: 85vh;
}

.room-activate-form .waves-input-wrapper {
  width: 100%;
}

.game-controls .btn {
f margin-top: 0;
f  margin-bottom: 0;
}

.game-controls .form-control {
  margin-bottom: .375rem;
  margin-top: .375rem;
}

.mt-1 {
  margin-top:1rem !important;
}



.game-controls .col-solve .waves-input-wrapper  {
  width: 100%;
}

.tx-gtn-escape-game .unlockGameForm .waves-input-wrapper {
  width: 100%;
}

.alert.alert-info {
  color: #58712f;
  background-color: #dde6d3;
  border-color: #cedcb4;
}

.tx-gtn-escape-game #wait-room-players {
  max-width: 1040px;
  display: grid;
  grid-template-columns: repeat(5, auto);
  gap: 10px;

}

.tx-gtn-escape-game #wait-room {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction:column;

}

.tx-gtn-escape-game #wait-room-players .unavailable {
  filter: grayscale(1);
  opacity: 0.7;
}

.tx-gtn-escape-game .btn-disabled {
  opacity:0.7;
  pointer-events:none;
}
.tx-gtn-escape-game .enter-room-button {
  display: block;
  color: white;
  border-radius: 30px;
  min-width: 160px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  width: 380px;
  margin: auto;
  background-color: rgb(51, 65, 80);
  padding: 18px 38px;
}

.tx-gtn-escape-game #wait-room-players .loading-dots {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 10%);
}

.tx-gtn-escape-game #wait-room-content {
  margin: 40px 0px 0px 0px;
  padding:40px;
  background-repeat: no-repeat;
  background-size: cover;
}
/*
.tx-gtn-escape-game .text-media-bg {
  min-height: 880px;
  min-width: 1140px;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: contain;
  flex-direction:column;
}*/

.textmedia-container {
  position: relative;
}

.textmedia-container img {
  top: 0;
  left: 0;
  max-height:70vh;
  object-fit: cover; /* Maintain aspect ratio */
}

.preview-container .content {
  display: flex;
  flex-direction: column;
  
}

.textmedia-container .content {
  display: flex;
  flex-direction: column;
  padding:2rem;
  left: 0;
  right: 0;
  margin: 0 auto;
  width:fit-content;
}

.textmedia-container .content p {
  flex: 1; /* Take 1/4 of the height */
  display:flex;
  justify-content:center;
  align-items:center;
}

.content video {
  flex: 5; /* Take 3/4 of the height */
  max-width: 100%;
  max-height:70vh;
 /* object-fit: cover;  Maintain aspect ratio */
}

.tx-gtn-escape-game #wait-room-content figure.media > div {
  width:100%;
}




img.trash-icon {
  width: 18px;
  display: inline-block;
  margin: 8px;
}

.tx-gtn-escape-game .game-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tx-gtn-escape-game .centerhv {
  display: flex;
  justify-content: center;
  align-items:center;
}

.tx-gtn-escape-game .game-control-bottom {
  display: flex;
}

.tx-gtn-escape-game #statusMsg {
  font-weight: 700;
  margin: 0;
}

#close-modal-btn {
  padding: 0.5rem 1.6rem !important;
  background-color: gray !important;
}


.width-100p {
  width:100%;
}

#exit-session svg { height: 20px;width:20px;}

.exit-fullscreen-wrapper {
  justify-content: center;
  position: absolute;
  bottom: 10px;
  z-index: 10000;
  text-align: center;
  width: 100%;
  display:none;
  opacity: .9;
}

.exit-fullscreen {
  background-color: #dde0e4;
  padding: 8px;
  border-radius: 100%;
  width: 45px;
  height: 45px;
  text-align: center;
  text-decoration: none;
  justify-content: center;
  align-items: center;
  display:block;
  box-shadow:0 10px 5px -5px #888;
}


.avatar-form-container > div > form {
  padding-left: .75rem;
  padding-right: .75rem;
}

.avatar-form-container .form-control {
  font-size: 1rem;
  padding: 12px;
  line-height: 1.2rem;
}

.avatar-form-container .image-container {
  height: 240px;
}

.tx-gtn-escape-game .mantine-1inha52 {
  font-size: 1.5rem;
}

.avatar-form-container .form-group {
  margin-bottom: 10px;
}

#page-40 .page-header  {
  display: none;
}

#page-40 .site-main {
  margin-top: 15px;
}

@media screen and (max-width: 450px) {
  
  .avatar-form-container .form-control {
    max-width: 90% !important;
    margin-left: 1.3rem !important;
  }
}

/* button */
.enter-room-button.active {
  border: none;
  outline: none;
  color: #FFF;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 12px;
}
.enter-room-button.active::after {
  content: "";
  z-index: -1;
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #333;
  left: 0;
  top: 0;
  border-radius: 10px;
}
/* glow */
.enter-room-button.active::before {
  content: "";
  background: linear-gradient(
          45deg,
          #FF0000, #FF7300, #FFFB00, #48FF00,
          #00FFD5, #002BFF, #FF00C8, #FF0000
  );
  position: absolute;
  top: -2px;
  left: -2px;
  background-size: 600%;
  z-index: -1;
  width: calc(100% + 4px);
  height:  calc(100% + 4px);
  filter: blur(8px);
  animation: glowing 20s linear infinite;
  transition: opacity .3s ease-in-out;
  border-radius: 10px;
}

@keyframes glowing {
  0% {background-position: 0 0;}
  50% {background-position: 400% 0;}
  100% {background-position: 0 0;}
}