:root {
    --light-text: #ffffff;
    --dark-text: #000000;
    font-family: sans-serif;
}

html, body {
    margin: 0;
    width: 100%;
    height: 100%;
    background-color: #202225;
    color: #dcddde;
}

main {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    text-shadow: 0 0 0.3em rgba(0, 0, 0, 1);
}

#overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}

.hidden{
    opacity: 0;
    pointer-events: none;
}

section {
    flex-grow: 1;
}

.grid-container {
    display: grid;
    list-style: none;
    padding: 0;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 25%;
    box-sizing: border-box;
    margin: 0;
    height: 100%;
}

.grid-container .button {
    color: var(--light-text);
    font-weight: bolder;
    text-shadow: 0 0 0.2em rgba(0, 0, 0, 0.8);
    box-sizing: border-box;
    padding: 1rem;
    font-size: 1.5rem;
    border: 0.2rem white solid;
    box-shadow: 0 0 0.5rem 0 rgba(0, 0, 0, 0.2), inset 0 0 0.5rem 0 rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
    transform: scale(0.9);
    line-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform ease 0.25s;
	
	-webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                          supported by Chrome, Opera and Firefox */
}

.grid-container .button:hover {
    transform: scale(0.98);
}

.grid-container .button:active {
    transform: scale(0.8);
}
.grid-container .button[button_action="white"] {
    background-color: #eef8fe;
}

.grid-container .button[button_action="red"] {
    background-color: #e62937;
}

.grid-container .button[button_action="green"] {
    background-color: #00e430;
}

.grid-container .button[button_action="blue"] {
    background-color: #0052ac;
}

.grid-container .button[button_action="yellow"] {
    background-color: #fdf900;
}

.grid-container .button[button_action="cyan"] {
    background-color: #01dddd;
}

.grid-container .button[button_action="pink"] {
    background-color: #ff598f;
}

.grid-container .button[button_action="gold"] {
    background-color: #ffa100;
}

.grid-container .button[button_action="purple"] {
    background-color: #ed008c;
}

.grid-container .button[button_action="orange"] {
    background-color: #eb6111;
}

.grid-container .button[button_action="off"] {
    background-color: black;
    grid-column: 2 / 4;
}

.lds-default {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
  }
  .lds-default div {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: lds-default 1.2s linear infinite;
  }
  .lds-default div:nth-child(1) {
    animation-delay: 0s;
    top: 37px;
    left: 66px;
  }
  .lds-default div:nth-child(2) {
    animation-delay: -0.1s;
    top: 22px;
    left: 62px;
  }
  .lds-default div:nth-child(3) {
    animation-delay: -0.2s;
    top: 11px;
    left: 52px;
  }
  .lds-default div:nth-child(4) {
    animation-delay: -0.3s;
    top: 7px;
    left: 37px;
  }
  .lds-default div:nth-child(5) {
    animation-delay: -0.4s;
    top: 11px;
    left: 22px;
  }
  .lds-default div:nth-child(6) {
    animation-delay: -0.5s;
    top: 22px;
    left: 11px;
  }
  .lds-default div:nth-child(7) {
    animation-delay: -0.6s;
    top: 37px;
    left: 7px;
  }
  .lds-default div:nth-child(8) {
    animation-delay: -0.7s;
    top: 52px;
    left: 11px;
  }
  .lds-default div:nth-child(9) {
    animation-delay: -0.8s;
    top: 62px;
    left: 22px;
  }
  .lds-default div:nth-child(10) {
    animation-delay: -0.9s;
    top: 66px;
    left: 37px;
  }
  .lds-default div:nth-child(11) {
    animation-delay: -1s;
    top: 62px;
    left: 52px;
  }
  .lds-default div:nth-child(12) {
    animation-delay: -1.1s;
    top: 52px;
    left: 62px;
  }
  @keyframes lds-default {
    0%, 20%, 80%, 100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.5);
    }
  }