body {
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f0f0;
    margin: 0;
    padding: 10px; /* 小さな余白を追加 */
    box-sizing: border-box; /* paddingがwidthに含まれるように設定 */
}

.container {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 800px; /* PCでの最大幅を設定 */
    width: 100%; /* 小さい画面では幅100% */
}

h1 {
    color: #333;
}

#start-button,
#answer-button {
    padding: 10px 20px;
    font-size: 1.2em;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    color: #fff;
    background-color: #007bff;
    margin-top: 20px;
    transition: background-color 0.3s;
}

#start-button:hover,
#answer-button:hover {
    background-color: #0056b3;
}

#game-area {
    margin-top: 20px;
}

#top-image-container {
    margin-bottom: 30px;
    height: 200px; /* 画像の高さに合わせて調整 */
    display: flex;
    justify-content: center;
    align-items: center;
}

#top-image {
    max-width: 100%;
    max-height: 100%;
    transform-origin: center;
}

#choices-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    margin-top: 20px;
}

.choice {
    text-align: center;
    width: 30%;
    position: relative;
    transition: opacity 0.5s;
}

.choice-image {
    width: 100%;
    height: auto;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.choice-button {
    position: absolute;
    top: -30px; /* 画像の上に配置 */
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    font-size: 1em;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f8f9fa;
}

.correct-choice .choice-image {
    border-color: green;
}

.hidden {
    display: none;
}

/* 768px以上の画面に適用されるスタイル（タブレットやPC向け） */
@media (min-width: 768px) {
    .container {
        padding: 30px;
    }

    #choices-container {
        max-width: 600px; /* 選択肢のコンテナの最大幅を設定 */
        margin-left: auto;
        margin-right: auto;
    }
}