@charset "UTF-8";

@media screen and (max-width:480px) and (orientation: portrait){
  /* スマホの縦向き*/
  /* Pixel 6aの場合、カメラの縦幅が横幅と同じになってしまう*/
  #overlayContainer, #plotContainer, #buttonContainer{
    width: 100vmix;
  }
  #overlayContainer{
    height: 70vmax;
  }
  #plotContainer, #volumeContainer{
    height: 20vmax;
  }
}

@media screen and (min-width:481px) and (max-width:610px) and (max-height:500px){
 /* スマホの横向き - 非推奨*/
  #overlayContainer, #plotContainer, #buttonContainer{
    width: 100vmax;
  }
  #overlayContainer{
    height: 80vmin;
  }
  #plotContainer, #volumeContainer{
    display: none;
  }
}

@media screen and (min-width:601px) and (max-width:960px) and (orientation: portrait){
  /* タブレット-縦向き*/
  #overlayContainer, #plotContainer, #buttonContainer{
    width: 100vmin;
  }
  #overlayContainer{
    height: 70vmax;
  }
  #plotContainer, #volumeContainer{
    height: 20vmax;
  }
}

@media screen and (min-width:601px) and (max-width:960px) and (orientation: landscape){
  /* タブレット-横向き*/
  #overlayContainer, #plotContainer, #buttonContainer{
    width: 100vmin;
  }
  #overlayContainer{
    height: 80vmax;
  }
  #plotContainer, #volumeContainer{
    height: 20vmax;
  }
}


@media screen and (min-width:961px){
  /*ノートPCやデスクトップPC*/
  #overlayContainer, #bottom, #buttonContainer{
    width: 99vmax;
  }
  #overlayContainer{
    height: 70vmin;
  }
  #plotContainer, #volumeContainer{
    height: 20vmin;
  }
}

/*  すべての端末  */
/*赤丸点滅をcanvasに重ねる*/
.canvasWrap{
  position: relative; 
}
.canvasWrap canvas{
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}
#metronome{
  animation: blinking 0.275s step-end infinite alternate;
}
@keyframes blinking {
  0% {opacity: 1;}
  50% { opacity: 0; }
  100% {opacity: 1;}
}

#plotContainer{
  overflow: hidden;
  display: grid;
  grid-template-columns: 20px 1fr;
  position: relative; 
}
#plotYtitle{
  grid-column: 1;
  font-size: small;
  width: 20px;
  text-align: center;
}
#chartDiv{
  grid-column: 2;
}

#buttonContainer{
  display: flex;
  justify-content: space-around;
}

#span0{
  font-size: small;
}

#span1{
  color: red;
}

#wristToElbow{
  width: 4em;
  max-width: 100%;
}

#volumeSlider{
  appearance: slider-vertical;
  writing-mode: bt-lr;
  width: 30px;
  height: 70%;
}

#bottom{
  display: grid;
  grid-template-columns: 40px 1fr;
}