header,
.cards,
.boxs,
.square {
    height: 100vh;
}

.container {
    max-width: 1270px;
    padding: 20px 15px 0;
    margin: 0 auto;
}

/* header */

.wrapper {
    height: 100vh;
    width: 20%;
    background-color: grey;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.8s ease;
    transform: translateX(-80%);
}

.wrapper:hover {
    transform: translateX(0);
}

.header li {
    margin-bottom: 50px;
    position: relative;
    left: 25px;
}

.header li::before {
    content: "";
    width: 20px;
    height: 20px;
    background: url("../images/rhombus.png") no-repeat;
    background-size: 20px;
    position: absolute;
    top: 2px;
    left: -25px;
}

.header a {
    color: white;
    transition: all 0.6s ease;
}

.header a:hover {
    color: orange;
}

.close {
    color: white;
    writing-mode: vertical-rl;
    margin-right: 20px;
    transition: 0.8s ease;
}

.wrapper:hover .close {
    opacity: 0;
}


/* cards */

.cards {
    position: relative;
    background-color: #0d5825;
}

.cards__block {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translate(0, -50%);
}


.cards__text {
    color: white;
    font-size: 25px;
    margin-bottom: 50px;
}

.cards__blockquote,
.cards__paragraph,
.cards__cite {
    margin: 0;
    text-align: center;
}

.cards__paragraph {
    font-weight: bold;
}

.blocks {
    position: absolute;
    height: auto;
    width: 100px;
    right: 0;
    left: 0;
    margin: 0 auto;
}

.block__img {
    width: 150px;
    position: absolute;
}

.block__img-first {
    top: 4px;
    right: 25px;
    transform: rotate(-20deg);
}

.block__img-first:hover {
    transform: translateY(-20px) rotate(-20deg);
}

.block__img-second {
    top: 15px;
    right: -15px;
    transform: rotate(-2deg);
}

.block__img-second:hover {
    transform: translateY(-20px) rotate(-2deg);
}

.block__img-third {
    top: 35px;
    right: -55px;
    transform: rotate(197deg);
}

.block__img-third:hover {
    transform: translateY(-20px) rotate(197deg);
}

/* boxs */

.boxs {
    position: relative;
}

.box__pink,
.box__blue,
.box__green {
    position: absolute;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    top: 50%;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translate(0, -50%);
}

.box__pink {
    background-color: plum;
    transform: translate(-70%, -120%);
}

.box__blue {
    background-color: royalblue;
    transform: translate(0, -50%);
    z-index: 1;
}

.box__green {
    background-color: rgb(113, 177, 113);
    transform: translate(70%, 20%);
}

/* square */

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

.square__block {
    width: 500px;
    height: 500px;
    border: 3px solid palevioletred;
    position: relative;
}

.square__box {
    width: 100px;
    height: 100px;
    position: absolute;
    left: 0;
    top: 0;
    animation-name: random;
    animation-duration: 6s;
    animation-iteration-count: infinite;
}

@keyframes random {
    0% {
        background-color: rgb(179, 144, 204);
        left: 0;
        top: 0;
    }

    25% {
        top: calc(100% - 100px);
        bottom: 0;
        left: 0;
        background-color: lightcoral;
    }

    50% {
        left: calc(100% - 100px);
        bottom: 0;
        top: calc(100% - 100px);
        background-color: lightskyblue;
    }

    75% {
        left: calc(100% - 100px);
        bottom: calc(100% - 100px);
        top: 0;
        background-color: palegoldenrod;
    }

    100% {
        left: 0;
        top: 0;
        background-color: tomato;
    }
}