:root {
    --primary-color: #003366; /* Dunkelblau */
    --secondary-color: #f0f0f0; /* Hellgrau */
    --accent-color: #0066cc; /* Helles Blau */
    --text-color: #333333; /* Dunkelgrau */
    --bg-color: #ffffff; /* Hintergrund Container */
    --card-shadow: rgba(0, 0, 0, 0.1);
    --card-shadow-hover: rgba(0, 0, 0, 0.2);
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #8cb4e6; /* Helles Blau für Dark Mode */
        --secondary-color: #121212; /* Dunkler Hintergrund */
        --accent-color: #4a90e2; /* Akzentfarbe Dark Mode */
        --text-color: #e0e0e0; /* Heller Text */
        --bg-color: #1e1e1e; /* Dunkler Container-Hintergrund */
        --card-shadow: rgba(255, 255, 255, 0.05);
        --card-shadow-hover: rgba(255, 255, 255, 0.15);
    }
}

/* General styles to override or complement Bulma */
body {
    background-color: var(--secondary-color);
}

.title,
.subtitle,
.content,
.has-text-weight-bold {
    color: var(--text-color) !important;
}

h2.title {
    color: var(--primary-color) !important;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

/* Override Bulma's link colors */
.content a,
.subtitle a {
    color: var(--accent-color);
}
.content a:hover,
.subtitle a:hover {
    color: var(--primary-color);
}

/* Custom container style to match old design */
main.container {
    background-color: var(--bg-color);
    border-radius: 8px;
    box-shadow: 0 0 10px var(--card-shadow);
    position: relative;
}

/* Custom utilities that Bulma doesn't have */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem var(--card-shadow);
    transition:
        box-shadow 0.3s ease-in-out,
        transform 0.3s ease-in-out;
}
.shadow-sm:hover {
    box-shadow: 0 0.5rem 1rem var(--card-shadow-hover);
    transform: translateY(-2px);
}
.is-rounded-lg {
    border-radius: 8px;
}

/* Game card specific styles */
.game-link .image img {
    border: 3px solid transparent;
    transition: border-color 0.3s ease;
}

.game-link.active .image img {
    border-color: var(--accent-color);
}

/* Iframe container */
.iframe-container {
    height: 80vh;
    width: 100%;
    border-radius: 6px;
    border: 1px solid var(--card-shadow);
    box-shadow: 0 0.5rem 1rem var(--card-shadow);
}

@media (max-width: 768px) {
    .iframe-container {
        height: 60vh;
    }
}

/* QR-Code Styling */
#qr-code {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 100px;
    height: 100px;
    background-color: white;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
}
#qr-code img {
    width: 100% !important;
    height: 100% !important;
}

/* Fix for QR code overlap */
@media (min-width: 769px) {
    .intro-text {
        margin-right: 130px;
    }
}
