@font-face {
    font-family: 'Monocraft';
    src: url('font/Monocraft.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    background: #EAECF1;

    display: flex;
    flex-direction: column;

    min-height: 100vh;
}

main {
    flex-grow: 1;
    position: relative;
}

.content {
    max-width: 1016px;
    margin: 0 auto;

    z-index: 2;
    position: relative;
}

header {
    background: #B4AFFF;
    display: flex;
    justify-content: space-between;
}

.logo {
    display: flex;
    flex-grow: 0;
    align-items: center;
    text-decoration: none;
}

.logo_icon {
    margin: 13px 8px 9px 0;
}

.logo_text {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 84%;
    letter-spacing: 0%;
    color: #433F83;
}

.socials {
    display: flex;
    align-items: center;
}

.socials_link {
    display: block;
    text-decoration: none;
}

.socials_link:first-child {
    margin-left: 0;
}

.content_text_top>p {
    font-family: 'Monocraft';
    font-weight: 500;
    color: #433F83;
}

.text_top>p:first-child {
    margin-bottom: 10px;
}

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

    font-family: 'Monocraft';
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
    text-align: center;
    color: #433F83;

    border: 2px solid #E50063;
}

.content_guide_block_icon {
    content: '';
    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    border: 2px solid #E50063;
    margin: -17px auto 0;

    background: #EAECF1;
}

.hate {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hate_comment {
    display: flex;
    flex-direction: column;

    border: 2px solid #E50063;
}

.hate_comment_top {
    font-family: Monocraft;
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;
    color: #E50063;
    background: #B4AFFF;

    padding: 2px;
    border-bottom: 2px solid #E50063;
}

@keyframes pointerGiggle {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(-5px); }
  50%  { transform: translateX(5px); }
  75%  { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

#hate_pointer_left .hate_pointer_img {
    animation-delay: 1.5s;
}

.hate_pointer_img {
    animation: pointerGiggle 3s ease-in-out infinite;
    fill: #E50063;
}

.hate_pointer:hover .hate_pointer_img {
    fill: #8B00FF;
}

.hate_comment_content {
    position: relative;
    flex-grow: 1;
}

.hate_comment_zoom {
    position: absolute;
    right: 23px;
    bottom: 14px;

    cursor: pointer;
}

.hate_comment_img {
    height: 100%;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.hate_pointer {
    flex-shrink: 0;
    cursor: pointer;
}

#hate_pointer_left:hover>svg {
    transform: translateX(-5px);
}

#hate_pointer_right:hover>svg {
    transform: translateX(5px);
}

@keyframes breath {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.neutralize_button {
    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #D8D5FF;
    border: 2px solid #E50063;

    text-decoration: none;

    transform-origin: center;
    animation: breath 2.4s ease-in-out infinite;
}

.neutralize_button:hover {
    border-color: #8B00FF;
}

.neutralize_button_icon {
    fill: #E50063;
}

.neutralize_button:hover > .neutralize_button_icon {
    fill: #8B00FF;
}

.neutralize_button_text {
    font-family: Monocraft;
    font-weight: 500;
    line-height: 120%;
    color: #E50063;
}

.neutralize_button:hover > .neutralize_button_text {
    color: #8B00FF;
}

.neutralized {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    display: none;
    justify-content: center;
    align-items: center;
}

.success .neutralized {
    display: flex;
}

.neutralized_background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background: #414141;
    opacity: 0.54;

    z-index: 1;
}

.neutralized_text {
    display: inline-block;

    background: #E50063;
    border: 2px solid #D8D5FF;

    font-family: Monocraft;
    font-weight: 500;
    line-height: 100%;
    text-align: center;
    vertical-align: middle;

    rotate: -10deg;

    color: #D8D5FF;

    margin: auto;

    z-index: 3;
}

.cloud:last-child {
    transform: scaleX(-1);
}

footer {
    padding: 3px;
    background: #D8D5FF;
    color: #E50063;
    font-family: Monocraft;
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;
    border-top: 2px #E50063 solid;
    z-index: 2;
}

.zoom_popup {
    position: fixed;
    display: none;
    align-items: center;
    justify-content: center;

    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
}

#image_popup {
    object-fit: scale-down;
    z-index: 10;

    max-height: 60%;
    max-width: 60%;
}

#zoom_popup_background {
    position: absolute;
    background: #00000070;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    cursor: pointer;
}

.bottom_block {
    position: relative;
}

@keyframes giggle {
  0%   { transform: translateY(0) rotate(0deg); }
  10%  { transform: translateY(-1px) rotate(-3deg) }
  20%  { transform: translateY(0) rotate(3deg); }
  30%  { transform: translateY(-1px) rotate(-2deg); }
  40%  { transform: translateY(0) rotate(2deg); }
  50%  { transform: translateY(-1px) rotate(-1.5deg); }
  60%  { transform: translateY(0) rotate(1.5deg); }
  70%  { transform: translateY(-0.5px) rotate(-1deg); }
  80%  { transform: translateY(0) rotate(1deg); }
  90%  { transform: translateY(-0.5px) rotate(-0.5deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

.poop {
    background-image: url(imgs/poop_sprite.svg);
    background-repeat: no-repeat;
    animation: poopTransition 2s steps(6) infinite;
}

@keyframes flowerTransition {
    from {
        background-position: 0 0;
    }

    to {
        background-position: -1338px 0;
    }
}

.flower {
    width: 223px;
    height: 223px;
}

.flower::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url(imgs/flower_sprite.svg);
    background-repeat: no-repeat;
    background-size: 1338px auto;
    animation: flowerTransition 2s steps(6) infinite;
}

.flowers {
    display: none;
}

@media screen and (max-width: 1049px) {
    .socials_link {
        margin-left: 22px;
    }

    header {
        padding: 0 16px;
    }

    main {
        padding: 0 16px;
    }

    .content_text_top {
        margin: 15px 0 22px 0;
    }

    .content_text_top>p {
        font-size: 13px;
        line-height: 100%;
        margin-bottom: 10px;
    }

    .content_guide_block_text {
        padding: 10px 5px 22px;
    }

    .content_guide_block {
        margin-bottom: 22px;
    }

    .neutralize_button {
        height: 70px;
        padding: 0 16px;
        margin-top: 22px;
        user-select: none;
    }

    .neutralize_button_text {
        font-size: 21px;
    }

    .poops {
        display: flex;
        justify-content: space-between;

        margin: 22px 0;
    }

    @keyframes poopTransition {
        from {
            background-position: 0 0;
        }

        to {
            background-position: -564px 0;
        }
    }

    .poop {
        width: 94px;
        height: 132px;

        background-size: 564px auto;
    }

    .success .poops {
        display: none;
    }

    .neutralized_text {
        font-size: 24.84px;
        padding: 12px;
    }

    .hate_comment_zoom {
        display: none;
    }

    .hate_comment {
        width: 100%;
        height: 157px;
        margin: 0 8px;
    }

    .clouds {
        display: none;
        justify-content: space-between;

        margin: 18px -16px 0;
    }

    .success .clouds {
        display: flex;
    }

    .desktop {
        display: none !important;
    }

    .flower {
        margin: auto;
        height: 163px;
    }

    .flowers {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
    }

    .success .flowers {
        display: block;
    }
}

@media screen and (min-width: 1050px) {
    .socials_link {
        margin-left: 56px;
    }

    header {
        padding: 0 28px;
    }

    .content_text_top {
        margin: 25px 0;
    }

    .content_text_top>p {
        font-size: 22px;
        line-height: 110%;
        margin-bottom: 20px;
    }

    .content_guide {
        display: flex;
        justify-content: space-between;

        margin-bottom: 31px;
    }

    .content_guide_block_text {
        width: 288px;
        height: 113px;
    }

    .neutralize_button {
        width: 392px;
        height: 80px;
        padding: 0 18px;
        margin: 42px auto;
    }

    .neutralize_button_text {
        font-size: 24px;
    }

    .poops_block {
        display: flex;
    }

    .poops_block {
        display: flex;
    }

    @keyframes poopTransition {
        from {
            background-position: 0 0;
        }

        to {
            background-position: -618px 0;
        }
    }

    .poop {
        width: 103px;
        height: 146px;
        margin-right: 35px;

        background-size: 618px auto;
    }

    .poop:last-child {
        margin-right: 0px;
    }

    .neutralized_text {
        font-size: 55.67px;
        padding: 28px;
    }

    .hate {
        padding: 0 20px;
    }

    .hate_comment {
        width: 808px;
        height: 250px;
    }

    .clouds {
        display: none;
        justify-content: space-between;
        align-items: center;

        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .success .clouds {
        display: flex;
    }

    .poops {
        padding: 14px 30px;

        display: flex;
        justify-content: space-between;
        align-items: center;

        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .success .poops {
        display: none;
    }

    .success .flowers {
        display: flex;
    }

    .flowers {
        justify-content: space-between;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .flower_block {
        display: flex;
        align-items: end;
    }

    .flower_block:first-child .flower::before {
        transform: scaleX(-1);
    }

    .flower_block:first-child .flower:last-child,
    .flower_block:last-child .flower:first-child {
        height: 108px;
    }

    .flower {
        margin-right: 10px;
    }

    .flower:last-child {
        margin-right: 0;
    }

    .mobile {
        display: none !important;
    }
}