* {
  box-sizing: border-box;
}

body {
  font-family: "Courier New", monospace;
  background-color: #000;
  color: #ff6600;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  line-height: 1.4;
}

a {
  color: #ff6600;
}

.container {
  background-color: #111;
  padding: 30px;
  border: 2px solid #ff6600;
  border-radius: 8px;
}

@media (max-width: 480px) {
  body {
    padding: 12px;
  }
  .container {
    padding: 18px;
  }
}

h1 {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 30px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #fff;
}

.hint {
  font-weight: normal;
  color: #999;
  font-size: 12px;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="file"],
textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  background-color: #222;
  border: 1px solid #ff6600;
  color: #fff;
  font-family: "Courier New", monospace;
  font-size: 16px;
  border-radius: 4px;
}

input[type="file"] {
  padding: 8px;
}

textarea {
  height: 120px;
  resize: vertical;
}

.file-info {
  font-size: 12px;
  color: #999;
  margin-top: -15px;
  margin-bottom: 20px;
}

.certificate {
  border: 1px dashed #ff6600;
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 20px;
  color: #ddd;
  font-size: 14px;
}

.certificate h2 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ff6600;
  margin: 0 0 10px;
}

.certificate ol {
  padding-left: 1.5em;
}

.certificate li + li {
  margin-top: 8px;
}

.signoff {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0 0;
  overflow-wrap: anywhere;
}

.signoff input {
  margin-top: 3px;
  accent-color: #ff6600;
}

button {
  background-color: #ff6600;
  color: #000;
  padding: 15px 30px;
  border: none;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
}

button:hover {
  background-color: #cc5200;
}

button:disabled {
  background-color: #555;
  cursor: not-allowed;
}

.error,
.success {
  margin-bottom: 20px;
  padding: 10px;
  border-radius: 4px;
}

.error {
  color: #ff4444;
  background-color: #331111;
  border: 1px solid #ff0000;
}

.success {
  color: #00ff00;
  background-color: #113311;
  border: 1px solid #00ff00;
}

.loading {
  text-align: center;
  margin-top: 20px;
}

.version {
  text-align: center;
  color: #555;
  font-size: 12px;
  margin-top: 16px;
}

/* Fireworks on a successful submission */

.fireworks {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
}

.firework,
.spark {
  position: absolute;
  border-radius: 50%;
}

.firework {
  width: 4px;
  height: 4px;
  animation: firework 1.5s ease-out forwards;
}

.spark {
  width: 2px;
  height: 2px;
  animation: spark 1s ease-out 0.3s forwards;
}

@keyframes firework {
  0% { transform: scale(0) rotate(0deg); opacity: 1; }
  50% { transform: scale(1) rotate(180deg); opacity: 1; }
  100% { transform: scale(0) rotate(360deg); opacity: 0; }
}

@keyframes spark {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0); opacity: 0; }
}
