body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    margin: 0;
    padding: 50px;
    padding-bottom: 2rem;
    display: center;
    justify-content: center;
}

.container {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    max-width: 600px;
    width: 100%;
    text-align: center;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
}

.factsheet-container {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    max-width: 1000px;
    width: 100%;
    text-align: center;
    margin: auto;
    position: relative;
}

.upflash-container {
     background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.95);
    max-width: 800px;
    width: 100%;
    text-align: center;
    margin: auto;
    position: relative;
}
h1 {
    margin-bottom: 30px;
}

label {
    display: block;
    margin: 15px 0 5px;
    font-weight: bold;
}

select, input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

button {
    padding: 10px 20px;
    margin: 10px 5px;
    border: none;
    border-radius: 4px;
    background-color: #007BFF;
    color: white;
    font-size: 1rem;
    cursor: pointer;
}

#flashcard button {
    margin: 4px 8px;
}

button:hover {
    background-color: #0056b3;
}

.card-text {
    font-size: 1.2rem;
    margin-bottom: 15px;
}
#answer {
    font-weight: bold;
    margin-top: 20px;
}

ul {
    list-style-position: inside;
    padding-left: 0;
    margin-left: 0;
    text-align: left;
}

.us-restricted {
    color: #3f318f;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.us-password {
    color: rgb(62, 62, 62);
    font-family: Arial, Helvetica, sans-serif;
    font-style: italic;
    font-weight: bold;
    text-align: left;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.reference {
  font-style: italic;
  color: grey;
  font-size: 0.9rem;
}
#spinner {
  font-style: italic;
  color: #555;
  margin-top: 10px;
}
.user-icon {
  top: 20px;
  right: 20px;
  font-size: 0.9rem;
  color: #333;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 8px 10px;
  border-radius: 6px;
}

.user-icon button {
  margin-left: 10px;
  background-color: #eee;
  border: 1px solid #ccc;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
}

.user-icon button:hover {
  background-color: #ccc;
}
.strength-meter {
  width: 100%;
  background-color: #ddd;
  border-radius: 4px;
  height: 8px;
  margin-top: 5px;
}
.strength-bar {
  height: 100%;
  width: 0%;
  background-color: red;
  transition: width 0.2s ease-in-out;
  border-radius: 4px;
}

    /* Simple styling for CUI banner */
    .cui-banner {
      background-color: #3f318f;      /* Purple  bar */
      color: #ffffff;                 /* white text */
      text-align: center;
      font-weight: bold;
      padding: 0.25rem 0;
      font-size: 0.9rem;
      letter-spacing: 0.05em;
    }
    .cui-footer {
      background-color: #3f318f;      /* Purple bar */
      color: #ffffff;
      text-align: center;
      font-weight: bold;
      padding: 0.25rem 0;
      font-size: 0.9rem;
      bottom: 0;
      width: 100%;
      letter-spacing: 0.05em;
    }
#footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #ccc;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #555;
}
#footer a {
  text-decoration: none;
  color: #007bff;
}
#footer a:hover {
  text-decoration: underline;
}
.choice {
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.2s ease;
}
.choice:hover {
  border: 2px solid #007bff;
}
#sam-image {
  width: 900px;
  height: 600px;
  object-fit: contain;        /* Maintain aspect ratio */
  background-color: black;    /* Fills empty space */
  display: block;
  margin: 0 auto;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.external-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #007bff;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 20px;
}
.external-button:hover {
  background-color: #0056b3;
}
