/* Ensure body takes full viewport */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden; /* Prevents unwanted horizontal scrolling */
  background-color: #121212; /* Ensures dark background */
  position: relative;
  color: #fff;
  font-size: 14pt;
}

p {
  text-align: left;
}

/* Keep Headings Readable */
h3 {
  color: #fff;
  font-size: 16pt;
}

h1,
h2 {
  color: #fff;
  font-family: "Norican", cursive;
  font-weight: 500;
  font-style: normal;
}

/* Ensure images are properly sized */
.result-table img {
  max-width: 150px;
  max-height: 150px;
  width: auto;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
  object-fit: cover;
}

.result-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 15px; /* Adds space between cells */
}

.result-table td {
  text-align: center;
  vertical-align: top;
  padding: 15px; /* Adds padding inside each cell */
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1); /* Subtle background */
}

/* Main Content Box */
#content {
  width: 90%;
  max-width: 800px;
  padding: 20px;
  background: rgba(20, 20, 20, 0.9);
  border-radius: 10px;
  box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.2);
  text-align: center;
  position: relative;
  z-index: 10; /* Keeps it above background effects */
  color: #fff;
  overflow: hidden;
}

/* Keep Background Effects Behind Content */
canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  color: #fff;
}

/* Logo */
.logo {
  width: 200px;
  height: auto;
  display: block;
  margin: 0 auto 15px auto;
}

/* Input Fields & Button Styling */
input,
button {
  display: block;
  width: 99%;
  margin: 10px auto;
  padding: 10px;
  font-size: 16px;
  border-radius: 5px;
  border: none;
  text-align: center;
}

input {
  background-color: #2c2c2c;
  color: #ffffff;
  border: 1px solid #444;
}

/* Button Styling */
button {
  background: #004080; /* Deep blue for dark mode */
  color: white;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #0066cc; /* Brighter blue for better visibility */
}

/* Results Container */
#result {
  display: none;
  margin-top: 20px;
  text-align: center;
  padding: 15px;
  background: rgba(30, 30, 30, 0.8);
  border-radius: 8px;
  box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.2);
  max-height: 400px; /* Allows scrolling if content exceeds limit */
  overflow-y: auto;
  color: #fff;
}

/* Footer Adjustments */
footer {
  position: fixed;
  bottom: 10px;
  width: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  padding-bottom: 10px;
}
