html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background-color: #0D0C0F;
  color: #B18341;
  font-family: Arial, sans-serif;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.image-container {
  width: 100%;
  max-width: 600px;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.message-box {
  width: 60%;
  max-width: 600px;
  display: flex;
  justify-content: center;
}

#messageForm {
  width: 100%;
  display: flex;
  flex-direction: column;
}

textarea, input[type="submit"] {
  margin: 10px 0;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #B18341;
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
}

textarea {
  background-color: #FFF4D8;
  color: #0D0C0F;
  resize: none;
  height: 100px;
}

input[type="submit"] {
  background-color: black;
  color: #B18341;
  cursor: pointer;
  box-shadow: 0 4px 0 #6f542a;
  transform: translateY(0);
  transition: transform 80ms ease, box-shadow 80ms ease;
}

input[type="submit"]:hover {
  background-color: #B18341;
  color: black;
}

@media screen and (max-height: 500px) {
  .image-container {
    margin-bottom: 10px;
  }
  textarea {
    height: 60px;
  }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(13, 12, 15, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-box {
  background-color: #0D0C0F;
  color: #B18341;
  border: 1px solid #B18341;
  border-radius: 10px;
  padding: 20px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 0 10px #B18341;
  text-align: center;
  position: relative;
  font-family: Arial, sans-serif;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  color: #B18341;
  font-size: 20px;
  cursor: pointer;
}

.modal-box button {
  margin-top: 20px;
  background-color: black;
  color: #B18341;
  border: 1px solid #B18341;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 0 #6f542a;
  transform: translateY(0);
  transition: transform 80ms ease, box-shadow 80ms ease;
}

.modal-box button:hover {
  background-color: #B18341;
  color: black;
}

.modal-box button.keyboard-active,
input[type="submit"].keyboard-active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #6f542a, inset 0 2px 6px rgba(0, 0, 0, 0.5);
}

.modal-box button:active,
input[type="submit"]:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #6f542a, inset 0 2px 6px rgba(0, 0, 0, 0.5);
}

.modal-box input[type="email"],
.modal-box input[type="text"] {
  margin-top: 10px;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #B18341;
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
  background-color: #FFF4D8;
  color: #0D0C0F;
}

.verification-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.verification-actions button {
  width: 100%;
}

.verification-error {
  min-height: 1.2em;
  margin-top: 10px;
}

.footer {
  text-align: center;
  font-size: 14px;
  padding: 20px 10px;
  color: #B18341;
}

.footer a {
  color: #B18341;
  text-decoration: none;
  font-weight: bold;
}

.footer a:hover {
  text-decoration: underline;
}

.motd {
  text-align: center;
  font-size: 1.2em;
  margin-bottom: 1em;
  color: #B18341;
  font-weight: bold;
}

.keyboard-page {
  justify-content: center;
}

.keyboard-card {
  width: 100%;
  max-width: 900px;
  border: 1px solid #B18341;
  border-radius: 12px;
  padding: 24px;
  background-color: #0D0C0F;
  box-shadow: 0 0 14px rgba(177, 131, 65, 0.35);
}

.keyboard-card h1 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 28px;
}

.keyboard-card p {
  margin-top: 0;
  margin-bottom: 18px;
}

.keyboard {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kb-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.kb-key {
  min-width: 52px;
  height: 52px;
  border: 1px solid #B18341;
  border-radius: 8px;
  background-color: black;
  color: #B18341;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 5px 0 #6f542a;
  transform: translateY(0);
  transition: transform 70ms ease, box-shadow 70ms ease, background-color 70ms ease, color 70ms ease;
}

.kb-key:hover {
  background-color: #B18341;
  color: black;
}

.kb-key.is-pressed {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #6f542a, inset 0 3px 8px rgba(0, 0, 0, 0.45);
}

.kb-space {
  min-width: 420px;
}

@media (max-width: 700px) {
  .kb-space {
    min-width: 280px;
  }
}
