/* src/main/resources/static/css/main.css */

/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #ffffff;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    background-color: #000000;
    padding: 20px 0;
    text-align: center;
    border-bottom: 2px solid #00f5ff;
    box-shadow: 0 0 8px rgba(0, 245, 255, 0.4);
}

header h1 {
    font-family: 'Press Start 2P', cursive;
    color: #00f5ff;
    margin: 0;
    font-size: 2.5em;
    text-shadow: 0 0 5px rgba(0, 245, 255, 0.6), 0 0 10px rgba(0, 245, 255, 0.3);
}

header p {
    font-size: 1.1em;
    color: #d0d0d0;
    margin-top: 10px;
}

/* Telegram Button */
.telegram-button {
    display: inline-block;
    background: linear-gradient(90deg, #ff2a6d, #05ffa1);
    color: #000;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 0 6px rgba(255, 42, 109, 0.4), 0 0 12px rgba(5, 255, 161, 0.2);
}

.telegram-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 42, 109, 0.6), 0 0 20px rgba(5, 255, 161, 0.4);
}

/* Main Content */
main {
    flex-grow: 1;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.intro-section, .telegram-section, .developers-section, .oso-info-section {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 15px;
    margin-top: 40px;
    box-shadow: 0 0 12px rgba(0, 245, 255, 0.15);
    border: 1px solid rgba(0, 245, 255, 0.4);
}

/* Заголовки */
.intro-section h2,
.games-section h2 {
    color: #00f5ff;
    font-size: 2em;
    margin-top: 20px;
    margin-bottom: 20px;
    font-family: 'Press Start 2P', cursive;
    text-shadow: 0 0 5px rgba(0, 245, 255, 0.5);
}

.developers-section h2 {
    margin-top: 40px;
    color: #ff2a6d;
    text-shadow: 0 0 5px rgba(255, 42, 109, 0.5);
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.game-card {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #00f5ff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.3);
}

.game-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #00f5ff;
}

.game-card h3 {
    color: #05ffa1;
    font-size: 1.4em;
    margin: 10px 0;
    text-shadow: 0 0 3px rgba(5, 255, 161, 0.5);
}

.game-card .play-button {
    background: linear-gradient(90deg, #05ffa1, #00f5ff);
    color: #000;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 0 6px rgba(5, 255, 161, 0.4);
    display: inline-block;
    margin-bottom: 15px;
}

.play-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }
}


footer {
    text-align: center;
    padding: 20px 0;
    background-color: #000;
    color: #888;
    font-size: 0.9em;
    margin-top: auto; /* Прижимает футер вниз */
}