#find_date_block {
width: 800px;
margin: 0 auto;
font-size: 22px;
}

#find_date {
width: 55px;
padding-bottom: 5px;
color: var(--dark);
background: transparent;
text-align: center;
font-family: "ZenKakuGothicNew-Regular", serif;
font-size: 22px;
border: 0px solid transparent;
border-bottom: 2px solid var(--dark);
}

#find_date::placeholder {
color: var(--gray);
}

#what_happened {
margin: 40px auto 0;
width: max-content;
}

input:focus {
outline: none;
}

#find {
width: 140px;
margin: 40px auto;
}

#dates {
white-space: pre-line;
margin: 0 auto 80px;
width: 800px;
font-size: 22px;
}

#dates>font {
font-family: "ZenKakuGothicNew-Bold", serif;
}

#date_list {
width: 100%;
color: var(--dark);
position: relative;
white-space: nowrap;
overflow: hidden;
left: 50%;
transform: translate(-50%);
opacity: 0;
transition: .3s;
}

#date_list>div {
display: inline-flex;
width: 20%;
min-height: 52px;
font-size: 22px;
justify-content: center;
opacity: 1;
position: relative;
padding-bottom: 20px;
cursor: pointer;
transition: opacity .3s, visibility 0s;
}

#date_list>div:before {
content: "";
position: absolute;
display: flex;
width: 2px;
height: 8.5px;
background: var(--dark);
bottom: 0;
}

#date_list>div:after {
content: "";
position: absolute;
display: flex;
width: 66.6%;
height: 5px;
border-left: 2px solid var(--dark);
border-right: 2px solid var(--dark);
bottom: 0;
}

#date_list>div:nth-child(1) {
opacity: .3;
}

#date_list>div:nth-child(2) {
opacity: .6;
}

#date_list>div:nth-child(4) {
opacity: .6;
}

#date_list>div:nth-child(5) {
opacity: .3;
}

#events {
white-space: pre-line;
}

#events>font {
margin-bottom: 5px;
display: inline-block;
}

#only_ege {
text-align: center;
margin: 80px 0 40px;
font-family: "Raleway", serif;
font-size: 53px;
}

.title_dates {
color: var(--dark);
font-family: "Raleway", serif;
text-align: center;
font-size: 48px;
margin: 50px auto;
width: max-content;
}

.arrows {
margin-top: -20px;
display: flex;
justify-content: space-between;
}

.arrows>img {
width: 50px;
height: 50px;
background: var(--dark);
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
visibility: hidden;
justify-content: center;
}

#right {
transform: rotate(180deg);
}

.title {
font-size: 48px;
max-width: 800px;
margin: 100px auto 80px;
text-align: center;
font-family: "Raleway", serif;
}

.title2 {
margin-bottom: 0;
}

.theme_dates {
margin-top: 40px;
text-align: center;
color: var(--gray);
display: none;
}

.no_date {
text-align: center;
color: var(--gray);
}


@media (max-width: 850px) {
#find_date_block,
#dates {
width: calc(100% - 40px);
overflow: hidden;
}

.title_dates,
.title {
font-size: 32px;
}
}

@media (max-width: 768px) {

#dates,
#find_date_block,
#date_list>div,
#find_date {
font-size: 19px;
}

.arrows {
margin-top: 40px;
}

#find {
margin: -50px auto 80px;
}
}

@media (max-width: 320px) {
#find {
margin: 40px auto;
}
}