html,
body {
    position: relative;
    height: 100%;
}

body {
    background: #eee;
    font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #000;
    margin: 10px;
    padding: 0;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper {
    width: 575px;
    height: 570px;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 22px;
    font-weight: bold;
    color: #fff;
}

.swiper-slide:nth-child(1n) {
    background-color: rgb(121, 180, 12);
}

.swiper-slide:nth-child(2n) {
    background-color: rgb(129, 5, 119);
}

.swiper-slide:nth-child(3n) {
    background-color: rgb(216, 185, 7);
}

.swiper-slide:nth-child(4n) {
    background-color: rgba(4, 158, 163, 0.884);
}

.swiper-slide:nth-child(5n) {
    background-color: rgb(47, 10, 182);
}

.swiper-slide:nth-child(6n) {
    background-color: rgb(214, 11, 11);
}

.swiper-slide:nth-child(7n) {
    background-color: rgb(233, 134, 20);
}

.swiper-slide:nth-child(8n) {
    background-color: rgb(189, 8, 135);
}

.popup .overlay {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 50vw;
    height: 92vh;
    background: rgba(0, 0, 0, 0);
    z-index: 1;
    display: none;
}

.popup .content {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 8px;
    transform: translate(-50%, -50%) scale(0);
    background: #fff;
    width: 450px;
    height: 300px;
    z-index: 2;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.popup .close-btn {
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 10px;
    width: 30px;
    height: 30px;
    background: #222;
    color: #fff;
    font-size: 25px;
    font-weight: 600;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
}

.popup.active .overlay {
    display: block;
}

.popup.active .content {
    transition: all 300ms ease-in-out;
    transform: translate(-50%, -50%) scale(1);
}