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

/* decoration */

.birded-left::before {
    content: url("resources/mao-stud-sovet/bird.svg");
    margin-right: 0.2em;
}

@media screen and (min-width: 1300px) {
    .pawed::before {
        content: url("resources/mao-stud-sovet/paw.png");
        position: absolute;
    
        bottom: 0%;
        left: 80%;
        
        z-index: -1;
        
        animation: moveInLeftDown 1s;
    }
}

.scratch {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: scaleX(1.6) scaleY(2.6);
}

.stared {
    position: relative;
    width: fit-content;
    height: fit-content;
    
    margin: -1em;
    padding: 1em;
}
.stared-img {
    position: absolute;
    pointer-events: none;
    
    opacity: 0.8;
    
    left: -0.4em;
    top: -0.4em;
    
    width: 100%;
    height: 100%;
}

.shined-around {
    display: flex;
}
.shine {
    height: 1em;
    margin: 0 0.2em;
}

.background {
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

/* main */

:root {
    --font-color: #3E0732;
    font-size: max(11px, 1.2vw);
}

* {
    box-sizing: border-box;

    color: var(--font-color);
    font-family: Montserrat;
    font-weight: normal;
}

html, body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #FAFAFA;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: Moniqa;
    margin: 0px;
}

h1 {
    font-size: 5.8rem;
}
h2 {
    font-size: 3.6rem;
}
h3 {
    font-size: 2.5rem;
}
h4 {
    font-size: 2rem;
}

@media (max-width: 450px) {
    h1 {
        font-size: 5rem;
    }
    h2 {
        font-size: 3.2rem;
    }
    h3 {
        font-size: 2.3rem;
    }
}

a {
    text-decoration: none;
    padding: 0;
}

a:hover {
    text-decoration: underline;
}

hr {
    color: #3E0732;;
}

#main-container {
    margin: 0 auto;
    padding: 0 5%;
    max-width: 1850px;
}

.container {
    position: relative;
    padding-left: 0.3em;
    padding-right: 0.3em;
}

.section {
    margin: 3em auto;
    text-align: center;
}

.section-br {
    margin: 0.6rem auto;
}

.centered-header {
    margin-left: auto;
    margin-right: auto;
}

.centered-flex {
    display: flex;
    justify-content: center;
    align-items: center;
}

.table-flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    column-gap: 1.5em;
    row-gap: 1.5em;
}

.half-element {
    max-width: 45%;
}

.italic-span {
    font-style: italic;
}

/* navigation */

.navigation-header {
    margin-top: 1.5em;    
}

.navigation-bar {
    padding: 0px;

    display: flex;
    justify-content: flex-end;
    column-gap: 0.2em;
    row-gap: 0.5em;
    flex-wrap: wrap;

    list-style-type: none;
}

.navigation-bar :first-child {
    margin-right: auto;
    padding-right: 0.5em;
}

.navigation-bar li {
    display: flex;
    align-items: center;
}

.navigation-bar a {
    font-family: Moniqa;
    font-size: 1.7rem;
}

/* about */

#about {
    display: flex;
    justify-items: flex-start;
    align-items: center;
    gap: 2em;
}

#about-text {
    text-align: left;
    margin: -2em;
    
    padding: 2em;
    background: radial-gradient(rgba(244,212,223,1) 0%, rgba(244,212,223,0.1) 60%, rgba(244,212,223,0) 100%);
}

@media (min-width: 1600px) {
    #about-text {
        padding-right: 0;
    }
}

/* directions */

.direction {
    overflow: hidden;
    width: 100%;
    
    font-size: 2.5rem;

    margin: 0.2em 0;
    padding: 0.35em 0.6em;
    
    background-color: #F3F2ED;
    border-radius: 45px;
    border: 1px solid #191A23;
}

.direction-capital {
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 0.4em;
}

.direction-capital span {
    font-family: Moniqa;
    font-weight: 500;
}
.direction-capital span:first-of-type {
    font-size: 4.3rem;
}

.direction-capital img {
    margin-left: auto;
    max-height: 100%;
}

.direction-info {
    font-size: 1rem;
    margin-top: 1em;
    padding-top: 1em;
    padding-left: 1em;

    border-width: 1px 0px 0px 0px;
    border-style: solid;
    border-color: #3E0732;

    text-align: left;
}

.detailed-direction {
    background-color: #C3E8B8;
}

.direction .cl-img, .direction .direction-info {
    display: none;
}
.detailed-direction .cl-img, .detailed-direction .direction-info {
    display: block;
}
.detailed-direction .op-img {
    display: none;
}


/* team */

#team {
    max-width: 90%;
}

.member {
    max-width: 20rem;

    padding: 1.5em;
    border: 1px solid #191A23;
    border-radius: 45px;
    background-color: white;
    text-align: left;

    min-height: fit-content;
}

@media (max-width: 450px) {
    .member {
        max-width: none;
        width: 22rem;
    }
}

.member-top {
    display: flex;
    align-items: center;
    justify-items: center;
    gap: 1em;

    padding-bottom: 1em;
}

.member-icon {
    border-radius: 50%;
    position: relative;

    margin: -20px;
    padding: 20px;
    background: radial-gradient(closest-side, #D07597 0%, #F4D4DF 50%, #F4D4DF00 100%);
}
.member-icon > img {
    border-radius: 50%;

    aspect-ratio: 1/1;
    height: 104px;
}

@media (max-width: 870px) {
    .member-icon img {
        height: 75px;
    }
}

.member-bottom {
    font-size: 0.7rem;

    margin: 0px;
    padding: 1em 1em 0 1em;
    text-align: left;

    border-top: 2px solid var(--font-color);

    min-height: fit-content;
}

.member-info {
    flex-grow: 1;
    text-align: center;
}

.member-info h4 {
    font-weight: 800;
}

.member-info p {
    margin: 0px;
    font-size: 0.8rem;
}


/* projects */

#projects {
    position: relative;
}

.projects {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#uporish {
    position: absolute;
    right: 0;
    top: 0;

    width: 30%;

    z-index: -1;
}

.project {
    height: 6em;

    font-size: 2.3rem;
    
    display: flex;
    justify-content: center;
    align-items: center;

    aspect-ratio: 7/4;
}

.project:nth-of-type(1) {
    margin-top: 0;
    background: radial-gradient(closest-side, #FFF1C1 0%, #c3e8b8 75%, #c3e8b800 100%);
}
.project:nth-of-type(2) {
    background: radial-gradient(closest-side, #F4D4DF 0%, #95B9E6 75%, #95b9e600 100%);
}
.project:nth-of-type(3) {
    background: radial-gradient(closest-side, #FFF1C1 0%, #EB9479 75%, #EB947900 100%);
}
.project:nth-of-type(4) {
    background: radial-gradient(closest-side, #FFF1C1 0%, #D8C0A3 75%, #D8C0A300 100%);
}
.project:nth-of-type(5) {
    background: radial-gradient(closest-side, #F4D4DF 0%, #CDBCE9 75%, #CDBCE900 100%);
}
.project:last-of-type {
    margin-top: 1.2em;
}


.project:nth-of-type(2n + 1):not(:last-of-type) {
    margin-right: calc(6em / 4 * 7);
}
.project:nth-of-type(2n):not(:last-of-type) {
    margin-left: calc(6em / 4 * 7);
}

@media (max-width: 450px) {
    .project {
        margin-top: 1.2em;
    }
    .project:nth-of-type(2n + 1):not(:last-of-type) {
        margin-right: 3em;
    }
    .project:nth-of-type(2n):not(:last-of-type) {
        margin-left: 3em;
    }
}

@media (max-width: 700px) {
    #uporish {
        margin-top: 3.5em;
    }
}

#projects-svg {
    position: absolute;

    width: 100%;
    height: 100%;

    left: 0;
    top: 0;

    fill: none;
    stroke: var(--font-color);
    stroke-width: 1px;
    opacity: 0.6;
}


/* contacts */

#contacts {
    background-color: white;

    padding: 1.7em;

    border: 1px solid #191A23;
    border-radius: 45px;
}

.contacts-header {
    display: flex;
    align-items: center;
    gap: 1em;
}

.contacts-header>a:first-of-type {
    margin-left: auto;
}

.contacts-header img {
    width: 3em;
    object-fit: contain;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.contact-info p {
    padding-top: 1.7em;
    margin: 0;
    text-align: left;
}

@media (max-width: 450px) {
    .contact-info p {
        font-size: 0.8rem
    }
}

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

#copyright p {
    text-align: left;
}