/* ========== GLOBAL RESET / BASE ========== */
body {
  font-family: Arial, sans-serif;
  font-size: clamp(14px, 2.5vw, 18px);
  margin: 0px;
  background-color: #f9f9f9;
  color: black;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
}

/* ========== CONTENT AREA ========== */
.content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem 1.5rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.5;
}

.content h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #2c3e50;
}

.content button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background-color: #2ecc71;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.content button:hover {
  background-color: #27ae60;
}

.content img {
  margin-top: 1rem;
  max-width: 100%;
  height: auto;
}

.content pre {
  background-color: #1e2a38;
  border: 1px solid #444;
  padding: 16px;
  margin-top: 20px;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: monospace;
  font-size: 0.75em;
  color: #00ffcc;
}

/* ========== MODAL ========== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 1rem;
  border-radius: 8px;
  width: 90%;
  max-width: 700px;
  position: relative;
  font-size: 0.9rem;
}

.modal-content pre {
  background: #eee;
  padding: 1rem;
  border-radius: 5px;
  overflow-x: auto;
  font-size: 0.85rem;
}

.close {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
}

.close:hover {
  color: black;
}


/* ========== FORM CONTROLS ========== */
input[type="file"]::file-selector-button {
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.content button[type="submit"] {
  margin-top: 10px;
}

/* ========== MISC ========== */
/* Strip styles from elements outside `.content` */
main, section, article, .page, .main-content, .order-test-body {
  all: unset;
}

/* Nav */

nav {
  background-color: #2c3e50;
  color: white;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-title {
  font-size: 1.25rem;
  font-weight: bold;
}

.hamburger {
  all: unset;
  font-size: 1.5rem;
  cursor: pointer;
  user-select: none;
  color: white;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #34495e;
  min-width: 150px;
  display: none;
  flex-direction: column;
  z-index: 1000;
  border-radius: 0 0 5px 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.dropdown a {
  color: white;
  padding: 0.75rem 1rem;
  text-decoration: none;
  font-size: 1rem;
}

.dropdown a:hover {
  background-color: #3d566e;
}

.nav-button {
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 5px;
  font-size: 0.95rem;
  cursor: pointer;
  min-width: 60px;
}

.valid {
  background-color: #2ecc71;
  color: white;
}

.invalid {
  background-color: #e74c3c;
  color: white;
}