body {
    background: #000;
}

.wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100dvh;
}

.background {
    width: 100%;
    height: 100%;

    position: fixed;
    top: 0;
    left: 0;

    display: block;
    object-fit: cover;
    object-position: center;

    opacity: 0.4;
    z-index: -9999;
}

.popup {
    background: #000;
    border-radius: 10px;
    box-shadow: 0 0 5px #000dffaa;

    width: 400px;
    height: 300px;

    opacity: 0;
    visibility: hidden;

    overflow: hidden;

    transition: opacity 0.8s ease;
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-header {
    background: #070a14;
    
    width: 100%;
    height: 40px;

    display: flex;
    align-items: center;
}

.popup-header span {
    margin: auto 20px;

    font-family: "Bebas Neue", sans-serif;
    color: #000dff;
}

.popup-content {
    background: #000;
    padding: 10px;

    width: 100%;
    height: calc(100% - 40px);

    text-align: center;
}

.popup-content.is-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.popup-message {
    color: #888;
    font-size: 0.8em;
}

.popup-media {
    background: #000;

    position: relative;
    margin-top: 5px;
    
    width: 100%;

    overflow: hidden;
}

.popup-img {
    display: block;

    width: 100%;
    height: auto;
}

.popup-video {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    opacity: 0.8;

    z-index: 2;
}

.touch {
    position: absolute;

    top: 51%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 90px;
    height: 130px;

    z-index: 999;

    border-radius: 40px;
    cursor: pointer;

    z-index: 3;

    -webkit-user-select: none;
    user-select: none;

    -webkit-touch-callout: none;
    touch-action: none;

    -webkit-user-drag: none;

    -webkit-tap-highlight-color: transparent;
}

.success-message {
    color: #888;
    font-size: 0.8em;
}

.popup-content button {
    background: #000dff;
    color: #888;
    font-size: 0.8em;

    margin-top: 20px;
    padding: 5px;
    
    border-radius: 2px;
    cursor: pointer;
    
    -webkit-user-select: none;
    user-select: none;

    -webkit-touch-callout: none;
    touch-action: none;

    -webkit-user-drag: none;

    -webkit-tap-highlight-color: transparent;
}

.popup-content button:hover {
    background: #353dd4;
}

.popup-img,
.popup-video {
    -webkit-user-select: none;
    user-select: none;

    -webkit-touch-callout: none;
    -webkit-user-drag: none;

    pointer-events: none;
}