
@media print {
    * {
        text-shadow: unset !important;
    }
    body {
        background: unset;
    }
    #background, #popup[style *= "display: block;"] + #page-shadow, #page-shadow-bottom, #admin-bar, .footer-line, .message_warning, .buttons {
        display: none !important;
    }
    #popup[style *= "display: block;"] {
        position: absolute;
        left: 0px !important;
        top: 0px !important;
        width: 100%;
    }
    #popup_content {
        box-shadow: unset !important;
        border: 1px solid #000;
        border-radius: 5px;
        margin: 0px;
    }
    #status {
        text-align: center;
    }
    #codes, #legend {
        font-size: 18px;
    }
}

#popup {
    position: absolute;
    z-index: 201;
    display: none;
    min-width:200px;
    min-height:200px;
}

#background {
    width: 100%;
    height: 100%;
    z-index: 200;
    display: none;
    background-color: #111;
    opacity: 0.9;
    position: fixed;
    top: 0;
    left: 0;
}

#popup_content {
    font-family: 'Droid Sans', sans-serif;
    box-shadow: 0px 7px 0px #777;
    padding: 10px;
    background-color: #fff;
    height: auto;
    width: auto;
    border-radius: 8px;
    margin-top: 50px;
    overflow: auto;
    max-width: 900px;
}

.popup_loading {
    background: url('https://static.tierra.net/images/lang/tn_loading_new-c1c53bab7.gif') no-repeat center center;
}

#popup h2.success {
    color: #f0ffe6;
    background-color: #2f9800;
    padding: 8px;
    border-radius: 5px;
}
#popup h2.error {
    color: #f5d6d1;
    background-color: #c5291d;
    padding: 8px;
    border-radius: 5px;
}

#codes {
    font-family: "Andale Mono", "Courier New", monospace;
    font-size: 25px;
    color: #070;
    display: flex;
    flex-wrap: wrap;
    align-content: space-around;
    min-height: 200px;
    background: #c0c0c0;
    flex-flow: row wrap;
    justify-content: space-around;
    border-radius: 5px;
    margin-top: 18px;
    margin-bottom: 18px;
}
#codes .code {
    flex: 1 50%;
    text-align: center;
    min-width: 200px;
}
.code .fa {
    color: #000;
}
.alpha {
    color: #070;
}
.digit {
    color: #007;
}

#legend {
    font-size: 25px;
    display: flex;
    flex-wrap: wrap;
    align-content: space-around;
    flex-flow: row wrap;
    justify-content: space-around;
    margin-top: 18px;
    margin-bottom: 18px;
}
#legend span {
    flex: 1 50%;
    text-align: center;
    min-width: 200px;
}

#popup .buttons {
    float: right;
    margin-top: 10px;
}
#popup .buttons a {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    text-decoration: none;
    background: #666;
    padding: 5px;
    border-radius: 5px;
    color: #fff;
    border: 1px solid #666;
    text-transform: uppercase;
    margin: 5px;
}
#popup .buttons a:hover {
    background: #999;
    border: 1px solid #999;
}
#popup .buttons .wide {
    margin-left: 25px;
}

