* {
  margin: 0;
  padding: 0;
  code {
    font-size: 1.2em;
    padding: 3px 8px 3px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.3);
    outline: 1px solid rgba(255, 255, 255, 0.7);
    color: white;
  }
  button {
    font-size: 1.5em;
    background: rgba(255, 255, 255, 0.3);
    outline: 2px solid rgba(255, 255, 255, 0.7);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
  }
}

*:not(code) {
  font-family: "Poppins", sans-serif;
}

body {
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  canvas#canvas {
    position: absolute;
    top: 0;
    left: 0;
  }
  div.formula {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 40px;
    background: #222222;
    border-radius: 5px;
    display: flex;
    align-items: center;
    outline: 2px solid white;
    code {
      font-size: 1.2em;
      background: transparent;
      outline: none;
      width: 60px;
    }
    input[type="text"] {
      background: rgba(255, 255, 255, 0.1);
      border: none;
      font-size: 1em;
      height: 40px;
      width: 440px;
      color: white;
      &:focus-visible {
        border: none;
        outline: none;
      }
    }
    button {
      font-size: 1em;
      height: 38px;
      border-radius: 0 5px 5px 0;
    }
  }
  div.greeterbox,
  div.settingsbox {
    width: 100vw;
    height: 100vh;
    display: none;
    pointer-events: none;
    &.active {
      display: block;
      backdrop-filter: blur(2px);
    }
    > div {
      pointer-events: all;
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      outline: solid;
      color: white;
      background: #222222;
      border-radius: 10px;
    }
  }
  div.greeterbox {
    div.greeter {
      width: 800px;
      height: 620px;
      display: flex;
      justify-content: center;
      flex-direction: column;
      div.header {
        margin: 20px;
        text-align: center;
        h1,
        h3 {
          font-weight: 300;
        }
        h1 {
          font-size: 2.5em;
        }
      }
      div.controls {
        margin: 20px;
        text-align: center;
        h2 {
          font-weight: 300;
        }
        > div {
          display: grid;
          grid-template-columns: 1fr 1fr;
          > div {
            display: grid;
            padding: 30px;
            grid-template-columns: repeat(2, 1fr);
            width: 300px;
            > * {
              margin: 10px;
            }
          }
        }
      }
      div.footer {
        text-align: center;
      }
    }
  }
  div.info {
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    min-height: 150px;
    outline: 1px solid white;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0 0 10px 0;
    display: flex;
    flex-direction: column;
    background-color: #222222;

    > div {
      display: flex;
      width: 100%;
      margin: 5px;
      p {
        color: white;
        margin-left: 10px;
      }
    }
  }
  div.settingsbox {
    div.settings {
      overflow-y: scroll;
      display: block;
      width: 800px;
      height: 700px;
      > div {
        text-align: center;
        margin: 30px;
        padding-top: 20px;
        h1,
        h2,
        h3 {
          font-weight: 300;
        }
        > div {
          display: flex;
          margin: 20px 0 20px 0;
          > * {
            width: 350px;
            margin: 10px;
          }
        }
      }
    }
  }
}
