@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* Base styles */

body {
    font-family: 'Press Start 2P', monospace;
    background-color: #000000;
    color: #ffffff;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

/* Main page styles */

.main-container {
    background-color: #000000;
    border: 2px solid #38bdf8;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
    padding: 30px;
    width: 90%;
    max-width: 800px;
    margin: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content {
    width: 100%;
    display: flex;
    justify-content: center;
}

.project-card {
    background-color: #000000;
    border: 2px solid #38bdf8;
    border-radius: 12px;
    padding: 25px;
    margin: 20px auto;
    max-width: 500px;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
    transition: all 0.3s ease;
    width: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
}

.project-card h2 {
    color: #38bdf8;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
    font-size: 1.5em;
    margin-bottom: 20px;
}

.project-card p {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 0.8em;
    margin-bottom: 25px;
}

.project-link {
    display: inline-block;
    background-color: transparent;
    border: 2px solid #38bdf8;
    color: #38bdf8;
    padding: 12px 24px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8em;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link:hover {
    background-color: #38bdf8;
    color: #000000;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
}

h1 {
    color: #38bdf8;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
    letter-spacing: 2px;
    margin-bottom: 40px;
    font-size: 2em;
}

/* Game container styles */

.game-container {
    background-color: #2d2d2d;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 20px;
    width: 90%;
    max-width: 600px;
}

h1 {
    color: #ffffff;
    margin-top: 0;
    font-size: 2.5em;
    margin-bottom: 30px;
}

h2 {
    color: #ffffff;
    margin-top: 0;
    font-size: 1.8em;
}

.score-container {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
}

.score-container p {
    font-size: 1.2em;
    margin: 5px 0;
}

#gameCanvas {
    border: 2px solid #4CAF50;
    background-color: #1a1a1a;
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.controls {
    margin-top: 20px;
}

#startBtn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    margin-bottom: 10px;
    transition: background-color 0.2s;
}

#startBtn:hover {
    background-color: #45a049;
}

.instructions {
    font-size: 0.9em;
    color: #bbbbbb;
    margin: 10px 0;
}

.mobile-controls {
    display: none;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
}

.mobile-controls-row {
    display: flex;
    gap: 20px;
}

.mobile-controls button {
    width: 60px;
    height: 60px;
    font-size: 1.5em;
    margin: 5px;
    border: 1px solid #4CAF50;
    background-color: #2d2d2d;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.mobile-controls button:hover {
    background-color: #383838;
}

footer {
    margin-top: 30px;
    color: #64748b;
    font-size: 0.7em;
}

footer a {
    color: #38bdf8;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #0ea5e9;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

/* Modal styles */

.game-over-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.game-over-modal-content {
    background-color: rgba(0, 0, 0, 0.95);
    padding: 2rem;
    border-radius: 8px;
    border: 5px solid #ff3800;
    box-shadow: 0 0 30px rgba(255, 56, 0, 0.8);
    color: white;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: auto;
    text-align: center;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
}

@media (max-width: 768px) {
    .mobile-controls {
        display: flex;
    }
}
