/* Общие стили */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
header {
    background: #2c3e50;
    color: white;
    padding: 20px 0;
}

header a {
    color: white;
    text-decoration: none;
}

.logo h1 {
    margin: 0;
    font-size: 24px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
    position: relative;
}

/* Выпадающее меню */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropbtn {
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

/* Основное содержимое */
.hero {
    background: #3498db;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hero h2 {
    font-size: 36px;
}

.btn {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 10px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.game-card {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}

.game-card img {
    max-width: 100%;
    height: auto;
}

.game-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.game-detail img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Подвал */
footer {
    background: #2c3e50;
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

.social-links img {
    width: 30px;
    margin: 0 10px;
}

/* Стили для страницы игры */
.game-page {
    padding: 30px 0;
}

.game-header {
    text-align: center;
    margin-bottom: 30px;
}

.game-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.game-meta span {
    margin: 0 10px;
    color: #7f8c8d;
}

.game-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.game-screenshot img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.game-description h2 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
    margin-top: 0;
}

.game-features {
    columns: 2;
    column-gap: 20px;
    margin: 20px 0;
}

.game-features li {
    margin-bottom: 8px;
}

.game-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}

.detail h4 {
    margin: 0;
    color: #3498db;
}

.detail p {
    margin: 5px 0 0;
}

.download-section {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.download-btn {
    display: inline-block;
}

.download-btn img {
    height: 50px;
}

@media (max-width: 768px) {
    .game-content {
        grid-template-columns: 1fr;
    }
    
    .game-features {
        columns: 1;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
}