body,html {
  margin: 0;
  padding: 0;
}
* {
  box-sizing: border-box;
}

body {
  font-family: 'Almendra SC', serif;
  color: #E0D8C0; /* Parchment-like text color */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  display: flex;
  justify-content: center;
}

#app-container {
  margin: auto;
}

.overlay-container {
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  transition: background-color 0.5s;
  width: 75vw;
  height: 70vh;
  border-radius: 2em;
  display: flex;
}

#vol-container {
  width: 30%;
  position: relative;
}

#vol-meter{
  margin: 10%;
  border-radius: 2em;
  position: absolute;
  bottom: 0;
  width: 90%;
  /* transition: height .1s ease-in-out; */
}

#stat-container {
  width: 60%;
  display: flex;
  flex-flow: column;
  margin: auto;
}

#life-display {
  height: 40%;
  font-size: clamp(1rem, 5vw, 6rem);
  margin: auto;
}

#timer-display {
  font-size: clamp(3rem, 15vw, 10rem);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(245, 222, 179, 0.4);
  letter-spacing: 0.05em;
  transition: color 1s ease-in-out, text-shadow 1s ease-in-out;
  height: 80%;
  margin: auto;
}

.timer-red {
  color: #b91c1c;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.8), 0 0 20px rgba(255, 0, 0, 0.6);
}

/* A subtle animation for the timer when it's running */
.timer-pulsing {
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}


.header {
  width: 100%;
  height: 50px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}

.header__nav {
  font-family: sans-serif;
  color: #eee;
  position: absolute;
  right: 0;
  top: 0;
  width: 20vw;
  height: 100vh;
  transform: translateX(100%);
  background-color: #222;
  padding: 1em;
  overflow: auto;
}

.header__hamburger {
  width: 48px;
  height: 100%;
}

.hamburger {
  background-color: transparent;
  border-color: transparent;
  z-index: 999;
}

.hamburger span {
  width: 100%;
  height: 1px;
  background-color: #111;
  position: relative;
  display: block;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  margin: 8px 0;
}

.hamburger span:nth-child(3) {
  top: 0;
}

/* ハンバーガーメニュークリック後のスタイル */
.header__nav.active {
  transform: translateX(0);
}

.hamburger.active span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  top: -13px;
  transform: rotate(-45deg);
} 

textarea, input, button {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px;
    font-size: 1rem;
}

textarea, #messages {
    width: 100%;
    font-size: .8rem;
}

#messages {
  height: 20vh;
  overflow: auto;
  flex-direction: column-reverse;
}
