.events {
    width: 100%;
    margin: 0 25px;
    height: 0;
    background-color: dodgerblue;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: 0.2s ease-in-out;
    position: relative;
}

main>div:nth-of-type(even)>div,
main>div:nth-of-type(even)>p {
    background-color: #E03731;
}

.event-year {
    width: 110px;
    font-size: 35px;
    font-weight: bold;
    color: white;
    text-align: right;
    border-right: 3px solid white;
    padding-right: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.event {
    background-color: rgba(250, 250, 250, 0.25);
    width: 200px;
    height: 150px;
    border-radius: 10px;
    margin: 10px;
    text-decoration: none;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
    transition-duration: 300ms;
}

.event:hover {
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 1);
}

.event p {
    color: black;
    font-size: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* number of lines to show */
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.event h2 {
    color: black;
    font-size: 25px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* number of lines to show */
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.years {
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

.accordion {
    width: 100%;
    margin: 25px;
    margin-bottom: 0;
    background-color: dodgerblue;
    align-items: center;
    padding: 5px;
    border-radius: 10px;
    box-shadow: none;
    border: none;
    cursor: pointer;
    font-size: 35px;
    font-weight: bold;
    color: white;
    transition-duration: 300ms;
    position: relative;
}

.accordion:hover {
    background-color: #0483ff;
}

main>div:nth-of-type(even)>p:hover {
    background-color: #C9312C;
}

.accordion::before {
    content: '+';
    color: white;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

.years.active .accordion::before {
    content: '-';
}

.years.active .accordion {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.years.active .events {
    height: fit-content;
    max-height: fit-content;
    overflow: visible;
    display: flex;
    padding: 20px;
}

@media screen and (min-width: 1200px) {
    .events {
        border-radius: 10px;
        height: 200px;
        max-height: 200px;
        overflow: visible;
        display: flex;
        padding: 20px;
        margin: 10px;
    }
}