/* Общие стили для body и html */
@font-face {
    font-family: 'Inter-Bold';
    src: url('Inter-Bold.ttf') format('truetype');
    font-weight: bold;
}

@font-face {
    font-family: 'Orbitron-Bold';
    src: url('Orbitron-Bold.ttf') format('truetype');
    font-weight: bold;
}

@font-face {
    font-family: 'Orbitron-SemiBold';
    src: url('Orbitron-SemiBold.ttf') format('truetype');
    font-weight: 600;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  border: 0px none;
  position: relative;
  overflow: hidden; /* Убираем скроллбар */
  background: url('background.jpg') no-repeat center center;
  background-size: cover;
}

/* Контейнер Unity */
#unity-container {
  position: absolute;
  width: 100%;
  height: 100%;
}

/* Стили для десктопа */
#unity-container.unity-desktop {
  height: 100%;
  margin: 0px;
  padding: 0px;
  border: 0px;
  position: relative;
}

/* Стили для мобильных устройств */
#unity-container.unity-mobile {
  width: 100%;
  height: 100%;
}

/* Canvas с фоновым изображением */
#unity-canvas {
  width: 100%;
  height: 100%;
}

.main-section {
    position: absolute;
    top: 120px; /* Увеличил с 80px до 120px (+50%) */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    max-width: 100%;
    padding: 0 20px;
    z-index: 10;
    transition: opacity 0.5s ease-out;
}

.main-section.hidden {
    opacity: 0;
    pointer-events: none;
}

.main-title {
    font-family: 'Inter-Bold', Arial, sans-serif;
    font-size: 60px;
    color: #FEFEFE;
    font-weight: bold;
    line-height: 1.1;
}

.logo {
    max-width: 200px;
    height: auto;
}

.grabscape-title {
    font-family: 'Orbitron-Bold', Arial, sans-serif;
    font-size: 80px;
    color: #D49A14;
    font-weight: bold;
    line-height: 1;
    letter-spacing: 2px;
}

.battler-title {
    font-family: 'Orbitron-SemiBold', Arial, sans-serif;
    font-size: 54px;
    color: #FFF9EB;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 1px;
}

/* Загрузочный бар */
#unity-loading-bar {
  position: absolute;
  left: 50%;
  top: 86%;
  transform: translateX(-50%);
  display: none;
  width: 90%; /* Задаем ширину в процентах для адаптивности */
  max-width: 535px; /* Максимальная ширина для больших экранов */
}

/* Прогресс-информация */
#unity-progress-info {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  color: white;
  font-family: sans-serif;
  font-weight: bold;
  text-align: center;
  font-size: 14px;
  line-height: 20px;
}

#unity-progress-info div + div {
  margin-top: 6px;
  font-size: 12px;
  line-height: 18px;
}

/* Footer */
#unity-footer {
  position: relative;
}

.unity-mobile #unity-footer {
  display: none;
}

/* Логотип WebGL */
#unity-webgl-logo {
  float: left;
  width: 204px;
  height: 38px;
  background: url('webgl-logo.png') no-repeat center;
}

/* Заголовок сборки */
#unity-build-title {
  float: right;
  margin-right: 10px;
  line-height: 38px;
  font-family: arial;
  font-size: 18px;
}

/* Кнопка полноэкранного режима */
#unity-fullscreen-button {
  float: right;
  width: 38px;
  height: 38px;
  background: url('fullscreen-button.png') no-repeat center;
}

/* Предупреждение */
#unity-warning {
  position: absolute;
  left: 50%;
  top: 5%;
  transform: translate(-50%);
  background: white;
  padding: 10px;
  display: none;
}

@media only screen 
	and (min-width: 375px)
	and (orientation: portrait) {
	.main-section {
        top: 5%; /* Увеличил с 60px до 90px (+50%) */
        gap: 14px;
    }

    .main-title {
        font-size: 18px;
    }

    .logo {
        max-width: 40px;
    }

    .grabscape-title {
        font-size: 16px;
    }

    .battler-title {
        font-size: 20px;
    }	
}

@media only screen 
	and (min-width: 375px)
	and (orientation: landscape) {
	.main-section {
        top: 40px; /* Увеличил с 60px до 90px (+50%) */
        gap: 9px;
    }

    .main-title {
        font-size: 34px;
    }

    .logo {
        max-width: 40px;
    }

    .grabscape-title {
        font-size: 26px;
    }

    .battler-title {
        font-size: 20px;
    }
}

@media only screen 
	and (min-width: 768px)
	and (orientation: landscape) {
	.main-section {
        top: 40px; /* Увеличил с 60px до 90px (+50%) */
        gap: 9px;
    }

    .main-title {
        font-size: 34px;
    }

    .logo {
        max-width: 40px;
    }

    .grabscape-title {
        font-size: 26px;
    }

    .battler-title {
        font-size: 20px;
    }
}
@media only screen 
	and (min-width: 768px)
	and (orientation: portrait) {
	.main-section {
        top: 12%; /* Увеличил с 60px до 90px (+50%) */
        gap: 18px;
    }

    .main-title {
        font-size: 48px;
    }

    .logo {
        max-width: 120px;
    }

    .grabscape-title {
        font-size: 64px;
    }

    .battler-title {
        font-size: 60px;
    }	
}
@media only screen 
	and (min-width: 1024px)
	and (orientation: landscape) {
	.main-section {
        top: 40px; /* Увеличил с 60px до 90px (+50%) */
        gap: 18px;
    }

    .main-title {
        font-size: 34px;
    }

    .logo {
        max-width: 40px;
    }

    .grabscape-title {
        font-size: 26px;
    }

    .battler-title {
        font-size: 20px;
    }	
}
	
@media only screen 
	and (min-width: 1024px)
	and (orientation: portrait) {
	.main-section {
        top: 40px; /* Увеличил с 60px до 90px (+50%) */
        gap: 18px;
    }

    .main-title {
        font-size: 34px;
    }

    .logo {
        max-width: 40px;
    }

    .grabscape-title {
        font-size: 26px;
    }

    .battler-title {
        font-size: 20px;
    }
}

@media only screen 
	and (min-width: 1200px)
	and (orientation: portrait) {
	.main-section {
        top: 40px; /* Увеличил с 60px до 90px (+50%) */
        gap: 18px;
    }

    .main-title {
        font-size: 34px;
    }

    .logo {
        max-width: 40px;
    }

    .grabscape-title {
        font-size: 26px;
    }

    .battler-title {
        font-size: 20px;
    }
}
	
	
@media only screen 
	and (min-width: 1200px)
	and (orientation: landscape) {
	.main-section {
        top: 40px; /* Увеличил с 60px до 90px (+50%) */
        gap: 18px;
    }

    .main-title {
        font-size: 34px;
    }

    .logo {
        max-width: 40px;
    }

    .grabscape-title {
        font-size: 26px;
    }

    .battler-title {
        font-size: 20px;
    }	
}	
	
/* Medium devices (tablets, 768px and up) 
@media (min-width: ) { ... }



Large devices (desktops, 992px and up) 
@media (min-width: ) { ... }

 Extra large devices (large desktops, 1200px and up) 
@media (min-width: 1200px) { ... }

*/
