body {
    background-color: rgb(116, 24, 161);
}

.top-title {
    width: 50%;
    margin: 0 auto;
    text-align: center;
    margin-top: 40px;
    color: aliceblue;
    font-size: 18px;
}

.top-image {
    width: 50%;
    margin: 0 auto;
}

.top-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
}

.character-image {
    width: 50%;
    margin: 0 auto;
}

.character-image img {
    width: 100%;
    height: auto;
    display: block;
}

.introduction {
    width: 50%;
    margin: 0 auto;
    text-align: center;
    font-size: 24px;
    color: aliceblue;
}

.content {
    width: 50%;
    margin: 0 auto;
    text-align: center;
    font-size: 16px;
    color: aliceblue;
}

.quiz-title {
    color: aliceblue;
    text-align: center;
}

#question-number {
    color: orange;
    font-weight: bold;
    text-decoration: underline;
}

#question-title {
    color: aliceblue;
}

.start-button {
    width: 50%;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 40px;
    margin-top: 40px;
}

.start-button a {
    font-size: 24px;
    font-family: "Hiragino Maru Gothic ProN", sans-serif;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 12px;
    background-color: orange;
    color: aliceblue;
}

.start-button a:hover {
    background-color: #ff7518;
    box-shadow: 0 3px 0 #663399;
    transform: translateY(2px);
}

.start-button a:active {
    box-shadow: 0 0 0 #663399;
    transform: translateY(5px);
}

#error-message {
    color: #ffb347;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin: 16px auto;
}

.selected {
    background-color: #ffcc80;
}

#answer-container button.selected {
    background-color: #ffcc80;
}

#answer-container button {
    width: 100%;
    padding: 16px;
    text-align: left;
    line-height: 1.6;
    box-sizing: border-box;

    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: white;
    cursor: pointer;
}

#answer-container button:hover {
    background-color: #fff3e0;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.navigation-buttons button {
    font-size: 18px;
    font-weight: bold;
    padding: 10px 24px;
    border-radius: 10px;
    cursor: pointer;
}

#prev-button {
    background-color: white;
    color: #663399;
    border: 2px solid #663399;
    box-shadow: 0 4px 0 #663399;
}

#next-button {
    background-color: orange;
    color: white;
    border: 2px solid #663399;
    box-shadow: 0 4px 0 #663399;
}

#next-button:active {
    box-shadow: 0 0 0 #663399;
    transform: translateY(4px);
}

#prev-button:active {
    box-shadow: 0 0 0 #663399;
    transform: translateY(4px);
}

.result-title {
    text-align: center;
    color: aliceblue;
}

#result-button {
    text-align: center;
    margin: 20px auto;
    
    padding: 10px 24px;
    background-color: orange;
    color: aliceblue;
    font-size: 20px;
    font-weight: bold;
    font-family: "Hiragino Maru Gothic ProN", sans-serif;
    border: 3px solid #663399;
    border-radius: 16px;
    box-shadow: 0 5px 0 #663399;
    cursor: pointer;
    transition: 0.2s;
}

#result-button:hover {
    background-color: #ff7518;
    box-shadow: 0 3px 0 #663399;
    transform: translateY(2px);
}

#result-button:active {
    box-shadow: 0 0 0 #663399;
    transform: translateY(5px);
}

#result-container {
    width: 70%;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    color: aliceblue;
}

.character-image {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.character-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
}

#character-name {
    color: aliceblue;
    font-size: 28px;
    margin-top: 24px;
    margin-bottom: 16px;
}

#character-comment {
    color: aliceblue;
    font-size: 18px;
    line-height: 1.8;
    margin: 0 auto 32px;
}

.top-button {
    text-align: center;
    margin: 20px auto;
}

#top-button {    
    padding: 10px 24px;
    background-color: orange;
    color: aliceblue;
    font-size: 20px;
    font-weight: bold;
    font-family: "Hiragino Maru Gothic ProN", sans-serif;
    border: 3px solid #663399;
    border-radius: 16px;
    box-shadow: 0 5px 0 #663399;
    cursor: pointer;
    transition: 0.2s;
}

#top-button:hover {
    background-color: #ff7518;
    box-shadow: 0 3px 0 #663399;
    transform: translateY(2px);
}

#top-button:active {
    box-shadow: 0 0 0 #663399;
    transform: translateY(5px);
}

.share-button {
    text-align: center;
    margin: 20px auto;
}

#share-button {    
    padding: 10px 24px;
    background-color: black;
    color: white;
    font-size: 16px;
    font-weight: bold;
    font-family: "Hiragino Maru Gothic ProN", sans-serif;
    border: 3px solid white;
    border-radius: 16px;
    box-shadow: 0 3px 0 white;
    cursor: pointer;
    transition: 0.2s;
}

.progress-container {
    width: 100%;
    margin: 20px 0;
}

.progress-track {
    position: relative;
    width: 100%;
    height: 18px;
    background-color: #fff;
    border-radius: 10px;
    background-image: repeating-linear-gradient(
        to right,
        transparent 0,
        transparent calc(10% - 1px),
        #800080 calc(10% - 1px),
        #800080 10%
    );
}

.progress-fill {
    width: 0%;
    height: 100%;
    background-color: #ffcc80;
    border-radius: 10px;
}

.progress-spider {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(0, -50%);
    font-size: 18px;
    line-height: 1;
}

.progress-spider img {
    display: block;
    width: 40px;
    height: auto;
}


@media (max-width: 600px) {
    .top-title {
        width: 90%;
    }

    .top-title h1 {
        font-size: 16px;
    }
    
    .top-image {
        width: 90%;
    }
    
    .introduction h2 {
        font-size: 16px;
    }
    .content p {
        font-size: 16px;
    }
    .start-button {
        width: 90%;
    }

    .start-button button {
        font-size: 16px;
    }

    #question-title {
        font-size: 18px;
        line-height: 1.6;
        min-height: 5.6em;
    }

    #answer-container {
        min-height: 300px;
    }

    #answer-container button {
        min-height: 80px;
    }
}