* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Press Start 2P', cursive;
    color: #ffcc00;
    overflow: hidden;
    position: relative;
}

.container {
    width: 100%;
    max-width: 900px;
    text-align: center;
    padding: 20px;
    position: relative;
}

.game-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #ff6600, 0 0 20px #ff6600;
    letter-spacing: 3px;
    color: #ffcc00;
    animation: glow 1.5s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #ff6600, 0 0 10px #ff6600;
    }
    to {
        text-shadow: 0 0 15px #ff6600, 0 0 25px #ff6600;
    }
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    border: 4px solid #ff6600;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.5);
}

.score-board {
    display: flex;
    gap: 30px;
    font-size: 1.5rem;
}

.score {
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 25px;
    border-radius: 8px;
    min-width: 120px;
    border: 2px solid #ffcc00;
}

.difficulty-selector {
    display: flex;
    gap: 10px;
}

.difficulty-btn {
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    border: 2px solid #00ccff;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
    transition: all 0.3s;
}

.difficulty-btn.active {
    background: #00ccff;
    color: #000;
    box-shadow: 0 0 10px #00ccff;
}

.difficulty-btn:hover:not(.active) {
    background: rgba(0, 204, 255, 0.3);
}

.game-container {
    position: relative;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 102, 0, 0.7);
    border: 6px solid #ff6600;
}

canvas {
    background: #0c0c1d;
    display: block;
    margin: 0 auto;
}

.info-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ff6600;
    color: #000;
    font-size: 1.8rem;
    font-weight: bold;
    border: 3px solid #ffcc00;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.7);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    font-family: 'Press Start 2P', cursive;
}

.info-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px #ffcc00;
}

.instructions {
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #00ccff;
    font-size: 0.8rem;
    line-height: 1.8;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #ffcc00;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    padding: 20px;
    position: relative;
    box-shadow: 0 0 30px rgba(255, 102, 0, 0.7);
    border: 4px solid #ff6600;
    font-size: 0.7rem;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    color: #ff6600;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
    font-family: 'Press Start 2P', cursive;
}

.close-btn:hover {
    transform: rotate(90deg);
    color: #ffcc00;
}

.modal h2 {
    margin-bottom: 15px;
    text-align: center;
    color: #ffcc00;
    font-size: 1.2rem;
    text-shadow: 0 0 5px #ff6600;
}

.developer-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6600;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6600, #ffcc00);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 15px;
    border: 2px solid #00ccff;
    box-shadow: 0 0 10px rgba(0, 204, 255, 0.7);
}

.details {
    text-align: left;
    flex: 1;
}

.details h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #00ccff;
}

.portfolio-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: linear-gradient(135deg, #ff6600, #ffcc00);
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s;
    border: 2px solid #ffcc00;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
}

.portfolio-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(255, 204, 0, 0.7);
}

.about-game {
    line-height: 1.5;
    margin-bottom: 15px;
    text-align: left;
    font-size: 0.7rem;
}

.features {
    text-align: left;
    margin-top: 10px;
}

.features h3 {
    color: #00ccff;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.features ul {
    padding-left: 15px;
}

.features li {
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Pixel art elements */
.pixel-corner {
    position: absolute;
    width: 20px;
    height: 20px;
}

.top-left {
    top: 0;
    left: 0;
    border-top: 4px solid #ffcc00;
    border-left: 4px solid #ffcc00;
}

.top-right {
    top: 0;
    right: 0;
    border-top: 4px solid #ffcc00;
    border-right: 4px solid #ffcc00;
}

.bottom-left {
    bottom: 0;
    left: 0;
    border-bottom: 4px solid #ffcc00;
    border-left: 4px solid #ffcc00;
}

.bottom-right {
    bottom: 0;
    right: 0;
    border-bottom: 4px solid #ffcc00;
    border-right: 4px solid #ffcc00;
}

/* Retro scanlines effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 4px 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.3;
}

/* Responsive design */
@media (max-width: 768px) {
    .game-info {
        flex-direction: column;
        gap: 15px;
    }

    .score-board {
        width: 100%;
        justify-content: center;
    }

    .game-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    canvas {
        width: 95vw;
    }

    .game-title {
        font-size: 1.4rem;
    }

    .score {
        font-size: 1.2rem;
        min-width: 100px;
        padding: 8px 15px;
    }

    .difficulty-btn {
        padding: 6px 10px;
        font-size: 0.5rem;
    }

    .developer-info {
        flex-direction: column;
        text-align: center;
    }

    .avatar {
        margin: 0 auto 15px;
    }

    .details {
        text-align: center;
    }
}
