@font-face {
  font-family: "fraktion mono";
  src: url("fonts/PPFraktionMono-Regular.otf");
  weight: normal;
}

@font-face {
  font-family: "fraktion mono";
  src: url("fonts/PPFraktionMono-bold.otf");
  weight: bold;
}

@font-face {
  font-family: "fraktion mono";
  src: url("fonts/PPFraktionMono-light.otf");
  weight: 100;
}

@font-face {
  font-family: "fraktion";
  src: url("fonts/PPFraktionSans-Light.otf");
  weight: normal;
}

@font-face {
  font-family: "fraktion";
  src: url("fonts/PPFraktionSans-Bold.otf");
  weight: bold;
}

@font-face {
  font-family: "fraktion";
  src: url("fonts/PPFraktionSans-thin.otf");
  weight: 100;
}

body {
  margin: 0;
  background: rgb(230, 230, 230);
}

button {
  border: none;
  cursor: pointer;
}

video {
  position: fixed;
  z-index: -1;
  display: block;
  width: auto;
  height: 140vh;
  top: 50vh;
  left: 50vw;
  transform: translate(-50%, -50%);
  opacity: 0.6;
  transition: opacity 800ms;
}

label {
  font-family: sans-serif;
  font-size: 14px;
}

canvas {
  position: fixed;
  top: 50vh;
  left: 50vw;
  transform: translate(-50%, -50%);
  display: none;
  transition: opacity 500ms;
  z-index: 0;
}

#audio-player {
  display: none;
}

#painting-menu {
  position: relative;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0;
  z-index: 1;
  display: none;
  transition: 500ms;
}

#info {
  display: flex;
  position: absolute;
  bottom: 20px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  z-index: 2;
}

#info div {
  margin: 0 25px;
  font-family: "fraktion mono", monospace;
  font-size: 1em;
}

#info div.half {
  width: 35%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

#info div.half:nth-child(4) {
  justify-content: flex-start;
}

#play-button {
  background: transparent;
  font-family: "fraktion mono";
  font-size: 1.2em;
  margin: 0 -25px;
  color: rgb(63, 63, 63);
}

.menu-button {
  position: fixed;
  top: 20px;
  font-family: "fraktion mono";
  border-radius: 0.5em;
  padding: 0.25em 0.5em;
  font-size: 1em;
  z-index: 2;
  border: solid black 1px;

  /* backdrop-filter: blur(10px);
  background: rgba(104, 104, 104, 0.069); */
  color: rgb(0, 0, 0);
  background: transparent;
  cursor: pointer;
  /* box-shadow: 0 0 10px rgba(54, 54, 54, 0.188); */
}

#save-button {
  right: 20px;
}



#start-button {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 4;
  padding: 20px;
  display: none;
}

#loading-buffer {
  display: none;
  font-family: "fraktion mono";
  font-size: 1.2em;
  position: fixed;
  width: 300px;
  top: 35vh;
  left: 50%;
  transform: translateX(-50%);
}

#loading-message {
  width: 100%;
  text-align: center;
}

#loading-bar {
  width: 0;
  height: 1px;
  position: absolute;
  left: 0;
  margin-top: 20px;
  background: black;
  animation: loading 2s infinite;
}

#start {
  display: none;
  font-family: "fraktion mono";
  font-size: 1.2em;
  position: fixed;
  text-align: center;
  top: 45vh;
  left: 50%;
  transform: translateX(-50%);
}

@keyframes loading {
  0% {
    width: 0;
    left: 0;
  }
  50% {
    width: 100%;
    left: 0;
  }
  100% {
    width: 0;
    left: 100%;
  }
}

