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

body {
    font-family: 'Courier New', monospace;
    background-color: #1a1a1a;
    color: #00ff00;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    text-shadow: 2px 2px #ff00ff;
    text-align: center;
    margin-bottom: 20px;
}

#gameContainer {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 3 / 2;
}

canvas {
    border: 2px solid #00ff00;
    width: 100%;
    height: 100%;
}

.cta {
    background-color: #00ff00;
    color: #1a1a1a;
    border: none;
    padding: 10px 20px;
    font-size: clamp(1rem, 3vw, 1.2rem);
    cursor: pointer;
    transition: all 0.3s;
    margin: 20px 0;
}

.cta:hover {
    background-color: #ff00ff;
    color: #00ff00;
}

#linkOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0,0,0,0.8);
    color: #00ff00;
    text-align: center;
}

#linkOverlay h2 {
    font-size: clamp(1.5rem, 8vw, 2.5rem);
    margin-bottom: 20px;
}

#linkOverlay p {
    font-size: clamp(1rem, 4vw, 1.5rem);
    margin: 10px 0;
}

#linkOverlay a {
    color: #00FFFF;
    font-size: clamp(1rem, 3vw, 1.25rem);
    text-decoration: none;
    margin: 20px 0;
}

#linkOverlay a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    #gameContainer {
        aspect-ratio: 4 / 3;
    }

    .cta:hover::after {
        display: none;
    }
}
