* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}


main {
    background-image: url(IMG_5248.jpeg);
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 80vh;
    overflow: hidden !important;
}

nav {
    width: 100%;
    height: 10em;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background: red;
}

main section {
    display: flex;
    justify-content: center;
    width: 100%;
    color: white;
    gap: 3em;
    padding: 2em;
    cursor: pointer;
}

main section h2 a {
    text-decoration: none;
}

h1 span:nth-child(1) {
    font-size: 2em;
    font-family: "Alex Brush", cursive;
    font-style: normal;
    font-weight: 500;
    color: black;
    animation: jizdaTextu 2s linear infinite;
    position: absolute;
    rotate: -13deg;
}

h1 span:nth-child(2) {
    font-size: 4em;
    font-family: "Zeyada";
    font-weight: 300;
    font-style: normal;
    color: pink;
    animation: helicopterText 0.2s linear infinite;
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-90%,-50%);
}

section h2 {
    background-image: url(Gay_Pride_Flag.svg.png);
    background-size: cover;
    background-repeat: no-repeat;
}

section h2:nth-child(1) {
    color: red;
    padding-top: 1em;
}

section h2:nth-child(2) {
    color: orange;
    font-size: 2em;
    margin: 2em;
}

section h2:nth-child(3) {
    color: yellow;
    box-shadow: 2px 50px 50px 2px black;
    padding-top: 4em;
}

section h2:nth-child(4) {
    color: green;
    border-radius: 0 5px 20px 0;
    text-align: center;
}

section h2:nth-child(5) {
    color: blue;
    font-size: 3em;
    width: 200px;
    padding-top: 1em;
}

section h2:nth-child(6) {
    color: purple;
    border-radius: 20em;
    padding-top: 0.5em;
}

.kokotina {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 17em;
    animation: scaleDiv 1s linear infinite;
}

.projekty {
    background: grey;
    width: 600px;
    height: 400px;
}

.projekty a {
    font-size: 4em;
    cursor: pointer;
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP&family=Rock+3D&display=swap');

.projekty a:nth-child(1) {
    font-family: "Rock 3D";
    font-style: italic;
}

.projekty a:nth-child(2) {
    font-family: "Zeyada";
    font-style: italic;
    color: brown;
}

.projekty a:nth-child(3) {
    font-family: "Alex Brush";
    font-style: italic;
    color: white;
}

.penize {
    border-radius: 50px 0 0 0;
    width: 300px;
    height: 200px;
    display: flex;  
    justify-content: center;
    align-items: center;
    background: lime;
    animation: rotateDiv 3s linear infinite;
}

.penize h2 {
    animation: rotateText 3s linear infinite;
}

.penize h2 a {
    font-size: 2em;
    cursor: pointer;
    text-decoration: none;
    color: red;

}

.penize h2 a span {
    font-family: "Zeyada";
    font-weight: 300;
    font-style: normal;
}

@keyframes rotateText {
    0% {
      transform: rotate(-500deg);
      scale: 1;
    }
    50% {
        transform: rotate(0deg)
    }
    100% {
      transform: rotate(200deg);
      scale: 1;
    }
  }

@keyframes rotateDiv {
    0% {
        scale: 0;
        transform: rotate(0deg);
    }
    50% {
        scale: 1.75;
        transform: rotate(-300deg);
    }
    100% {
        scale: 0;
        transform: rotate(0deg);
    }
}

@keyframes scaleDiv {
    0% {
        scale: 1;
    }
    25% {
        scale: 1.05;
    }
    50% {
        scale: 1.1;
    }
    75% {
        scale: 1.05;
    }
    100% {
        scale: 1;
    }
}

@keyframes helicopterText {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(360deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@keyframes jizdaTextu {
    0% {
      transform: translateX(-100%);
    }
    50% {
      transform: translateX(60%);
      rotate: 20deg;
    }
    100% {
        transform: translateX(-100%);
    }
  }