/* Existing styles */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

* {
    margin: 0;
    padding: 0;
}

body {
    overflow: hidden;
    background: #000;
    font-family: 'Press Start 2P', cursive;
}

canvas {
    display: block;
}

#welcome-text {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #00ff88;
    font-size: 2.5em;
    text-align: center;
    text-shadow: 
        0.1em 0.1em 0 #000,
        0.15em 0.15em 0 #ff00ff,
        -0.1em -0.1em 0 #00ffff;
    pointer-events: none;
    opacity: 0;
    animation: glitch 2s ease-in forwards;
    letter-spacing: 2px;
    line-height: 1.5em;
    z-index: 101;
}

@keyframes glitch {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9) skew(0deg);
    }
    20% {
        transform: translate(-50%, -50%) scale(1.1) skew(5deg);
        text-shadow: 
            0.1em 0.1em 0 #000,
            0.15em 0.15em 0 #ff00ff,
            -0.1em -0.1em 0 #00ffff;
    }
    25% {
        transform: translate(-50%, -50%) scale(1) skew(-5deg);
        text-shadow: 
            -0.1em -0.1em 0 #000,
            -0.15em -0.15em 0 #ff00ff,
            0.1em 0.1em 0 #00ffff;
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) skew(0deg);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) skew(0deg);
    }
}

.pixel-corners {
    clip-path: polygon(
        0 4px,
        4px 4px,
        4px 0,
        calc(100% - 4px) 0,
        calc(100% - 4px) 4px,
        100% 4px,
        100% calc(100% - 4px),
        calc(100% - 4px) calc(100% - 4px),
        calc(100% - 4px) 100%,
        4px 100%,
        4px calc(100% - 4px),
        0 calc(100% - 4px)
    );
}

/* New styles for buttons */
#button-container {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border: 2px solid #00ff88;
    min-width: 200px;
    align-items: center;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    #button-container {
        width: 80%;
        padding: 15px;
    }
    
    .ui-button {
        width: 100%;
        padding: 12px 0;
        font-size: 0.7em;
    }
}

.ui-button {
    background-color: #00ff88;
    border: 2px solid #00ff88;
    color: #000;
    padding: 10px 20px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.ui-button:hover {
    background-color: transparent;
    color: #00ff88;
    text-shadow: 0 0 5px #00ff88;
    box-shadow: 0 0 10px #00ff88;
    z-index: 102;
}

.ui-button:nth-child(2) {
    background-color: #ff00ff;
    border-color: #ff00ff;
}

.ui-button:nth-child(2):hover {
    color: #ff00ff;
    text-shadow: 0 0 5px #ff00ff;
    box-shadow: 0 0 10px #ff00ff;
    z-index: 102;
}

.ui-button:nth-child(3) {
    background-color: #00ffff;
    border-color: #00ffff;
}

.ui-button:nth-child(3):hover {
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
    box-shadow: 0 0 10px #00ffff;
    z-index: 102;
}
