/* style.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  touch-action: none;
  user-select: none;
}
html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#start-screen,
#game-over-screen {
  width: 100vw;
  height: 100vh;
  background: #f0f0f0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#start-button,
#restart-button {
  padding: 10px 20px;
  font-size: 20px;
  margin-top: 20px;
}

#game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100vw;
  height: 100vh;
  background: #f0f0f0;
  font-family: sans-serif;
}

#header {
  display: flex;
  justify-content: space-around;
  width: 90%;
  padding: 10px 0;
}

#play-area {
  position: relative;
  width: 400px;
  height: 500px;
  background: #fff;
  border: 2px solid #333;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
}

#block-wrapper {
  position: relative;
  width: 250px;
  height: 300px;
  display: grid;
  grid-template-rows: repeat(10, 1fr);
  grid-template-columns: repeat(15, 1fr);
}

#center-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #333;
}

#judge-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% / 10);
  height: 2px;
  background: red;
  z-index: 5;
}

#label-left,
#label-right {
  position: absolute;
  bottom: 5px;
  font-size: 16px;
  font-weight: bold;
  z-index: 10;
}

#label-left {
  left: 10%;
}
#label-right {
  right: 10%;
}

.block {
  position: absolute;
  width: calc(250px / 15 * 2);
  height: calc(300px / 10);
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #aaf;
  border: 1px solid #48f;
  border-radius: 4px;
  touch-action: none;
  user-select: none;
  transition: background 0.3s;
}

.block.wrong {
  background: #faa;
  border-color: #f44;
}
