body {
    font-family: 'Meiryo', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f5f5f5;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.score-container {
    display: flex;
    justify-content: center;
    width: 100%;
    font-size: 18px;
    font-weight: bold;
}

.futon-container {
    position: relative;
    width: 400px;
    height: 300px;
}

#futon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('futon.png');
    background-size: cover;
    border-radius: 10px;
    z-index: 1;
}

#sheet {
    position: absolute;
    width: 380px;
    height: 280px;
    background-color: rgba(255, 255, 255, 0.6);
    border: 2px dashed #3366cc;
    border-radius: 8px;
    top: 10px;
    left: 10px;
    z-index: 2;
    transform-origin: center;
    transition: transform 0.3s ease;
    cursor: grab;
}

.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

#startButton, #endButton {
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#startButton {
    background-color: #4CAF50;
}

#endButton {
    background-color: #f44336;
}

#startButton:hover {
    background-color: #45a049;
}

#endButton:hover {
    background-color: #d32f2f;
}

#rating {
    color: #333;
    text-align: center;
    padding: 5px 10px;
    border-radius: 5px;
    background-color: #f0f0f0;
}

#message, #finalMessage {
    height: 20px;
    font-size: 18px;
    color: #ff6b6b;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
}

#finalMessage {
    color: #3366cc;
    font-size: 20px;
}

#instruction {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #333;
    font-size: 16px;
    z-index: 3;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 10px;
    border-radius: 5px;
    line-height: 1.5;
}

