@font-face {
  font-family: "Fira Code";
  src: url("fonts/FiraCode-Bold.woff2") format("woff2"),
    url("fonts/FiraCode-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fira Code";
  src: url("fonts/FiraCode-Light.woff2") format("woff2"),
    url("fonts/FiraCode-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fira Code";
  src: url("fonts/FiraCode-Regular.woff2") format("woff2"),
    url("fonts/FiraCode-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bgColor: #e9e6de;
}

* {
  margin: 0;
  overflow: hidden;
  /* background-color: var(--bgColor); */

  font-family: "Fira Code", monospace;
  font-weight: normal;
  font-size: 14px;

  flex-direction: column;
}

#myCanvas {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-right: -50%;
  transform: translate(-50%, -50%);

  border-radius: 3px;
  box-shadow: -3px 3px 20px rgba(0, 0, 0, 0.3);

  z-index: 0;

  visibility: hidden;
}

/* LOADING PANEL */
#loadingPanel {
  position: absolute;
  margin: 0;
  width: 100%;
  height: 100%;

  display: flex;
  justify-content: center;
  align-items: center;

  background-color: var(--bgColor);

  font-size: 16px;

  z-index: 1000;

  /* visibility: hidden; */
}

#loadingText {
  opacity: 1;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 1;
  }

  75% {
    opacity: 0.25;
  }

  100% {
    opacity: 1;
  }
}

#loadingBar {
  width: 0%;
  height: 1px;
  margin: 10px;

  background-color: black;
}

/* #loadingResolutionText {
  font-size: 14px;
  font-weight: normal;
} */

/* OPTIONS PANEL*/
#optionsPanel {
  position: absolute;
  margin: 0;
  width: 100%;
  height: 100%;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  background-color: var(--bgColor);

  text-align: center;
  font-size: 14px;

  z-index: 100;

  visibility: hidden;
}

#optionsPanel h1 {
  font-weight: normal;
  font-size: 16px;
}

/* #resolutionPanel {} */

.segment {
  width: 320px;
  padding: 4px;

  font-size: 16px;

  outline: #c2c2c2 1px dashed;
}

.segment label {
  font-weight: bold;
}

#resolutionPicker {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}

#resolutionValueText {
  width: 100px;
  height: 20px;
  padding: 12px 0;

  font-weight: bold;

  background-color: #ffffff;

  overflow: visible;
}

.resolutionBtn {
  width: 100px;
}

/* #renderBtn {} */

#optionsCloseBtn {
  width: 100px;
}

/* HELPERS */
.btn {
  height: 20px;
  margin: 6px;
  padding: 12px;

  color: #eeeeee;
  text-align: center;
  font-weight: normal;

  background-color: #303030;

  overflow: visible;
}

.btn:hover {
  color: #ffffff;
  /* text-decoration: underline; */
  font-weight: bold;

  cursor: pointer;
  background-color: #000000;
}

.noselect {
  -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, Edge, Opera and Firefox */
}

@media (max-height: 420px) {
  #optionsPanel {
    gap: 0px;
  }

  #optionsPanel h1 {
    margin-bottom: 0px;
  }

  #optionsCloseBtn {
    margin: 0px;
  }
}
