/* General Styles */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

/* Header Section */
.header-section {
    background: url('images/banner.jpg') no-repeat center center/cover;
    height: 100vh;
    position: relative; /* Важно для позиционирования псевдоэлемента */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.header-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.434); /* Затемнение на 30% */
    z-index: 1; /* Устанавливаем псевдоэлемент ниже контента */
}

.header-content {
    position: relative;
    z-index: 2; 
}


.logo {
    max-width: 250px;
}

.header-content h1 {
    font-size: 3em;
    margin-bottom: 0.5em;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* Добавление тени */
}

.header-content p {
    font-size: 1.2em;
    margin-bottom: 1em;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* Добавление тени */
}

/* Угольная кнопка */
.cta-button {
    padding: 10px 20px;
    background: linear-gradient(145deg, #333, #000); /* Градиент угля */
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); /* Легкая тень для эффекта рельефа */
    border: 2px solid #363535; /* Темный бордюр */
    transition: background 0.3s, box-shadow 0.3s; /* Плавные эффекты при наведении */
}

/* Эффект при наведении */
.cta-button:hover {
    background: linear-gradient(145deg, #333, #120202); /* Более светлый эффект угля */
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8); /* Глубокая тень для дополнительного объема */
}


/* Game Cards Section */
.games-section {
    display: flex;
    justify-content: center;
    padding: 50px 0;
    background-color: #fff;
}

/* Эффект приподнятия карточки при наведении */
.game-card {
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin: 20px;
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Поп-ап окно */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none; /* По умолчанию скрыто и не интерактивно */
    transition: opacity 0.3s ease;
}

/* Видимый поп-ап */
.popup:target {
    display: flex;
    opacity: 1;
    pointer-events: auto; /* Активно при наведении якоря */
}

/* Information Section Styling */
.info-section {
    max-width: 800px; /* Ограничение ширины контента */
    margin: 0 auto; /* Центрирование секции */
    padding: 20px; /* Отступы внутри секции */
    text-align: left; /* Выравнивание текста по левому краю */
    line-height: 1.6; /* Увеличение межстрочного интервала для удобства чтения */
    color: #333; /* Цвет текста */
}

.info-section h2, .info-section h3 {
    color: #ad0d22; /* Цвет заголовков */
    margin-bottom: 20px; /* Отступ под заголовками */
}

.info-section p, .info-section ul {
    margin-bottom: 20px; /* Отступ между абзацами и списками */
}

.info-section ul {
    list-style: disc; /* Стилизация списков */
    padding-left: 40px; /* Отступ для списков */
}

.info-section strong {
    color: #ad0d22; /* Выделение ключевых моментов фиолетовым цветом */
}

.info-section em {
    font-style: italic;
    color: #999; /* Стилизация курсива */
}



/* Контент поп-апа */
.popup-content {
    background-color: #340101;
    padding: 20px;
    width: 80%;
    min-width: 1024px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2em;
    color: #000;
    text-decoration: none;
}

/* Анимация для появления и исчезновения */
.popup:target .popup-content {
    transform: scale(1);
    transition: transform 0.3s ease;
}


/* Эффект приподнятия карточки при наведении */
.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Стилизация ссылок внутри карточек */
.game-card a {
    text-decoration: none; /* Убираем подчеркивание */
    color: #ad120d; /* Применяем красивый фиолетовый цвет */
}

.game-card a h3 {
    font-size: 1.5em;
    margin-bottom: 0.5em;
    font-weight: bold;
}

.game-card a p {
    font-size: 1.2em;
    color: #999; /* Светло-серый цвет для подписи разработчика */
}

/* Стилизация заголовков ссылок */
.game-card a h3:hover {
    color: #d35564; /* Меняем цвет заголовка при наведении на более светлый фиолетовый */
}

/* Стилизуем небольшие заголовки (например, Fire Strike 2) */
.game-card a small {
    font-size: 0.9em;
    color: #ad0d10;
    display: block;
    margin-bottom: 0.5em;
    text-transform: uppercase;
    font-weight: bold;
}


.game-card img {
    max-width: 100%;
    border-radius: 10px;
}



/* Info Section */
.info-section {
    padding: 50px 0;
    text-align: center;
    background-color: #f8f9fa;
}

.info-section h2 {
    font-size: 2em;
    margin-bottom: 1em;
}

.info-section p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 20px;
}

/* Newsletter Section */
.newsletter-section {
    padding: 50px 0;
    text-align: center;
    background-color: #e9ecef;
}

.newsletter-section h2 {
    font-size: 2em;
    margin-bottom: 1em;
}

.newsletter-section p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.newsletter-section input {
    padding: 10px;
    font-size: 1em;
    width: 300px;
    margin-right: 10px;
}

.newsletter-section button {
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    font-size: 1em;
    border: none;
    cursor: pointer;
}

.newsletter-section button:hover {
    background-color: #218838;
}

/* Footer */
footer {
    background-color: #343a40;
    color: #fff;
    padding: 20px;
    text-align: center;
}

.footer-links a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
}

.footer-logos img {
    height: 30px;
}

footer p {
    font-size: 0.9em;
    margin-top: 20px;
}
