.flags--wrapper {
    margin: 30px 0;
}

#flags--title {
    display: block;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
    background-color: #2f016a;
    padding: 10px;
    border-radius: 7px;
}

.flags--container {
    display: flex;
    justify-content: space-around;
    -moz-column-gap: 10px;
    column-gap: 10px;
}

.flags--item img {
    cursor: pointer;
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 250px;
    width: 100%;
    border-radius: 100%;
    box-shadow: 0 0 0 0 rgba(209, 28, 28, 0.7);
    animation: pulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

.flags--wrapper > div > div:nth-child(2) > img {
    animation-delay: 666ms;
}

.flags--wrapper > div > div:nth-child(3) > img {
    animation-delay: 1333ms;
}

.win {
    display: none;
}

.flags--item {
    position: relative;
}

.win p {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    cursor: pointer;
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0;
    margin: 0;
    line-height: 1;
    color: #ededed;
    font-size: 60px;
    margin: 0;
    font-weight: 700;
    text-shadow: 1px 1px 3px #000;
}

.grats span {
    color: #20d12e;
}

@media screen and (max-width: 600px) {
    .win p {
        font-size: 40px;
    }
}

.pop-up-window {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
    padding: 10px;
    padding-top: 4rem;
    animation: .7s ease 0s normal none 1 running pop-up-appear;
}

.pop-up-window h3 {
    margin: 0;
    padding: 0;
    text-align: center;
}

.pop-up-window::before {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    top: -65px;
    left: 0;
    right: 0;
    margin: 0 auto;
    background-color: #6c1cd1;
    border-radius: 50%;
    animation: .5s ease .6s normal backwards 1 running pop-up-appear-before;
}

.pop-up-window::after {
    content: "";
    position: absolute;
    width: 50px;
    height: 20px;
    top: -30px;
    left: 0;
    right: 0;
    margin: 0 auto;
    border-width: medium medium 4px 4px;
    border-style: none none solid solid;
    border-color: currentcolor currentcolor #fff #fff;
    -moz-border-top-colors: none;
    -moz-border-right-colors: none;
    -moz-border-bottom-colors: none;
    -moz-border-left-colors: none;
    -o-border-image: none;
    border-image: none;
    transform: rotate(-45deg);
    transition: opacity 1s ease 0s;
    animation: .5s ease .6s normal backwards 1 running pop-up-appear-after;
}

.click-here {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 40px;
    color: #fff;
    text-shadow: 5px 5px 15px #000;
    pointer-events: none;
    text-align: center;
}

@media screen and (max-width: 600px) {
    .click-here {
        font-size: 24px;
    }
}

@keyframes pop-up-appear {
    0% {
        transform: translateY(-2000px);
    }

    30% {
        transform: translateY(100px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes pop-up-appear-before {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes pop-up-appear-after {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes pulse {
    to {
        box-shadow: 0 0 0 15px rgba(0, 0, 0, 0);
    }
}
