* {
    user-select: none;
}

.hide {
    display: none !important;
}

.show {
    display: block !important;
}

section.hero.is-primary.is-bold {
    height: 10vh;
    justify-content: center;
}

div#mask {
    background-color: #000000db;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9;
}

button#greeting {
    position: absolute;
    z-index: 9;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: xxx-large;
    background-color: #00d1b2;
    padding: 2% 5%;
    border-radius: 10px;
    color: black;
}

#message {
    display: none;
    font-weight: bold;
    color: green;
    padding: 8px;
    background-color: beige;
    border-radius: 4px;
    border-color: aquamarine;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

h1.title {
    text-align: center;
}

.m-4 {
    margin: unset !important;
}

input.input[type="date"] {
    color-scheme: dark;
    width: unset !important;
    opacity: 0;
    position: fixed;
}

label.radio {
    background-color: azure;
    width: 30vw;
    height: 6vh;
    border-radius: 15px;
    margin: 0 15px;
    color: darkblue;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

label.radio:has(input[type="radio"]:checked) {
    background-color: chartreuse;
    font-weight: bold;
}

div.control {
    display: flex;
    justify-content: center;
    gap: 1vw;
    align-items: center;
}

input[type="radio"] {
    width: 1px;
    opacity: 0;
    position: absolute;
}

.field.is-grouped {
    justify-content: space-evenly !important;
}

form#form {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: stretch;
    height: 85vh;
}

.datePicker {
    outline-style: solid;
    outline-width: thin;
    outline-color: #353a46;
    display: flex;
    flex-direction: row;
    align-items: center;
    border-radius: 5px;
    color: white;
    padding: 0.5rem 1rem;
}

input::-webkit-datetime-edit, input::-webkit-inner-spin-button, input::-webkit-clear-button {
    display: none;
}

input::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 3px;
    right: 0;
    color: black;
    opacity: 1;
}

@media screen and (orientation: landscape) {
    html {
        background-color: azure;
    }

    body {
        width: 30vw;
        height: 100vh;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        position: absolute;
    }

    form#form {
        background-color: black;
        border-radius: 0 0 10px 10px;
    }

    .pl-4 {
        padding: 1rem !important;
    }

    section.hero.is-primary.is-bold {
        border-radius: 10px 10px 0 0;
    }
}

@media screen and (orientation: portrait) {
    h1.title {
        font-size: 25pt;
    }

    .pl-4 {
        padding: 3rem !important;
    }
}

/* ############### AMOUNT ################ */

#amount span.label {
    font-size: xx-large;
    position: absolute;
    top: 5vh;
    right: 10vw;
    z-index: 9;
}

#amount span.amount {
    font-size: x-large;
    color: chartreuse;
    background-color: black;
    padding: 10px;
    width: 90vw;
    min-width: 25vw;
    display: inline-grid;
    border: inset;
    text-align: end;
    overflow: hidden;
    position: absolute;
    top: 10vh;
    z-index: 9;
    left: 50%;
    transform: translateX(-50%);
    min-height: 6vh;
}

#amount.entered span.amount {
    background-color: chartreuse !important;
    color: black !important;
    font-weight: bold;
}

/* NUMPAD */

#amount span.numpad {
    display: grid;
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9;
    grid-template-rows: repeat(5, 20vw);
    grid-row-gap: 0.7rem;
    font-size: x-large;
}

#amount .numpad > div {
    display: grid;
    grid-template-columns: repeat(4, 20vw);
    grid-column-gap: 0.7rem;
}

#amount .numpad > div > div {
    background-color: floralwhite;
    width: 80px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 3px;
    font-size: xx-large;
    font-weight: bold;
    color: indianred;
    border: outset;
}

#amount .numpad > div > div:active {
    background-color: #d2d2d9;
    border: inset !important;
}

#amount .amount span.symbol {
    padding: 0 5px;
    color: gold;
}

#amount .amount span.value:before {
    content: '$';
    color: deeppink;
    font-weight: bold;
}

#amount span.numpad > div > div[data="ENTER"] {
    background-color: #269589 !important;
    color: white !important;
    font-size: x-large;
    align-items: center;
}

#amount .numpad > div > div[data="ENTER"]:active {
    background-color: #0a7c14 !important;
}

#amount span.next {
    background-image: url('./static/images/next.png');
    height: 60px;
    width: 60px;
    background-size: contain;
    position: absolute;
    bottom: -10vh;
    z-index: 9;
    left: 50%;
    transform: translateX(-50%);
    display: block;
}

kbd.kbc-button {
    width: 100%;
    height: 100%;
    font-weight: bold;
    font-size: larger;
}

kbd.kbc-button:active {
    background-color: darkgray;
    box-shadow: unset !important;
    color: white;
}

kbd.kbc-button[data="NEXT"], kbd.kbc-button[data="ENTER"] {
    background-size: 90%;
    background-repeat: no-repeat;
    background-position: center;
    color: transparent;
    background-color: darkgray;
}

kbd.kbc-button[data="NEXT"] {
    background-image: url('./static/images/save.png');
}

kbd.kbc-button[data="ENTER"] {
    background-image: url('./static/images/enter.png');
}