html,
body,
.main-container {
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.main-container {
    display: flex;
    flex-direction: column;
    background: #191919;
    color: white;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.page-container {
    display: none;
    justify-content: space-evenly;
    overflow-y: auto;
    overflow-x: hidden;
    cursor: default;

    height: 100%;
    width: 100%;
    flex: 1;
}

.page-container.active {
    display: flex;
}

.json-container {
    padding: 15px;
    height: max-content;
    justify-content: center;
}

.name-container {
    display: flex;
    justify-content: center;
}

.name {
    font-size: 60px;
    margin: 0;
    width: 518px;
    display: flex;
    white-space: pre;
}

.cursor {
    content: "";
    width: 5px;
    height: 80px;
    background: white;
    display: inline-block;
}

.cursor-small {
    content: "";
    width: 2px;
    height: 16px;
    background: white;
    display: inline-block;
}

.blink {
    animation: blink 1.5s step-end infinite;
}

@keyframes blink {
    0% {
        background: white
    }

    50% {
        background: transparent
    }

    100% {
        background: white
    }
}

.accent {
    color: orange;
}

.accent-complement {
    color: #12ADB3;
}

ul.sidenav,
.sidenav-mobile {
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 100%;

    user-select: none;
}

ul.sidenav li a,
ul.sidenav li div,
.sidenav-mobile a,
.sidenav-mobile div {
    cursor: pointer;
    color: white;
    text-decoration: none;
    float: right;
    padding: 15px;
}

ul.sidenav li a.active,
ul.sidenav li div.active,
.sidenav-mobile a.active,
.sidenav-mobile div.active {
    color: orange;
    cursor: default;
}

ul.sidenav li a:hover:not(.active),
ul.sidenav li div:hover:not(.active),
.sidenav-mobile a:hover:not(.active),
.sidenav-mobile div:hover:not(.active) {
    color: #12ADB3;
}

.sidenav-mobile {
    display: none;
    flex-direction: row-reverse;
}

.sidenav-mobile a,
.sidenav-mobile div {
    flex: 1;
    text-align: center;
}

.gold {
    color: #ffd710;
}

.light-blue {
    color: #8cdcfe;
}

.purple {
    color: #a463d6;
}

.tab-1 {
    padding-left: 2em;
}

.tab-2 {
    padding-left: 4em;
}

.tab-3 {
    padding-left: 6em;
}

.tab-4 {
    padding-left: 8em;
}

.image-container {
    justify-content: center;
    display: flex;
}

.image {
    height: 400px;
    padding: 6px 5px;
}

.image-content {
    display: flex;
}

/* Custom scroll bar */
::-webkit-scrollbar {
    width: 15px;
}

::-webkit-scrollbar-thumb {
    background: orange;
    border-radius: 6px;
    border: 4px solid #191919;
}

::-webkit-scrollbar-thumb:hover {
    border: 3px solid #191919;
}

/* Loading Keyboard CSS from https://codepen.io/stivaliserna/pen/ZEbKrEe */
#loading-keyboard {
    display: flex;
    position: absolute;
    justify-content: space-evenly;
    align-content: center;
    flex-wrap: wrap;
    overflow: hidden;
    cursor: default;

    height: 100%;
    width: 100%;
}

#case {
    position: fixed;
    bottom: 0%;
    opacity: 0;
    background-color: rgb(28, 28, 28);
    border-color: rgb(19, 19, 19);
    border-radius: 5px;
    border-style: solid;
    border-width: 8px 10px 15px 10px;
    display: inline-grid;
    grid-template-columns: repeat(36, 1fr);
    grid-template-rows: repeat(5, 1fr);
    height: 17em;
    padding: 5px;
    user-select: none;
    width: 60em;
}

.key {
    border-color: rgb(50, 50, 50) rgb(33, 33, 33);
    border-radius: 2px;
    border-style: solid;
    border-width: 3px 5px 8px 5px;
    color: rgb(214, 214, 214);
    display: block;
    font-family: sans-serif;
    font-size: 9px;
    font-weight: 800;
    grid-column-end: span 2;
    margin: 3px;
    padding-top: 2px;
    padding: 5px;
    text-align: center;
    text-transform: uppercase;
    transition: all 50ms ease-out;
    will-change: box-shadow, color, text-shadow;
}

.key:empty::before {
    content: attr(data-key);
}

.active-key {
    transform: perspective(1200px) translateZ(-90px);
    border-color: rgb(159, 159, 159) rgb(131, 131, 131);
    background-color: rgb(163, 163, 163);
    color: black;
}

.medium {
    grid-column-end: span 3;
}

.large {
    grid-column-end: span 4;
}

.xl {
    grid-column-end: span 5;
}

.xxl {
    grid-column-end: span 6;
}

.xxxl {
    grid-column-end: 7;
}

.huge {
    grid-column-end: span 12;
}

/* Mobile Keyboard */
#loading-keyboard-mobile {
    display: none;
    position: absolute;
    cursor: default;
}

#keyboard {
    position: fixed;
    bottom: 0%;
    opacity: 0;
    width: 100%;
    padding: 10px 1%;
    background: #1a1a1c;
    overflow: auto;
}

#keyboard ul {
    padding: 0;
}

#keyboard ul li {
    list-style: none;
    float: left;
    width: 8.5vw;
    height: 11vw;
    background: #616161;
    margin: 1.3% .65%;
    font-size: 7vw;
    text-align: center;
    line-height: 11vw;
    color: #fff;
    border-radius: 7px;
}

#keyboard ul li .off {
    display: none;
}

#keyboard ul li .on {
    display: block;
}

#keyboard.changed-keys ul li .off {
    display: block;
}

#keyboard.changed-keys ul li .on {
    display: none;
}

#keyboard ul li img {
    height: 6.5vw;
    /*width:8vw;*/
    position: relative;
    top: 1.5vw;
}

.num-key {
    display: none;
}

#keyboard ul li.active-key,
.key-2.active-key {
    background: #212121;
}

.keyline2 {
    padding: 0 4.25vw;
}

.keyline3 {
    padding: 0 6vw;
}

.key-2 {
    width: 11vw !important;
    height: 11vw !important;
    line-height: 12vw !important;
    background: #423d39 !important;
}

.key-2:active {
    background: #212121 !important;
}

.space {
    width: 39vw !important;
    font-size: 5vw !important;
    text-transform: lowercase;
}

.return {
    width: 22vw !important;
    font-size: 5vw !important;
    text-transform: lowercase;
}

.change-keys {
    font-size: 5vw !important;
    line-height: 11vw;
}

/*toggled classes*/
.big-del {
    width: 17vw !important;
    margin-left: 2% !important;
}

.no-padding {
    padding: 0 !important;
}

.uppercase {
    text-transform: uppercase;
}

@media screen and (max-width: 800px) {
    body {
        font-size: 12px;
    }

    .name {
        font-size: 30px;
        width: 260px;
    }

    .cursor {
        width: 3px;
        height: 40px;
    }

    .tab-1 {
        padding-left: 0.75em;
    }

    .tab-2 {
        padding-left: 1.5em;
    }

    .tab-3 {
        padding-left: 2.25em;
    }

    .tab-4 {
        padding-left: 3em;
    }

    #details>.json-container {
        word-break: break-word;
    }

    .sidenav {
        display: none;
    }

    .sidenav-mobile {
        display: flex;
    }

    .image {
        height: 200px;
        padding: 4px 5px;
    }

    ::-webkit-scrollbar {
        width: 12px;
    }

    #loading-keyboard {
        display: none;
    }

    #loading-keyboard-mobile {
        display: block;
    }
}

.top {
    top: -100%;
    animation: move-down 1s ease-out 0s 1 normal forwards;
    position: relative;
}

.bottom {
    bottom: -100%;
    animation: move-up 1s ease-out 0s 1 normal forwards;
    position: relative;
}

#keyboard.bottom-reverse,
#case.bottom-reverse {
    animation: move-up-reverse 1s ease-out 0s 1 normal forwards;
}

.left {
    left: -100%;
    animation: move-right 1s ease-out 0s 1 normal forwards;
    position: relative;
}

.right {
    right: -100%;
    animation: move-left 1s ease-out 0s 1 normal forwards;
    position: relative;
}

@keyframes move-up {
    from {
        bottom: -100%;
        opacity: 0;
    }

    to {
        bottom: 0%;
        opacity: 1;
    }
}

@keyframes move-up-reverse {
    from {
        bottom: 0%;
        opacity: 1;
    }

    to {
        bottom: -100%;
        opacity: 0;
    }
}

@keyframes move-down {
    from {
        top: -100%;
        opacity: 0;
    }

    to {
        top: 0%;
        opacity: 1;
    }
}

@keyframes move-right {
    from {
        left: -100%;
        opacity: 0;
    }

    to {
        left: 0%;
        opacity: 1;
    }
}

@keyframes move-left {
    from {
        right: -100%;
        opacity: 0;
    }

    to {
        right: 0%;
        opacity: 1;
    }
}