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

html,
body {
  width: 100%;
  height: 100%;
}

html {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
}

header {
  width: 100%;
  /* height: 100px; */
  padding: 20px 0;
  background-color: #1e1e1e;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  /* justify-content: space-between; */
}

.title {
  /* font-size: 2rem; */
  color: #fff;
  text-align: center;
  font-weight: 600;
  width: 50%;
}

.head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 0 20px;
}

.timer,
.target,
.score {
  font-size: 1.5rem;
  font-weight: 600;
  background-color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  text-align: center;
}

.container {
  /* max-width: 60rem; */
  margin: 0 auto;
  width: 100%;
  height: calc(100% - 100px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
  align-items: center;
  /* align-content: flex-start; */
  gap: 10px;
}

.box {
  width: 100px;
  height: 100px;
  background-color: #1e1e1e;
  display: flex;
  justify-content: center;
  align-items: center;
  /* display: grid;
  place-items: center; */
  font-size: 2rem;
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
}

.game-over {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  color: #fff;
}

.game-over h1 {
  font-size: 2rem;
  text-align: center;
}

.game-over p {
  font-size: 1.5rem;
  text-align: center;
}

.play-again {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 1.2rem;
  border-radius: 5px;
  cursor: pointer;
}

.animation {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  header {
    flex-wrap: wrap;
  }
  header .title {
    width: 100%;
  }
  .timer,
  .target,
  .score {
    font-size: 1.2rem;
    padding: 5px 10px;
  }
  .box {
    width: 80px;
    height: 80px;
    font-size: 1.5rem;
  }
}
