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


@font-face {
    /*  */
    font-family: font-headers;
    src: url(resources/fonts/Le_Murmure-Regular_web.ttf);
}

@font-face {
    font-family: font-headers2;
    src: url(resources/fonts/Le_Murmure-Regular_web.ttf);
}

@font-face {
    font-family: font-text;
    src: url(resources/fonts/Marmelad-Regular.ttf);
}


* {
    box-sizing: border-box;

    margin: 0;
    padding: 0;
}

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

    --font-color: #4F2324;
    --font-color2: #4F2324;
    --bg-color: #FFFFEC;

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

    font-family: font-text;
}

body * {
    overflow: hidden;
}

h1 {
    font-size: 12rem;
    font-family: font-headers;
    font-weight: normal;
}

h2 {
    font-family: font-headers;
    font-weight: normal;
}

h3 {
    font-size: 3rem;
    font-family: font-headers;
    font-weight: normal;
}

h4 {
    font-size: 1.7rem;
    font-family: font-headers;
    font-weight: normal;
}

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: 7rem;
}
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;
    flex-direction: column;
    align-items: center;
    -moz-column-gap: 3em;
         column-gap: 3em;
    row-gap: 1em;
}

#title h1 {
    font-size: 16rem;
}

#title p {
    font-size: 2.75rem;
}

/* about */
#about1 {
    overflow: visible;
    position: relative;

    margin-top: 18rem;

    font-size: 2rem;
    transform: rotate(-13deg);
}

#about1 img {
    position: absolute;
    top: -55%;
    left: -12%;
    width: 100%;
    height: 200%;
    z-index: -1;

    transform: rotate(11deg);
}

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

#about1 span {
    font-family: Lepka;
}

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

#about2 .block>img:not(.decoration){
    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: 4.25rem;
    font-family: font-headers;
    font-weight: normal;
    text-transform: uppercase;
}

#about2 .block-text p {
    margin-top: 1em;
    font-size: 1.5rem;
    line-height: 2rem;
}

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

/* history */
#history h1 {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

#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 {
    font-size: 2.25rem;
    text-align: center;
    text-transform: uppercase;
}

#history .block p {
    font-size: 1.5rem;
    text-align: center;
}

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

/* registration */
#register {
    padding: 10% 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-size: 2.5rem;
    font-family: font-headers;
    font-weight: normal;
    color: var(--font-color);
    text-shadow: 0 0 0.75rem var(--font-color2);
}

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

    padding: 1em 0.5em;
}

#contacts h1 {
    display: flex;
    align-items: center;
}

#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;
    font-family: font-headers;
    font-weight: normal;
    font-size: 4.5rem;
    line-height: 100%;
}

#contacts .block-text .role {
    text-transform: uppercase;
    font-size: 1.25rem;
}

#contacts .block-text .contacts {
    margin-top: auto;
    color: var(--font-color);
}

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

#contacts .carousel {
    border-color: var(--font-color2);
}

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

#contacts .carousel-control *{
    line-height: 0.5rem;
    color: var(--font-color2);
    border-color: inherit;

    background-image: none;
}

/* copyright */
#copyright {
    border-top: 1px solid var(--font-color2);
    height: 4rem;
    margin-bottom: 0;

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

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

/* decor */
#decoration-div {
    display: grid;
    background-color: var(--bg-color);
    background-image: url(resources/business-monopoly/back-ground.png);
    background-blend-mode: overlay;

    background-size: contain;
    background-repeat: repeat-y;

    position: relative;
    overflow: hidden;
}

.decoration {
    z-index: 0;
    position: absolute;
    pointer-events: none;
}

#flowers-right {
    grid-row: 5;
    top: 10rem;
    height: 10rem;
    width: 60%;
}

#flowers-left {
    grid-row: 7;
    top: 10rem;
    right: 0;
    height: 10rem;
    width: 50%;
}


/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (max-width: 992px) {
}

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

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
}

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


/* media */

/* 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;
        -ms-scroll-snap-type: x mandatory;
            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: "⟵";
    }

    #contacts .block .name {
        font-size: 1.5rem;
    }
}

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

    .section {
        margin-top: 8rem;
    }

    #title>div>p {
        transform: none;
    }

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

    .section-hr {
        margin: 1em 0;
    }

    #about1 {
        font-size: 1.5rem;
    }

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

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

    #register h3 {
        font-size: 2rem;
    }
}


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

    #title h1 {
        font-size: 2.25rem;
    }

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

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

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

    #register h3 {
        font-size: 1.2rem;
    }
}

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

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