@import url(resources/animations.css);
@import url(resources/carousel.css);

@import url(resources/fonts.css);


* {
    box-sizing: border-box;

    margin: 0;
    padding: 0;
}

html {
    font-size: max(14px, 1.25vw);
    scroll-behavior: smooth;

    --font-color: #3E2937;
    --bg-color: #FAFAFA;

    color: var(--font-color);
    background-color: var(--bg-color);

    font-family: Montserrat;
}

body * {
    overflow: auto;
}

h1 {
    font-size: 6rem;
    font-family: Lepka;
}

h2 {
    font-family: Lepka;
}

h3 {
    font-size: 3rem;
    font-family: Lepka;
}

h4 {
    font-size: 1.7rem;
    font-family: Lepka;
}

h5 {
    font-size: 1.2rem;
}

h6 {
    font-size: 1rem;
}

a {
    text-decoration: none;
    color: var(--font-color);
}

a:hover {
    text-decoration: underline;
}

button {
    background-color: transparent;
    border: none;

    color: var(--font-color);
}

#main-container {
    padding: 0 6rem;
    overflow-x: hidden;
}

.section {
    position: relative;
    margin: 0 6rem;
    margin-top: 12rem;
}
footer.section {
    margin-bottom: 2em;
    margin-top: 6em;
}

.section-hr {
    margin: 2em 0;
    visibility: hidden;
}

.btn:hover {
    opacity: 0.8;
}

.invisible {
    visibility: hidden;
}

.social-ref {
    display: inline-block;
    position: relative;

    line-height: inherit;
    height: 1lh;
    width: 1lh;
}
.social-ref:hover {
    opacity: 0.8;
}
.social-ref img {
    position: absolute;
    max-height: 100%;

    left: 0;
    bottom: 0;
}

.bird {
    max-height: 1lh;
}


/* navigation */
#nav-header {
    display: flex;
    justify-items: center;

    padding: 1.5em;
}

#nav-header .main-ref {
    margin-right: auto;
}

#nav-header ul {
    display: flex;
    justify-items: center;
    gap: 1em;

    list-style: none;
}

/* title */
#title div {
    margin: 0 auto;
    display: flex;
    align-items: center;
    column-gap: 3em;
    row-gap: 1em;

    width: fit-content;
}

#title h1 {
    font-family: Lepka;
}

/* about */
#about1 {
    font-size: 2rem;
}

#about1 p {
    margin-right: 35%;
}

#about1 span {
    font-family: Lepka;
}

#about2 .block {
    display: flex;
    justify-content: space-around;
    align-items: center;
    column-gap: 1.5em;
}

#about2 .block>img{
    max-width: 40%;
    min-width: 40%;
}

#about2 .block:nth-of-type(even):not(:last-of-type) {
    margin: 6em 0;
}

#about2 .block-text {
    min-width: 40%;
}

#about2 .block-text h2 {
    font-size: 2rem;
    font-family: Lepka;
    text-transform: uppercase;
}

#about2 .block-text p {
    margin-top: 1em;
}

#about2 .block-text .social-ref {
    margin-left: 0.2em;
}

/* history */
#history h1 {
    text-align: right;
    font-family: Lepka;
}

#history>div {
    display: flex;

    padding-bottom: 1em;

    gap: 5em;
}

#history .block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;

    flex-basis: 0;
    flex-grow: 1;
}

#history .block h5 {
    text-align: center;
}

#history .block p {
    text-align: center;
}

#history .block img {
    max-width: 100%;
    border-radius: 50px;
    width: auto;
}

/* registration */
#register {
    padding: 0 15%;
}

#register img {
    width: 100%;
}
#register .btn:hover+div {
    opacity: 0.8;
}

#register div {
    position: absolute;
    display: flex;

    left: 0;
    top: 0;
    width: 100%;
    height: 100%;

    justify-content: center;
    align-items: center;
    
    cursor: pointer;
    pointer-events: none;
}

#register h3 {
    font-family: Lepka;
}

/* contacts */
#contacts .block {
    display: flex;
    align-items: center;
    gap: 2em;

    padding: 1em 0.5em;
}

#contacts .block>img {
    border-radius: 3rem;
    max-width: 50%;
}

#contacts .block-text {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 0.3em;
}

#contacts .block-text .name {
    text-transform: uppercase;
    line-height: 150%;
}

#contacts .block-text .role {
    text-transform: uppercase;
    font-size: 0.8em;
}

#contacts .block-text .contacts {
    margin-top: auto;
}

#contacts .block-text>div {
    font-size: 2rem;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

#contacts .carousel-control {
    margin-top: 1em;
    height: 40px;
}

/* copyright */
#copyright {
    border-top: 1px solid var(--font-color);
}

#copyright p {
    font-size: 0.75rem;
    margin-top: 1em;
}

/* decor */
#decoration-div {
    display: grid;

    position: relative;
    overflow: hidden;
}

.decoration {
    z-index: -1;
    position: absolute;
}

#liana1 {
    left: 18vw;

    width: 8em;

    grid-row: 1;
}

#liana2 {
    right: 25vw;
    top: 0;

    width: 6em;
    grid-row: 1;
}

#dec1 {
    top: 2em;
    right: 11%;

    width: 9em;
    grid-row: 2;
}

#dec2 {
    top: 18em;
    left: -3em;

    width: 12em;
    grid-row: 2;
}

#dec3 {
    top: 10em;
    right: -3em;

    width: 15em;
    grid-row: 3;

    rotate: 30deg;
}

#dec4 {
    top: 3em;
    left: -3em;

    width: 12em;
    grid-row: 4;
}

#dec5 {
    top: 1em;
    left: -3em;

    width: 17em;
    grid-row: 5;

    rotate: 60deg;
}

#dec6 {
    top: 2em;
    right: -3em;

    width: 14em;
    grid-row: 7;
}

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

}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    #dec1 {
        right: -2em;
    };
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (max-width: 768px) {
    #dec5 {
        width: 14em;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (max-width: 992px) {
    #liana1, #liana2 {
        display: none;
    }
}


/* media */
@media only screen and (max-width: 440px) {
    #nav-header ul{
        flex-direction: column;
    }

    #contacts .block {
        flex-direction: column;
    }

    #contacts .block img {
        max-width: 100%;
    }

    #contacts .block-text {
        align-items: center;
    }
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    #title div{
        flex-direction: column;
        align-items: flex-start;
    }

    #title h1 {
        order: 2;
    }

    #history>div {
        justify-content: flex-start;

        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        gap: 0;

        border-style: solid;
        border-color: var(--font-color);
        border-width: 2px 0;

        padding: 1em;
    }

    #history .block {
        scroll-snap-align: center;
        padding: 0 5%;

        min-width: 100%;
    }

    #history .block::after {
        content: "⟷";
        font-size: 1.5rem;
    }
    #history .block:first-child::after {
        content: "⟶";
    }
    #history .block:last-child::after {
        content: "⟵";
    }

    #register {
        padding: 0;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (max-width: 768px) {
    h1 {
        font-size: 4rem;
    }
    
    h2 {
        font-family: Lepka;
    }

    .section {
        margin-left: 2rem;
        margin-right: 2rem;
    }

    #about1 {
        font-size: 1.5rem;
    }

    #about1 p {
        margin-right: 20%;
    }

    #about2 .block-text h2 {
        font-size: 1.5rem;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (max-width: 992px) {
    #title .invisible {
        display: none;
    }

    #history>div {
        gap: 3em;
    }
}