/*
 * Generic Canvas popup styling.
 *
 * The popup is rendered on the Canvas loading shell when the server resolves a "platform.canvasPopup" legacy
 * parameter (see CanvasPopupParametersResolver). Markup lives in index.html; behaviour lives in canvasPopup.js.
 * Everything is namespaced under #king-canvas-popup so it cannot affect the game.
 */

#king-canvas-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2147483647;
    box-sizing: border-box;
    padding: 1rem;
    background: rgba(0, 0, 0, .6);
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: flex-start;
    align-items: flex-start;
    overflow-y: auto;
    font-family: Arial, Helvetica, sans-serif;
}

#king-canvas-popup.king-canvas-popup--visible {
    display: -webkit-flex;
    display: flex;
}

#king-canvas-popup * {
    box-sizing: border-box;
}

#king-canvas-popup .kcp-card {
    position: relative;
    width: 100%;
    max-width: 375px;
    min-height: 360px;
    margin-top: 100px;
    padding: 3.25rem 1.5rem 1rem;
    border-radius: 8px;
    background: #f7f4ef;
    box-shadow: 0 4px 0 0 #e2d5c7;
    text-align: center;
}

#king-canvas-popup .kcp-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3rem;
    border-radius: 8px 8px 0 0;
    background-image: linear-gradient(180deg, #fdfcfa, #f0e8de);
    box-shadow: inset 0 -2px 1px 0 hsla(0, 0%, 100%, .24), 0 4px 0 0 #e2d5c7;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
}

#king-canvas-popup .kcp-logo {
    display: block;
    width: 56px;
    height: 38px;
    background-image: url(/plataforma/canvas/images/logo.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#king-canvas-popup .kcp-title {
    margin: .5rem 0 .25rem;
    color: #ff6a00;
    font-weight: 600;
    font-size: 24px;
    line-height: 32px;
}

#king-canvas-popup .kcp-text {
    word-break: break-word;
    margin: .25rem 0 1.5rem;
    color: #464646;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
}

#king-canvas-popup .kcp-text a,
#king-canvas-popup .kcp-link {
    color: #00b67d;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

#king-canvas-popup .kcp-button {
    position: relative;
    width: 13.5rem;
    height: 3rem;
    margin: .5rem auto 0;
    padding: 0 1rem;
    border: 0 transparent;
    border-radius: 1.5rem;
    font-weight: 700;
    font-size: 16px;
    font-family: inherit;
    line-height: 1.5rem;
    text-transform: uppercase;
    cursor: pointer;
    background-color: #00b67d;
    background-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, .16));
    color: #fff;
    box-shadow: inset 0 -1px 0 0 hsla(0, 0%, 100%, .4), 0 4px 0 0 rgba(0, 0, 0, .4), 0 4px 0 0 #00b67d, 0 4px 4px 0 rgba(0, 0, 0, .24);
    -webkit-appearance: none;
    appearance: none;
}

#king-canvas-popup .kcp-button:active {
    background-image: linear-gradient(180deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, .2));
    box-shadow: inset 0 4px 0 rgba(0, 0, 0, .3);
}

#king-canvas-popup .kcp-button:focus {
    outline: 0;
}

@media only screen and (max-height: 500px) and (orientation: landscape) {
    #king-canvas-popup .kcp-card {
        margin-top: 1rem;
        border-radius: 0;
        max-height: 95vh;
        overflow-y: auto;
    }
}

@media only screen and (max-width: 370px) and (max-height: 600px) {
    #king-canvas-popup .kcp-button {
        width: 100%;
    }
}
