﻿.popupContainer {
    display: block;
    position: fixed;
    top: 5%;
    z-index: 1;
}

.popupContainer .popup {
    min-width: 75%;
    max-width: 80%;
    min-height: 25%;
    max-height: 40%;
    margin-bottom: 20px;
    cursor: pointer;
    visibility: hidden;
}

.popup .popuptext {
    visibility: inherit;
    width: inherit;
    height: inherit;
    background-color: #dc3545;
    opacity: 0.8;
    color: #fff;
    border-radius: 3px 4px;
    padding: 4px 7px 2px 4px;
    position: relative;
    left: -15%;
}

    .popup .popuptext:hover {
        filter: brightness(85%);
    }

.popup .show {
    visibility: visible;
    animation: transitIn 0.5s, fadeIn 1s;
}

.popup .unshow {
    pointer-events: none;
    opacity: 0;
    animation: transitOut 1s, fadeOut 0.5s;
}

@@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.8;
    }
}

@@keyframes transitIn {
    from {
        left: -50%;
    }

    to {
        left: -15%;
    }
}

@@keyframes fadeOut {
    from {
        opacity: 0.8;
    }

    to {
        opacity: 0;
    }
}

@@keyframes transitOut {
    from {
        left: -15%;
    }

    to {
        left: -50%;
    }
}