@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: bold;
  src: url("../fonts/Lato/Lato-Bold.ttf");
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/Lato/Lato-Semibold.ttf");
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: normal;
  src: url("../fonts/Lato/Lato-Regular.ttf");
}


img {
  user-select: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;  
}

html {
  height: 100%;
  font-family: "Lato";
  background: white;
}

 body {
  background: #fffff0;
  background-image: url("..//images/textures/ricepaper_v3.png");
  background-blend-mode: luminosity;

  width: 100vw;
  height: 100vh;

  margin-top: 0px;
  margin-bottom:0px;
  margin-left: 0px;
  margin-right: 0px;

  display: grid;
  grid-template-rows: auto 1fr;
  grid-template-columns: 1fr auto;
}

body.rotated {
  transform: rotate(90deg);
  transform-origin:bottom left;

  width: 100vh;
  height: 100vw;
    
  position:absolute;
  top: -100vw;
  left: 0;
}

header {
  grid-row: 1;
  grid-column: 1 / 3;

  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
  padding-right: 8px;

  z-index: 2;
}

header div.menu {
  display: flex;
  flex-direction: column;

}

header img {
  width: 36px;
  padding-top: 6px;
  padding-bottom: 6px;
  padding-left: 6px;
  padding-right: 6px;
}

header img.settings {
  width: 32px;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 8px;
  padding-right: 8px;
}

#rotate {
  display: none;
}

#bug {
  display: none;
}

header img.bug {
  width: 32px;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 8px;
  padding-right: 8px;

  filter: invert(78%) sepia(0%) saturate(34%) hue-rotate(219deg) brightness(98%) contrast(95%);
}

header img.bug.enabled {
  filter: none;
}

main {
  grid-row: 1 / 3;
  grid-column: 1 / 3;

  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto;
  justify-items: center;
  align-items: start;

  width: 100%;
  height: 100%;
}

div.notation {
  grid-column: 1;
  grid-row: 1 / 3;

  min-width: 70%;
  height: 100%;

  overflow-x: hidden;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  touch-action: pan-y;
}

div.notation::-webkit-scrollbar {
  display: none;
}

body.rotated div.notation {
  min-width: 100%;
}

div.notation img {
  color: blue;
  width: calc(100% - 192px);
  margin-bottom: 48px;
  margin-left: 96px;
  margin-right: 96px;
  pointer-events: none;
}

div.toolbar {
  grid-column: 1;
  grid-row: 2;
  column-gap: 24px;

	display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto;
  align-items: center;
}

div.left {
  grid-column: 1;
}

div.right {
  grid-column: 3;
}

div.right img {
  width: 32px;
}

div.rightimg.disabled {
  filter: invert(83%) sepia(13%) saturate(0%) hue-rotate(51deg) brightness(93%) contrast(86%);
}

div.audio {
  grid-column: 2;
  grid-row: 1;

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

  background: #e0e0e080;
  padding-top: 16px;
  padding-bottom: 16px;
  border-radius: 8px;

  z-index: 2;
}

div.audio audio {
  margin-left: 12px;
  margin-right: 12px;
}

div.audio img.navigate {
  height: 48px;
  padding-left: 12px;
  padding-right: 12px;
  border: none;
  user-select: none;
}

div.audio img.control {
  height: 32px;
  user-select: none;
}

div.audio img.disabled {
  filter: invert(83%) sepia(13%) saturate(0%) hue-rotate(51deg) brightness(93%) contrast(86%);
}

div.audio img#loop.playing {
  filter: invert(22%) sepia(83%) saturate(4401%) hue-rotate(337deg) brightness(78%) contrast(117%);
}

div.audio img#next.autoplay {
  filter: invert(22%) sepia(83%) saturate(4401%) hue-rotate(337deg) brightness(78%) contrast(117%);
}

dialog {
  padding-left: 12px;
  padding-right: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
  outline: none;
  border: none;
  border-radius: 8px;
}

dialog div.preferences {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-column-gap: 8px; 
  grid-row-gap: 8px;
  align-items: center;
  font-size: 0.9em;
}

dialog div.loops {
  display: flex;
  align-items: center;
  column-gap: 8px;

  font-weight: bold;
  font-size: 1.1em;
}

dialog div.loops input {
  appearance: none;
  outline: none;
}

dialog div.loops input:checked {
  appearance: none;
  outline: none;
}

dialog div.loops input::before {
  display: inline-block;
  width: 32px;
  height: 32px;
  margin-right: 5px;

  visibility: visible;
}

dialog div.loops input:checked::before {
}

dialog div.loops label.loops0 input::before {
  content:url('../images/0.svg');
}

dialog div.loops label.loops0 input:checked::before {
  content:url('../images/0-checked.svg');
}

dialog div.loops label.loops5 input::before {
  content:url('../images/5.svg');
}

dialog div.loops label.loops5 input:checked::before {
  content:url('../images/5-checked.svg');
}

dialog div.loops label.loopsI input::before {
  content:url('../images/infinity.svg');
}

dialog div.loops label.loopsI input:checked::before {
  content:url('../images/infinity-checked.svg');
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

.slider.round {
  border-radius: 24px;
}

.slider.round:before {
  border-radius: 50%;
}

@media screen and (orientation:portrait) {
}

@media screen and (orientation:landscape) {
}

