* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

/* Popup Overlay */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    z-index: 999999;
}

/* Popup Content */
.popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popupZoom 0.3s ease;
}

@keyframes popupZoom {
    from {
        transform: scale(0.8);
    }
    to {
        transform: scale(1);
    }
}

.popup-content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Popup Button */
.popup-button {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #A67C52;
    color: #ffffff;
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: buttonFadeIn 0.5s ease 0.5s forwards;
}

@keyframes buttonFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.popup-button:hover {
    background-color: #8B6545;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transform: translateX(-50%) translateY(-2px);
}

.popup-button:active {
    transform: translateX(-50%) translateY(0);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* Close Button */
.popup-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #ffffff;
    font-size: 45px;
    font-weight: 300;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
    user-select: none;
}

.popup-close:hover {
    color: #ff4444;
}


/* Responsive Design */

/* Tablets */
@media screen and (max-width: 768px) {
    .popup-close {
        top: 10px;
        right: 15px;
        font-size: 35px;
    }

    .popup-content {
        max-width: 95%;
        max-height: 85vh;
    }

    .popup-button {
        bottom: 20px;
        padding: 12px 35px;
        font-size: 16px;
    }
}

/* Mobile */
@media screen and (max-width: 480px) {
    .popup-close {
        top: 5px;
        right: 10px;
        font-size: 30px;
    }

    .popup-content {
        max-width: 98%;
        max-height: 80vh;
    }

    .popup-content img {
        max-height: 80vh;
    }

    .popup-button {
        bottom: 15px;
        padding: 10px 30px;
        font-size: 14px;
        border-radius: 6px;
    }
}
