/*
Theme Name: VEX X3M Theme
Theme URI: https://yourwebsite.com/
Author: Your Name
Author URI: https://yourwebsite.com/
Description: A custom theme for the VEX X3M game page, based on the provided HTML file.
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-theme, games
Text Domain: vex-exteme-theme
*/

:root {
    --background-start: #1a1a1a;
    --background-end: #000000;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --accent-red: #ff3333;
    --accent-blue: #00aaff;
    --glass-bg: rgba(40, 40, 40, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
}
body {
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, var(--background-start), var(--background-end));
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
}
.action-button {
    transition: all 0.3s ease;
    font-weight: bold;
    border-radius: 8px;
    color: var(--text-primary);
}
.action-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--accent-red);
}
.action-button:disabled {
    background-color: #555 !important;
    cursor: not-allowed;
    opacity: 0.6;
}
.geometric-shape {
    position: absolute;
    z-index: -1;
    opacity: 0.3;
}
.buzzsaw {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #4a4a4a 20%, transparent 21%),
                radial-gradient(circle, transparent 35%, var(--accent-red) 36%, var(--accent-red) 55%, transparent 56%);
    border-radius: 50%;
    top: 5%;
    left: 2%;
    animation: spin 4s linear infinite;
}
.stickman {
    width: 60px;
    height: 80px;
    bottom: 10%;
    right: 5%;
    animation: float 8s ease-in-out infinite;
    position: relative;
}
.stickman .head {
    width: 20px;
    height: 20px;
    background: var(--text-primary);
    border-radius: 50%;
    position: absolute;
    left: 20px;
    top: 0;
}
.stickman .body {
    width: 4px;
    height: 30px;
    background: var(--text-primary);
    position: absolute;
    left: 28px;
    top: 20px;
}
.stickman .arm {
    width: 4px;
    height: 25px;
    background: var(--text-primary);
    position: absolute;
    left: 28px;
    top: 25px;
}
.stickman .arm.left { transform: rotate(45deg); left: 18px; }
.stickman .arm.right { transform: rotate(-45deg); left: 38px; }
.stickman .leg {
    width: 4px;
    height: 25px;
    background: var(--text-primary);
    position: absolute;
    left: 28px;
    top: 45px;
}
.stickman .leg.left { transform: rotate(30deg); left: 20px; }
.stickman .leg.right { transform: rotate(-30deg); left: 36px; }

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.faq-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}
.faq-item h4 {
    cursor: pointer;
    font-weight: bold;
    color: var(--accent-blue);
}
.faq-item p {
    display: none;
    margin-top: 0.5rem;
    color: var(--text-secondary);
}
.faq-item.active h4 {
    color: var(--accent-red);
}
.faq-item.active p {
    display: block;
}
.game-iframe {
    width: 800px;
    height: 600px;
    border: 3px solid var(--glass-border);
    display: block;
    margin: 0 auto;
    border-radius: 15px;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}
.close-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-primary);
}
.close-button:hover {
    color: var(--accent-red);
}
.iframe-error {
    display: none;
    color: var(--accent-red);
    text-align: center;
    margin-top: 1rem;
}
.section-heading {
    text-align: center;
    color: var(--accent-red);
    font-size: 1.5rem;
    font-weight: bold;
}
.info-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.bg-secondary-card-border {
    background-color: var(--accent-blue);
}
.line-clamp-1 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.toc-container ol {
    list-style: none;
    padding-left: 0;
}
.toc-container ol li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--glass-border);
}
.toc-container ol li:last-child {
    border-bottom: none;
}
.toc-container ol li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease-in-out;
}
.toc-container ol li a:hover {
    color: var(--accent-blue);
    transform: translateX(5px);
}
.toc-container ol li a::before {
    content: '▶';
    font-size: 0.8em;
    margin-right: 0.75rem;
    color: var(--accent-red);
    transition: color 0.2s ease-in-out;
}
.toc-container ol li a:hover::before {
    color: var(--accent-blue);
}
a:hover, #nav-menu a:hover {
    color: var(--accent-blue);
}
.modal-link:hover {
    color: var(--accent-blue);
}

@media (max-width: 768px) {
    .game-iframe {
        width: 100%;
        height: 400px;
    }
    .buzzsaw {
        width: 60px;
        height: 60px;
    }
    .stickman {
        width: 40px;
        height: 60px;
    }
    .stickman .head { width: 15px; height: 15px; left: 12.5px;}
    .stickman .body { height: 25px; left: 18px; top: 15px; }
    .stickman .arm { height: 20px; top: 18px; }
    .stickman .arm.left { left: 11px; }
    .stickman .arm.right { left: 25px; }
    .stickman .leg { height: 20px; top: 35px; }
    .stickman .leg.left { left: 13px; }
    .stickman .leg.right { left: 23px; }
    .modal-content {
        padding: 1rem;
        max-width: 95%;
    }
    .close-button {
        font-size: 1rem;
    }
}