@font-face {
    font-family: 'GameboyFont';
    src: url('https://example.com/gameboy-font.ttf'); 
}

:root {
    --bg-color: #d3d3d3;
    --screen-color: #7a9e7e;
    --lever-base-color: #000;
    --lever-color: silver;
    --lever-knob-color: #c92a2a;
    --lever-shadow: #962020;
    --text-color: #333;
}

body {
    margin: 0;
    font-family: 'GameboyFont', monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    overflow: hidden;
}

header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

h1 {
    font-size: 2.5rem;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

h1 span {
    display: inline-block;
    font-size: 3rem;
}

.lever-hi {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    color: var(--text-color);
}

.switch-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    perspective: 500px;
}

.joystick {
    position: relative;
    width: 30px;
    height: 100px;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.joystick:hover {
    cursor: grab;
}

.lever {
    width: 8px;
    height: 40px;
    background: var(--lever-color);
    margin: 20px;
    border-radius: 4px;
    transform-origin: bottom;
    box-shadow: 0 4px var(--lever-shadow);
    transition: transform 0.3s ease;
    position: relative;
    left: -4px; /* nudge left for L look */
}

.lever-knob {
    width: 16px;
    height: 16px;
    background: var(--lever-knob-color);
    border-radius: 50%;
    position: absolute;
    top: -8px;
    left: calc(50% - 8px);
    
}

.base {
    width: 35px;
    height: 8px;
    background: var(--lever-base-color);
    border-radius: 4px;
    margin-top: -20px;
}

section {
    max-width: 800px;
    margin: 20px;
    text-align: left;
}

.joystick .lever {
    transform: rotate(0deg);
}

.lever-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.note {
    font-size: 0.8rem;
    margin-top: 10px;
    color: var(--text-color);
}
