* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'VHSGothic';
    src: url('/vhs-gothic.ttf') format('truetype');
}

body {
    font-family: 'Arial', sans-serif;
    background: #2a2a2a;
    color: white;
    overflow: hidden;
    user-select: none;
}

.game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

#character-selection {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/asset/background_1.png');
    background-size: cover;
    background-position: center;
    padding: 20px;
    overflow-y: auto; /* Allow scrolling if content is too tall */
}

#character-selection h2 {
    /* @tweakable The font size for the character selection title. */
    font-size: 2rem;
    color: #ffdd44;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.intro-text {
    /* @tweakable The styling for the intro text container. */
    max-width: 800px;
    /* @tweakable The vertical distance from the top of the screen for the intro text. */
    margin: 10vh auto 40px;
    padding: 20px;
    background: rgba(0,0,0,0.5);
    border-radius: 10px;
    text-align: left;
    border: 1px solid rgba(255,255,255,0.2);
}

.intro-text h1 {
    /* @tweakable The font size for the intro title. */
    font-size: 1.8rem;
    color: #ffdd44;
    text-align: center;
    margin-bottom: 20px;
}

.intro-text p {
    /* @tweakable The font size for the intro paragraph text. */
    font-size: 1rem;
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 15px;
}

.character-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.character-btn {
    background: linear-gradient(145deg, #4a4a4a, #3a3a3a);
    border: 3px solid #666;
    border-radius: 15px;
    padding: 25px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 300px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.character-btn:hover {
    border-color: #ffdd44;
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(255, 221, 68, 0.2);
}

.character-portrait {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #888;
    margin-bottom: 20px;
    background: #222;
    object-fit: cover;
}

.character-btn:hover .character-portrait {
    border-color: #ffdd44;
}

.character-btn h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.character-btn p {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.4;
    flex-grow: 1;
    margin-bottom: 15px;
}

.character-stats {
    display: flex;
    justify-content: space-around;
    width: 100%;
    font-size: 0.9rem;
    color: #ddd;
    background: rgba(0,0,0,0.3);
    padding: 8px;
    border-radius: 8px;
}

#gameCanvas {
    display: block;
    background: #3a3a3a;
    cursor: default;
}

.ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}