:root {
    --primary-color: #0077be;
    --accent-color: #ffcc00;
    --text-color: #ffffff;
    --bg-overlay: rgba(0, 0, 0, 0.7);
}

body {
    margin: 0;
    padding: 0;
    background-color: #222;
    font-family: 'Noto Sans TC', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

#game-container {
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

canvas {
    display: block;
    background-color: #006994; /* Ocean blue base */
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-overlay);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    text-align: center;
    backdrop-filter: blur(5px);
}

.hidden {
    display: none !important;
}

h1 {
    font-size: 3rem;
    color: var(--accent-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

h2 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 15px 40px;
    font-size: 1.5rem;
    background-color: var(--accent-color);
    color: #333;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: bold;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--accent-color);
}

.btn:active {
    transform: scale(0.95);
}

#hud {
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px black;
    pointer-events: none;
}

.modal-img {
    max-width: 200px;
    margin-bottom: 20px;
}

.modal-img-large {
    max-width: 300px;
    margin-bottom: 20px;
}
