@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&display=swap');

/* --- General Body and Layout --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a1a;
    color: #f0f0f0;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Back to Home Button --- */
.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #00aaff;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 100;
}

.back-button:hover {
    background-color: #0088cc;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.7);
    transform: scale(1.05);
}


/* --- Game Title --- */
.game-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3em;
    color: #fff;
    text-shadow:
        0 0 5px #fff,
        0 0 10px #00aaff,
        0 0 20px #00aaff;
    margin: 40px 0 30px 0;
    text-align: center;
}

/* --- Responsive Game Iframe Container --- */
.game-container {
    position: relative;
    width: 100%;
    max-width: 960px; /* Max width of the game */
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.5);
}

.game-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* --- Game Details Section --- */
.details-section {
    width: 100%;
    max-width: 960px;
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.info-card {
    background-color: #2c2c2c;
    border-radius: 10px;
    padding: 25px;
    flex-grow: 1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.info-card h2 {
    margin-top: 0;
    color: #00aaff;
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
}

/* --- Rating Stars --- */
.rating {
    font-size: 1.2em;
    font-weight: bold;
}
.rating .stars {
    color: #ffc107; /* Gold color for stars */
}


/* --- Recommended Games --- */
.recommendations {
    width: 100%;
    max-width: 960px;
    margin-top: 40px;
    text-align: center;
}
.recommendations h2 {
    color: #00aaff;
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.recommend-card {
    background-color: #2c2c2c;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recommend-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.recommend-card img {
    width: 100%;
    display: block;
}

.recommend-card .title {
    padding: 15px;
    font-weight: 600;
}


/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .game-title {
        font-size: 2em;
    }
    .details-section {
        flex-direction: column;
    }
} 