@font-face {
  font-family: "myanmar_textregular";
  src:
    url("../mmrtext-webfont.woff2") format("woff2"),
    url("../mmrtext-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

:root {
  --bg-color: #36383c;
  --text-color: #ffffff80;
  --btn-color: #1f2023;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  text-align: center;

  display: flex;
  flex-direction: column;
  justify-content: center;

  font-family: "myanmar_textregular";

  background-color: var(--bg-color);
  color: var(--text-color);
}

button,
input[type="number"] {
  font-family: "myanmar_textregular";
  line-height: 0.9;
  font-size: 1em;

  background-color: var(--btn-color);
  color: var(--text-color);
  border: 1px solid black;
  box-shadow: 0px 2px 6px 1px rgba(0, 0, 0, 0.6);
}

.main-container {
  position: relative;
  top: -50px;

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

  padding: 0 1em;
}

@media (min-height: 768px) {
  .main-container {
    top: -100px;
  }
}

.title {
  width: 100%;
  max-width: 680px;
}

#state {
  min-height: 60px;

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

#state button {
  cursor: pointer;

  padding: 10px;
  padding-top: 14px;
}

.beatfader-container {
  box-sizing: border-box;

  width: 100%;
  max-width: 390px;

  margin: 2em 0;
  padding: 0 3em;
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  background-color: black;
  border-top: solid 1px #1c1d20;
  border-left: solid 1px #1c1d20;
  border-bottom: solid 1px #6e7279;
  border-right: solid 1px #6e7279;
  outline: none;
  margin: 33px 0;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 27px;
  height: 80px;
  border: 0;
  background-image: url("../img/fader_D.png");
  background-position: center;
  background-color: transparent;
  background-size: cover;
  cursor: pointer;
  box-shadow: 0px 15px 22px 5px rgba(0, 0, 0, 0.7);
}

.slider::-moz-range-thumb {
  width: 27px;
  height: 80px;
  border: 0;
  background-image: url("../img/fader_D.png");
  background-position: center;
  background-color: transparent;
  background-size: cover;
  cursor: pointer;
  box-shadow: 0px 15px 22px 5px rgba(0, 0, 0, 0.7);
}

.controls-container {
  --button-width: 32px;
  display: grid;
  grid-template-columns: var(--button-width) 8em var(--button-width);
  grid-gap: var(--button-width) calc(var(--button-width) / 2);

  background-image: url('../img/separator.png');
  background-repeat: repeat-x;
  background-position: 0 49px;
}

.selector {
  position: relative;
  background-color: var(--bg-color);
  width: 100%;
  height: var(--button-width);

  background-image: url('../img/selector-dropdown-btn.png');
  background-repeat: no-repeat;
  background-position: right 26px;
}

.selector label {
  display: block;
  position: absolute;
  top: 3px;

  width: 100%;

  line-height: 0.9;
  text-align: left;
  color: #ffffff3f
}

.selector select {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 34px;
  padding: 11px 0 0 0;

  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;

  background-color: transparent;
  border: none;
  color: #ffffff80;

  text-align: left;
  font-size: 1.1em;
}

.btn-pagination {
  --size: 32px;

  width: var(--size);
  height: var(--size);

  border-radius: calc(var(--size) / 2);

  background-size: 32px;
  background-repeat: no-repeat;
}

.btn-pagination.prev {
  background-image: url("../img/prev.png");
  background-position: 0px center;
}

.btn-pagination.next {
  background-image: url("../img/next.png");
  background-position: 0px center;
}
