.popup-link {
    display: flex;
    flex-wrap: wrap;
}

.popup-link a {
    background: #333;
    color: #fff;
    padding: 0px 30px;
    border-radius: 5px;
    font-size: 17px;
    cursor: pointer;
    margin: 20px;
    text-decoration: none;
}

.popup-container {
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    transform: scale(1.3);
    position: fixed;
    z-index: 3;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(21, 17, 17, 0.61);
    display: flex;
    align-items: center;
}

.popup-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    max-height: 700px;
    /* Set your desired height */
    overflow-y: auto;
    padding-right: 20px;
}

.popup-content p {
    font-size: 17px;
    padding: 10px;
    line-height: 20px;
}

.popup-content a.close {
    color: #848383;
    float: right;
    font-size: 60px;
    font-weight: bold;
    background: none;
    padding: 0;
    margin: 0;
    text-decoration: none;
}

.popup-content a.close:hover {
    color: #dc1010;
}

.popup-content span:hover,
.popup-content span:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.popup-container:target {
    visibility: visible;
    opacity: 1;
    transform: scale(1);
}

.popup-container h3 {
    margin: 10px;
}

/*End popup styles*/

/* Additional styles */
.popup-style-2 {
    transform: scale(0.3);

}

.popup-style-2:target {
    transform: scale(1);
}

.popup-style-3 {
    left: 100%;

}

.popup-style-3:target {
    left: 0;
}

.popup-style-4 {
    transform: rotate(180deg);
}

.popup-style-4:target {
    transform: rotate(0deg);
}

.popup-style-5 {
    top: 100%;

}

.popup-style-5:target {
    top: 0;
}

.popup-style-6 {
    transform: scale(15.3);

}

.popup-style-6:target {
    transform: scale(1);
}

.popup-style-7 {
    transform: skewY(180deg);
    transition: all 0.7s ease-in-out;
}

.popup-style-7:target {
    transform: skewY(0deg);

}


/* Media Queries for Responsive Design */
@media (max-width: 1200px) {
    .popup-link a {
        font-size: 14px;
        padding: 8px 15px;
        margin: 5px;
    }

    .popup-content {
        width: 90%;
        max-width: 90%;
        padding: 15px;
    }

    .popup-content p {
        font-size: 14px;
    }

    .popup-content a.close {
        font-size: 28px;
        color: #fefefe;
    }
}

@media (max-width: 480px) {
    .popup-link a {
        font-size: 12px;
        padding: 5px 10px;
        margin: 3px;
    }

    .popup-content {
        width: 95%;
        max-width: 95%;
        padding: 10px;
    }

    .popup-content p {
        font-size: 12px;
    }

    .popup-content a.close {
        font-size: 20px;
    }
}