body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f7f9fc;
  color: #222;
  text-align: center;
  margin: 40px auto;
  max-width: 700px;
  padding: 0 20px;
}

h1 {
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 20px;
}


#snippet {
  font-family: 'Courier New', Courier, monospace;
  font-size: 36px;
  background: #e3f2fd;
  padding: 15px 30px;
  border-radius: 12px;
  border: 2px solid #90caf9;
  display: inline-block;
  margin: 20px 0;
  letter-spacing: 10px;
  user-select: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#timer {
  font-size: 24px;
  font-weight: 600;
  color: #1976d2;
  margin: 10px 0 30px;
  user-select: none;
}

button {
  background-color: #1976d2;
  border: none;
  color: white;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.25s ease;
  margin: 10px 5px;
  box-shadow: 0 3px 6px rgba(25, 118, 210, 0.4);
}

button:hover:not(:disabled) {
  background-color: #1565c0;
}

button:disabled {
  background-color: #90a4ae;
  cursor: default;
  box-shadow: none;
}

input[type="text"] {
  font-size: 18px;
  padding: 8px 12px;
  border: 2px solid #90caf9;
  border-radius: 8px;
  width: 250px;
  margin-top: 10px;
  transition: border-color 0.25s ease;
}

input[type="text"]:focus {
  border-color: #1976d2;
  outline: none;
  box-shadow: 0 0 8px #90caf9;
}

#scoreboard {
  margin-top: 30px;
}

#scoreTable {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#scoreTable th,
#scoreTable td {
  padding: 12px 15px;
  border-bottom: 1px solid #ddd;
  text-align: center;
  font-weight: 500;
  font-size: 16px;
}

#scoreTable th {
  background-color: #1976d2;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#scoreTable tbody tr:hover {
  background-color: #e3f2fd;
}

#backButton {
  background-color: #f44336;
  box-shadow: 0 3px 6px rgba(244, 67, 54, 0.4);
}

#backButton:hover:not(:disabled) {
  background-color: #d32f2f;
}

#startScreen,
#testScreen,
#testPhaseEndScreen,

.infoBox {
  background-color: #f0f4ff;
  border: 1px solid #cdd8f0;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.infoBox_red {
  background-color: #f8d7da;
  border: 1px solid #cdd8f0;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 0.95rem;
  line-height: 1.4;
}

#resultText {
  background-color: #d4edda; 
  color: #155724;            
  padding: 15px;
  border: 1px solid #c3e6cb;
  border-radius: 10px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.1em;
  width: fit-content;
  margin: 20px auto;
  white-space: pre-line; 
}
