
:root {
    --primary-color: #2d6cdf;
    --background-color: #efefef;
    --card-background: #ffffff;
    --text-color: #282828;
    --subtle-text-color: #535353;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.08);
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
}

.more-header {
    background-color: var(--card-background);
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
}

.more-header h1 {
    font-size: 2.8em;
    letter-spacing: 8px;
    color: var(--text-color);
    margin: 0;
}

.more-header p {
    font-size: 1rem;
    color: #c4c4c4;
    letter-spacing: 2px;
    margin-top: 10px;
}

.more-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.more-category {
    background-color: transparent; /* No background for category wrapper */
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.more-category h2 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: none;
    padding-bottom: 0;
    color: var(--text-color);
    text-align: center;
}

.more-category > p {
    font-size: 1rem;
    color: var(--subtle-text-color);
    margin-bottom: 25px;
    text-align: center;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.link-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.link-card h3 {
    font-size: 1.4rem;
    margin: 0 0 10px 0;
    color: var(--primary-color);
}

.link-card p {
    font-size: 1rem;
    color: var(--subtle-text-color);
    margin: 0;
    flex-grow: 1;
}

.no-links {
    color: var(--subtle-text-color);
    font-style: italic;
    text-align: center;
    padding: 20px;
    background-color: var(--card-background);
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .more-header h1 {
        font-size: 2rem;
    }

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

/* Video Modal Styles */
.video-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.video-modal-content {
    position: relative;
    background-color: #000;
    margin: auto;
    padding: 0;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
}

.video-close-btn {
    color: #fff;
    position: absolute;
    top: -30px;
    right: 0;
    font-size: 35px;
    font-weight: bold;
    transition: 0.3s;
}

.video-close-btn:hover,
.video-close-btn:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Game Modal Styles */
.game-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 999; /* Lower than video modal */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
}

.game-modal-content {
    position: relative;
    background-color: #fff;
    width: 90%;
    height: 90%;
    max-width: 1200px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.game-close-btn {
    color: #fff;
    background-color: #333;
    position: absolute;
    top: -35px;
    right: 0;
    font-size: 30px;
    font-weight: bold;
    padding: 0 8px;
    border-radius: 5px;
    transition: 0.3s;
}

.game-close-btn:hover,
.game-close-btn:focus {
    background-color: #555;
    text-decoration: none;
    cursor: pointer;
}

#game-iframe {
    width: 100%;
    height: 100%;
    border: none;
}
