.previous-olympiad-subtitle {
    color: var(--main-color);
    font-weight: bold;
    border-bottom: 1px solid rgba(0,0,0,0.3);
    font-size: 20px;
    margin-bottom: 40px;
}

td > a > img {
    max-width: 20px !important;
}

.post {
    padding: 10% !important;
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin: 0 !important;
}

table {
    border-collapse: collapse;
}

td {
    padding: 5px;
}

th {
    font-size: 10pt !important;
}

div.stage-title {
  font-size: large;
  font-weight: bold;
  border-bottom: 1pt black solid;
  margin-top: 10px;
}

div.stage-content {

}

.stats_table {
  width: 100%;
  margin-top: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.stats_table > tbody > tr, .stats_table > tbody > tr >  td {
  border: 1pt black solid;
}

.timetable_table {
  margin-top: 20px;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.timetable_table > tbody > tr, .timetable_table > tbody > tr >  td {
  border: 1pt black solid;
}

.problems_previous_olympiad{
  margin-left: auto;
  margin-right: auto;
  width: 50% !important;
 }

.international_name{
    font-style: italic;
}


.tab {
    border: 2px solid var(--main-color);
    color: var(--main-color);
    border-radius: 160px;
    display: inline-block;
    padding: 3px;
    width: 98px;
    margin: 3px;
    text-align: center;
}

.tab.active {
    background-color: var(--main-color);
    color: white;
}

.tab:hover.clickable {
    background-color: var(--main-color-hover);
    cursor: pointer;
}

.tab.non-clickable {
    border: 2px solid grey;
    color: grey;
}


.choice {
    position: fixed;
    height: 70vh;
    width: 20vh;
    overflow: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px;
    outline: 10px;
    text-align: center;
    border: 2px solid var(--main-color);
    margin-left: 20px;
    color: var(--color2);
}


.choice::-webkit-scrollbar {
  /* ukrywa pasek przewijania w Chrome, Safari */
  display: none;
}

.choice-content {
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: inline-block;
    flex-direction: column;
}


.olympiad-view {
    padding: 10px;
    display: inline-block;
    flex-grow: 1;
    margin-left: 35vw;
    max-width: 60vw;
}

.previous-olympiads-content {
    display: flex;
    margin-bottom: 10px;
    margin-top: 20px;
    width: 90%;
}

.hidden-title {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--main-color);
    width: 25%;
    height: 100px;
    color: white;
    font-size: 20px;
    font-weight: 1.1;
    cursor: pointer;
    margin: 10px;
}

.hidden-title > span {
    margin: 5px;
}

.hidden-title:hover {
    opacity: 0.9 !important;
}

.hidden-post {
    display: none;
    position: relative;
    bottom: 0;
}

.post-title {
}

.content-title-wrapper {
    width: 100%;
    display: block;
}

.posts-content {
    display: flex;
    align-items: start !important;
}

.content_displayer {
    margin-top: 40px;
    min-height: 50vh;
    width: 100%;
}


.content p {
    display: block;
    width: 100%;
    font-family: sans-serif;
    font-size: 18px;
    margin: 0 20% 20px 20%;
}

@media screen and (max-width: 900px) {
    .content p {
        margin: 0 5% 20px 5%;
        font-size: 16px;
    }

    .olympiad-view {
        width: 100%;
        margin: 10px 0 -10px 0;
        padding: 0;
    }

    .choice {
        display: block;
        position: static;
        width: 70vw;
        height: 20vh;
        margin: auto;
    }

    .choice-content {
        width: 100%;
        display: flex;
        justify-content: center;
        text-align: center;
    }

    .previous-olympiads-content {
        flex-direction: column;
        width: 100%;
    }

    .hidden-title {
        opacity: 1 !important;
        width: 100%;
        padding: 0;
        height: initial;
        margin: 10px 0;
    }

    .olympiad-view {
        max-width: calc(100% - 40px);
        overflow: scroll;
        padding: 20px;
    }

    th {
        padding: 20px !important;
    }

    .content_displayer {
        display: none;
    }


    .hidden-post {
        width: 100%;
        overflow: scroll;
    }

    .previous-olympiad-subtitle {
        display: none;
    }

    .stage-title {
        display: none;
    }

    td, table.list td {
        padding: 2px !important;
        font-size: 10px !important;
    }

    th {
        padding: 10px !important;
    }

}