html,
body {
  font-family: "Cantora One", serif;
  font-size: 16px;
}

ol,
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: ~"min(20px, 2vh)";
}

.content {
  width: 1200px;
  width: ~"min(1200px, 100% - 2rem, (100dvh - 7rem) * 958 / 674)";
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  container-type: inline-size;
}

.calendar {
  width: 100%;
  aspect-ratio: 958 / 674;
  position: relative;
  container-type: inline-size;
  background: url(../img/calendar_bg.png) no-repeat;
  background-size: 100% 100%;
  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.16),
    0 3px 6px rgba(0, 0, 0, 0.23);
}

.calendar__list {
  width: 100%;
  height: 100%;
  position: relative;
}

.calendar .message {
  font-size: 14px;
  font-size: ~"max(10px, 1.2cqi)";
  color: white;
  text-align: center;
  width: 100%;
  position: absolute;
  bottom: 2px;
}

#loading {
  background: #fff;
  position: absolute;
  z-index: 3000;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
}

#loading .spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4000;
  margin-left: -15px;
  margin-top: -15px;
}

.debug {
  display: none;
  width: 400px;
  background-color: #ffe88e;
  border: 2px solid #ffdc9d;
  padding: 20px;
  margin: 30px 10px;
}

.debug label {
  width: 100px;
  display: inline-block;
}

.debug ul li {
  margin-bottom: 10px;
}

#menu {
  width: 100%;
  display: flex;
  padding: 1% 0;
}

.menu__list {
  display: flex;
  column-gap: 1rem;
}

.button {
  border: 0;
}

.button:active {
  opacity: 0.5;
}

button:focus {
  outline: none;
}

button:focus-visible {
  outline: 3px solid red;
}

#resetButton,
#infoButton,
#muteButton {
  width: 3.125rem;
  height: 2.875rem;
  width: ~"clamp(1.5rem, 4.2cqi, 4.125rem)";
  height: ~"clamp(1.5rem, 3.85cqi, 3.875rem)";
  background-position: center center;
}

#resetButton {
  background: url(../img/icon/icon_replay.svg) no-repeat;
}

#infoButton {
  background: url(../img/icon/icon_info.svg) no-repeat;
  margin-left: -0.75rem;
}

#muteButton {
  background: url(../img/icon/icon_sound.svg) no-repeat;
}

#muteButton.is_mute {
  background-image: url(../img/icon/icon_mute.svg);
}

@media (min-width: 2048px) and (min-height: 1600px) {
  .content {
    width: ~"min(2048px, 100% - 2rem, (100dvh - 7rem) * 958 / 674)";
  }
}
