body {
    font-family: 'Press Start 2P', cursive;
    margin: 0;
    padding: 0;
    background-color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
  
}
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    50% { border-color: transparent; }
}

.typewriter {
    overflow: hidden;
    border-right: 2px solid #ffffff; /* Курсор */
    white-space: pre-wrap; /* Для поддержания переносов строк */
    animation: blink 1s step-end infinite;
}
#typewriter-text {
    font-size: 36px; /* Увеличиваем размер шрифта */
    max-width: 50%; /* Текст будет занимать 50% ширины экрана */
    margin: 40px auto; /* Отступ сверху и снизу от прогресс-бара и других элементов */
    line-height: 1.2; /* Увеличиваем межстрочное расстояние для лучшей читаемости */
    white-space: pre-wrap; /* Позволяем переносу текста с сохранением пробелов и переносов строк */
    word-wrap: break-word; /* Текст красиво переносится при достижении максимальной ширины */
    text-align: left; /* Текст будет выравниваться по левому краю */
}


.hidden { 
    display: none; 
}

.container {
    width: 80%;
    max-width: 1200px;
    background-color: #ffffff;
    padding: 20px;
    margin: 0 auto; /* Центровка по горизонтали */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    flex: 1;
}

header {
    text-align: center;
    margin-bottom: 20px;
    background-color: #110A0A;
    padding: 10px;
    border-radius: 5px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.left-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 1em;
}

.enter-btn {
    background-color: #04EF01;
    border: 2px solid #04EF01;
    color: black;
    font-family: 'VT323', monospace;
    font-size: 24px;
    padding: 15px 30px;
    margin-top: 20px;
    cursor: pointer;
    pointer-events: auto; /* Делаем кнопку кликабельной сразу */
    transition: none; /* Убираем возможные анимации, которые могут мешать клику */
}

.enter-btn:hover {
    background-color: #04EF01;
}


.left-buttons span {
    margin-right: 10px;
}

.top-bar a, .popup-button {
    color: #04EF01;
    text-decoration: none;
    font-weight: 500;
    font-family: 'Press Start 2P', cursive;
    border: none;
    font-size: 1em;
    background: none;
    cursor: pointer;
}

.right-button {
    margin-left: auto;
    color: #04EF01;
    font-family: 'Press Start 2P', cursive;
}

.popup-button {
    white-space: nowrap;
    padding: 5px 10px;
}

.address {
    font-weight: 500;
    font-family: 'Press Start 2P', cursive;
    font-size: 1.1em;
    margin-top: 10px;
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #04EF01;
}

.profile {
    text-align: center;
    margin-bottom: 20px;
}

.profile img.centered-image {
    max-width: 65%;
    height: auto;
    display: block;
    margin: 0 auto;
}

#amount {
    font-size: 3.5em;
    color: #04EF01;
    font-family: 'Press Start 2P', cursive;
    background-color: #110A0A;
    padding: 30px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.items {
    display: flex;
    flex-wrap: wrap;
    font-family: 'Press Start 2P', cursive;
    justify-content: center;
    gap: 20px;
}

.item {
    background-color: #fff;
    border: 1px solid #ddd;
    font-family: 'Press Start 2P', cursive;
    border-radius: 5px;
    width: 200px;
    padding: 10px;
    text-align: center;
}

.item img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border-radius: 5px;
}

.item-details {
    margin: 10px 0;
}

.item-name {
    display: block;
    font-size: 1.1em;
    margin-bottom: 5px;
    color: #000;

}
.item {
    position: relative; /* Устанавливаем родителю относительное позиционирование */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Разделяет контент по вертикали */
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 200px;
    padding: 10px;
    text-align: center;
}

.button-group {
    position: absolute; /* Устанавливаем позиционирование для кнопок */
    bottom: 10px; /* Отступ от нижней границы */
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 10px; /* Отступы внутри кнопок */
}
.item-details {
    margin-bottom: 60px; /* Добавляем больше пространства между названием, ценой и кнопками */
}


.item-price {
    color: #888;
    font-size: 0.9em;
}

.button-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

button, .item-quantity {
    background-color: #04EF01;
    color: #110A0A;
    border: none;
    padding: 10px 0;
    font-family: 'Press Start 2P', cursive;
    text-align: center;
    display: inline-block;
    font-size: 12px;
    margin: 5px 2px;
    cursor: pointer;
    border-radius: 5px;
    width: 30%;
}

button {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sell-button {
    background-color: #160705;
    color: #522DD6;
    font-family: 'Press Start 2P', cursive;
}

.item-quantity {
    background-color: #ffffff;
    color: #000000;
    text-align: center;
    width: 30%;
}

#receipt {
    margin-top: 20px;
    text-align: center;
    font-family: 'Press Start 2P', cursive;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#receipt h2 {
    margin-bottom: 10px;
    font-size: 1.5em;
    font-weight: 700;
    margin-top: 0;
}

#receipt-items {
    text-align: left;
    margin-bottom: 10px;
    line-height: 1.8;
}

hr {
    border: 0;
    height: 2px;
    background-color: #ddd;
}

#total {
    font-size: 1.5em;
    margin-top: 10px;
    font-weight: 700;
}

/* Popup styles */
.popup {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}
.popup-content p {
    line-height: 2.2 /* Увеличиваем расстояние между строками */
}


.popup-content {
    background-color: #000;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    text-align: center;
    font-family: 'Press Start 2P', cursive;
    min-height: 400px; /* Увеличиваем минимальную высоту */
    overflow-y: auto;  
    font-size: 1.1em; /* Увеличиваем размер шрифта */
}

.close {
    color: #000;
    float: right;
    font-size: 24px;
    font-weight: bold;  
}

.close:hover,
.close:focus {
    color: rgb(255, 255, 255);
    text-decoration: none;
    cursor: pointer;
}

.popup-close-button {
    background-color: #000;
    color: #ffffff;
    border: none;
    font-family: 'Press Start 2P', cursive;
    padding: 10px 10px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.falling-dollars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.dollar {
    position: absolute;
    width: 250px;
    height: auto;
    animation: fall linear infinite;
}

@keyframes fall {
    from {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes sway {
    0% { transform: translateX(0); }
    50% { transform: translateX(20px); }
    100% { transform: translateX(0); }
}

.dollar:nth-child(1) {
    left: 10%;
    animation-duration: 5s;
    animation-delay: 0s;
}

.dollar:nth-child(2) {
    left: 20%;
    animation-duration: 6s;
    animation-delay: 0s;
}
.dollar:nth-child(3) {
    left: 30%;
    animation-duration: 7s;
    animation-delay: 0s;
}

.dollar:nth-child(4) {
    left: 40%;
    animation-duration: 8s;
    animation-delay: 0s;
}

.dollar:nth-child(5) {
    left: 50%;
    animation-duration: 6s;
    animation-delay: 0s;
}

.dollar:nth-child(6) {
    left: 60%;
    animation-duration: 7s;
    animation-delay: 0s;
}

.dollar:nth-child(7) {
    left: 70%;
    animation-duration: 8s;
    animation-delay: 0s;
}


.dollar:nth-child(8) {
    left: 80%;
    animation-duration: 5s;
    animation-delay: 0s;
}

.dollar:nth-child(9) {
    left: 90%;
    animation-duration: 5s;
    animation-delay: 0s;
}

/* Стили для прелоудера */
body {
    background-color: #000;
    color: #03FF00;
    font-family: 'VT323', monospace;
    margin: 0;
    padding: 0;
    overflow: auto;
    position: relative;
}

.hidden {
    display: none;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #000;
    z-index: 1000;
}

/* Баннер для прелоудера */
.preloader-banner {
    width: 30%;
    max-width: 600px;
    margin-bottom: 20px;
}

#code-background {
    font-family: 'Courier New', monospace;
    color: rgba(0, 255, 0, 0.4);
    font-size: 24px;
    white-space: pre-wrap;
    word-wrap: break-word;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    animation: scrollingText 10s linear infinite;
}

@keyframes scrollingText {
    0% {
        transform: translateY(100%);
    }
    100% {
        transform: translateY(-100%);
    }
}

/* Прогресс-бар */
.progress-container {
    width: 50%;
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid #000;
    padding: 5px;
}

.progress-bar {
    width: 0;
    height: 30px;
    background-color: #000;
    text-align: center;
    color: black;
    font-size: 20px;
}

.enter-btn {
    background-color: #03FF00;
    border: 2px solid #03FF00;
    color: black;
    font-size: 20px;
    padding: 15px 15px;
    margin-top: 20px;
    cursor: pointer;
}

.enter-btn:hover {
    background-color: #ffffff;
}

/* Основной сайт */
.hidden {
    display: none;
}


.container {
    width: 80%;
    max-width: 1200px;
    background-color: #000000;
    color: #ffffff;
    padding: 20px;
}

h1, .social-link {
    font-size: 24px;
    color: #ffffff;
}

.start-btn, .option-btn, .retry-btn {
    background-color: #ffffff;
    color: black;
    font-size: 20px;
}
