:root {
  color-scheme: light only;
}

/* Для всех элементов на странице */
* {
  scrollbar-width: none;
  /* Firefox */
}

/* Для WebKit-браузеров (Chrome, Safari, Edge) */
*::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* Выделение текста */
::selection {
  background-color: rgba(139, 202, 0, 0.5);
  color: #8bca00;
}

/* Запрет выделения */
button,
img {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

html {
  --width: 480;
  --height: 800;
  --width_px: 480px;
  --height_px: 800px;

  --aspect_ratio: calc(var(--width) / var(--height));
  --max_width: min(var(--width_px), 100vw, calc(100vh * var(--aspect_ratio)));
  --max_height: min(var(--height_px),
      100vh,
      calc(var(--max_width) / var(--aspect_ratio)));
}

/* Основные стили для html и body */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  justify-content: center;
}

.game {
  width: var(--max_width);
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gameBackground {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-image: url(/ghfimage/background/0.jpg);
  background-color: black;
  background-repeat: no-repeat;
  background-position-x: center;
  background-position-y: bottom;
  background-size: cover;
  border: none;
  border-radius: 0;
  z-index: -999;
}

/* Контейнер загрузки */
.loadingContainer {
  background-color: #add8e600;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: auto;
  position: absolute;
  z-index: -999;
  width: 100%;
  height: 100%;
}

/* Логотип загрузки */
.loadingLogoImage {
  width: 100%;
  height: auto;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

/* Текст загрузки */
.loadingTextImage {
  width: 100%;
  height: auto;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

/* Кнопка обновления загрузки */
.loadingReloadImage {
  width: 30%;
  max-width: 150px;
  opacity: 0.5;
  cursor: pointer;
  user-select: none;
}

/* Канвас */
.ghfCanvas {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 0;
  pointer-events: none;
}

.authContainer {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: scroll;
}

.authLogoImageContainer {
  width: 100%;
  min-height: calc(300px * var(--sc));
  display: flex;
  justify-content: center;
  align-items: center;
}

.authLogoImage {
  max-width: 80%;
  max-height: 80%;
}

.authButton {
  width: 80%;
  height: calc(80px * var(--sc));
  margin-bottom: calc(10px * var(--sc));
  box-sizing: border-box;
  border-image: url("/ghfimage/windows/7.png") 60 90 60 90 fill;
  border-width: calc(20px * var(--sc));
  border-style: solid;
  border-image-repeat: stretch;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: calc(26px * var(--sc));
  font-family: "Angry";
  color: #356200;
  position: relative;
}

.authButtonInput {
  border-image: url("/ghfimage/inputs/input3.png") 120 120 130 125 fill;
}

/* Поля ввода логина и пароля */
.inputLogin,
.inputPass {
  width: 100%;
  height: 100%;
  background-clip: text !important;
  color: #356200 !important;
  -webkit-text-fill-color: #356200 !important;
  border: none !important;
  outline: none !important;
  /*font-size: calc(26px * var(--sc)) !important;*/
  transform: scale(calc(2 * var(--sc)));
  text-align: center !important;
  font-family: "Angry";
}

.authShowPassword {
  width: calc(30px * var(--sc));
  height: calc(30px * var(--sc));
  position: absolute;
  right: calc(-20px * var(--sc));
  background-image: url("/ghfimage/icons/semechka.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.authButtonActive:active,
.authShowPassword:active {
  opacity: 0.8;
}