﻿@media only screen and (min-device-width: 576px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 1) and (max-height: 600px) {
    .logo {
        display: none !important;
    }

    .jumbotron {
        padding-top: 1.5rem;
        padding-bottom: 0rem;
    }

    footer.sticky-footer {
        padding-top: 0rem;
    }
}

.keyboard {
    text-align: center;
    font-size: 14px;
    font-family: sans-serif;
    max-width: 980px;
    margin: 0 auto;
}

#dniRow {
    display: flex;
    justify-content: center;
    align-items: center;
}

#DNI {
    max-width: 600px;
    width: 100%;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    background-color: #fdfdfd;
    font-size: 1.5rem;
    height: 70px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: border-color 0.2s, box-shadow 0.2s;
}
#PIN {
    max-width: 600px;
    width: 100%;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    background-color: #fdfdfd;
    font-size: 1.5rem;
    height: 70px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.keyboard__row {
    display: block;
    margin: 0.2em 0;
    white-space: normal;
}

    .keyboard__row > * {
        position: relative;
        background: #333;
        text-align: center;
        color: #eee;
        border-radius: 0.3em;
        margin: 0.2em;
        padding: 0.2em;
        width: 72px;
        height: 72px;
        box-sizing: border-box;
        cursor: pointer;
        -webkit-user-select: none;
        -ms-user-select: none;
        user-select: none;
        border: 1px solid #444;
        box-shadow: 0 0.2em 0 0.05em #222;
        border-bottom-color: #555;
        display: inline-block;
        vertical-align: top;
    }

    .keyboard__row > div[data-pressed],
    .keyboard__row > div:active {
        background: #2a2a2a;
        color: #aaa;
        top: 0.1em;
        box-shadow: 0 0 0 0.05em black;
    }


.key--letter {
    line-height: 72px;
    font-weight: 600;
}


.key--w4 {
    width: 150px;
}

.key--w5 {
    width: 220px;
}

.key--bottom-right > * {
    position: static;
}

.key--word > * {
    font-size: 0.9em;
}

#content .container-fluid:first-child {
    padding-left: 0;
    padding-right: 0;
}


#validation ul {
    list-style-type: none;
    padding-left: 0;
    margin: 8px 0 0;
}

@media (max-width: 1024px) {
    .keyboard {
        font-size: 13px;
    }

    .keyboard__row > * {
        width: 64px;
        height: 64px;
    }

    .key--letter {
        line-height: 64px;
    }

    .key--w4 {
        width: 136px;
    }

    .key--w5 {
        width: 192px;
    }
}

@media (max-width: 820px) {
    .keyboard {
        font-size: 12px;
    }

    .keyboard__row > * {
        width: 58px;
        height: 58px;
    }

    .key--letter {
        line-height: 58px;
    }

    .key--w4 {
        width: 128px;
    }

    .key--w5 {
        width: 176px;
    }
}

@media (max-width: 600px) {
    .keyboard {
        font-size: 12px;
    }

    .keyboard__row > * {
        width: 52px;
        height: 52px;
        margin: 0.18em;
    }

    .key--letter {
        line-height: 52px;
    }

    .key--w4 {
        width: 116px;
    }

    .key--w5 {
        width: 156px;
    }
}

@media (max-width: 420px) {
    .keyboard {
        font-size: 11px;
    }

    .keyboard__row > * {
        width: 46px;
        height: 46px;
        margin: 0.16em;
    }

    .key--letter {
        line-height: 46px;
    }

    .key--w4 {
        width: 104px;
    }

    .key--w5 {
        width: 140px;
    }
}