/* Обнуление */
@font-face {
    font-family: 'Minecraftia';
    src: url('../fonts/Minecraftia.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Russo One';
    src: url('../fonts/RussoOne-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    overflow-x: hidden !important;
    height: 100%;
    font-family: 'Russo One', Arial, sans-serif;
    scroll-behavior: smooth;
}

/* Стартовая секция */
.start-screen {
    height: 100vh;
    background: url("../images/start-page.png") no-repeat center center/cover;
    position: relative;
}

/* Затемнение + позиционирование кнопки */
.overlay {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
}

/* Кнопка прокрутки */
.scroll-button {
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 2;
}

.scroll-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Следующий блок */
.main-content {
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform;
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    margin-left: 0;
}

/* Текстура на заднем плане */
.texture-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.image-wrapper {
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100vw;
  max-height: 100vh;
  display: inline-block;
  position: relative; /* важен для позиционирования info-box */
  box-sizing: border-box;
}

.main-img {
  display: block;
  max-width: 100%;
  max-height: 100vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.info-background {
  position: absolute;
  top: 100px;
  left: 100px;
  width: 1000px;
  height: 600px;
  background-image: url("../images/info_server.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 12px;
  box-sizing: border-box;
  pointer-events: auto;
  z-index: 10;
  /* overflow-y: auto; если нужен скролл, можно добавить */
}

.info-box {
  position: absolute;
  top: 75px;
  left: 50px;
  right: 50px;
  bottom: 75px;
  color: white;
  overflow-y: auto;
  font-family: 'Russo One', Arial, sans-serif;
  padding: 20px 60px 20px 40px;
  line-height: 1.5;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
}

/* Заголовки */
.info-box h1 {
  font-family: 'Minecraftia', monospace;
  font-size: 36px;
  margin-bottom: 20px;
  text-align: center;
  text-shadow: 0 0 8px #ff70d1;
}

.info-box h2 {
  font-size: 24px;
  margin-top: 30px;
  margin-bottom: 15px;
  padding-bottom: 5px;
}

/* Абзацы */
.info-box p {
  margin-bottom: 15px;
  font-size: 16px;
}

/* Список модов */
.info-box ul {
  list-style-type: disc;
  padding-left: 0;
  margin-bottom: 20px;
}

.info-box ul li {
  margin-bottom: 10px;
  font-size: 15px;
}

/* Чтобы скролл был стилизован и не выглядел громоздко — можно добавить так (для WebKit) */
.info-box::-webkit-scrollbar {
  width: 8px;
}

.info-box::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.info-box::-webkit-scrollbar-thumb {
  background-color: #464239;
  border-radius: 4px;
}

/* Центральный текст */
.main-title {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 10px;
}

.buttons-box {
  position: absolute;
  top: 100px;   /* как у info-background, чтобы совпадало по вертикали */
  right: 100px; /* в правом верхнем углу */
  width: 400px; /* или нужная ширина */
  height: 700px; /* чтобы совпадало с высотой info-background */
  background-image: url("../images/buttons_background.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 12px;
  box-sizing: border-box;
  padding: 20px;
  display: flex;
  flex-direction: column; /* кнопки по вертикали */
  gap: 15px;
  z-index: 12; /* чуть выше info-background */
}

.custom-button {
  width: 282px;
  height: 94px;
  background: url('../images/button.png') no-repeat center center;
  background-size: contain;
  font-family: 'Minecraftia', monospace;
  font-size: 18px;
  color: white;
  text-align: center;
  line-height: 94px; /* по высоте блока для вертикального центрирования */
  cursor: pointer;
  user-select: none;
  border: none;           /* Убираем рамку */
  background-color: transparent; /* Убираем фон браузера */
  outline: none;
  text-shadow: 0 0 8px #ff70d1;
  text-decoration: none;
  padding-top: 6px;
  margin: 10px 0 0 40px; /* если нужна отступ сверху/снизу */
}

.custom-button:first-child {
  margin-top: 60px; /* твой большой отступ для первой кнопки */
}

.custom-button:hover {
  filter: brightness(1.1);
}

/* Модальное окно */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #2d2d2d;
    color: white;
    padding: 30px;
    border-radius: 10px;
    width: 400px;
    position: relative;
    font-family: 'Russo One', sans-serif;
    text-align: center;
}

.modal-content input[type="text"],
.modal-content input[type="password"],
.modal-content input[type="file"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    font-size: 16px;
    border: none;
    border-radius: 5px;
}

.modal-content .file-label {
    display: inline-block;
    margin-top: 10px;
    cursor: pointer;
    background: #444;
    padding: 10px;
    border-radius: 5px;
}

.close-btn {
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
    font-size: 22px;
}

button.file-label {
    all: unset; /* сбрасываем все дефолтные стили кнопки */
    display: inline-block;
    margin-top: 10px;
    cursor: pointer;
    background: #444;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    width: auto; /* можно убрать, если нужно */
    font-family: inherit;
    font-size: 16px;
    color: white;
}

#fileInfo,
#uploadStatus {
    margin: 10px 0;
}