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

body {
  font-family: "Arial", sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

#app {
  width: 100%;
  max-width: 50%;
  height: 100vh;
  position: relative;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.screen {
  width: 100%;
  height: 50%;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.screen.active {
  display: flex;
}

h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #ffd700;
}

p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.btn {
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn:active {
  transform: translateY(0);
}

.test-options {
  margin: 20px 0;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 1.1rem;
  color: white;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  margin-right: 10px;
  position: relative;
  transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: #4caf50;
  border-color: #4caf50;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.test-info {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  padding: 15px;
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

.timer {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffd700;
}

.target-info {
  font-size: 1rem;
  color: #e0e0e0;
}

.focus-point {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: yellow;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.moving-number {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  transition:
    left 0.5s ease,
    top 0.5s ease;
  user-select: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.fixed-number {
  position: absolute;
  z-index: 1000;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  user-select: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.moving-red-square {
  position: absolute;
  z-index: 100;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: red;
  /* transition: left 1s linear, top 1s linear; */
  user-select: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.countdown {
  font-size: 2rem;
  color: #ffd700;
  font-weight: bold;
}

.results {
  width: 100%;
  max-width: 600px;
}

.result-item {
  background: rgba(255, 255, 255, 0.1);
  margin: 20px 0;
  padding: 20px;
  border-radius: 15px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.result-item p {
  margin: 10px 0;
  font-size: 1.1rem;
}

.result-item span {
  color: #ffd700;
  font-weight: bold;
  font-size: 1.3rem;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .moving-number,
  .fixed-number {
    font-size: 3rem;
  }

  .test-info {
    flex-direction: column;
    gap: 10px;
  }
}
