@font-face {font-family: "SpaceGrotesk"; src: url("../data/SpaceGrotesk.woff2");}
*::-webkit-scrollbar, *::-webkit-scrollbar-thumb {background: transparent; width: 0;}
*::selection {background: #ffe6d4;}
* {user-select: none;}
html, body {font-family: "SpaceGrotesk", helvetica; border: 0; padding: 0; background: url('./bg.png') center center no-repeat; background-size: cover; width: 100%; height: 100%; padding: 0; margin: 0;}

#logo {background: url('./glitter.gif') center center; font-size: 3vh; color: #002af5; animation: roller linear infinite 4s;}
    #logo img {height: 3vh !important; transform: translateY(0.7vh);}
    @keyframes roller {
        0% {background-position-y: 0;}
        100% {background-position-y: 100%;}
    }
#page, #console, #nabidka {display: none;}
#nabidka {margin-top: 4vh;}
#nabidkaControls {display: none; grid-template-columns: 1fr 1fr; align-items: center; margin-top: 4vh;}
form {width: 90vw; height: auto; margin: 0 auto;}
#enter {width: 100%; height: 100%; text-align: center; backdrop-filter: blur(10px);}
    #enter > h1 {display: inline-block;}
    #enter a, #enter .support, #enter .tutorial {font-size: 1.8vh !important; text-decoration: none;}
    #enter .mid, #enter .start {line-height: 10vh;}
    #enter .bottom {position: absolute; bottom: 2vh; left: 50%; transform: translateX(-50%); top: auto; width: 100%;}
    #enter > div {position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);}
        #enter > div input {font-size: 3vh !important;}
        #enter > div div {justify-content: center; align-items: center; display: flex; font-size: 3vh;}
    #enter > span, #enter > span a, #enter .mid span {animation: bounce infinite 4s ease-in-out;}
    #enter .mid span {animation-duration: 1.5s;}
        .support {animation-delay: 1s !important;}
        .tutorial {animation-delay: 2s !important;}
    @keyframes bounce {
        0% {transform: scale(1);}
        50% {transform: scale(1);}
        75% {transform: scale(1.1);}
        100% {transform: scale(1);}
    }
    #enter .start {transition: 0.3s ease;}
    #enter .start:hover {background: linear-gradient(180deg, #ffe6d4 0%, #8ce4ff 100%); color: #002af5;}
#vypis {color: white; width: 90vw; height: calc(100% - 10vh); padding: 5vh 0; text-align: center; margin: 0 auto; font-size: 12vh; z-index: 99 !important; align-items: center; display: grid;}
#bg {position: absolute; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 0;}
    #bg {display: none;}
#qr {width: 60vw; height: 60vw; margin: 0 auto; margin-top: 5vh;}
#buy {background: linear-gradient(180deg, #826cff 0%, #002af5 100%); width: 90vw; min-height: 5vh; margin-bottom: 4vh; margin-top: -3vh; padding-top: 4vh; padding-bottom: 2vh; border-radius: 5vh; border-top-left-radius: 0; border-top-right-radius: 0; box-shadow: 0 1vh 2vh rgba(0, 0, 0, 0.3);}
#cena {font-size: 6vh;}

.item, .plus, #enter a, .minus, .start, .ns, .nula, #buy div, .support, .tutorial, .addToMenu, .addItem, .purgeMenu, .removeItem, .editItems, .table, .addTable, .clearTables, .killCreator, .closeConsole, .showConsole, .historyConsole {font-size: 3vh; border-radius: 2vh; background: linear-gradient(180deg, #826cff 0%, #002af5 100%); color: white; padding: 0.3vh 0.8vh; margin: 0.25vh 0.5vh; display: inline-block; box-shadow: 0 1vh 2vh rgba(0, 0, 0, 0.3); transition: 0.1s ease-out; cursor: pointer;}
.item.remove {background: #923453; animation: wiggle 1s ease-in-out infinite;}
.item.remove:nth-child(2n) {animation-delay: -0.5s;}
    @keyframes wiggle {
        0% {transform: translateY(-5px);}
        50% {transform: translateY(5px);}
        100% {transform: translateY(-5px);}
    }
    .start {padding: 2vh; width: 10vh; height: 10vh; border-radius: 50%;}
    #enter a, #enter .support, #enter .tutorial {background: linear-gradient(180deg, #00d6cd 0%, #8ce4ff 100%);}
    #buy div, .item {background: linear-gradient(180deg, #00d6cd 0%, #8ce4ff 100%);}
.killCreator, #consoleControls {position: fixed; top: auto; bottom: 5vh; left: 50%; transform: translateX(-50%); font-size: 5vh; z-index: 9892;}
.editItems, .addToMenu, .removeItem, .purgeMenu, .addItem {font-size: 5vh;}
.itemsMenu {display: none;}
.addItem {width: 84vw; text-align: center; padding: 1vh; border-radius: 4vh; margin-top: 2vh;}
    #consoleControls {display: none; width: 100%; text-align: center;}
    #consoleControls * {margin-right: 2vh;}
.pocet {font-size: 3vh;}
.showConsole, .addTable, .clearTables, #consoleControls * {font-size: 5vh;}
.open, .blik {background: #ffe6d4 !important;}
.open {transform: scale(1.5);}
    .tableCreator img {transition: 2.5s ease-out;}
    .selected {transform: scale(2.5);}

input:not([type="checkbox"]) {font-size: 5vh !important; font-family: "SpaceGrotesk", helvetica; text-align: center; width: 90vw; border-radius: 5vh; border: 0; outline: 0; box-shadow: 0 1vh 2vh rgba(0, 0, 0, 0.3); padding: 1vh 2vh; box-sizing: border-box; height: 8vh;}
    #nabidkaControls input {background: linear-gradient(180deg, #826cff 0%, #002af5 100%); margin-bottom: 4vh; color: white;} /* linear-gradient(0deg, #8cffc0 0%, #8ce4ff 100%); */
input[type="number"] {margin-top: 2vh;}
input[type="checkbox"] {width: 5vh; height: 5vh;}

#tables {margin-top: 3vh;}
.table img {height: 7vh;}
.tableCreator img, #console img {height: 14vh; margin: 1vh; display: inline-flex;}
    #console img {height: 5vh; margin: 0 1vh 0 0;}
.tableCreator, #console {position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 9209; background: #ffe6d4; text-align: center; color: black; overflow-y: auto; padding-bottom: 30vh; box-sizing: border-box;}
    #console {transform: rotate(0deg); padding: 2.5vh; text-align: left; font-size: 2vh; padding-bottom: 30vh;}
    #console .log:not(:first-child) table, #console .log:not(:first-child) .hlavicka {display: none;}
    #console table {margin-top: 2vh;}
    #console .archive table tr td {padding-top: 1vh;}
    #console table tr.firstRow td {vertical-align: top;}
    #console table tr.finalRow td {padding-bottom: 2vh;}
    #console table tr td {padding: 0 0.5vh;}
    hr {background: black; border: 0; height: 0.5vh;}
.closeConsole {font-size: 4.2vh;}

body.reverse .tableCreator, body.reverse #bg {transform: rotate(180deg);}
body.reverse .killCreator {top: 5vh; bottom: auto;}

@media (min-aspect-ratio: 1/1) {
    input {max-width: 50vw; font-size: 5vh;}
    .addItem {width: 48vw;}
    #buy {max-width: 50vw; margin-top: -3vh;}
    form {max-width: 50vw;}
}