.testBlock {
    background-color: white;
    width: 50%;
    height: 60%;

    border-radius: 60px;
    margin-top: 40px;
    padding-top: 30px;

    display: flex;

    z-index: 2;
}

.text {
    margin-left: auto;
    margin-right: auto;

    width: 100%;
    height: auto;

    font-size: 35px;

    margin-top: 20px;
    margin-bottom: 50px;

    text-align: center;
}

#answer {
    background-color: green;
    width: 70%;

    margin-left: auto;
    margin-right: auto;

    margin-top: 80px;
}

/*  */
.test-container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;

    display: flex;
    flex-flow: column;
    align-items: center;
}

#question-container {
    margin-bottom: 30px;
    width: 80%;
    display: flex;
    flex-flow: column;
    align-items: center;
}

.question {
    font-size: 20px;
    margin-bottom: 60px;
}

.answer-options {
    display: grid;
    grid-template-columns: repeat(2, auto);
    grid-row-gap: 20px;
    width: 100%;
}

.answer-option {
    background-color: #f4f4f4;
    border-radius: 4px;
    padding: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 80%;
    text-align: center;
}

.answer-option:hover {
    background-color: #cccccc;
}

.answer-option.selected {
    background-color: #4CAF50;
    color: white;
}

.results {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
}

.numberQuestionContainer {
    width: 100%;
    --height: 40px;

    margin-left: -20px;
    margin-top: 30px;

    display: flex;
    align-items: center;
}

.qnumber {
    height: 30px;
    width: 30px;
    border-radius: 50%;
    background-color: #cccccc;
    font-size: larger;
    font-weight: bold;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-left: 20px;
    margin-right: 20px;
}

.progressBarOuter {
    height: 80%;
    width: 100%;
    border-radius: calc(var(--height) * 0.5);
    background-color: #252525;

    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.progressBarInner {
    height: 90%;
    width: 2%;
    margin-left: 2px;
    background-color: #00FF43;
    border-top-left-radius: calc(var(--height) * 0.45);
    border-bottom-left-radius: calc(var(--height) * 0.45);
}

/* Кнопка далее */
#start-button,
#restart-button,
.nextButton {
    margin-top: 30px;
    width: 100%;
    height: 5vh;
    border-radius: 2.5vh;
    border-color: #927052;
    background-color: #C9AD87;
    border-style: solid;
    color: #623F26;
    font-size: larger;
    font-family: inherit;
}

#restart-button {
    width: 20vw;
}

.nextButton {
    width: 150px;
    height: 50px;
    margin-top: 50px;
    align-self: flex-end;
    margin-right: 40px;
}

#start-button:hover,
#restart-button:hover,
.nextButton:hover {
    background-color: #927052;
    border: solid 3px #C9AD87;
    color: #ded5c7;
    cursor: pointer;
}


/* Выбор количества вопросов */
#question-selection-container {
    margin-top: 50px;
}

#question-selection-container input {
    margin-top: 20px;
}

#question-count-slider {
    width: 80%;
    margin: 20px auto;
    display: block;
    -webkit-appearance: none;
}

#question-count-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 5px;
    background: #C2B1A7;
    /* цвет трека */
    border-radius: 5px;
    border: none;
}

#question-count-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #C2B1A7;
    /* цвет ползунка */
    border-radius: 50%;
    border: 2px solid #6f6560;
    /* цвет обводки ползунка */
    margin-top: -7px;
}

#question-count-display {
    display: block;
    text-align: center;
    color: #35302e;
    /* цвет текста */
    font-weight: bold;
    margin-top: 10px;
}