body {
  cursor: default;
  cursor: url(../images/cursor.png) 2 2, default;
  margin: 0px;
  padding: 0px;
  overflow: hidden;
  background-color: black;
}
.xtest {
  position: relative;
  color: #fff;
  text-align: center;
  width: 3.5vh;
  height: 3.5vh;
  display: block;
  background-size: cover;
  background-position: center;
}
.xtest2 {
  width: 100%;
  height: 3.5vh;
  position: absolute;
  top: 0;
  background-size: cover;
  background-position: center;
  display: none;
}
.xtest:after {
  position: absolute;
  font-size: 1.6vh;
  top: 0;
  left: 110%;
  line-height: 3.7vh;
  color: #fff;
  font-family: arial;
}
.bkg:hover .xtest:after {
  color: #fff !important;
}
.bkg:hover .xtest2 {
  display: block;
}
.bkg:hover .bkg2 {
  -webkit-filter: brightness(150%);
          filter: brightness(150%);
  -ms-filter: brightness(150%);
}
#fullscreen .xtest {
  background-image: url(../images/how_btn_fullscreen.png);
}
#fullscreen .xtest2 {
  background-image: url(../images/how_btn_fullscreen.png);
}
#effect3d {
  z-index: 50;
  position: absolute;
  top: 0;
  width: 100%;
  height: 4vh;
  background: url(../images/1px_back.png) repeat-x;
  background-size: 1px 100%;
}
#gradient {
  background: rgb(0,0,0);
  background: linear-gradient(90deg, rgba(0,0,0,0.4) 0%, rgba(255,255,255,0) 50%, rgba(0,0,0,0.4) 100%);
}
#buttonscontainer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  left: 0;
  height: 3.5vh;
  z-index: 100;
  position: absolute;
  padding: 0 20px;
  box-sizing: border-box;
}

.header_links_left,
.header_links_right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: white;
  flex: 1;
  min-width: 0;
}

.header_links_left {
  justify-content: flex-start;
}

.header_links_right {
  justify-content: flex-end;
}

.header_links_left a,
.header_links_right a {
  color: white;
  text-decoration: none;
  white-space: nowrap;
}

.header_links_left a:hover,
.header_links_right a:hover {
  opacity: 0.7;
}

.header_links_left .separator,
.header_links_right .separator {
  color: white;
}

.header_age_text {
  font-size: 12px;
  color: white;
  white-space: nowrap;
}

.header_age_text a {
  color: white;
  text-decoration: none;
}

.header_age_text a:hover {
  opacity: 0.7;
}

@media (max-width: 767px) {
  .game_logo {
    /*background: url(../images/title.png);*/
    background-size: contain;
    background-repeat: no-repeat;
    width: 300px;
    height: 100px;
    left: 20px;
    z-index: 2;
    position: absolute;
    top: 70px;
	  background-position: left center;
  }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .game_logo {
    /*background: url(../images/title.png);*/
    background-size: contain;
    background-repeat: no-repeat;
    width: 400px;
    height: 120px;
    left: 20px;
    z-index: 2;
    position: absolute;
    top: 70px;
	background-position: left center;
  }
}
@media (min-width: 1200px) and (max-width: 1980px) {
  .game_logo {
    /*background: url(../images/title.png);*/
    background-size: contain;
    background-repeat: no-repeat;
    width: 500px;
    height: 150px;
    left: 20px;
    z-index: 2;
    position: absolute;
    top: 70px;
	background-position: left center;
  }
}
@media (min-width: 1980px) {
  .game_logo {
    /*background: url(../images/title.png);*/
    background-size: contain;
    background-repeat: no-repeat;
    width: 600px;
    height: 180px;
    left: 20px;
    z-index: 2;
    position: absolute;
    top: 70px;
	background-position: left center;
  }
}
.emscripten {
  padding-right: 0px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  z-index: 8;
  height: 100%;
  width: 100%;
  position: absolute;
}
canvas.emscripten {
  border: 0px solid black;
  overflow: hidden;
}
textarea.emscripten {
  font-family: monospace;
  width: 80%;
}
div.emscripten {
  text-align: center;
}
input {
  outline: none;
  z-index: 100500;
}
input:focus {
  outline: 0;
}
textarea {
  outline: none;
  z-index: 100500;
}
textarea:focus {
  outline: 0;
}
div#input_holder {
  top: 0px;
  left: 0px;
  border: none;
}
p {
  font-family: "Arial";
  font-size: 1em;
  font-weight: 400;
}
@font-face {
  font-family: 'NeoSansCyr-Bold';
  src: url('../fonts/NeoSansCyr-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

p#loading_text {
  margin: 0px !important;
  color: #eacc8a;
}
#loading_progress_text {
  position: fixed;
  bottom: 100px;
  left: 0;
  width: 100%;
  text-align: center;
  color: white;
  font-family: 'NeoSansCyr-Bold', Arial, sans-serif;
  font-size: 24px;
  z-index: 3;
  display: block;
  visibility: visible;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}
#loading_progress_text .loading-dots {
  display: inline-block;
  width: 0.6em;
  text-align: left;
}
div#elem_loading_error {
  text-align: center;
  color: rgb(250, 183, 0);
  position: absolute;
  width: 600px;
  top: 52vh;
  max-width: calc(96% - 20px);
  left: 2%;
  display: block;
  background: #0000007a;
  font-size: 30px;
  margin: auto;
  display: none;
  padding: 10px;
}
@media(min-width:600px) {
  div#elem_loading_error {
    left: calc(50% - 300px);
  }
}
div#elem_loading {
  width: 100%;
  text-align: center;
  margin-top: 0.5vh;
  position: relative;
  z-index: 3;
}
div#elem_loading_bar {
  width: 0%;
  height: calc(100% - 2px);
  position: relative;
  background: #3599E9;
  transition: width 0.1s linear;
  border-radius: 3px;
  margin: 1px;
  z-index: 4;
}
div#elem_loading_bar_bg {
  width: 95%;
  position: fixed;
  bottom: 70px;
  left: 2.5%;
  z-index: 3;
}
.loading-progress-bar {
  width: 100%;
  height: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}
.game_contentdiv {
  top: 3.5vh;
  left: 0px;
  width: 100%;
  height: 96.5vh;
  overflow: hidden;
  position: absolute;
  border: none;
  margin-top: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000000;

  /* disable select */
  -webkit-touch-callout: none; /* iOS Safari */
  -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, Edge, Opera and Firefox */
}
.bkg {
  height: 3.5vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.bkg2 {
  position: absolute;
  height: 100%;
  width: calc(50% + 5.5vh);
  left: calc(50% - 5.5vh);
}
@media (max-width: 1200px) {
  .header_age_text {
    display: none;
  }
}

@media (max-width: 800px) {
  #effect3d {
    width: 100%;
    left: 0%;
  }
  #buttonscontainer {
    width: 100%;
    left: 0;
    padding: 0 10px;
  }
  .header_links_left,
  .header_links_right {
    font-size: 10px;
    gap: 5px;
  }
  .header_links_left a,
  .header_links_right a {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  color: rgba(0, 0, 0, 0.3);
}
input::-moz-placeholder,
textarea::-moz-placeholder {
  color: rgba(0, 0, 0, 0.3);
}
input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
  color: rgba(0, 0, 0, 0.3);
}
input:-moz-placeholder,
textarea:-moz-placeholder {
  color: rgba(0, 0, 0, 0.3);
}
:-webkit-full-screen {
  background: black;
}
:-moz-full-screen {
  background: black;
}
:-webkit-full-screen#contentdiv {
  width: 100vw;
  height: 100vh;
  left: 0;
  top: 0;
  margin-top: 0;
  background-size: cover;
}
:-moz-full-screen#contentdiv {
  width: 100vw;
  height: 100vh;
  left: 0;
  top: 0;
  margin-top: 0;
  background-size: cover;
}
:-webkit-full-screen .emscripten {
  height: 100vh;
}
:-moz-full-screen .emscripten {
  height: 100vh;
}
:-webkit-full-screen #safarifix {
  display: none;
}
:-moz-full-screen #safarifix {
  display: none;
}
:-webkit-full-screen #buttonscontainer {
  display: none;
}
:-moz-full-screen #buttonscontainer {
  display: none;
}

@media (max-width: 600px) and (min-height: 701px) {
  .xtest:after {
    font-size: 1.4vh;
  }
}
@media (max-width: 550px) and (max-height: 350px) {
  .bkg {
    height: 5vh;
  }
  .xtest {
    width: 5vh;
    height: 5vh;
  }
  .xtest2 {
    height: 5vh;
  }
  .xtest:after {
    font-size: 2vh;
    line-height: 5vh;
  }
}
@media (max-width: 480px) and (max-height: 700px) and (min-height: 351px) {
  #effect3d {
    width: 100%;
    left: 0%;
  }
  #buttonscontainer {
    width: 100%;
    left: 0;
    padding: 0 5px;
  }
  .header_links_left,
  .header_links_right {
    font-size: 9px;
    gap: 3px;
  }
  .header_age_text {
    font-size: 9px;
  }
  .xtest:after {
    font-size: 1.2vh;
  }
}
.please-wait-bkg {
  display: none; /* Hidden by default, use 'flex' to show */
  position: fixed;
  z-index: 9;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
  align-items: center;
  justify-content: center;
}
.please-wait-content {
  background-color: #fefefe;
  padding: 15px;
  border: 3px solid #888;
  width: 400px;
  border-radius: 20px;
  text-align: center;
}
.please-wait-noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -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, Edge, Opera and Firefox */
}
.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -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, Edge, Opera and Firefox */
}
.play_button {
  font-weight: bold;
  font-size: xx-large;
  color: black !important;
  background: rgb(80, 176, 250);
  border: none;
  height: 60px;
  width: 300px;
  top: 40px;
  position: relative;
  display:inline-block;
  border-radius:20px;
}
.play_button:hover {
  background: rgb(120, 216, 250);
}

.launch-step-text {
  position: fixed; /* Positions relative to the viewport */
  bottom: 30px; /* Position below progress bar (which is at bottom: 70px) */
  left: 0;
  width: 100%;
  text-align: center; /* Center the text */
  color: white;
  font-family: sans-serif;
  font-size: 20px;
  background: none; /* Remove background */
  padding: 0;
  border-radius: 0;
}
/* Age Verification Modal */
#age_verification_modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 3.5vh;
  width: 100%;
  height: calc(100% - 3.5vh);
  background-color: transparent;
  overflow-x: hidden;
  overflow-y: hidden;
}

#age_verification_modal.show {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 20px;
  padding-bottom: 20px;
}

.age_modal_wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: auto;
  max-width: 90vw;
  max-height: calc(100vh - 3.5vh - 40px);
  margin-top: 0;
  margin-right: 20px;
  margin-bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 10px;
  padding: 10px;
  box-sizing: border-box;
}

.age_modal_content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  max-width: 600px;
  width: 100%;
  margin: 0;
  padding: 10px;
  color: white;
  min-height: min-content;
  box-sizing: border-box;
}

.age_modal_lock {
  width: 80px;
  height: 80px;
  margin: 0 auto 30px;
  position: relative;
}

.age_modal_lock::before {
  content: "";
  position: absolute;
  width: 40px;
  height: 25px;
  border: 6px solid white;
  border-radius: 20px 20px 0 0;
  border-bottom: none;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.age_modal_lock::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 35px;
  background: white;
  border-radius: 5px;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
}

.age_modal_title {
  font-size: 48px;
  font-weight: bold;
  margin: 0 0 20px 0;
  letter-spacing: 2px;
  color: white;
  font-family: Arial, sans-serif;
}

.age_modal_subtitle {
  font-size: 20px;
  margin: 0 0 40px 0;
  color: white;
  font-family: Arial, sans-serif;
}

.age_modal_button {
  background: linear-gradient(135deg, #ff3366 0%, #ff5588 100%);
  color: white;
  border: none;
  padding: 20px 60px;
  font-size: 32px;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  margin: 0 0 10px 0;
  width: 100%;
  max-width: 500px;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: Arial, sans-serif;
}

.age_modal_button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 51, 102, 0.4);
}

.age_modal_button_subtitle {
  display: block;
  font-size: 16px;
  font-weight: normal;
  margin-top: 5px;
  opacity: 0.9;
}

.age_modal_reject {
  display: block;
  color: white;
  text-decoration: underline;
  font-size: 16px;
  margin: 30px 0 40px 0;
  cursor: pointer;
  font-family: Arial, sans-serif;
}

.age_modal_reject:hover {
  opacity: 0.8;
}

.age_modal_disclaimer {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  text-align: left;
  margin: 0 auto;
  width: 100%;
  max-width: 500px;
  font-family: Arial, sans-serif;
}

.age_modal_disclaimer p {
  margin: 15px 0;
  font-size: 14px;
}

.age_modal_footer {
  width: 100%;
  padding: 20px;
  font-size: 12px;
  line-height: 1.0;
  color: white;
  text-align: center;
  font-family: Arial, sans-serif;
  background-color: transparent;
  flex-shrink: 0;
  box-sizing: border-box;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.age_modal_footer p {
  margin: 4px 0;
  font-size: 12px;
}

.age_modal_footer_links {
  margin-bottom: 15px !important;
}

.age_modal_footer a {
  color: white;
  text-decoration: underline;
  font-size: 12px;
}

.age_modal_footer a:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .age_modal_wrapper {
    max-width: 95vw;
    margin-right: 10px;
    padding: 15px;
  }
  
  .age_modal_content {
    padding: 15px 10px;
    max-width: 100%;
  }
  
  .age_modal_title {
    font-size: 32px;
  }
  
  .age_modal_subtitle {
    font-size: 16px;
  }
  
  .age_modal_button {
    font-size: 24px;
    padding: 15px 40px;
  }
  
  .age_modal_lock {
    width: 60px;
    height: 60px;
  }
  
  .age_modal_lock::before {
    width: 30px;
    height: 20px;
    border-width: 5px;
  }
  
  .age_modal_lock::after {
    width: 40px;
    height: 28px;
  }
  
  .age_modal_footer {
    padding: 15px 10px;
  }
}
