html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: url("../static/BG1.png") no-repeat center center fixed;
  background-size: cover;
  font-family: "Courier New", Courier, monospace;
  color: #fff;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  padding-top: 0.5rem;
  padding-bottom: 0rem;
}

pre.info {
  white-space: pre-wrap;
  word-wrap: break-word;
  background: rgba(50, 50, 50, 0.9);
  padding: 10px;
  border-radius: 5px;
  overflow: auto;
  max-height: 250px;
}

/* ASCII */
pre.ascii-art {
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.15;
  text-align: center;
  white-space: pre;
  overflow: hidden;
  display: block;
  max-width: 90vw;
  color: #0f0;
  padding: 0rem;
  margin: 0;
}

/* Container */
main {
  background: rgba(34, 34, 34, 0.95);
  padding: 0.5rem;
  border-radius: 0.5rem;
  max-width: 800px;
  width: 90%;
  box-shadow: 0 0 0.75rem rgba(255, 255, 255, 0.2);
  margin: 1rem auto;
  margin-top: 0.25rem;
  text-align: center;
}

.head {
  background: rgba(34, 34, 34, 0.95);
  padding: 0.5rem;
  border-radius: 0.5rem;
  max-width: 800px;
  width: 90%;
  box-shadow: 0 0 0.75rem rgba(255, 255, 255, 0.2);
  margin: 1rem auto;
  margin-top: 0.25rem;
  text-align: center;
}

main #results {
  text-align: left;
}

form {
  text-align: center;
  width: 100%;
}

/* File input */
input[type="file"] {
  font-family: "Courier New", Courier, monospace;
  color: #fff;
  background-color: #333;
  border: 1px solid #555;
  padding: 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

/* Submit */
button {
  padding: 0.5rem 1rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 1rem;
  background-color: #444;
  border: none;
  border-radius: 0.25rem;
  color: #fff;
  cursor: pointer;
  width: 100%;
  margin-top: 0.75rem;
  transition: background 0.3s;
}

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

/* Instructions */
#instructions {
  background: rgba(40, 40, 40, 0.9);
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 1rem;
  box-shadow: 0 0 0.75rem rgba(0, 255, 0, 0.3);
}

/* Main list */
#instructions ul {
  list-style-type: none;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

/* Sub-list */
#instructions .sub-list {
  list-style-type: none;
  padding-left: 2rem;
  margin-top: 0.25rem;
}

/* Warning */
.warning-text {
  color: #ff5555;
  font-weight: bold;
  margin-top: 1rem;
}

/* Loading */
.spinner-container {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh; /* Full screen */
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.85);
  text-align: center;
}

/* Spinner */
.spinner {
  width: 3rem;
  height: 3rem;
  border: 0.4rem solid rgba(255, 255, 255, 0.2);
  border-top: 0.4rem solid #0f0;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: rgba(50, 50, 50, 0.9);
}

table,
th,
td {
  border: 1px solid #aaa;
  padding: 0.75rem;
  text-align: left;
}

th {
  background: #333;
}

table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.1);
}

/* Security Checks */
.pass {
  color: #0f0;
  font-weight: bold;
}

.fail {
  color: #ff5555;
  font-weight: bold;
}

.warning {
  color: #ffcc00;
  font-weight: bold;
}

/* Extracted Data */
ul {
  list-style-type: none;
  padding: 0;
}

/* ul li {
  padding: 0.25rem;
} */

/* Links */
a {
  color: #0f0;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Verdict  */
.safe {
  color: #0f0;
  font-weight: bold;
  font-size: 1.25rem;
}

.warning {
  color: #ffcc00;
  font-weight: bold;
  font-size: 1.25rem;
}

/* ----------MEDIA---------- */

/* Very Small (300px to 400px) */
@media (max-width: 400px) {
  body {
    font-size: 1.5rem;
    padding: 0.5rem;
  }

  main {
    width: 95%;
    padding: 0.75rem;
  }

  header pre {
    font-size: 2rem;
  }

  button {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  input[type="file"] {
    padding: 0.4rem;
  }
}

/* Mobile (up to 600px) */
@media (max-width: 600px) {
  body {
    font-size: 1.5rem;
  }

  main {
    width: 90%;
    padding: 1rem;
  }

  header pre {
    font-size: 1.25rem;
  }

  button {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
}

/* Tablet (600px to 1024px) */
@media (min-width: 601px) and (max-width: 1024px) {
  body {
    font-size: 1.5rem;
  }

  main {
    width: 80%;
    padding: 1.25rem;
  }

  header pre {
    font-size: 1.35rem;
  }

  button {
    padding: 0.8rem 1.2rem;
  }
}

/* Desktop (1024px) */
@media (min-width: 1025px) {
  body {
    font-size: 1.2rem;
  }

  main {
    width: 60%;
    padding: 1rem;
  }

  header pre {
    font-size: 1.25rem;
  }

  button {
    padding: 1rem 1rem;
    font-size: 1rem;
  }
}
