/* Button. */
#saleButton {
    padding: 80px 50px 80px 50px;
    border: none;
    cursor: pointer;
    border-radius: 12px;
    background: #cc0000;
    color: white;
    width: 90%;
    max-width: 1400px;
    margin-top: 30px;
    margin-right: auto;
    margin-bottom: 500px;
    margin-left: auto;
    display: block;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
    text-align: center;
    transition: background 0.6s ease, box-shadow 0.6s ease, transform 0.3s ease;
}

/* Real mouse hover. */
#saleButton:hover {
    background: linear-gradient(to bottom left, #e51717 0%, #aa0000 60%);
    box-shadow: 0 12px 50px rgba(0,0,80,0.45);
    transform: translateY(4px);
    
}

/* Artificial hover. */
#saleButton.scrollHover {
    background: linear-gradient(to bottom left, #e51717 0%, #aa0000 60%);
    box-shadow: 0 12px 50px rgba(0,0,80,0.45);
    transform: translateY(4px);
}

#saleButton:active {
    background-color: #880000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.35);
    transition: all 0.2s ease;
}

/* Mobile line breaks. */
.mobileBreak {
    display: none;
}

/* Modal background. */
#modalBackground {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    animation: fadeIn 0.4s ease;
    z-index: 9999;
}

/* Fade animation. */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal box. */
#modalBox {
    background: white;
    width: 90%;
    max-width: 400px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    letter-spacing: 1px;
    box-shadow: 0 5px 50px rgba(0,0,0,0.50);
    z-index: 10000;
}

/* Code display. */
#codeBox {
    font-size: 40px;
    letter-spacing: 6px;
    margin-top: 20px;
    margin-bottom: 20px;
    font-weight: bold;
}

/* User input display. */
#inputBox {
    font-size: 30px;
    letter-spacing: 10px;
    margin-bottom: 20px;
    margin-top: 15px;
    min-height: 30px;
}

/* Keypad grid. */
.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 18px;
    column-gap: 18px;
    margin: 20px auto;
    max-width: 260px;
}

/* Keypad keys. */
.key {
    background: #e0e0e0;
    border-radius: 10px;
    font-size: 22px;
    cursor: pointer;
    transition: 0.2s;
    user-select: none;
    text-align: center;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.key:hover {
    background: #c8c8c8;
}

.key:active {
    background: #b0b0b0;
    box-shadow: 0 3px 35px rgba(0,0,0,0.30);
    transition: 0.2s;
}

/* Email reveal. */
#emailLabel {
    font-size: 18px;
    margin-top: 40px;
    display: none;
    letter-spacing: 2px;
}

#emailReveal {
    margin-top: 20px;
    margin-bottom: 40px;
    display: none;
    font-weight: bold;
    letter-spacing: .02px;
}

/* Lockout message. */
#lockoutMsg {
    font-size: 1.2rem;
    color: red;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 15px;
    display: none;
    white-space: pre-line;
    line-height: 1.6;
}

/* Mobile overrides. */
@media (max-width: 600px) {

    /* Force two lines for the button title. */
    #saleButton div {
        line-height: 1.5;
        margin-top: 30px;
        margin-bottom: 30px;

    }

    /* Compact modal spacing. */
    #modalBox {
        padding-top: 30px;
        padding-bottom: 30px;
        width: 400px;
        max-width: 90%;
    }

    #codeBox {
        margin-top: 5px;
        margin-bottom: 15px;
    }

    #inputBox {
        margin-top: 15px;
        margin-bottom: 25px;
    }

    /* Compact keypad spacing. */
    .keypad {
        row-gap: 10px;
        column-gap: 10px;
    }

    .key {
        height: 50px;
        font-size: 20px;
    }
}