* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    font-family: Arial, Helvetica, sans-serif;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

html,
body {
    height: 100%;
}

::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
}

::-webkit-scrollbar-thumb:hover {
    background: transparent;
}

#cover {
    width: 100vw;
    height: 100dvh;
    position: fixed;
    z-index: 100;
    background-color: rgb(6, 30, 42);
    opacity: 1;
    display: block;
}

video {
    object-fit: fill;
    z-index: -1;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes fade_out {
    0% {
        opacity: 1;
        display: block;
    }

    90% {
        opacity: 1;
        display: block;
    }

    100% {
        opacity: 0;
        display: none;
    }
}

.scroll_page {
    height: 100vh;
    background: rgb(6, 30, 42);
    scroll-snap-align: start;
}

.pages {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
}

.page {
    width: 100vw;
    height: 100dvh;
    position: fixed;
    top: 0;
    left: 0;
    transform-origin: center;
    /*transition: scale 20ms;*/
}

.bgr {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.frame {
    width: 100%;
    height: 100%;
}

.frame .vertical {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.frame .horizontal {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.frame .right,
.frame .left {
    min-width: 8dvh;
    height: 100%;
}

.frame .top,
.frame .bottom {
    width: 100%;
    min-height: 8dvh;
    display: flex;
    flex-direction: row;
}

.frame .middle {
    width: 100%;
    height: 100%;
}

.frame .c_top_left,
.frame .c_bottom_right,
.frame .c_top_right,
.frame .c_bottom_left {
    min-width: 8dvh;
    height: 100%;
}

.content {
    background: linear-gradient(180deg, rgba(8, 47, 65, 0.9) 0%, rgba(73, 120, 143, 0.9) 100%);
    padding: 20px;
    color: white;
    font-size: large;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(100% - 16vh);
    flex-grow: 1;
    height: 100%;
    max-height: 84dvh;
    overflow-y: scroll;
}

.content p {
    max-width: 100%;
}

#page8 nav {
    width: 100%;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
}

nav {
    font-family: Arial, Helvetica, sans-serif;
    width: 100%;
    height: 7rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: left;
}

nav .logo img {
    height: 5rem;
}

nav .logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

nav .links {
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    max-width: 45rem;
    justify-content: space-around;
    align-items: center;
    margin: 0 50px;
}

nav .links a {
    text-decoration: none;
    color: white;
    line-height: 7rem;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
}

.column {
    margin: 0 auto;
    max-width: 60rem;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.column p {
    text-align: justify;
    margin-top: 2rem;
}


.popup {
    padding: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.popup p {
    text-align: justify;
    margin-bottom: 1.5rem;
}

.popup h1 {
    margin-bottom: 0.5rem;
}

#medailon {
    color: #ececec;
}

.popup .top_row {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.popup .top_row button {
    height: 100%;
    background-color: transparent;
    border: none;
    color: white;
    font-weight: 800;
    font-size: large;
    text-align: center;
    cursor: pointer;
}

.popup .info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: left;
}

.popup .info p {
    padding-right: 20px;
}

.harmonogram h1 {
    padding-bottom: 20px;
    text-align: center;
}

h3 {
    margin-top: 1rem;
}

.harmonogram {
    max-width: 100%;
}


.harmonogram .table_boundry {
    max-width: 100%;
    overflow-x: auto;
}

.harmonogram ::-webkit-scrollbar {
    height: 10px;
    background: rgba(255, 255, 255, 0.);
}

.harmonogram ::-webkit-scrollbar-track {
    border-radius: 5px;
    background: transparent;
}

.harmonogram ::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background: #fafafa;
}

.harmonogram ::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

.harmonogram table {
    width: 100%;
    border-collapse: collapse;
}

.harmonogram table tr:first-child th {
    border-bottom: #fafafa 2px solid;
}

.harmonogram table th {
    text-align: center;
    padding: 10px;
}

.harmonogram table tr {
    max-height: 15dvh;
}

.harmonogram table td {
    cursor: pointer;
    min-width: 12rem;
    padding: 0.2rem;
}

.harmonogram table td p {
    text-align: center;
}

.harmonogram table td .presenter {
    font-weight: bold;
    margin: 0.2rem 0.5rem 0.2rem 0.5rem;
}

.harmonogram table td .lecture {
    margin: 0 0.2rem;
    font-size: 0.9rem;
    max-width: 20rem;
}

.contacts_column {
    margin: 0 auto;
    max-width: 80rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: start;
}

.contacts_p {
    max-width: 45rem;
}

.contacts_p p {
    font-size: min(1.3rem, 4vw);
    margin-top: min(1rem, 1.5vh);
    margin-right: 1rem;
}

.contacts_row {
    display: flex;
    flex-direction: row;
    height: 100%;
}

iframe {
    width: 100%;
    height: 100%;
    max-height: 15rem;
}

footer {
    width: 100%;
    height: 25px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

footer p {
    width: 100%;
    text-align: center;
    font-size: min(1rem, 2vw);
}

#frame_overlay0,
#frame_evening_overlay0 {
    box-shadow: 0px 0px 10px 10px rgba(0, 0, 0, 0.3);
    position: fixed;
    z-index: 99;
    width: 80vw;
    height: 80dvh;
    left: 10vw;
    top: 10dvh;
    background-color: rgba(2, 34, 89, 1);
    transition: scale 500ms;
}


#frame_overlay0 .content,
#frame_evening_overlay0 .content {
    height: 64dvh;
    overflow: scroll;
}

@media only screen and (max-width: 1250px) {
    nav {
        flex-direction: column;
        height: 6rem;
    }

    nav .logo img {
        height: 3rem;
    }

    nav .links {
        height: 2rem;
        width: 100%;
        max-width: 100%;
    }

    nav .links a {
        font-size: 1.2rem;
        line-height: 1.5rem
    }

    .contacts_row iframe {
        margin-top: 2rem;
    }

    .contacts_row {
        flex-direction: column;
    }
}

@media only screen and (max-width: 900px) {

    #about {
        min-width: 3.5rem;
    }

    .content {
        padding: 5px;
        max-height: 92dvh;
    }

    h3 {
        font-size: min(3vw, 1.17em);
    }

    h1 {
        font-size: 1.5rem;
    }

    p {
        font-size: 0.9rem;
    }

    #frame_overlay0 .content,
    #frame_evening_overlay0 .content {
        height: 72dvh;
    }

    .column {
        padding: 0.5rem;
    }


    .frame .right,
    .frame .left {
        min-width: 4dvh;
    }

    .frame .top,
    .frame .bottom {
        min-height: 4dvh;
    }

    .frame .c_top_left,
    .frame .c_bottom_right,
    .frame .c_top_right,
    .frame .c_bottom_left {
        min-width: 4dvh;
    }

    .frame .c_top_right,
    .frame .c_bottom_left {
        min-width: 4dvh;
    }

}

@media only screen and (max-width: 1200px) {
    .popup p {
        font-size: 1rem;
    }

    .popup h1 {
        font-size: 1.5rem;
    }
}

@media only screen and (max-width: 800px) {
    .popup p {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .popup h1 {
        font-size: 1.5rem;
    }

    #frame_overlay0 {
        width: 90vw;
        height: 90dvh;
        left: 5vw;
        top: 5dvh;
    }

    #frame_overlay0 .content,
    #frame_evening_overlay0 .content {
        height: 82dvh;
    }

    .popup {
        padding: 10px;
    }

    .popup #medailon {
        margin-bottom: 0;
    }
}

@media only screen and (max-width: 600px) {
    .popup p {
        font-size: 0.8rem;
    }

    .popup {
        padding: 5px;
    }

    .popup h1 {
        font-size: 1.0rem;
    }
}

@media only screen and (min-width: 900px) and (max-height:850px) {
    .content {
        padding: 5px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .column {
        padding: 0.5rem;
    }
}

@media only screen and (max-width: 500px) {
    h3 {
        font-size: 3vw;
    }

    h1 {
        font-size: 1.3rem;
    }

    p {
        font-size: 0.8rem;
    }

    nav .links a {
        font-size: 0.8rem;
        line-height: 1.1rem
    }

    #about {
        min-width: 2.4rem;
    }
}

@media only screen and (max-width: 500px),
(max-height: 750px) {
    .harmonogram table td .lecture {
        font-size: 0.65rem;
    }

    .harmonogram table td .presenter {
        font-size: 0.8rem;
    }
}


@media only screen and (max-height: 600px) and (max-width: 600px) {
    nav {
        flex-direction: row;
        height: 1.7rem;
    }

    nav .logo img {
        height: 1rem;
    }

    nav .links {
        height: 1.7rem;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    nav .links a {
        font-size: 1.2rem;
        line-height: 1.3rem
    }

    h1 {
        font-size: 0.8rem;
        margin: 0 !important;
    }

    .column p {
        margin-top: 1vh;
    }

    .column {
        padding: 0.1rem;
    }

    nav .links a {
        font-size: 0.8rem;
    }

    .contacts_p p {
        font-size: 0.8rem;
    }
}

@media only screen and (max-height: 450px) and (max-width: 340px) {
    h1 {
        font-size: 0.7rem;
        margin: 0 !important;
    }

    p {
        font-size: 0.7rem;
    }
}