h1 {
  color: #90b0d1;
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
}

h2 {
  color: #555;
  text-align: center;
  font-size: 20px;
  margin-bottom: 30px;
}

canvas {
  border: 0px solid black;
  align-items: center;
  max-width: auto;
  max-height: auto;
  /* 要素の高さ 512px */
  overflow: auto;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #f8f8f8;
  color: #333;
  margin: 0;
  padding: 0;
}

label {
  font-family: sans-serif;
  font-size: 1rem;
  /* padding-right: 20px; */
}

select {
  font-size: 0.9rem;
  padding: 2px 5px;
}

#canvas-container {
  width: auto;
  /* 要素の幅 */
  height: 512px;
  /* 要素の高さ 512px */
  border: 0px solid #000;
  align-items: center;
  margin-top: 20px;

  overflow-x: scroll;
  overflow-y: scroll;
}

#drawing-mode-options {
  background: #fcfcfc;
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
}

#axis {
  width: 70px;
  /* 軸の幅を広げる */
  height: 512px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #f8f8f8;
  margin-right: 5px;
  border-right: 2px solid rgb(3, 3, 3);
  padding: 10px;
  box-sizing: border-box;
}

.frequency-label {
  position: absolute;
  text-align: center;
  font-size: 12px;
  /* 適切なサイズに調整 */
  color: #333;
  /* ラベルの色 */
  background-color: #f8f8f8;
  /* 背景色を追加して見やすくする */
  padding: 2px;
  /* パディングを追加して見やすくする */
  border: 1px solid #ddd;
  /* 境界線を追加して見やすくする */
}

#controls {
  margin-bottom: 20px;
}

#controls button,
#controls select,
#controls input[type="color"],
#controls input[type="range"] {
  margin-right: 10px;
}

.file-path-wrapper {
  width: 100%;
}

.file-path-wrapper input[type="text"] {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 10px;
  /* 必要に応じて調整 */
  border: 1px solid #ddd;
  /* 境界線の設定 */
}

.control-group {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  min-height: 52px;

  border: 2px solid #E8E8E8;
  border-radius: 4px;
}

.control-group label {
  margin-right: 10px;
  white-space: nowrap;
}

.horizontal-group {
  display: flex;
  /* gap: 10px; */
}

.control-group input[type="range"],
.control-group input[type="number"] {
  margin-right: 5px;
}

.control-time input[type="range"],
.control-time input[type="number"] {
  margin-right: 5px;
}

/*
body {
  background-color: #222;
}
*/

#loading-wrapper {
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}

#loading-text {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  color: #999;
  width: 100px;
  height: 30px;
  margin: -7px 0 0 -45px;
  text-align: center;
  font-family: 'PT Sans Narrow', sans-serif;
  font-size: 20px;
}

#loading-content {
  display: block;
  position: relative;
  left: 50%;
  top: 50%;
  width: 170px;
  height: 170px;
  margin: -85px 0 0 -85px;
  border: 3px solid #F00;
}

#loading-content:after {
  content: "";
  position: absolute;
  border: 3px solid #0F0;
  left: 15px;
  right: 15px;
  top: 15px;
  bottom: 15px;
}

#loading-content:before {
  content: "";
  position: absolute;
  border: 3px solid #00F;
  left: 5px;
  right: 5px;
  top: 5px;
  bottom: 5px;
}

#loading-content {
  border: 3px solid transparent;
  border-top-color: #ffc124;
  border-bottom-color: #ffc124;
  border-radius: 50%;
  -webkit-animation: loader 2s linear infinite;
  -moz-animation: loader 2s linear infinite;
  -o-animation: loader 2s linear infinite;
  animation: loader 2s linear infinite;
}

#loading-content:before {
  border: 3px solid transparent;
  border-top-color: #F34236;
  border-bottom-color: #F34236;
  border-radius: 50%;
  -webkit-animation: loader 3s linear infinite;
  -moz-animation: loader 2s linear infinite;
  -o-animation: loader 2s linear infinite;
  animation: loader 3s linear infinite;
}

#loading-content:after {
  border: 3px solid transparent;
  border-top-color: #4baf4f;
  border-bottom-color: #4baf4f;
  border-radius: 50%;
  -webkit-animation: loader 1.5s linear infinite;
  animation: loader 1.5s linear infinite;
  -moz-animation: loader 2s linear infinite;
  -o-animation: loader 2s linear infinite;
}

@-webkit-keyframes loaders {
  0% {
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes loader {
  0% {
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

#content-wrapper {
  color: #FFF;
  position: fixed;
  left: 0;
  top: 20px;
  width: 100%;
  height: 100%;
}

#header {
  width: 800px;
  margin: 0 auto;
  text-align: center;
  height: 100px;
  background-color: #666;
}

#content {
  width: 800px;
  height: 1000px;
  margin: 0 auto;
  text-align: center;
  background-color: #888;
}

.control-center {
  display: flex;
  align-items: center;
}

/* カーソルを重ねる要素 */
.tooltip {
  position: relative; /* ツールチップの位置の基準に */
  cursor: pointer; /* カーソルを当てたときにポインターに */

  color: #666;
  border: 2px solid #666;
  border-radius: 12px;
  font-weight: bold;
}

/* ツールチップのテキスト */
.tooltip-text {
  opacity: 0; /* はじめは隠しておく */
  visibility: hidden; /* はじめは隠しておく */
  position: absolute; /* 絶対配置 */
  left: 50%; /* 親に対して中央配置 */
  transform: translateX(-50%); /* 親に対して中央配置 */
  bottom: -30px; /* 親要素下からの位置 */
  display: inline-block;
  padding: 5px; /* 余白 */
  white-space: nowrap; /* テキストを折り返さない */
  font-size: 0.8rem; /* フォントサイズ */
  line-height: 1.3; /* 行間 */
  background: #333; /* 背景色 */
  color: #fff; /* 文字色 */
  border-radius: 3px; /* 角丸 */
  transition: 0.3s ease-in; /* アニメーション */
}

/* ホバー時にツールチップの非表示を解除 */
.tooltip:hover .tooltip-text {
  opacity: 1;
  visibility: visible;
}

.btn {
  margin-right: 8px;
}
