/* /////////////////////////////////////////////////////////////////// */
*, ::before, ::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

button {
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
}

@font-face {
  font-family: Minecraftia;
  src: url(data:font/truetype;base64,[encoded data, 24316 characters]);
}
/* /////////////////////////////////////////////////////////////////// */
html {
  font: 12pt "Minecraftia", sans-serif;
}

body {
  height: 100vh;
  /*display: flex;*/
  /*justify-content: center;*/
  /*align-items: center;*/
  /*flex-direction: column;*/
  background-color: #fff;
  /*background-image: url("https://i.ibb.co/bH3JY30/IE1G7Lr.png");*/
  background-image: url(img/background.gif);
  backdrop-filter: blur(5px);
  background-size: cover;
  background-position: center;
  /*position: relative;*/
}

.page {
  position: relative;
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header {
  display: inline-block;
  width: fit-content;
}

.logo {
  display: inline-block;
  max-width: 700px;
  max-height: 84px;
}

.logo__img {
  width: 100%;
  max-width: 700px;
  height: auto;
}

/* Minecraft Style Menu */
.menu {
  --btn-size: 30pt;
  display: flex;
  flex-direction: column;
  margin-top: 15%;
}

.button {
  width: 400px;
  height: 40px;
}

.menu .double {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  grid-template-areas: "left right";
  grid-gap: 8px;
}

/* Minecraft Style Button */
.button {
  height: var(--btn-size);
  width: calc(var(--btn-size) * 10);
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
  /** background: #999 url("https://i.ibb.co/rb2TWXL/bgbtn.png") center/cover; **/
  background: #999 url(img/button.png);
  image-rendering: pixelated;
  border: 2px solid #000;
  margin-top: 8px;
  /* Mouse over */
  /* Button title */
  /* Others */
}
.button:hover .title {
  background-color: rgba(100, 100, 255, 0.45);
  text-shadow: 2px 2px #202013CC;
  color: #FFFFA0;
  cursor: pointer;
}
.button:active .title {
  box-shadow: inset -2px -4px #0004, inset 2px 2px #FFF5;
}
.button .title {
  width: 100%;
  height: 100%;
  padding-bottom: 0.3em;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #DDD;
  text-shadow: 2px 2px #000A;
  box-shadow: inset -2px -4px #0006, inset 2px 2px #FFF7;
}

.button.lang img {
  width: 26px;
  height: 26px;
}
.button.lang .title {
  padding-bottom: 0;
}

.button.full.lang {
  width: 40px;
  height: 40px;
}

.menu__wrapper .button {
  max-width: 196px;
}

.menu__wrapper .button:nth-child(1) {
  position: relative;
  left: -6px;
}

.menu__wrapper .button:nth-child(2) {
  margin-right: 8px;
}

.menu__wrapper {
  display: flex;
  position: relative;
  right: 40px;
}

.popup {
  width: 480px;
  height: 320px;
  /*padding: 20px;*/
  /*border-radius: 5px;*/
  outline: 4px solid white;
  max-width: 500px;
  position: relative;
  border: 10px solid darkgrey;
}

.popup__content {
  position: relative;
  /*margin: 15px;*/
  /*background: green;*/
  /*width: calc(100% - 30px);*/
  /*border: 2px solid wheat;*/
  /*height: 300px;*/
  /*max-height: 300px;*/
  /*overflow-y: auto;*/
  max-height: 300px;
  height: 100%;
  padding-right: 20px; /* Добавляем отступ справа для эффекта парения */
  box-shadow: inset -5px 0 5px -5px rgba(0,0,0,0.2); /* Тень внутри справа для визуального отделения скроллбара */
  z-index: 1000;
  overflow: hidden;
  /*white-space: ;*/
}



.popup::-webkit-scrollbar {
  width: 15px;
  position: absolute;
  right: 40px;

  /*margin-left: 15px;*/
}

/* Track */
.popup::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
.popup::-webkit-scrollbar-thumb {
  background: #888;
}

/* Handle on hover */
.popup::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.overlay {
  /*display: block;*/
  /*position: fixed;*/
  /*top: 0;*/
  /*left: 0;*/
  /*width: 100%;*/
  /*height: 100%;*/
  /*background: rgba(0, 0, 0, 0.6);*/
  /*z-index: 100;*/
  /*display: flex;*/
  /*justify-content: center;*/
  /*align-items: center;*/
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.foo {
  position: relative;
  width: 100%;
  height: 30px;
  margin-top: 15px;
  background: #FFFFA0;
  z-index: 20000;
}

.popup__background_dirt {
  position: fixed;
  max-width: 460px;
  max-height: 300px;
  width: 100%;
  height: 100%;
  z-index: 2;
  /*background: #FFFFA0;*/
  background-size: contain;
  background: rgba(0, 0, 0, 1) url(img/background__dirt.jpg);

}

.popup__background_dirt:after {
  position: absolute;
  content: "";
  background-color: rgba(0,0,0,0.4);
  width: 100%;
  height: 100%;
  z-index: 3;
}

.popup__text {
  position: relative;
  z-index: 4;
  color: #f1f1f1;
}

.popup__close {
  width: 40px;
  height: 40px;
  position: absolute;
  top: -55px;
  right: -55px;
  background: url(img/popup__button_close.png);
  background-size: contain;
}

.popup__close:hover {
  cursor: pointer;
  opacity: 0.3;
}

.hidden {
  display: none;
}

#singleplayer {
  /*display: block;*/
  /*background: red;*/
}
#multiplayer {

}
#realms {

}
#options {

}