body {
  font-family: sans-serif;
  background: #f9f9f9;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.container, .message-box {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: left;
  max-width: 480px;
  width: 100%;
  position: relative;
}

h1 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  text-align: left;
}

h1.red {
  color: #ff3300;
}

p {
  margin: 1.0rem 0;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

button {
  display: inline-block;
  padding: 0.6rem 1rem;
  background: #ff3300;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

button:hover {
  background: #b32400;
}

a.button {
  display: inline-block;
  padding: 0.6rem 1rem;
  background: #ff3300;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
}

a.button:hover {
  background: #b32400;
}

.flexdiv {
  display: flex;
  flex-direction: column;
}

.upper {
  text-transform: uppercase;
}

input[type="password"],
input[type="text"],
input[type="submit"] {
  /*width: 100%;*/
  padding: 0.75rem;
  margin: 0.5rem 0;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

input[type="submit"] {
  background: #007BFF;
  color: white;
  border: none;
  cursor: pointer;
}

input[type="submit"]:hover {
  background: #0056b3;
}

input::placeholder {
  text-align: center;
}

.success h1 {
  color: #28a745;
}

.error h1 {
  color: #b00020;
  margin-bottom: 1rem;
  text-align: center;
}

.lang-switch {
  position: absolute;
  top: 0.5em;
  right: 0.5em;
}

.lang-switch summary {
  list-style: none;
  cursor: pointer;
  font-size: 1.2em;
}

.lang-switch summary::-webkit-details-marker {
  display: none;
}

.lang-switch nav {
  position: absolute;
  top: 100%;
  right: 0;
  display: flex;
  flex-direction: column;
  background: #fafafa;  /* slightly darker than white */
  border: 1px solid #ddd;
  border-radius: 8px; /* rounded edges to match container */
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  padding: 0.25em 0;
  z-index: 1000;
  min-width: 150px;
  overflow: hidden; /* ensures rounding applies cleanly */
}

.lang-switch nav a {
  padding: 0.5em 1em;
  text-decoration: none;
  color: #333;
  font-size: 0.9em;
  transition: background 0.2s, color 0.2s;
}

.lang-switch nav a:hover {
  background: #0073e6;  /* accent color on hover */
  color: white;          /* contrast text */
}

.level1 {
  list-style-type: disc;
}

.level2 {
  list-style-type: circle;
  margin-left: -1em;
}
