:root {
  --main-width: 424px;
  --thumb-size: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  font-family: Pretendard, sans-serif;
  font-weight: 500;
  line-height: 1.6;
  word-break: keep-all;
  background-color: whitesmoke;
  color: deeppink;
}

/* a {
  color: deeppink;
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration: none;
  color: whitesmoke;
  background-color: deeppink;
} */

audio {
  display: none;
}

.details {
  font-size: 0.75em;
  /* opacity: 0.5; */
}

.container {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  width: 100vw;
  height: 100dvh;
  padding: 1rem;
}

.header {
  display: flex;
  justify-content: space-between;
}
.pocket {
}
/* .pocket.opened {
  color: grey;
  z-index: 99;
}
.pocket.opened:hover {
  background-color: grey;
  color: whitesmoke;
} */

.main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}
.player {
  position: relative;
  display: flex;
  width: var(--main-width);
  height: 1em;
  cursor: pointer;
}
#bgm-seekbar {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 0.12em;
  background: deeppink;
  outline: none;
  opacity: 0.7;
  -webkit-transition: 0.35s;
  transition: opacity 0.35s;
  cursor: pointer;
  transition: background 0.35s linear;
}
#bgm-seekbar.paused {
  background: grey;
}

#bgm-seekbar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 0;
  height: 0;
  background: transparent;
  pointer-events: none;
}

#bgm-seekbar::-moz-range-thumb {
  width: 0;
  height: 0;
  background: transparent;
  pointer-events: none;
}
.thumb-label {
  position: absolute;
  top: 0;
  transform: translate(-35%, -45%);
  font-size: 1.5em;
  pointer-events: none;
  user-select: none;
  transition: color 0.35s linear;
}
.thumb-label.paused {
  color: grey;
}

#portrait {
  width: var(--main-width);
}

.copyleft {
  width: 0.7em;
  height: 0.7em;
  display: inline-block;
  background: deeppink;
  -webkit-mask: url(https://upload.wikimedia.org/wikipedia/commons/8/8b/Copyleft.svg)
    no-repeat center / contain;
  mask: url(https://upload.wikimedia.org/wikipedia/commons/8/8b/Copyleft.svg)
    no-repeat center / contain;
}

.microthings-wraper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: whitesmoke;
  background: linear-gradient(
    90deg,
    rgba(245, 245, 245, 0.5) 0%,
    rgba(245, 245, 245, 1) 90%
  );
}
.microthings-wraper.closed {
  display: none;
}
.microthings-container {
  text-align: right;
  padding: 1em;
}
.microthings-list {
  margin-top: 4em;
}
.microthings-list li {
  margin-top: 0.25em;
}

@media screen and (max-width: 456px) {
  .player {
    width: 100%;
  }

  #portrait {
    width: 100%;
  }

  .footer {
    text-align: center;
  }
}

@media (hover: none) and (pointer: coarse) {
  a {
    color: deeppink;
    text-underline-offset: 0.2em;
  }
  a:active {
    text-decoration: none;
    color: whitesmoke;
    background-color: deeppink;
  }

  .pocket.opened {
    color: grey;
    z-index: 99;
  }
  .pocket.opened:active {
    background-color: grey;
    color: whitesmoke;
  }
}

@media (hover: hover) and (pointer: fine) {
  a {
    color: deeppink;
    text-underline-offset: 0.2em;
  }
  a:hover {
    text-decoration: none;
    color: whitesmoke;
    background-color: deeppink;
  }

  .pocket.opened {
    color: grey;
    z-index: 99;
  }
  .pocket.opened:hover {
    background-color: grey;
    color: whitesmoke;
  }
}
