* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Impact', 'Arial', sans-serif;
    background: linear-gradient(135deg, #ff0066, #330099);
    color: #fff;
    text-align: center;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

/* $HHH Texts in Corners */
.hhh-left, .hhh-right {
    position: fixed;
    top: 20px;
    font-size: 4em;
    font-weight: bold;
    color: #ffffff;
    border: 3px solid #ffcc00;
    border-radius: 10px;
    padding: 5px 10px;
}

.hhh-left {
    left: 20px;
}

.hhh-right {
    right: 20px;
}

/* Pop-up */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: #1a0033;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 20px #ff0066;
    max-width: 500px;
    text-align: center;
}

.popup-content p {
    color: #00ffcc;
    font-size: 1.5em;
    margin-bottom: 20px;
}

.popup-content button {
    padding: 15px 30px;
    background: #ff0066;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2em;
}

.popup-content button:hover {
    background: #cc0052;
    box-shadow: 0 0 15px #ff0066;
}

/* Main Title */
.main-title {
    font-size: 4.5em;
    color: #ffcc00;
    margin: 20px 0;
    /* Removed animation: glow 2s infinite */
}

/* Canvas Container */
.canvas-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.canvas {
    background: #1a0033;
    border: 5px solid #ff0066;
    border-radius: 15px;
    box-shadow: 0 0 20px #ff0066;
    width: 380px;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.canvas:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px #ff0066;
}

.middle-canvas {
    width: 850px;
    height: 700px;
    background: #330066;
}

.canvas-content {
    color: #00ffcc;
    font-size: 1.6em;
    line-height: 1.4;
}

.canvas-content h2 {
    font-size: 2.2em;
    color: #ffcc00;
    margin-bottom: 15px;
}

.canvas-content a {
    color: #ffcc00;
    font-weight: bold;
}

.canvas-content a:hover {
    text-decoration: underline;
    color: #ffcc00;
}

.right-canvas .canvas-content p:first-child {
    font-style: italic;
    font-size: 1.8em;
}

.right-canvas .canvas-content p:last-child {
    font-size: 1.4em;
    margin-top: 15px;
}

/* Game Content */
.game-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-top: 20px;
}

.score-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 40px;
    margin-bottom: 20px;
}

.score-row h2 {
    font-size: 1.8em;
    color: #ffcc00;
}

.image-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 15px 0;
}

.choice-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 38%;
}

.choice-container img {
    width: 300px;
    height: 300px;
    border: 3px solid #ff0066;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px #ff0066;
}

.choice-container p {
    color: #00ffcc;
    font-size: 1.4em;
    margin-top: 10px;
}

.result-container {
    width: 24%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#result {
    font-size: 1.6em;
    color: #ffcc00;
    min-height: 2em;
    text-align: center;
}

.game-content h3 {
    font-size: 1.6em;
    color: #00ffcc;
    margin: 15px 0;
}

#choices {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0 20px 0;
}

#choices img {
    width: 150px;
    height: 150px;
    cursor: pointer;
    transition: transform 0.2s, border 0.2s, box-shadow 0.2s;
    border: 3px solid transparent;
    border-radius: 10px;
}

#choices img:hover {
    transform: scale(1.15);
    border-color: #ffcc00;
    box-shadow: 0 0 15px #ffcc00;
}

#choices img.selected {
    border-color: #00ffcc;
    box-shadow: 0 0 15px #00ffcc;
}

/* Buttons */
.button-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 25px 0;
}

button {
    padding: 12px 25px;
    font-size: 1.4em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-transform: uppercase;
}

#music-toggle {
    background: #ff0066;
    color: #fff;
}

#music-toggle:hover {
    background: #cc0052;
    box-shadow: 0 0 15px #ff0066;
}

#reset-button {
    background: #00ffcc;
    color: #1a0033;
}

#reset-button:hover {
    background: #00cc99;
    box-shadow: 0 0 15px #00ffcc;
}

#score-button {
    background: #ffcc00;
    color: #1a0033;
}

#score-button:hover {
    background: #cc9900;
    box-shadow: 0 0 15px #ffcc00;
}

button:active {
    transform: scale(0.95);
}

/* Win/Lose Pop-up */
#game-result-popup .popup-content {
    background: #1a0033;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 0 20px #ff0066;
    max-width: 600px;
    text-align: center;
}

#game-result-popup p {
    color: #00ffcc;
    font-size: 1.8em;
    margin-bottom: 20px;
}

#game-result-popup input {
    padding: 10px;
    font-size: 1.2em;
    margin: 15px 0;
    border: 2px solid #ff0066;
    border-radius: 5px;
    background: #fff;
    color: #1a0033;
    width: 200px;
}

#game-result-popup button {
    padding: 15px 30px;
    background: #ff0066;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2em;
    margin: 10px;
}

#game-result-popup button:hover {
    background: #cc0052;
    box-shadow: 0 0 15px #ff0066;
}