/* General Styles */
body {
  background-color: #f9f9f9;
  font-family: "Arial", sans-serif;
  color: #000;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

a {
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid #000;
  transition: border-color 0.3s ease;
}

a:hover {
  border-color: #555;
}

/* Container */
.container {
  margin: 80px auto;
  max-width: 600px;
  text-align: center;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
}

/* Form */
form {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.instructions,
.submit-button {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 16px;
  transition: all 0.3s ease;
}

.instructions {
  width: 70%;
  background-color: #f9f9f9;
}

.instructions:focus {
  border-color: #000;
  outline: none;
}

.submit-button {
  background-color: #000;
  color: #fff;
  cursor: pointer;
  font-weight: 500;
}

.submit-button:hover {
  background-color: #555;
}

/* Hint */
.hint {
  font-size: 14px;
  color: #888;
  margin-top: 10px;
}

/* Definition Output */
.definition {
  font-size: 16px;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 12px;
  margin-top: 20px;
  border-left: 3px solid #000;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

/* Squares */
@keyframes fade {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.square {
  width: 20px;
  height: 20px;
  position: fixed;
  border-radius: 2px;
  opacity: 0;
  animation: fade 3s infinite;
  z-index: 1;
}

.square-1 {
  background-color: #55acee;
}
.square-2 {
  background-color: #e74c3c;
}
.square-3 {
  background-color: #2ecc71;
}
.square-4 {
  background-color: #f1c40f;
}
.square-5 {
  background-color: #9b59b6;
}
.square-6 {
  background-color: #ecf0f1;
}
.square-7 {
  background-color: #34495e;
}

/* Hidden class */
.hidden {
  display: none;
}

/* Footer */
footer {
  font-size: 12px;
  color: #aaa;
  text-align: center;
  margin-top: 30px;
}
