/* General Body Styling */
body {
  background-color: black;
  color: #00ff00; /* Bright green text */
  font-family: 'Courier New', Courier, monospace; /* Hacker-style font */
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
}

/* File Upload Button */
#upload {
  background-color: #003300; /* Dark green */
  border: 1px solid #00ff00;
  color: #00ff00;
  font-size: 16px;
  padding: 10px 20px;
  cursor: pointer;
  text-transform: uppercase;
  margin-bottom: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#upload:hover {
  background-color: #00ff00; /* Bright green */
  color: black; /* Contrast text */
}

/* Canvas Styling */
canvas {
  display: block;
  border: 2px solid #00ff00;
  box-shadow: 0 0 10px #00ff00;
}

/* Scrollbar (Optional, for desktop users) */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: #00ff00; /* Bright green scrollbar */
}

::-webkit-scrollbar-thumb:hover {
  background: #005500; /* Slightly darker green */
}

/* Optional Text Glow Effect */
body, #upload {
  text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00;
}

/* Responsive Styling */
@media (max-width: 600px) {
  #upload {
    font-size: 14px;
    padding: 8px 16px;
  }
  canvas {
    max-width: 90vw;
    height: auto;
  }
}

/* Hide the original file input */
#upload {
    display: none;
}

.form-container {
    display: flex;
    align-items: center;
    gap: 20px; /* Adjust space between elements */
    margin: 20px 10px;
}

.custom-file-label {
    display: inline-block;
    background-color: #003300; /* Dark green background */
    color: #0f0; /* Bright green text */
    border: 1px solid #00ff00; /* Bright green border */
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    margin: 0; /* Remove default margin */
    transition: all 0.3s ease;
}

.custom-file-label:hover {
    background-color: #00ff00; /* Bright lime green hover */
    color: #000; /* Black text on hover */
}

.radio-container {
    display: flex;
    align-items: center;
    gap: 15px; /* Adjust space between radio buttons */
    margin: 0; /* Remove default margin */
    font-size: 16px;
    color: #0f0; /* Bright green text */
}

.radio-container label {
    display: inline-flex;
    align-items: center;
    margin: 0; /* Remove extra vertical spacing */
}

.radio-container input {
    appearance: none;
    -webkit-appearance: none; /* Remove default styles in Safari */
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 2px solid #00ff00; /* Green border */
    border-radius: 50%;
    cursor: pointer;
    position: relative;
}

.radio-container input:checked::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    background-color: #00ff00; /* Green dot */
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.links {
    text-align: center;
}

.links a {
    margin: 0 15px;
    text-decoration: none;
    font-size: 0.8rem;
    /* background-color: #003300; */
    color: #00ff00;
    transition: color 0.3s;
}

.links a:hover {
    background-color: #00ff00; /* Bright green */
    color: black; /* Contrast text */
}