body:not(.admin-mode) {
    margin: 0;
    padding: 0;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif
}

.container {
    position: relative;
    max-width: 100%;
    cursor: pointer
}

img.bg-image {
    max-width: 100%;
    height: auto;
    display: block
}

.popup-ad {
    position: fixed;
    z-index: 1000;
    background-color: #1a1a1a;
    border: 2px solid #333;
    border-radius: 8px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, .9);
    padding: 6px;
    max-width: 500px;
    max-height: 80vh;
    width: auto;
    animation: zoomIn .25s ease-out;
    user-select: none;
    cursor: default;
    opacity: 0;
    transition: opacity .1s;
    min-width: 100px;
    min-height: 100px;
    display: flex;
    justify-content: center;
    align-items: center
}

.popup-ad img {
    max-width: 100%;
    max-height: calc(80vh - 40px);
    height: auto;
    display: none;
    border-radius: 4px;
    object-fit: contain
}

.popup-ad.loaded img {
    display: block
}

.popup-ad.loaded .loader {
    display: none
}

.loader {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
    border-top-color: #f44;
    animation: spin 1s ease-in-out infinite
}

.close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 32px;
    height: 32px;
    background: #f44;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 0;
    padding-bottom: 2px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .6);
    z-index: 1001;
    transition: transform .1s, background .1s
}

.close-btn:hover {
    background: #c00;
    transform: scale(1.1)
}

@keyframes zoomIn {
    from {
        transform: scale(.5);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

@media (max-width:600px) {
    .popup-ad {
        max-width: 85%
    }
}