body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
    padding-top: 5vh;
    overscroll-behavior-y: contain;
}

#game-container {
    width: 300px;
    text-align: center;
    touch-action: none;
}

#stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

#card-container {
    height: 400px;
    perspective: 1000px;
}

#card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s, opacity 0.5s;
    cursor: grab;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

#character-name {
    font-weight: bold;
    font-size: 1.4em;
    margin-bottom: 15px;
}

#scenario {
    font-size: 1.2em;
    line-height: 1.4;
}

#choices {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

button {
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
}

button.highlight {
    background-color: #f0f0f0;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

#status-text {
    margin-top: 20px;
    font-size: 1em;
    color: #666;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

html, body {
    overflow: hidden;
    position: fixed;
    height: 100%;
    width: 100%;
}