:root {
    --bg-color: #05070a;
    --text-color: #e0e0e0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    overflow: hidden;
    /* Prevent scrolling entirely */
    width: 100vw;
    height: 100vh;
}

canvas {
    display: block;
    width: 100vw;
    height: 100vh;
}

#ui-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(5, 7, 10, 0.9);
    z-index: 10;
    transition: opacity 0.5s ease;
}

#instructions {
    text-align: center;
    animation: pulse 2s infinite;
}

#instructions h1 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    margin-bottom: 20px;
    letter-spacing: 4px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

#instructions p {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }
}

#info-container {
    position: relative;
    display: inline-block;
    margin-top: 30px;
}

#info-icon {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: inherit;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

#info-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
}

#info-tooltip {
    visibility: hidden;
    width: max-content;
    min-width: 250px;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 15px 25px;
    position: absolute;
    z-index: 100;
    top: 150%;
    /* Position UNDER icon */
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    font-size: 0.8rem;
    line-height: 1.8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#info-tooltip.visible {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

#info-tooltip::after {
    content: "";
    position: absolute;
    bottom: 100%;
    /* Arrow on TOP */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent rgba(0, 0, 0, 0.9) transparent;
}

#info-close {
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s;
}

#info-close:hover {
    color: white;
}

#info-tooltip a {
    color: #00d2ff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

#info-tooltip a:hover {
    color: #fff;
    text-decoration: underline;
}

#lang-toggle {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.lang-opt {
    cursor: pointer;
    transition: background 0.3s, color 0.3s, transform 0.2s;
    padding: 12px 30px;
    font-family: 'Cinzel', serif;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    border-radius: 30px;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.lang-opt:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: scale(1.05);
}

.lang-opt:active {
    transform: scale(0.95);
}

.lang-opt.selected {
    background: rgba(255, 255, 255, 0.9);
    color: black;
    border-color: white;
}