.gallery_menu {
  display: none;
  transition: 0.5s;
  opacity: 0.0;
  visibility: hidden;
  border-radius: 1vh;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  bottom: 17vh;
  position: absolute;
  background-color: white;
  width: 93vh;
  height: 67vh;
}

.gallery_container {height: 88%;position: absolute;padding: 0vh 1.5vh;}

.gallery_footer {position: relative;top: 56.5vh;height: 8.5vh;z-index: 101;
/* Rectangle 16 */background: #FFFFFF;box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.4);border-radius: 0px 0px 1vh 1vh;}

.version_gallery_container {
  display: flex;
  flex-wrap: wrap;
}

.gallery_image {
  background-color: #afafaf;
  border-radius: 1vh;
  width: 26vh;
  height: 14vh;
  position: absolute;
}

.gallery_overlay, .gallery_overlay_walkthrough {
  transition: 0.5s;
  visibility: hidden;
  opacity: 0.0;
  position: absolute;
  z-index: 100;
  background-color: #ffffff99;
  height: 91.2%;
  border-radius: 0.5vh;
  top: 7vh;
  width: 100%;
}


.gallery_locked_popup, .gallery_walkthrough_popup {
  background-color:white;
  width: 40vh;
  border-radius: 1vh;
  padding: 1vh 0vh;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  bottom: 32%;
  position: absolute;
  box-shadow: 0.1vh 0.2vh 1vh #00000052;
}

.version_gallery_text {
  padding: 0.8vh 1vh;
    margin-top: 3vh;
    margin-left: 2vh;
    color: #673AB7;
    font-weight: 600;
    font-size: 2.8vh;
    width: max-content;
    border-radius: 0.5vh;
    background-color: white;
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.32);
}

.switch {
  position: relative;
  display: inline-block;
  width: 7.1vh;
  margin-left: 1.5vh;
  height: 3.5vh;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch_container {
  padding: 2.5vh 2vh;
  display: flex;
  position: absolute;
  right: 0;
}

.switch_text {
  font-size: 2vh;
  margin-top: 0.5vh;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 2.5vh;
  width: 2.5vh;
  left: 0.7vh;
  bottom: 0.5vh;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #6d71fd;
}

input:focus + .slider {
  box-shadow: 0 0 1px #6d71fd;
}

input:checked + .slider:before {
  -webkit-transform: translateX(3.2vh);
  -ms-transform: translateX(3.2vh);
  transform: translateX(3.2vh);
}

/* Rounded sliders */
.slider.round {
  border-radius: 6vh;
}

.roadmap_image {max-width: 100%;background-size: contain;}

.slider.round:before {
  border-radius: 6vh;
}

.gallery_items {
  /* display: flex; */
  flex-wrap: wrap;
  position: relative;
  height: 99%;
  width: 91.5vh;
  overflow-y: scroll;
  /* overflow: hidden; */
}

.item {
  cursor: pointer;
  width: 26vh;
  position: relative;
  height: 21vh;
  padding: 3vh 1.5vh;
}

.locked_item {
  transition: 0.5s;
  height: 4vh;
  width: 4vh;
  right: 2.5vh;
  background-size: contain;
  top: 4.4vh;
  background-position: center;
  background-image: url(../../static/images/lock.svg);
  background-repeat: no-repeat;
  position: absolute;
  z-index: 99;
  visibility: hidden;
  opacity: 0.0;
}

.locked_item_money {
  background-image: url(../../static/images/interface/monetization_on-24px.svg) !important;
  height: 4.5vh;
  width: 4.5vh;
}

.locked_item_timer {
  background-image: url(../../static/images/interface/timer.svg) !important;
  height: 4.5vh;
  width: 4.5vh;
}

.gallery_image {
  background-color: #afafaf;
  border-radius: 1vh;
  width: 26vh;
  height: 14vh;
  position: absolute;
}

.item_text {
  width: 19vh;
  top: 17vh;
  position: absolute;
  padding: 2vh 1vh;
  font-size: 1.9vh;
  color: #4c4c4c;
  font-weight: 400;
}

.randomizer {
  position: absolute;
  transition: 0.2s;
  font-weight: 600;
  background-color: white;
  padding: 1vh 2vh;
  display: flex;
  left: 3vh;
  top: 1.7vh;
  font-size: 2vh;
  cursor: pointer;
  line-height: 3.2vh;
  vertical-align: middle;
  border-radius: 0.5vh;
  box-shadow: 0px 0.1vh 0.3vh rgba(0, 0, 0, 0.25);
}
.randomizer::before {
  background-image: url("../../static/images/interface/dice.webp");
  height: 3.1vh;
  transition: 0.2s;
  width: 3vh;
  background-size: contain;
  margin-right: 1.2vh;
  background-repeat: no-repeat;
  content: "";
  display: block;
  position:relative;
}

.randomizer.changed::before {
    filter: brightness(2.5);
}

.paid_image {
  position: absolute;
  height: 15.1vh;
  top: 2.5vh;
  left: 1vh;
  border-radius: 1.5vh;
  width: 27vh;
  background-image: linear-gradient(to right, #f6a165 0%, #f86854 100%);
  border-image-slice: 1;
}

.walkthrough_badge {
  background-image: url(../../static/images/interface/help-24px.svg);
  background-color: white;
  width: 4vh;
  height: 4vh;
  position: absolute;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 1vh;
  background-size: 55%;
  top: 19vh;
  left: 23vh;
  box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.4);
}

.walkthrough_menu_gallery {
  width: 60vh;
  font-size: 1.8vh;
  line-height: 3vh;
  background-color: white;
  border-radius: 1vh;
  /* max-height: 40vh; */
  /* overflow-y: scroll; */
  z-index: 100500;
  margin: auto;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  padding: 2.5vh 0 0vh 2.5vh;
  box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.4);
}

.scene_title_walkthrough {font-size: 2.5vh !important;padding: 0 !important;}

.close_scene_walkthrough {padding: 0 2.5vh !important;}

.walkthrough_badge:after {
    content:'';
    position:absolute;
    top:-1vh; bottom:-1vh;
    left:-1vh; right:-1vh;
}

.walkt_header {
  height: 5vh !important;
}

.walkthrough_gal_text {
  overflow-y: scroll;
  max-height: 30vh;
  padding-bottom: 2.5vh;
  padding-right: 3vh;
}

.walkt_pay_text {margin: 0.1vh !important;width: 36vh !important;height: 8vh !important;font-size: 2vh !important;line-height: 3.7vh !important;overflow-y: hidden !important;}

.walkt_pay_buttons {padding: 2vh 0 !important;}

.smol_walkt {
    width: 39vh;
}

.unpaid_walkt { overflow-y: hidden !important; }

.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
  /* background-color: #6d71fc1f; */
}

.tab-button {
  background-color: transparent;
  color: #646464; /* Серый цвет для текста */
  border: none;
  outline: none;
  cursor: pointer;
  font-family: 'AVENIR NEXT';
  padding: 3vh 4vh;
  font-size: 2.8vh;
  position: relative;
  transition: color 0.3s ease;
}

.tab-button.active,
.tab-button:hover {
  color: #6d72fd; /* Синий цвет при наведении и для активной вкладки */
  background-color: #6d71fc1f;
}

.tab-button::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0.5vh;
  background-color: #6d71fc; /* Синий цвет линии */
  bottom: 0;
  left: 50%;
  transition: width 0.3s ease, left 0.3s ease;
}

.tab-button.active::after,
.tab-button:hover::after {
  width: 100%; /* Полная ширина линии при наведении и для активной вкладки */
  left: 0; /* Смещение линии в начало кнопки */
}

/* .tab-button:focus {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}
 */

 .gallery_menu .menu_header {
  display: flex;
  font-weight: 400;
  height: 9vh;
}
