html {
    height: 100%;
}
body {
    margin: 0;
    background-color: #94c0f3;
    overflow: hidden;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: url('../assets/bg.jpg');
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
canvas {
    -webkit-tap-highlight-color: transparent;
    background: #dddfcd;
    display: block;
    margin: auto;
}
#animation_container {
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

* {
    box-sizing: border-box;
}
html, body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: sans-serif;
    background-color: #000;
    color: #fff;
}
canvas {
    display: block;
    margin: 0 auto;
}

@font-face {
    font-family: 'InkFree'; /* Choose a name for your font */
    src: url('../assets/fonts/Inkfree.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Ink Free';
    src: url(../assets/fonts/Inkfree.ttf);
}

#fnt {
    font-family: 'Ink Free';
    color: red;
    position: absolute;
    top: 0;
    z-index: 9999;
    /* display: none; */
}

/* DOM overlay container */
#dom_overlay_container {
    pointer-events: none;
    overflow: hidden;
    position: absolute;
    left: 0;
    top: 0;
    width: 540px;
    height: 960px;
    z-index: 10;
}

/* Loader overlay with fade transitions */
.loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.loader-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

.loader-text {
    color: white;
    font-family: sans-serif;
    font-size: 1.2em;
    margin-bottom: 20px;
}

#progress_bar_wrapper {
    width: 60%;
    height: 16px;
    background: #222;
    border-radius: 8px;
    overflow: hidden;
}

#progress_bar {
    width: 0%;
    height: 100%;
    background: #4caf50;
    transition: width 0.3s ease;
}

/* Disclaimer block */
#disclaimer {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    text-align: center;
    z-index: 99;
    color: white;
    font-family: sans-serif;
    display: flex;
    justify-content: center;
}

#disclaimer #window {
    position: absolute;
    /* bottom: 140px; */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 1000px;
    width: 90%;
    background-color: rgba(0, 0, 0, 1.0);
    padding: 30px;
    border-radius: 10px;
    color: rgb(209, 209, 209);
    font-size: 1.2em;
    text-align: center;
    z-index: 99;
}

#disclaimer h2:first-child {
    font-weight: bold;
    font-size: 2em;
    margin-bottom: 10px;
    color: #7c2020;
}

#disclaimer-btn {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #222;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.3em;
    transition: background-color 0.2s ease;
}

#disclaimer button:hover {
    background-color: #444;
}

/* #disclaimer-lang-switcher, */
#disclaimer-lang {
    position: absolute;
    top: 10px;
    left: 10px;
    margin-top: 7;
    padding: 5 10px;
    background-color: #222;
    color: #aaa;
    border: 1px solid #666;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8em;
    transition: background-color 0.2s ease;
}

#disclaimer-lang-switcher {
  /* margin-top: 20px; */
  position: absolute;
  top: 10px;
  left: 10px;
}

#lang-select {
  padding: 5px;
  font-size: 16px;
}

.overlay {
  position: fixed; /* Фиксированное позиционирование, чтобы оставался на месте */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Полупрозрачный черный фон */
  display: flex; /* Для центрирования контента */
  justify-content: center; /* Центрирование по горизонтали */
  align-items: center; /* Центрирование по вертикали */
  z-index: 1000; /* Чтобы оверлей был поверх игры */
  color: white;
  font-size: 3em; /* Большой размер текста */
  text-align: center;
  cursor: pointer; /* Показывает, что элемент можно нажать */
}

#pause-overlay h1,
#pause-overlay p {
  margin: 0;
}

.overlay-content {
  padding: 20px;
}