:root {
  --bg: #0b0c10;
  --primary: #1f2833;
  --highlight: #45a29e;
  --accent: #66fcf1;
  --active: #59d6ce;
  --text: #c5c6c7;
  --danger: #ff4757;
  --radius: 12px;
  --modal-bg: rgba(0, 0, 0, 0.75);
  --modal-content-bg: #1f2833;
  --modal-text: #ffffff;
  --modal-accent: #66fcf1;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  text-align: center;
  background: var(--primary);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 0 20px #000;
  width: 90%;
  max-width: 500px;
}

h1 {
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.file-label {
  display: inline-block;
  padding: 0.75rem 1.2rem;
  background: var(--highlight);
  color: #000;
  border-radius: var(--radius);
  cursor: pointer;
  margin-bottom: 1rem;
  transition: background 0.2s ease;
  user-select: none;
}

.file-label:not(.disabled):hover {
  background: var(--accent);
}

.file-label:not(.disabled):active {
  background-color: var(--active)
}

.file-label.disabled {
  cursor: not-allowed;
}

input[type="file"] {
  display: none;
}

button {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  margin: 1rem 0;
  border: none;
  border-radius: var(--radius);
  background-color: var(--highlight);
  color: #000;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

button:hover {
  background-color: var(--accent)
}

button:active {
  background-color: var(--active)
}

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

.progress {
  width: 100%;
  height: 1rem;
  margin-top: 1rem;
  border-radius: 12px;
  overflow: hidden;
  appearance: none;
}

/* WebKit (Chrome, Safari) styling */
progress::-webkit-progress-bar {
  background-color: #333;
  border-radius: 12px;
}
progress::-webkit-progress-value {
  background-color: var(--accent);
  border-radius: 12px;
}

/* Firefox */
progress::-moz-progress-bar {
  background-color: var(--accent);
  border-radius: 12px;
}

.hidden {
  display: none;
}

.footer {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #888;
}

button:disabled, .disabled {
  background-color: #444
}

.modal {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--modal-bg);
}

.modal.hidden {
  display: none;
}

.modal-content {
  background-color: var(--modal-content-bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 10px #000;
  max-width: 400px;
  width: 90%;
  text-align: center;
  color: var(--modal-text);
  position: relative;
}

.modal-content h2 {
  color: var(--modal-accent);
  margin-top: 0;
}

.modal-content p {
  margin: 1rem 0 0 0;
}

.close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 1.5rem;
  color: var(--modal-accent);
  cursor: pointer;
}

.close:hover {
  color: var(--modal-text);
}

#canvas {
  position:absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
}

.game {
  width: 100vw;
  height: 100vh;
  margin: 0px;
}