/* Styles for Loteria */
/* © 2020 Paul Burney, All Rights Reserved */

/* Generic Styles */

* {
    box-sizing: border-box;
}

body {
    background-color: #000;
    color:  #fff;
    font-family: "Trebuchet MS", Tahoma, Calibri, sans-serif;
    margin: 0;
    padding: 0;
    font-size: 3vh;
}

a:link, a:visited {
    color: #fc0;
}

h1 {
    font-size: 4vh;
    line-height: 3.5vh;
}

h2 {
    font-size: 3.5vh;
    line-height: 3vh;
}

input {
    font-size: 4vh;
    padding: 1vh;
    max-width: 80vw;
}

.amarillo  {
    color: #fc0 !important;
}

.verde {
    color: #090 !important;
}

.blanco {
    color: #fff !important;
}

.rojo {
    color: #900 !important;
}

.grande {
    font-size: 4vh;
}

.chico {
    font-size: 2vh;
}

.wide {
    letter-spacing: .3vh;
    text-transform: uppercase;
}

.clickable {
    cursor: pointer;
}

.small-margin {
    margin: 1vh;
}

.no-margin {
    margin: 0;
}

.hidden-node {
    display: none !important;
}

.centered {
    text-align: center;
}

.middled {
    vertical-align: middle;
}

.float-right {
    float: right;
    margin-left: 1rem;
    margin-bottom: 1rem;
}

.standard-button {
    background-color: #fff;
    border: .5vh solid #090;
    color: #900;
    padding: 1vh;
    font-size: 3vh;
    border-radius: 1vh;
}

.standard-link {
    text-decoration: underline;
    color: #fc0;
    font-weight: bold;
    cursor: pointer;
}

.underlined {
    border-bottom: .1vh dotted #090;
}

.objective {
    line-height: 2vh;
    font-size: 2vh;
}

.palabra {
    font-weight: bold;
    font-size: 3vh;
    color: #090;
}

.canto-es, .canto-en {
    font-size: 2vh;
    font-style: italic;
}

.game-info-block {
    display: inline-block;
    color: #000;
}

.set img {
    max-width: 20vh;
}


/* Page Layout Styles */

.container {
    background-color: #000;
    color: #dedede;

    display: grid;
    grid-gap: 0;
    grid-template-areas:
        "header"
        "screen"
        "sponsored"
        "footer";
}

    .information {
        background-color: #000;
        align-self: top;
        margin-top: 1vh;
        grid-area: information;
    }

        .current-box {
            display: inline-block;
            width: 48%;
            vertical-align: top;
            margin-bottom: 1vh;
        }

        .current-box .tile {
            max-width: 100%;
            height: 25vh;
        }

    .sponsored {
        background-color: #000;
        color: #cdcdcd;
        text-align: center;
        grid-area: sponsored;
    }

        .advertisement {
            display: inline-block;
            background-color: #fff;
            color: #000;
            padding: 1vh;
            border-radius: 0.5vh;
        }

    .content {
        grid-area: content;
    }

        .content.calling, .content.play {
            background-color: #fff;
            padding: 1vh;
        }

/*        .content.calling .amarillo, .content.play .amarillo {
            background-color: #fc0;
            color: #000 !important;
            padding: 1vh;
        }
*/
    .header {
        background-color: #000;
        text-align: center;
        grid-area: header;
        position: relative;
    }

        .header h1 {
            margin: 0;
        }

        .beta {
            display: block;
            position: absolute;
            font-size: 3vh;
            color: #900;
            border: .25vh solid #900;
            border-radius: 1.5vh;
            left: 65%;
            background-color: rgba(255, 255, 255, 0.70);
            padding: 0vh 1.5vh;
            bottom: 10%;
            transform: rotate(-10deg);
        }

        .title img {
            height: 10vh;
            max-width: 90vw;
        }

        .language-selector {
            font-size: 1vh;
            position: absolute;
            top: 0;
            right: 0;
            margin-top: .5vh;
            margin-right: 1vh;
        }

            .language-selector img {
                height: 4.5vh;
            }

    .footer {
        background-color: #000;
        grid-area: footer;
    }

        .copyright {
            font-size: 2vh;
            text-align: center;
        }

        .burnilab-logo {
            background-color: #fff;
            vertical-align: middle;
            padding: 1vh;
            height: 7vh;
        }

    .screen {
        background-color: #000;
        color: #dedede;
        padding: 2vh;
        text-align: center;
        display: grid;
        grid-gap: 0vh;
        grid-template-areas:
            "information"
            "content"
    }

        .board {
            background-color: #fff;
            display: grid;
            grid-gap: 0;
            grid-template-columns: repeat(4, 1fr);
            grid-template-rows: repeat(4, 1fr);
            grid-gap: 1vh;
            grid-auto-flow: row;
        }

            .tile {
                border: 1vh solid #fff;
                background-color: #ccc;
                cursor: pointer;
                -ms-user-select: none;
                -webkit-user-select: none;
                -webkit-touch-callout: none;
                -moz-user-select: none;
                user-select: none;
                text-align: center;
                background-image: url(/images/reverse.png);
                background-size: 100% 100%;
                min-height: 12vh;
                position: relative;
            }

                .previous .tile {
                    cursor: default;
                }

            .information .tile {
                max-width: 20vh;
                margin: auto;
            }

            .tile.current {
                display: inline-block;
                width: 12vh;
            }

                .tile .number {
                    position: absolute;
                    top: 0;
                    left: 0;
                    font-weight: bold;
                    font-size: 3vmin;
                    display: block;
                    color: #000;
                    background-color: rgba(255, 255, 255, 0.6);
                    padding: 0.5vmin;
                    border-radius: 1vmin;
                }

                .tile .title {
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    width: 100%;
                    text-align: center;
                    font-weight: bold;
                    font-size: 2vmin;
                    display: block;
                    color: #000;
                    background-color: rgba(255, 255, 255, 0.85);
                    padding: 0.15vmin 0.5vmin;
                }


    /* Some special Layout concerns for larger monitors */
    @media only screen and (min-width: 800px)  {
        .screen {
            grid-template-columns: 20vh auto;
            grid-gap: 0 3vh;
            grid-template-areas:
            "information  content"
        }

        .block-when-wide {
            display: block;
        }

        .tile {
            min-height: 18vh;
        }

        .tile.current {
            width: 100%;
        }

        .current-box {
            width: 100%;
        }

        .set img {
            max-width: 100%;
        }

    }

/* Tile Style Overrides */

.selected {
    border: 1vh solid #090;
    background-color: rgba(255, 255, 255, 0.6);
}

.incorrect {
    border: 1vh solid #900;
    background-color: rgba(153, 0, 0, 0.6);
}

.disabled {
    background-color: rgba(255, 255, 255, 0.6);
}



/* Modal and Message Styles */

.error-messages-container {
    color: #000;
    background-color: rgba(255, 255, 255, .75);
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.error-messages {
    background-color: #fff;
    border: 1vh solid #900;
    position: fixed;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 3vh;
}

.error-messages-control {
    position: absolute;
    top: 1vh;
    right: 2vh;
    font-size: 5vh;
    cursor: pointer;
    font-weight: bold;
}

.modal-container {
    color: #000;
    background-color: rgba(255, 255, 255, .75);
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.modal {
    background-color: #fff;
    border: 1vh solid #090;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 3vh;
}

.modal-control {
    position: absolute;
    top: 1vh;
    right: 2vh;
    font-size: 5vh;
    color: #090;
    cursor: pointer;
    font-weight: bold;
}

.modal-content, .error-messages-content {
    padding: 1vh;
    min-width: 80vw;
    max-width: 95vw;
    min-height: 25vh;
    max-height: 95vh;
    overflow-y: scroll;
    overflow-x: none;
}

.modal-content a:link, .modal-content a:visited {
    color: #900;
}

    .modal-tile-image img {
        max-width: 75vw;
    }

.winner-modal-content {
    color: #000;
    text-align: center;
    margin-top: 3vh;
}

.winner-modal-content img {
    width: 90%;
}


/* Cantar Styles */

.goal {
    display: inline-block;
    vertical-align: middle;
    padding: 1vh;
}

.goal img {
    width: 4vh;
}

.wide-goal {
    width: 12vh;
}

.share {
    display: inline-block;
    vertical-align: middle;
}

.share img {
    height: 3vh;
}

/* Play Styles */

.game-type-header-image img {
    height: 5vh;
    vertical-align: middle;
}

/* Specific Card Modal Styles */

.card-modal-line {
    clear: both;
}

.card-modal-line img {
    height: 9vh;
    margin: .5vh 1vh .5vh 0;
    float: left;
    vertical-align: middle;
}
