#task {
position: relative;
perspective: 1200px;
max-width: max-content;
margin: 0 auto 100px;
width: 700px;
flex-direction: column;
display: none;
opacity: 0;
}

#term_definition {
width: 700px;
height: 360px;
position: relative;
background: white;
display: flex;
margin-top: 20px;
align-items: center;
justify-content: center;
text-align: center;
font-size: 28px;
cursor: pointer;
color: var(--dark);
background: var(--smoky_white);
border-radius: 20px;
}

#term_definition>div {
padding: 30px;
}

.turn {
animation: turn .5s linear forwards;
}


@keyframes turn {
100% {
transform: rotateX(180deg);
}
}

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

#step {
align-items: center;
display: flex;
font-size: 20px;
font-family: "Raleway", serif;
width: max-content;
margin: -37px auto 0;
}

#advice {
text-align: center;
font-size: 16px;
margin-top: 20px;
width: 70%;
color: var(--gray);
left: 50%;
transform: translate(-50%);
position: relative;
}

#advice:after {
content: ". Или нажмите кнопку Enter";
}

#right,
#left {
width: 50px;
height: 50px;
left: 20px;
padding: 16px;
display: none;
position: absolute;
box-sizing: border-box;
top: 43.5%;
cursor: pointer;
z-index: 1;
background: var(--dark);
border-radius: 50%;
}

#right>img,
#left>img {
width: 100%;
height: 100%;
}

#right>img {
transform: rotateY(180deg);
}

#right {
left: auto;
right: 20px;
margin-left: 0px;
}

#breadcrumbs {
margin: 60px auto 0;
}

#name {
font-family: "Raleway", serif;
font-size: 22px;
position: relative;
margin-top: 50px;
text-align: center;
}

@media (max-width: 940px) {

#right,
#left {
top: auto;
margin-top: -50px;
}
}

@media (max-width: 768px) {
#advice:after {
content: "";
}

#previous:hover,
#next:hover {
background: var(--dark);
}

#right,
#left {
margin-top: -80px;
}

#task {
width: 100%;
overflow: hidden;
display: flex;
flex-direction: column;
align-items: center;
margin: 0 0 100px 0;
min-width: 100%;
}

#term_definition {
width: calc(100% - 40px);
height: 270px;
font-size: 22px;
}

#advice {
left: 0;
width: calc(100% - 40px);
font-size: 16px;
transform: none;
}

#name {
width: calc(100% - 40px);
font-size: 19px;
margin-top: 20px;
}

#previous_next_step {
width: calc(100% - 40px);
margin-top: 40px;
}

#step {
padding-bottom: 20px;
}

@media (max-width: 390px) {
#step {
margin-top: 20px;
}
}
}