html, body {
    margin: 0;
    padding-top: 27px;
    height: 0;
    overflow: scroll; /* Запрещаем прокрутку */
}
/* Отключение задержки для сенсорных экранов на iOS */
html {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0); /* Убираем подсветку при нажатии */
    touch-action: manipulation; /* Оптимизация для сенсорных экранов */
}

body {
    font-family: Arial, sans-serif;
    background-image: url('/Assets/BCK_2.png'); /* Путь к вашему изображению */
    background-size: cover; /* Изображение масштабируется, чтобы покрыть всю страницу */
    background-position: center; /* Центрируем изображение */
    background-repeat: no-repeat; /* Изображение не повторяется */
    background-attachment: fixed; /* Фон остается на месте при прокрутке */

    color: white; /* Цвет текста на фоне */
    display: flex;
    flex-direction: column; /* Размещаем элементы по вертикали */
    justify-content: center; /* Центрируем элементы по вертикали */
    align-items: center; /* Центрируем элементы по горизонтали */
    height: 100vh; /* Высота 100% окна просмотра */
    min-height: 100vh; /* Минимальная высота 100% окна */

}
#scoreDisplay {
    font-size: 40px;
    font-family: "Slackey", sans-serif;

}
h1 {
    font-size: 40px;
    font-family: "Slackey", sans-serif;
}

/* Анимация увеличения */
.counter.animate {
    transform: scale(1.5); /* Временно увеличиваем размер текста */
    color: #ff7f50; /* Меняем цвет текста */
}

/* Плавный возврат к нормальному состоянию */
.counter.animate-end {
    transform: scale(1); /* Возвращаем обычный размер */
    color: white; /* Возвращаем исходный цвет */
}

h1, .counter, .button {
    text-align: center; /* Выравниваем текст по центру */
}

.counter {
    font-size: 32px;
    margin-bottom: 20px;
    transition: transform 0.2s ease, color 0.2s ease; /* Плавная анимация изменения размера и цвета */
    
}
.counter1 {
    font-size: 72px;
    margin-bottom: 20px;
    transition: transform 0.2s ease, color 0.2s ease; /* Плавная анимация изменения размера и цвета */
}
.button {
    -webkit-tap-highlight-color: transparent; /* Убираем выделение на iOS */
    padding: 20px;
    background-image: url('/Assets/HSe_COin.png'); /* Путь к вашему изображению */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    border: none;
    width: 450px;
    height: 450px;
    cursor: pointer;
    border-radius: 10000000000000px; /* Закругляем углы, если нужно */
    color: transparent;
    outline: none;
    transition: transform 0.2s ease; /* Плавная анимация трансформации */
    touch-action: manipulation; /* Оптимизация для сенсорных устройств */
}
.CPS {
    font-size: 8vh;
    bottom: 27vh;
    align-items: center;
    position: relative;
    font-family: "Slackey", sans-serif;
}
.CPS2 {
    font-size: 8vh;
    bottom: 30vh;
    align-items: center;
    position: relative;
    font-family: "Slackey", sans-serif;
    -webkit-box-shadow: 1px 2px 39px 0px rgba(0, 0, 0, 1);
    -moz-box-shadow: 1px 2px 39px 0px rgba(0, 0, 0, 1);
    box-shadow: 1px 2px 39px 0px rgba(0, 0, 0, 1);
}
.CPS1 {
    font-size: 8vh;
    bottom: -21vh;
    align-items: center;
    position: relative;
    font-family: "Slackey", sans-serif;
    text-shadow: 6px 11px 15px rgba(0,0,0,0.95);
    
}
.CPS3 {
    font-size: 3.2vh;
    top: -3.8vh;
    align-items: center;
    position: relative;
    font-family: "Slackey", sans-serif;
    text-shadow: 6px 11px 15px rgba(0,0,0,0.95);
    z-index: 1;
}
.CPS31 {
    font-size: 4vh;
    top: -50.6vh;
    align-items: center;
    position: relative;
    font-family: "Slackey", sans-serif;
    z-index:100;
    color: #444444;
    background: #FFFFFF;
    
}
.CPS4 {
    font-size: 1.8vh;
    top: 41.8vh;
    right: 8vh;
    align-items: center;
    position: relative;
    font-family: "Slackey", sans-serif;
    z-index:100;
    
}
.CPS41 {
    font-size: 1.5vh;
    top: 46.5vh;
    left: -3.5vh;
    align-items: center;
    position: relative;
    font-family: "Slackey", sans-serif;
    z-index:100;
    
}
#priceDisplay {
    font-size: 2.2vh;
    color: white;
    position: relative;
    top: 4.6vh;
    left: -6vh;
    font-family: "Slackey", sans-serif;
    text-shadow: 6px 11px 15px rgba(0,0,0,0.95);
}
#priceDisplay2 {
    font-size: 2.2vh;
    color: white;
    position: relative;
    top: 4.6vh;
    left: -6vh;
    font-family: "Slackey", sans-serif;
    text-shadow: 6px 11px 15px rgba(0,0,0,0.95);
}
#priceDisplay3 {
    font-size: 2.2vh;
    color: white;
    position: relative;
    top: 4.6vh;
    left: -6vh;
    font-family: "Slackey", sans-serif;
    text-shadow: 6px 11px 15px rgba(0,0,0,0.95);
}
#priceDisplay4 {
    font-size: 2.2vh;
    color: white;
    position: relative;
    top: 4.6vh;
    left: -6vh;
    font-family: "Slackey", sans-serif;
    text-shadow: 6px 11px 15px rgba(0,0,0,0.95);
}
#priceDisplay5 {
    font-size: 2.2vh;
    color: white;
    position: relative;
    top: 4.6vh;
    left: -6vh;
    font-family: "Slackey", sans-serif;
    text-shadow: 6px 11px 15px rgba(0,0,0,0.95);
}
#priceDisplay6 {
    font-size: 2.2vh;
    color: white;
    position: relative;
    top: 4.6vh;
    left: -6vh;
    font-family: "Slackey", sans-serif;
    text-shadow: 6px 11px 15px rgba(0,0,0,0.95);
}
.button2 {
    -webkit-tap-highlight-color: transparent; /* Убираем выделение на iOS */
    background-image: url('/Assets/UPG_1.png'); /* Путь к вашему изображению */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: transparent;
    width: 45.7vh;
    height: 15.2vh;
    bottom: 15vh;
    outline: none;
    transition: transform 0.2s ease; /* Плавная анимация трансформации */
    touch-action: manipulation; /* Оптимизация для сенсорных устройств */
    justify-items: center;
    position: relative;
    max-height: 100%;
    min-width: 99%;
    min-height: 13%;
    max-width: 100%;
}

.button3 {
    -webkit-tap-highlight-color: transparent; /* Убираем выделение на iOS */
    background-image: url('/Assets/UPG_2.png'); /* Путь к вашему изображению */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: transparent;
    width: 45.7vh;
    height: 15.2vh;
    bottom: 14vh;
    outline: none;
    transition: transform 0.2s ease; /* Плавная анимация трансформации */
    touch-action: manipulation; /* Оптимизация для сенсорных устройств */
    justify-items: center;
    max-height: 100%;
    min-width: 99%;
    min-height: 13%;
    max-width: 100%;
    position: relative;
}
.button4 {
    -webkit-tap-highlight-color: transparent; /* Убираем выделение на iOS */
    background-image: url('/Assets/UPG_3.png'); /* Путь к вашему изображению */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: transparent;
    width: 45.7vh;
    height: 15.2vh;
    bottom: 13vh;
    outline: none;
    transition: transform 0.2s ease; /* Плавная анимация трансформации */
    touch-action: manipulation; /* Оптимизация для сенсорных устройств */
    justify-items: center;
    position: relative;
    max-height: 100%;
    min-width: 99%;
    min-height: 13%;
    max-width: 100%;
}
.button5 {
    -webkit-tap-highlight-color: transparent; /* Убираем выделение на iOS */
    background-image: url('/Assets/UPG_4.png'); /* Путь к вашему изображению */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: transparent;
    width: 45.7vh;
    height: 15.2vh;
    bottom: 12vh;
    outline: none;
    transition: transform 0.2s ease; /* Плавная анимация трансформации */
    touch-action: manipulation; /* Оптимизация для сенсорных устройств */
    justify-items: center;
    max-height: 100%;
    min-width: 99%;
    min-height: 13%;
    max-width: 100%;
    position: relative;
}
.button6 {
    -webkit-tap-highlight-color: transparent; /* Убираем выделение на iOS */
    background-image: url('/Assets/UPG_5.png'); /* Путь к вашему изображению */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: transparent;
    width: 45.7vh;
    height: 15.2vh;
    bottom: 11vh;
    outline: none;
    transition: transform 0.2s ease; /* Плавная анимация трансформации */
    touch-action: manipulation; /* Оптимизация для сенсорных устройств */
    justify-items: center;
    max-height: 100%;
    min-width: 99%;
    min-height: 13%;
    max-width: 100%;
    position: relative;
}
.button7 {
    -webkit-tap-highlight-color: transparent; /* Убираем выделение на iOS */
    background-image: url('/Assets/UPG_6.png'); /* Путь к вашему изображению */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: transparent;
    width: 45.7vh;
    height: 15.2vh;
    bottom: 10vh;
    outline: none;
    transition: transform 0.2s ease; /* Плавная анимация трансформации */
    touch-action: manipulation; /* Оптимизация для сенсорных устройств */
    justify-items: center;
    max-height: 100%;
    min-width: 99%;
    min-height: 13%;
    max-width: 100%;
    position: relative;
}


.button:active {
    transform: scale(0.9); /* Уменьшаем кнопку при нажатии */
    transition: transform 0.1s ease; /* Быстрая реакция на нажатие */
}
.button1:active {
    transform: scale(0.9); /* Уменьшаем кнопку при нажатии */
    transition: transform 0.1s ease; /* Быстрая реакция на нажатие */
}
.button2:active {
    transform: scale(0.9); /* Уменьшаем кнопку при нажатии */
    transition: transform 0.1s ease; /* Быстрая реакция на нажатие */
}
.button3:active {
    transform: scale(0.9); /* Уменьшаем кнопку при нажатии */
    transition: transform 0.1s ease; /* Быстрая реакция на нажатие */
}
.button4:active {
    transform: scale(0.9); /* Уменьшаем кнопку при нажатии */
    transition: transform 0.1s ease; /* Быстрая реакция на нажатие */
}
.button5:active {
    transform: scale(0.9); /* Уменьшаем кнопку при нажатии */
    transition: transform 0.1s ease; /* Быстрая реакция на нажатие */
}
.button6:active {
    transform: scale(0.9); /* Уменьшаем кнопку при нажатии */
    transition: transform 0.1s ease; /* Быстрая реакция на нажатие */
}
.button7:active {
    transform: scale(0.9); /* Уменьшаем кнопку при нажатии */
    transition: transform 0.1s ease; /* Быстрая реакция на нажатие */
}



.save-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #61dafb;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

/* Стиль для нижнего бара */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 1.35vh;
    border-radius: 4vh;
    width: 94%; /* Задаем ширину 100% */
    background-color: #302f2f;
    min-height: 10%;
    display: flex;
    padding: 3vh;
    max-height: 10%;
    margin-top: 100vh;
    justify-content: space-around;
    box-sizing: border-box; /* Включаем паддинги в ширину */
    -webkit-box-shadow: 4px 4px 48px 17px rgba(0, 0, 0, 0.33);
    -moz-box-shadow: 4px 4px 48px 17px rgba(0, 0, 0, 0.33);
    box-shadow: 4px 4px 48px 17px rgba(0, 0, 0, 0.33);
}

.icon {
    color: white;
    text-decoration: none;
    font-size: 24px;
}

.icon:hover {
    color: #61dafb;
}
