body {
  font-family: "Arial", sans-serif;
  text-align: center;
  padding: 20px;
  background-color: #f4f4f4;
}

h1 {
  font-size: 6vw;
  margin-bottom: 5vw;
}

p {
  font-size: 4.5vw;
  margin-bottom: 5vw;
}

.button-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2vw;
  margin-bottom: 5vw;
}

button {
  font-size: 4.5vw;
  padding: 3vw 6vw;
  border: none;
  border-radius: 8px;
  background-color: #eee;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
}

button:hover {
  background-color: #ccc;
  color: white;
}

button:active {
  transform: scale(0.96);
}

canvas {
  transition: background-color 0.5s ease;
  border: 2px solid #ccc;
  border-radius: 10px;
  margin-top: 30px;
  width: 40vw;
  height: auto;
}

.emoji-bounce {
  animation: bounce 0.4s ease;
}

@keyframes bounce {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.2);
  }
  50% {
    transform: scale(0.95);
  }
  75% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@media (min-width: 768px) {
  h1 {
    font-size: 2.5em;
  }
  p,
  button {
    font-size: 1.2em;
  }
  button {
    padding: 10px 20px;
  }
}

/* 以下為月曆排版 */
#calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr); /*一週七欄*/
  gap: 10px; /*格子間間距*/
  max-width: 320px;
  margin: 0 auto; /*置中*/
  padding: 20px 0;
}

.day {
  width: 40px;
  height: 40px;
  background-color: #f0f0f0;
  border-radius: 50%;
  text-align: center;
  line-height: 40px; /*垂直製中*/
  font-weight: bold;
  color: #333;
}

.blank {
  width: 40px;
  height: 40px;
}

.day.active {
  background-color: #74b9ff;
  color: white;
  font-weight: bold;
  box-shadow: 0 0 5px #0984e3;
}
