html,
body {
    position: relative;
    height: 100%;
}

body {
    background: #eee;
    font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #000;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper {
    width: 525px;
    height: 550px;
    padding: 50px;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 22px;
    font-weight: bold;
    color: rgb(238, 229, 229);
}

.swiper-slide:nth-child(1n) {
    background-color: rgb(5, 30, 141);
}

.swiper-slide:nth-child(2n) {
    background-color: rgb(3, 94, 7);
}

.swiper-slide:nth-child(3n) {
    background-color: rgb(161, 10, 85);
}

.swiper-slide:nth-child(4n) {
    background-color: rgb(187, 97, 12);
}

.swiper-slide:nth-child(5n) {
    background-color: rgb(9, 77, 82);
}

.swiper-slide:nth-child(6n) {
    background-color: rgb(99, 8, 134);
}

.swiper-slide:nth-child(7n) {
    background-color: rgb(4, 59, 17);
}

.swiper-slide:nth-child(8n) {
    background-color: rgb(5, 3, 37);
}

.popup .overlay {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 525px;
    height: 550px;
    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: rgb(240, 248, 248);
    width: 470px;
    height: 400px;
    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);
}