body {
  background-color: #4B0082;
  background-image: url('redoimages/ocean.jpg');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center center;
  background-size: cover;
  color: gold;
  font-family: Verdana, Arial, sans-serif;
}

#container {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 2em;
}

#headerimage img {
  border-radius: 50%;
  animation: blink 12s infinite;
}

@keyframes blink {
  0%, 20%, 60%, 100% {
    transform: translateY(0);
  }
  20% {
    transform: translateY(30px);
  }
  40% {
    transform: translateY(-30px);
  }
  60% {
    transform: translateY(30px);
  }
  80% {
    transform: translateY(-30px);
  }
}

.active {
  background-image: linear-gradient(to right, rgba(255,0,0,0), rgba(0,225,225,1));
  border-radius: 40px;
}

#logo {
  text-align: center;
  margin: 0;
  font-family: Geneva, Arial, Helvetica, sans-serif;
  padding-top: 30px;
  padding-bottom: 20px;
  color: #ff00ff;
}

#nav,
#curse {
  margin-top: 1.5em;
  text-align: center;
}

#nav a,
#curse a {
  margin: 0 10px;
  color: #00ffff;
  text-decoration: none;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 8px;
  transition: all 0.2s ease-in-out;
}

#nav a:hover,
#curse a:hover,
#curse a.active:hover {
  color: #4B0082;
  border: 3px dotted #4B0082;
  background: green;
  animation: cursed-jitter-fast 0.1s infinite linear;
  position: relative;
}

@keyframes cursed-jitter-fast {
  0%   { top: 0px; left: 0px; transform: rotate(0deg); }
  10%  { top: -2px; left: 1px; transform: rotate(1deg); }
  20%  { top: 2px; left: -1px; transform: rotate(-2deg); }
  30%  { top: -1px; left: 2px; transform: rotate(2deg); }
  40%  { top: 1px; left: -2px; transform: rotate(-1deg); }
  50%  { top: 2px; left: 1px; transform: rotate(2deg); }
  60%  { top: -2px; left: -1px; transform: rotate(-2deg); }
  70%  { top: 1px; left: 2px; transform: rotate(1deg); }
  80%  { top: -1px; left: -2px; transform: rotate(-1deg); }
  90%  { top: 2px; left: 1px; transform: rotate(1deg); }
  100% { top: 0px; left: 0px; transform: rotate(0deg); }
}

#content {
  margin-top: 2em;
  padding: 30px;
  overflow: auto;
  border: 5px groove #2E8B57;
  line-height: 135%;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 12px;
}

#footer {
  margin-top: 3em;
  font-size: 0.9em;
  text-align: center;
  color: #aaaaaa;
}

#footer a {
  color: #00ffff;
  text-decoration: none;
}

#footer a:hover {
  color: #ff00ff;
}

h2 {
  text-transform: uppercase;
  color: gold;
  font-size: 1.4em;
  text-align: center;
}

h3 {
  color: #00ffff;
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 0.5em;
}

textarea, input, select {
  background-color: black;
  color: gold;
  border: 2px solid #4B0082;
  border-radius: 6px;
  padding: 6px;
  font-family: "Courier New", Courier, monospace;
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
}

#home-options img,
#avatar-options img {
  cursor: pointer;
  border: 3px solid transparent;
  border-radius: 12px;
  transition: transform 0.2s, border-color 0.3s;
}

#home-options img:hover,
#avatar-options img:hover {
  transform: scale(1.05);
  border-color: #00ffff;
}

#contact-box {
  background: rgba(0, 0, 0, 0.6);
  border: 2px dashed #ff00ff;
  padding: 25px;
  color: #f0f0f0;
  border-radius: 15px;
  box-shadow: 0 0 20px #00ffff;
  margin: 2em auto;
  width: 90%;
  max-width: 550px;
  text-align: center;
}

#contact-box a {
  color: #00ffff;
  text-decoration: none;
  font-weight: bold;
}

#contact-box a:hover {
  color: #ff00ff;
  text-decoration: underline;
}

#contact-box select {
  margin-top: 1em;
  padding: 7px;
  font-size: 1em;
  border-radius: 5px;
  border: none;
}

img { border: 0; }
a { text-decoration: none; color: gold; }
a:hover { color: white; }

span {
  font-size: 36px;
  font-weight: bold;
  font-family: "Courier New", Courier, mono;
  color: gold;
  text-align: center;
  vertical-align: middle;
}

td {
  border: 5px groove #73a9c2;
  width: 5em;
  font-family: "Courier New", Courier, mono;
  font-size: 14px;
  color: #88ffff;
}

#fortune-box {
  margin-top: 20px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.7); /* dark transparent background */
  border: 2px dashed #ff7bff;
  border-radius: 10px;
  width: 80%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-family: 'Courier New', monospace;
  color: #fdfdff; /* brighter for readability */
  text-align: center;
  box-shadow: 0 0 20px #ff7bff66;
  font-size: 1.1rem;
  letter-spacing: 1px;
  line-height: 1.6;
}

.input-row {
  margin: 10px auto;
  text-align: center;
}

input[type="number"], input[type="button"], input[type="text"] {
  background-color: black;
  color: lime;
  padding: 10px;
  border: none;
  border-radius: 5px;
  font-family: monospace;
  width: 300px;
  margin: 5px auto;
  display: block;
}

input[type="checkbox"] {
  transform: scale(1.2);
  margin-right: 8px;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #00ffff;
}

.checkbox-wrapper label {
  color: gold;
  font-family: monospace;
  font-size: 14px;
  cursor: pointer;
}

/* Game Container (Boggle, Encoder, etc) */
#gameContainer {
  background-color: rgba(0, 0, 0, 0.8);
  color: gold;
  padding: 30px 20px;
  border: 2px solid cyan;
  border-radius: 10px;
  width: 85%;
  margin: 30px auto;
  text-align: center;
  line-height: 1.6;
}

#gameContainer h2 {
  color: cyan;
  margin-top: 30px;
}

#gameContainer p {
  margin: 20px auto;
  font-size: 1rem;
  max-width: 700px;
}

#letters,
#entries,
#result {
  font-family: monospace;
  color: magenta;
  margin: 10px auto;
  padding: 8px;
  width: 70%;
  border: 1px dashed magenta;
  background-color: rgba(255, 255, 255, 0.05);
}

/* Fix button size & center */
input[type="button"] {
  display: block;
  margin: 20px auto;
  padding: 10px 30px;
  width: auto;
  min-width: 200px;
  text-align: center;
  font-family: "Courier New", Courier, monospace;
  background: black;
  color: lime;
  border-radius: 8px;
  font-weight: bold;
}

/* Add spacing between sections inside the game */
#letters, #entries, #result {
  margin: 30px auto;
  padding: 20px;
  width: 70%;
  border: 2px dashed magenta;
  background-color: rgba(255, 255, 255, 0.05);
  font-family: monospace;
  font-size: 1rem;
  color: magenta;
}

/* Add spacing under the intro text */
#content p:first-of-type {
  margin-bottom: 30px;
  line-height: 1.6;
  font-size: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

#content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

#content input[type="text"] {
  width: 80%;
  max-width: 600px;
  font-size: 1.1rem;
  margin: 10px auto;
  display: block;
  background-color: black;
  color: lime;
  border: 2px solid lime;
  border-radius: 6px;
  padding: 10px;
  font-family: monospace;
  box-sizing: border-box;
}

#content > p:first-of-type {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
}

#boggle-button {
  display: block;
  margin: 0 auto;
  padding: 10px 20px;
  font-family: monospace;
  background: black;
  color: lime;
  border: 2px solid lime;
  border-radius: 6px;
  cursor: pointer;
}

#boggle-button:hover {
  background: lime;
  color: black;
}

.input-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px auto;
}

#wordInput {
  padding: 10px;
  font-size: 14px;
  width: 250px;
  background: black;
  color: lime;
  border: 1px solid lime;
  border-radius: 6px;
  font-family: monospace;
}