* {
    margin: 0;
    padding: 0;
}

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Play&display=swap');

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body, body * {
    transform-style: preserve-3d;
}

body {
    font-family: 'Roboto', sans-serif;
    width: 100%;
    overflow: auto;
    perspective: 1px;
}

/*Header*/
header {
    width: 100%;
    max-width: 1300px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 20px;
    margin: auto;
    position: relative;
    z-index: 10;
    gap: 300px;
    overflow: hidden;
}

header a {
    text-decoration: none;
    color: black;
    margin: 13px;
}
.header-logo{
    height: 110px;
}
.highlight{
    color: green;
}
/*Content*/

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 90vh;
}
/* Main */

.main-header{
    text-align: center;
    font-size: 11px;
    color: #a40000;
    margin-top: 20px;
    margin-bottom: 20px;
}

.main-happy{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 700px;
    gap: 10px;
    margin: 20px;
}
.main-happy-item{
    font-size: 16px;
    padding: 4px 9px 5px 9px;
    border-radius: 12px;
    background-color: wheat;
    cursor: pointer;
}

/* Розовая заливка для ДЕДУШКИ */
.main-happy :nth-child(1n) {
    background-color: #fbdff5;
}

/* Зеленая заливка для УЧИТЕЛЯ */
.main-happy :nth-child(2n) {
    background-color: #d1ebeb;
}

/* Голубая заливка для ДИРЕКТОРА */
.main-happy :nth-child(3n) {
    background-color: #edd3d3;
}

/* Коричневая заливка для ДОЧЕРИ */
.main-happy :nth-child(4n) {
    background-color: #faebd7;
}

/* Бежевая заливка для СОСЕДА */
.main-happy :nth-child(5n) {
    background-color: #dbeedb;
}

.main-happy-item:hover{
    background-color: #a40000;
    color: whitesmoke;
}

.main-cards{
    margin: 20px;
}
.main-cards a{
    color: black;
}
.main-url{
    margin: 10px;
}

.poem p:first-of-type::first-letter {
    color: #a40000;
    font-size: 20px;
}
.main-proza{
    display: flex;
    flex-direction: column;
    gap: 50px;
    background-color: #FFFFFF;
    z-index: 100;
}
.main-proza-hr img{
    width: 150px;
}

.main-parallax{
    width: 100%;
    height: 5000px;
    font-size: 25px;
    z-index: 10;
    position: relative;
    padding-top: 300px;
    background: linear-gradient(to bottom, white 0%, white 300px, black 600px, black 100%);
    text-align: center;
    font-family: 'Roboto', sans-serif;

}
.main-parallax-1{
    transform: translateZ(0.5px) scale(0.5);
    font-size: 30px;
}
.main-parallax-2{
    transform: translateZ(0.7px) scale(0.3);
}
.main-parallax-3{
    transform: translateZ(0.6px) scale(0.4);
}
.main-parallax-4{
    transform: translateZ(0.6px) scale(0.4);
    color: #57b957;
    font-size: 10px;
    display: flex;
    justify-content: flex-end;
    align-content: center;
    margin: 10px;
    gap: 5px;
}
.main-parallax-4 img{
    height: 20px;
}
.main-parallax-5{
    transform: translateZ(0.7px) scale(0.13);
    color: #bda0ff;
}
.main-parallax-6{
    transform: translateZ(0.3px) scale(0.3);
    color: #bda0ff;
}
.left{
    margin-right: 50px;
}
.right{
    margin-left: 50px;
}

.main-parallax-svg{
    transform: translateZ(0.5px) scale(0.5);
}
.main-parallax-svg path{
    stroke: white;
    stroke-width:10;
    stroke-dasharray: 16000;
    stroke-dashoffset: 16000;
    animation: draw 10s linear forwards;
    animation-iteration-count: infinite;
}
.svg{
    stroke: #bda0ff;
    stroke-width:10;
    stroke-dasharray: 16000;
    stroke-dashoffset: 16000;
    animation: draw 10s linear forwards;
    animation-iteration-count: infinite;
}
@keyframes draw{
    100% {
        stroke-dashoffset: 100;
    }
}
.main-parallax-7{
    transform: translateZ(0.6px) scale(0.2);
    color: whitesmoke;
}
.main-parallax-8{
    transform: translateZ(0.8px) scale(0.1);
    color: whitesmoke;
}

.main-parallax-9{
    transform: translateZ(0.5px) scale(0.5);
    font-size: 30px;
}
.main-parallax-10{
    transform: translateZ(0.7px) scale(0.2);
}
.main-parallax-11{
    transform: translateZ(0.6px) scale(0.3);
}
.main-parallax-12{
    transform: translateZ(0.4px) scale(0.2);
}
.white{
    color: snow;
}
.main-parallax-images-1{
    transform: translateZ(0.7px) scale(0.3);
}
.main-parallax-images-1 img{
    width: 300px;
}

.main-parallax-13{
    transform: translateZ(0.7px) scale(0.2);
}
.main-parallax-14{
    transform: translateZ(0.6px) scale(0.3);
}
.main-parallax-15{
    transform: translateZ(0.4px) scale(0.2);
}
.main-parallax-16{
    transform: translateZ(0.5px) scale(0.5);
}
.main-parallax-17{
    transform: translateZ(0.4px) scale(0.5);
}
.main-parallax-images-2{
    transform: translateZ(0.7px) scale(0.3);
    text-align: left;
}
.main-parallax-images-3{
    transform: translateZ(0.1px) scale(0.8);
    text-align: right;
}

.main-parallax-18{
    font-size: 14px;
    padding: 10px;
    color: whitesmoke;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-parallax-images-4{
    transform: translateZ(0.7px) scale(0.3);
}
.main-parallax-images-5{
    transform: translateZ(0.8px) scale(0.2);
}
.main-parallax-images-6{
    transform: translateZ(0.9px) scale(0.1);
}

.main-parallax-images-2 img, .main-parallax-images-3 img, .main-parallax-images-4 img, .main-parallax-images-5 img, .main-parallax-images-6 img{
    width: 200px;
}



.main-parallax-images-7{
    transform: translateZ(0.2px) scale(0.8);
}
.main-parallax-images-7 img{
    width: 300px;
}

.main-end{
    margin-top: 50px;
    margin-bottom: 50px;
    text-align: left;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.main-2-parallax{
    width: 100%;
    height: 1000px;
    background: linear-gradient(to bottom, black 0%, white 100%);
    color: snow;
}


footer{
    max-width: 1000px;
    font-size: 10px;
    margin: auto;
    padding: 10px;
}