html {
    font-family: "Play", sans-serif;
    font-size:1rem;
}

body {
    margin: 0 0;
    line-height: 1.2;
    font-size:1em;
    color:#444;
    background: url("/background.webp");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    transition: background-image 1s;
}

.dimmer {
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    position: fixed;
    width: 100%;
    height: 100%;
    background: black;
}

.dimmer-background {
    width: 100%;
    height: 100%;
    background-color: black;
    position: absolute;
    z-index: -1;
}

.dimmer-image {
    border: 1px solid #250020;
    border-radius: 1em;
    width: 514px;
    height: 514px;
}

.mono {
    font-family: "LXGW WenKai Mono TC", monospace;
    font-weight: 400;
    font-style: normal;
}

.container {
    background-color: black;
    border: 1px solid #333333;
    border-radius: 1em;
    padding: 1em 2em;
    opacity: 70%;
    color: white;
    font-size: 1em;
    margin-bottom: 1em;
    width: 12em;
    text-align: center;
}

h1 {
    margin: 0 0;
}

hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #242424;
}

.keyboard {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Oswald, sans-serif;
    position: absolute;
    display: none;
}

.keyboard-base {
    opacity: 30%;
}

.keyboard-base:hover {
    opacity: 80%;
    .key-description {
        display: block;
    }
}

.keyboard-base {
    max-width: 1085px;
    padding: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgb(197, 197, 197);
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(30, 30px);
    grid-template-rows: repeat(5, 60px);
    grid-gap: 5px;
}


.key {
    background-color: rgb(243, 243, 243);
    border: 2px solid black;
    border-radius: 5px;
    grid-column: span 2;
    font-size: 20px;
    text-align: center;
    padding-top: 17px;
    cursor: pointer;
}

.key:not(.selected):hover {
    border: 3px solid #7b7ba9;
    background-color: #bed2ff;

}

.delete {
    grid-column: span 4;
}

.tab {
    grid-column: span 3;
}

.backslash {
    grid-column: span 3;
}

.capslock {
    grid-column: span 4;
}

.return {
    grid-column: span 4;
}

.leftshift {
    grid-column: span 5;
}

.rightshift {
    grid-column: span 5;
}

.leftctrl {
    grid-column: span 3;
}

.command {
    grid-column: span 3;
    font-size: 14px;
}

.space {
    grid-column: span 13;
}

@keyframes grow-animation {
    0% { transform: scale(1); }
    50% {transform: scale(2); }
    100% {transform: scale(3); }
}

.grow {
    opacity: 90% !important;
    text-align: center;
    animation: grow-animation 1s linear infinite;
    font-size: 2em;
    color: #a70000;
    background-color: #c6dfff;
    padding-top: 6px;
    .key-description {
        display: none !important;
    }
}

.selected {
    background: rgb(201,26,231);
    background: linear-gradient(0deg, rgba(201,26,231,1) 0%, rgba(34,199,209,1) 100%);
    color: white;
    text-shadow: #474747 3px 5px 2px;
}

.key-description {
    position: relative;
    font-size: 0.7em;
    /* bottom: 48px; */
    display: none;
    /* text-align: center; */
    bottom: 2px;
}

.button {
    width: 100%;
}

.space {
    background: rgb(201,26,231);
    background: linear-gradient(0deg, rgba(201,26,231,1) 0%, rgba(34,199,209,1) 100%);
    color: white;
    text-shadow: #474747 3px 5px 2px;
}


/* CSS */
.button {
  color: #fff;
  padding: 15px 25px;
  background-color: #38D2D2;
  background-image: radial-gradient(93% 87% at 87% 89%, rgba(0, 0, 0, 0.23) 0%, transparent 86.18%), radial-gradient(66% 66% at 26% 20%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 69.79%, rgba(255, 255, 255, 0) 100%);
  box-shadow: inset -3px -3px 9px rgba(255, 255, 255, 0.25), inset 0px 3px 9px rgba(255, 255, 255, 0.3), inset 0px 1px 1px rgba(255, 255, 255, 0.6), inset 0px -8px 36px rgba(0, 0, 0, 0.3), inset 0px 1px 5px rgba(255, 255, 255, 0.6), 2px 19px 31px rgba(0, 0, 0, 0.2);
  border-radius: 14px;
  font-weight: bold;
  font-size: 16px;

  border: 0;

  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;

  cursor: pointer;
}

.button:hover {
    background-color: #3899d2;
}

.button:active {
    background-color: #196999;
}

.mobile-message {
        display: none;
    }








@media (max-width: 767px) {

    .dimmer {
        background: url('/img/welcome.jpg');
        background-size: cover;
    }

    .dimmer-image {
        display: none;
    }

    .dimmer-background {
        display: none;
    }

    .container {
        opacity: 80%;
    }

    .keyboard {
        display: none !important;
    }

    .mobile-message {
        display: block;
        max-width: fit-content;
        margin: auto;

        padding-top: 2em;
    }
}
