/* シンプルアラーム時計コンテナ */
.simple-alarm-clock-container {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f9f9f9;

  /* 固定表示の設定 */
  position: fixed;
  bottom: 20px; /* 画面の下端から 20px の位置 */
  right: 20px; /* 画面の右端から 20px の位置 */
  z-index: 1000; /* 他の要素よりも前面に表示するための z-index */

  /* 縮小表示の設定 */
  transform: scale(0.75);
  transform-origin: bottom right; /* 縮小の中心を右下に設定 */
}


/* アナログ時計 */
.analog-clock {
  width: 100px;
  height: 100px;
  border: 2px solid black;
  border-radius: 50%;
  position: relative;
}

/* 時計の文字盤 */
.clock-face {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: translateY(-50%) translateX(-50%);
  top: 50%;
  left: 50%;
}

/* 中央の点 */
.clock-face::before {
  content: '';
  position: relative;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background-color: black;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

/* 数字 */
.clock-face span {
  position: absolute;
  color: black;
  font-size: 0.8em;
}

.clock-face span.twelve {
  top: calc(10% - 9px); /* 上へ9px移動 */
  left: 50%;
  transform: translateX(-50%);
}

.clock-face span.three {
  top: 50%;
  right: calc(15% - 9px); /* 右へ9px移動 */
  transform: translateY(-50%);
}

.clock-face span.six {
  bottom: calc(10% - 9px); /* 下へ9px移動 */
  left: 50%;
  transform: translateX(-50%);
}

.clock-face span.nine {
  top: 50%;
  left: calc(15% - 9px); /* 左へ9px移動 */
  transform: translateY(-50%);
}

/* 時計の針 */
.hand {
  position: absolute;
  transform-origin: bottom center;
  border-radius: 5px;
  background-color: black;
}

.hour-hand {
  width: 6%;
  height: 30%;
  top: 20%;
  left: 47%;
}

.minute-hand {
  width: 4%;
  height: 40%;
  top: 10%;
  left: 48%;
  background-color: green;
}

.second-hand {
  width: 2%;
  height: 45%;
  top: 5%;
  left: 49%;
  background-color: red;
}

/* アラームコントロール */
.alarm-controls {
  text-align: center;
}

#simple-datetime {
  font-size: 1.2em;
  margin-bottom: 10px;
}

#set-alarm-file {
  padding: 10px 15px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 10px;
}

#set-alarm-file:hover {
  background-color: #0056b3;
}

#alarm-file-name {
  font-size: 0.9em;
  margin-bottom: 10px;
  color: #555;
}

#stop-alarm {
  padding: 10px 15px;
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: none;
}

#stop-alarm:hover {
  background-color: #c82333;
}