html,
body,
ul,
li {
    margin: 0;
    border: 0;
    padding: 0;
}

body {
    overflow: hidden;
    height: 100%;
    background-color: #000;
    font-family: 'Press Start 2P', cursive, sans-serif;
    /* Fallback to sans-serif if font not loaded */
}

html {
    overflow: hidden;
    height: 100%;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
    /* Fit to screen */
    object-fit: contain;
    /* Maintain aspect ratio */
    margin: 0 auto;
    background-color: #5c94fc;
}

.info {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    font-family: monospace;
    z-index: 10;
}

.info a {
    color: #ffd700;
    text-decoration: none;
}

/* Resume Overlay */
.resume-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    max-width: 900px;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 30px;
    border: 4px solid #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    font-family: 'Courier New', monospace;
    z-index: 100;
    max-height: 90vh;
    overflow-y: auto;
    display: none;
    /* Hidden by default, toggled via JS or just shown */
}

/* Show it by default for now as requested to 'embed' */
.resume-overlay.active {
    display: block;
}

.resume-header {
    text-align: center;
    border-bottom: 2px solid #fff;
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.resume-header h1 {
    font-size: 2em;
    margin: 0 0 10px 0;
    color: #e70012;
    /* Mario Red */
    text-transform: uppercase;
    letter-spacing: 2px;
}

.resume-header h2 {
    font-size: 1.1em;
    margin: 0;
    color: #ccc;
    font-weight: normal;
}

.contact-info {
    font-size: 0.9em;
    margin-top: 10px;
    color: #aaa;
}

.resume-section {
    margin-bottom: 25px;
}

.resume-section h3 {
    color: #f8b800;
    /* Coin Gold */
    font-size: 1.2em;
    border-bottom: 1px dashed #555;
    padding-bottom: 5px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.resume-content p {
    text-align: left;
    line-height: 1.5;
    margin-bottom: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    text-align: center;
    margin-top: 10px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
}

.stat-number {
    display: block;
    font-size: 1.5em;
    color: #f8b800;
    font-weight: bold;
}

.stat-label {
    font-size: 0.8em;
    text-transform: uppercase;
    color: #ddd;
}

.education-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
    border: none;
    background: none;
}

.toggle-resume-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 101;
    background: #e70012;
    color: white;
    border: 2px solid white;
    padding: 10px 20px;
    font-family: inherit;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    box-shadow: 2px 2px 0px #000;
}

.toggle-resume-btn:hover {
    background: #c60010;
    top: 22px;
    box-shadow: 0px 0px 0px #000;
}

/* Touch Controls */
.touch-controls {
    display: none;
    /* Hidden by default on desktop */
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    height: 150px;
    z-index: 20;
    pointer-events: none;
    /* Let clicks pass through empty areas */
}

@media (max-width: 1024px),
(hover: none) {
    .touch-controls {
        display: block;
    }

    .info {
        display: none;
        /* Hide keyboard instructions on mobile */
    }
}

.dpad {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 120px;
    height: 120px;
    pointer-events: auto;
}

.action-buttons {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 140px;
    height: 80px;
    pointer-events: auto;
}

.btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    backdrop-filter: blur(2px);
    touch-action: none;
    /* Prevent scrolling */
}

.btn:active,
.btn.active {
    background: rgba(255, 255, 255, 0.5);
}

/* D-Pad Layout */
.btn-left {
    top: 40px;
    left: 0;
    width: 40px;
    height: 40px;
}

.btn-right {
    top: 40px;
    right: 0;
    width: 40px;
    height: 40px;
}

.btn-up {
    top: 0;
    left: 40px;
    width: 40px;
    height: 40px;
}

.btn-down {
    bottom: 0;
    left: 40px;
    width: 40px;
    height: 40px;
}

/* Action Buttons */
.btn-a,
.btn-b {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-family: 'Press Start 2P', monospace;
    color: white;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(231, 0, 18, 0.4);
    /* Red tint */
    border-color: rgba(231, 0, 18, 0.8);
}

.btn-a {
    right: 0;
    bottom: 10px;
}

.btn-b {
    right: 70px;
    bottom: 10px;
}

.btn-a::after {
    content: 'A';
}

.btn-b::after {
    content: 'B';
}