@font-face {
  font-family: 'Gluten';
  src: url(./Gluten-Medium.ttf);
}

:root {
  touch-action: none;
  height: 100%;
}

body,
html {
  touch-action: none;
  --sidebar-width: 0px;
  --size-of-sidebar: 0;
  overflow: hidden;
}

* {
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
  font-family: 'Gluten', 'comic sans', sans-serif;
}

header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  pointer-events: all;
  display: flex;
  flex-direction: column;
  align-items: center;

  .game-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1em 1.5em;
    background: rgba(31, 41, 36, 0.8);
    backdrop-filter: blur(5px);
    width: 100%;

    button {
      font-size: 16px;
      padding: 8px 12px;
      cursor: pointer;
    }
  }

  .game-controls {
    display: block;
    margin: 0;
    width: fit-content;
    padding: 0.5em;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    font-size: 1.2em;

    p {
      margin: 0;
    }
  }

  #leaderboardList {
    list-style: none;
    padding: 0;
    margin: 0;

    li {
      line-height: 1.5;
      font-size: 1.5em;
      font-family: monospace;
      letter-spacing: 0.1em;
    }
  }
}


.btn-wrapper {
  display: flex;
  gap: 1em;
  margin: 0 auto;
}




.start-screen {
  width: fit-content;
  display: flex;
  position: fixed;
  bottom: 10%;
  right: 5%;

  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1em;

  @media screen and (orientation: landscape) {
    height: 90vh;
    width: 25%;
  }
}

.game-over-screen {
  position: fixed;
  padding: 5vh;
  left: 5%;
  right: 5%;
  top: 5%;
  bottom: 5%;
  display: flex;
  flex-direction: column;
  gap: 2em;
  justify-content: space-around;
  align-items: center;
  backdrop-filter: blur(10px);
  background-color: #0007;

  .game-over {
    text-align: center;

    h1 {
      font-size: calc(2em + 8vw);
      margin: 0;
      color: var(--orange);
    }

    p {
      color: var(--orange-light);
    }
  }

  .score {
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1em 1.5em;
    background-color: color-mix(in srgb, var(--dark-blue), transparent);

    h2,
    p {
      font-size: 2rem;
      margin: 0 0 -0.1em;
      line-height: 1.2;
    }

    h2 {
      color: var(--blue);
    }

    p {
      color: var(--light-blue);
    }
  }
}

.sexy-btn {
  display: flex;
  align-items: center;
  gap: 2em;
  outline: none;
  border-radius: 0.5em;
  /* text-transform: lowercase; */
  position: relative;
  z-index: 1;
  width: fit-content;
  font-size: 1.2rem;
  text-decoration: none;
  border: 1px solid #1c5057;
  padding: 1.5em 2em;
  background: var(--light-blue);
  color: var(--dark-blue) !important;

  &:hover,
  &:focus {
    outline: 2px solid #1c5057;
    background: rgba(4, 43, 49, 0.9);
    color: #277681 !important;
    /*
    canvas {
      opacity: 1;
    } */
  }

  &:active {
    background: rgba(1, 6, 6, 0.7);
    outline: 2px solid #1c5057;
  }
}