* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1600px;
  min-width: 1240px;
  margin: 20px auto;
  color: #333;
}

.container *{
  box-sizing: border-box;
}

header {
  width: 100%;
  margin-bottom: 25px;
  text-align: center;
}

header h1 {
  font-size: 28px;
  margin-bottom: 5px;
}

header p{
  font-size: 16px;
  opacity: 0.9;
}

.metronome-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.controls {
  display: flex;
  gap: 20px;
  width: 100%;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.control-group {
  flex: 1;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.control-group h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.bpm-control {
  display: flex;
  align-items: center;
  height: 42px;
}

.bpm-slider {
  flex-grow: 1;
  margin: 0 15px;
}

.time-signature select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.sound-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.sound-option {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.sound-option:hover {
  background-color: #e9f7fe;
  border-color: #3498db;
}

.sound-option.selected {
  background-color: #d4edff;
  border-color: #3498db;
  font-weight: bold;
}

.foot-control {
  display: flex;
  align-items: center;
  margin-top: 15px;
}

.foot-control input {
  width: 90px;
  padding: 8px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  margin-right: 10px;
}

.foot-control .label {
  font-size: 0.9rem;
  color: #7f8c8d;
}

.play-button {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: #3498db;
  color: white;
  font-size: 1.4rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
}

.play-button:hover {
  background-color: #2980b9;
  transform: scale(1.05);
}

.play-button:active {
  transform: scale(0.95);
}

.content-box{
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 25px;
}

.visual-indicator {
  width: 600px;
  height: 120px;
  position: relative;
  margin: 30px 0;
}

.beat-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
}

.beat {
  width: 25px;
  height: 100%;
  background-color: #e0e0e0;
  border-radius: 6px;
  transition: all 0.1s;
}

.beat.active {
  background-color: #3498db;
  transform: scaleY(1.2);
}

.beat.first {
  background-color: #e74c3c;
}

.beat.first.active {
  background-color: #c0392b;
  transform: scaleY(1.3);
}

.info-section {
  margin-bottom: 25px;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
}

.info-section h2 {
  font-size: 24px;
  color: #2c3e50;
  margin-bottom: 15px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.info-card {
  background-color: white;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #eee;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.info-card h3 {
  font-size: 18px;
  color: #3498db;
  margin-bottom: 10px;
}

.info-card p{
  font-size: 15px;
  margin-bottom: 10px;
}

.info-card p:last-child{
  margin-bottom: 0;
}

.notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 1000;
}

.notice.show {
  opacity: 1;
}

footer {
  text-align: center;
  color: #7f8c8d;
  font-size: 14px;
}
