#task {
position: relative;
max-width: 700px;
min-height: 400px;
margin: 20px auto 16vh auto;
transition: .4s;
background: white;
height: max-content;
opacity: 0;
}

#name {
font-size: 32px;
font-family: "Raleway", serif;
text-align: center;
}

#description {
margin-top: 20px;
color: var(--gray);
font-size: 19px;
text-align: center;
margin-bottom: 20px;
}

.select {
width: 50px;
min-width: 50px;
background: var(--gray);
display: flex;
align-items: center;
font-family: "Raleway-Medium", serif;
font-weight: 500;
justify-content: center;
border-radius: 100px;
margin-left: -2px;
z-index: 1;
color: white;
position: relative;
}

.select:after {
content: "1";
color: white;
position: absolute;
z-index: -1;
margin-top: -2px;
}

.active_select {
background: var(--dark);
}

.active_select:after {
opacity: 0;
}

#event_list>.event:nth-child(2)>.select:after {
content: "2";
}

#event_list>.event:nth-child(3)>.select:after {
content: "3";
}

#event_list>.event:nth-child(4)>.select:after {
content: "4";
}

#event_list>.event:nth-child(5)>.select:after {
content: "5";
}

#event_list>.event:nth-child(6)>.select:after {
content: "6";
}

#event_list>.event:nth-child(7)>.select:after {
content: "7";
}

#event_list>.event:nth-child(8)>.select:after {
content: "8";
}

#event_list>.event:nth-child(9)>.select:after {
content: "9";
}

#event_list>.event:nth-child(10)>.select:after {
content: "10";
}

.event {
position: relative;
font-size: 19px;
cursor: pointer;
display: flex;
border-radius: 50px;
border: 2px solid #cdcdcd;
margin-bottom: 20px;
}

.text {
margin-left: 10px;
padding: 10px;
}

#event_list {
margin-top: 40px;
}

#check_block {
display: flex;
margin-top: 40px;
justify-content: center;
}

#check,
#try_again {
width: max-content;
padding: 0 40px;
margin: 0 10px;
border: 2px solid var(--dark);
background: var(--dark);
box-sizing: border-box;
}

#try_again {
display: none;
cursor: pointer;
}

.text>font {
color: var(--dark);
}

#final_result {
position: relative;
font-family: "Raleway-Medium", serif;
color: var(--dark);
font-weight: 500;
display: none;
font-size: 18px;
width: max-content;
margin: 40px auto -20px;
}

#previous_next_step {
display: flex;
justify-content: space-between;
margin-top: 40px;
}

#step {
color: var(--gray);
align-items: center;
display: flex;
font-size: 18px;
}

#previous,
#next {
padding: 0 30px;
width: max-content;
text-decoration: none;
}


#breadcrumbs {
margin: 60px auto 0;
}

#correct_answers {
display:none;
margin-top: 50px;
font-size: 19px;
white-space: pre-wrap;
}

#correct_answers>font {
font-size: 24px;
font-family: "Raleway", serif;
}

@media (max-width: 768px) {
#task {
margin-top: 20px;
margin-bottom: 18vh;
max-width: calc(100% - 40px);
}

#check_block {
flex-direction: column;
}

#check,
#try_again {
width: 100%;
margin: 10px 0;
box-sizing: border-box;
font-size: 17px;
}

#name {
font-size: 28px;
}

#step {
position: absolute;
left: 50%;
font-size: 18px;
transform: translate(-50%);
white-space: nowrap;
}

#previous,
#next {
margin-top: 50px;
width: calc(50% - 10px);
box-sizing: border-box;
height: 70px;
}
.select {
border-width: 2px;
}
}