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


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

@font-face {
    font-family: font-headers2;
    src: url(resources/fonts/MOLOKO.otf);
}

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


* {
    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: font-text;
}

body * {
    overflow: hidden;
}

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

h2 {
    font-family: font-headers;
}

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

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

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;
}

/* 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: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: calc(2 * 2rem);
    font-family: font-headers2;
    text-transform: uppercase;
}

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

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

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

#history h1::before, #history h1::after {
    content: "";
    background-image: url(resources/day-of-culture/flora.svg);
    background-size: contain;
    background-repeat: no-repeat;
    width: 0.7em;
    height: 1em;
}
#history h1::before {
    margin-right: 2rem;
}
#history h1::after {
    order: -1;
    opacity: 0.5;
}

#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%;
    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-size: 6rem;
    font-family: font-headers2;
    color: #FFF1C1;
}

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

    padding: 1em 0.5em;
}

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

#contacts h1::before, #contacts h1::after {
    content: "";
    background-image: url(resources/day-of-culture/flora.svg);
    background-size: contain;
    background-repeat: no-repeat;
    width: 0.7em;
    height: 1em;
    transform: scaleX(-1);
}
#contacts h1::before {
    order: 1;
    opacity: 0.5;
}
#contacts h1::after {
    margin-left: 2rem;
}

#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-headers2;
    font-size: 4rem;
    line-height: 100%;
}

#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);
    height: 8rem;
    margin-bottom: 0;
}

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

#copyright img {
    position: absolute;

    left: 50%;
    bottom: 0;
    transform: translate(-50%, 0);

    height: 5rem;
}

/* decor */
#decoration-div {
    display: grid;
    background-image: url(resources/day-of-culture/back-ground.png);
    background-size: cover;
    background-repeat: no-repeat;

    position: relative;
    overflow: hidden;
}

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

@keyframes pulseIn {
    from {
      scale: 4;
    }
  
    to {
      scale: 1;
    }
}

#logo-decor {
    grid-row: 2/2;

    left: 45%;
    translate: -50% 0;

    top: 2rem;
    width: 50%;
    height: 100%;

    pointer-events: none;

    overflow: visible;
    position: absolute;

    animation-name: pulseIn, pulse;
    animation-delay: 0s, 0.8s;
    animation-duration: 0.8s, 1s;
    animation-direction: normal, alternate;
    animation-timing-function: ease-out, ease-out;
    animation-iteration-count: 1, infinite;
}

#decor-11 {
    left: 0;
    top: 4rem;
    width: 37%;
}

#decor-12 {
    left: 62%;
    top: 0;
    width: 33%;

    rotate: 90deg;
}

#decor-13 {
    left: 3rem;
    top: 20rem;
    width: 31%;

    rotate: -60deg;
}

#decor-14 {
    right: 0;
    top: 23rem;
    width: 23%;

    rotate: -140deg;
}

#decor-15 {
    right: 8rem;
    top: 24rem;
    width: 12%;

    rotate: -100deg;
}


#about-dec-1 {
    grid-row: 4/4;
    left: 1rem;
    top: 17%;;

    width: 5rem;
}
#about-dec-2 {
    grid-row: 4/4;
    right: 0rem;
    top: 45%;;

    width: 5rem;
}
#about-dec-3 {
    grid-row: 4/4;
    left: 2rem;
    top: 85%;

    width: 5rem;
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (max-width: 992px) {
    #history h1::before {
        margin: 0;
    }
    #contacts h1::after {
        margin: 0;
    }

    #logo-decor {
        left: 36%;
        top: 3rem;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (max-width: 768px) {
    #about-dec-1, #about-dec-2, #about-dec-3 {
        display: none;
    }

    #decor-12 {
        top: 4rem;
    }
    #decor-13 {
        top: 16rem;
        left: 1rem;
    }
    #decor-14 {
        top: 18rem;
    }
    #decor-15 {
        top: 19rem;
    }
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    #logo-decor {
        top: 8rem;
        left: 40%;
    }

    #decor-12 {
        top: 5rem;
        left: 15rem;
    }
    #decor-13 {
        left: 1rem;
        top: 16rem;
    }
    #decor-14 {
        left: 18rem;
        top: 18rem;
    }
    #decor-15 {
        left: 16rem;
        top: 18rem;
    }
}

@media only screen and (max-width: 440px) {
    #history h1::after, #contacts h1::before {
        display: none;
    }
    
    #decor-11 {
        top: 5.5rem;
        left: -2rem;
    }
    #decor-12 {
        top: 5rem;
        left: 74%;
    }
    #decor-13 {
        left: -2%;
        top: 17rem;
    }
    #decor-14 {
        left: 95%;
        top: 18rem;
    }
    #decor-15 {
        left: 80%;
        top: 18rem;
    }
}


/* 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;
        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 h3 {
        font-size: 5rem;
    }
}


@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;
    }

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

/* 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;
    }

    #register{
        padding: 0;
    }
}