:root {
    --neon-green: #00ff66;
    --dark-bg: #0a0a0a;
    --brick-color: #00cc52;
    --danger-red: #ff3333;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--dark-bg);
    color: #ffffff;
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Bakgroud effects */
.background-effects {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.fog {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,255,102,0.08) 0%, rgba(0,0,0,0) 70%);
    filter: blur(40px);
    animation: pulse 8s infinite alternate;
}

.wave {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 150px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://w3.org" viewBox="0 0 1440 320"><path fill="%2300ff66" fill-opacity="0.15" d="M0,192L48,197.3C96,203,192,213,288,192C384,171,480,117,576,112C672,107,768,149,864,165.3C960,181,1056,171,1152,149.3C1248,128,1344,96,1392,80L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-repeat: no-repeat;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.center-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-title {
    color: var(--neon-green);
    margin-bottom: 30px;
    text-shadow: 0 0 10px var(--neon-green);
}

.brick-triangle {
    width: 0;
    height: 0;
    border-left: 200px solid transparent;
    border-right: 200px solid transparent;
    border-bottom: 300px solid var(--brick-color);
    position: relative;
    filter: drop-shadow(0 0 20px rgba(0, 255, 102, 0.4));
    margin-bottom: 20px;
}

.brick-triangle::after {
    content: '';
    position: absolute;
    top: 0;
    left: -200px;
    width: 400px;
    height: 300px;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.4) 2px, transparent 2px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.4) 2px, transparent 2px);
    background-size: 40px 20px;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

/* Box e links*/
.search-box {
    position: absolute;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 15;
    width: 280px;
}

.search-box input {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--neon-green);
    background: #000;
    color: #fff;
    border-radius: 5px;
    text-align: center;
    outline: none;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.3);
}

.search-box button {
    margin-top: 10px;
    padding: 8px 20px;
    background: var(--neon-green);
    color: #000;
    border: none;
    font-weight: bold;
    cursor: pointer;
    border-radius: 3px;
    transition: 0.3s;
}

.search-box button:hover {
    box-shadow: 0 0 15px var(--neon-green);
    transform: scale(1.05);
}

.quick-links {
    display: none;
    margin-top: 12px;
    gap: 10px;
    background: rgba(0, 0, 0, 0.9);
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--neon-green);
}

.quick-links a {
    color: var(--neon-green);
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.quick-links a:hover {
    text-decoration: underline;
}

.widget {
    position: relative;
    background: rgba(10, 10, 10, 0.85);
    border: 2px solid var(--neon-green);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.2);
}

.widget-title {
    color: var(--neon-green);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--neon-green);
    padding-bottom: 5px;
}

/*position groups */
.left-side {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 30;
}

.right-side {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
    z-index: 30;
}

#stopwatch-display {
    font-size: 24px;
    margin-bottom: 10px;
    text-align: center;
}

.widget button {
    width: 100%;
    padding: 6px;
    background: transparent;
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    cursor: pointer;
    margin-bottom: 5px;
}

.widget button:hover {
    background: var(--neon-green);
    color: #000;
}

#calendar-display {
    font-size: 15px;
    white-space: pre;
    text-align: center;
}

#notepad {
    width: 200px;
    height: 120px;
    background: #111;
    border: 1px solid var(--neon-green);
    color: #fff;
    padding: 5px;
    resize: none;
    outline: none;
}

#game-container {
    width: 210px;
    height: 130px;
    background: #000;
    border: 1px solid var(--neon-green);
    position: relative;
    overflow: hidden;
    display: none;
}

#player-triangle {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 20px solid var(--neon-green);
    position: absolute;
    bottom: 0;
    left: 20px;
}

.obstacle {
    width: 15px;
    height: 15px;
    background: var(--danger-red);
    position: absolute;
    bottom: 0;
    left: 220px;
}

#game-score {
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 12px;
    color: var(--neon-green);
}

.game-floor {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--neon-green);
}

.game-instruction {
    font-size: 10px;
    color: #888;
    display: block;
    text-align: center;
    margin-top: 5px;
}