body {
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f7f7f7;
    color: #333;
}

#game-container {
    text-align: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
    width: 400px;
}

#points-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    justify-items: center;
}

.point-item {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.point-image {
    height: 40px;
    width: auto;
    display: block;
    margin: 0 auto 5px;
}

#reels-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.reel {
    width: 100px; /* リールの外枠の幅固定 */
    height: 100px; /* リールの外枠の高さ固定 */
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* リール内画像がはみ出さないように */
}

.reel img {
    height: 50px; /* 高さを固定 */
    width: auto	; /* 比率を保持 */
    max-width: 100%; /* 外枠からはみ出さないようにする */
    object-fit: unset; /* containを解除して比率を完全保持 */
}

#stop-buttons-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

button {
    font-size: 18px;
    padding: 12px;
    background-color: #f39c12;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #e67e22;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

#score-container {
    font-size: 20px;
    margin-bottom: 10px;
}

#start-button-container {
    margin-top: 10px;
}

#message-area {
    margin-top: 20px;
    font-size: 22px;
    font-weight: bold;
    color: #2ecc71;
    width: 250px; /* メッセージボックスの幅固定 */
    height: 50px; /* メッセージボックスの高さ固定 */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto; /* 中央揃え */
    border-radius: 10px;
    background-color: #f39c12;
    color: #fff;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
}

#result-message {
    display: inline-block;
    padding: 10px 20px;
}
