body {
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.87);
  background-color: #000000;
  font-family: Arial, Helvetica, sans-serif;
}

#app {
  width: 100%;
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  /* background: url("/assets/tile.png"); */
   background: linear-gradient(
    to bottom,
    #ffffffc5 0 33.333%,
    #003aa6c5 33.333% 66.666%,
    #d52b1ec5 66.666% 100%
  );
}

#game-container{
z-index: 1;
}

.topImage {
  position: absolute;
  top: 0;
  right: 0;
  width: 25%;
  max-width: 350px;
}

.bottomImage {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40%;
  max-width: 600px;
}

.menu {
  position: absolute;
  max-width: 450px;
  padding: 5px 5% 5px 5%;
  border-radius: 10px;
  border: 2px solid #333333;
  background-color: #333333c0;
  width: 50%;
  bottom: 0;
  transform: translate(0px, -5px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spritePosition {
  margin: 10px 0 0 10px;
  font-size: 0.8em;
}

.button {
  position: relative;
  width: 30%;
  height: 100%;
  display: flex;
  border-radius: 5%;
  flex-direction: column;
  align-items: center;

  &:hover {
    background-color: #aaaaaaf0;
  }
}

.button span {
  text-align: center;
  color: white;
}

.button img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

@media (min-width: 100px) and (max-width: 400px) {
  .button span {
    font-size: 10px;
  }
}

@media (min-width: 400px) and (max-width: 750px) {
  .button span {
    font-size: 12px;
  }
}

/* FioModal */
.fio_modal_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fio_cont {
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  border: 2px solid #333;
  background-color: #111111f0;
}

.fiotitle {
  font-weight: bold;
  margin-top: 0;
}

.field-wrap {
  margin-bottom: 15px;
}

.txtinput {
  width: 100%;
  box-sizing: border-box;
  padding: 8px;
  font-size: 16px;
}

.apply_btn {
  background: #007bff;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  cursor: pointer;
  color: white;
  transition: background 0.3s ease;
}

.apply_btn:hover {
  background: #0056b3;
}

.apply_btn_txt {
  margin: 0;
}

/* Адаптация под мобильные */
@media (max-width: 600px) {
  .fio_cont {
    width: 70%;
    height: auto;
    padding: 16px;
  }

  .center_cont2 {
    flex-direction: column;
    gap: 16px;
  }

  .frchoose_btn {
    max-width: 50%;
    aspect-ratio: 1 / 1;
  }

  .close_btn {
    top: -16px;
    right: -16px;
  }
}

/* Frames modal */

.frames_modal_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.frames_cont {
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  border: 2px solid #333;
  background-color: #111111f0;
}

.center_cont2 {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  width: 100%;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.frchoose_btn {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background-color: #333333f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.frchoose_btn:hover {
  background-color: #aaaaaa88;
}

.frchoose_img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.close_btn {
  position: relative;
  width: 40px;
  height: 40px;
  background: transparent;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: auto;
  top: -20px;
  right: -20px;
}

.close_btn:hover {
  background-color: #333333f0;
}

.close_img {
  width: 24px;
  height: 24px;
}

/* Адаптация под мобильные */
@media (max-width: 600px) {
  .frames_cont {
    width: 70%;
    height: auto;
    padding: 16px;
  }

  .center_cont2 {
    flex-direction: column;
    gap: 16px;
  }

  .frchoose_btn {
    max-width: 50%;
    aspect-ratio: 1 / 1;
  }

  .close_btn {
    top: -16px;
    right: -16px;
  }
}