* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  :root {
  --color-bg-primary: #0d1117;   /* Dark navy black */
  --color-bg-secondary: #161b22; /* Soft dark grey-blue */
  --color-bg-surface: #21262d;   /* For cards, navbars, etc */
  --color-text-primary: #e6edf3;  /* Bright readable text */
  --color-text-secondary: #8b949e; /* Muted for descriptions */
  --color-text-accent: #f0f6fc;   /* Slightly brighter */
  --color-accent-primary: #4169e1;  /* Royal Blue */
  --color-accent-hover: #2743c4;
  --color-accent-primary: #a6192e;  /* Rich academic red */
  --color-accent-hover: #99001c;
  --color-accent-secondary: #f7c948; /* Gold highlight */
}
  body {
    font-family: 'Roboto', sans-serif;
    background: url('img-0-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
    color: var(--color-text-primary);
    width: 100%;
  }

  h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }

  #loginBox {
    max-width: 100%;
    text-align: center;
    padding: 90px 120px;
    background: url(img-2-bg.jpg) no-repeat fixed;
    background-size: cover;
    border-radius: 12px;
  }

  input[type="text"] {
    width: 100%;
    padding: 24px;
    font-size: 1rem;
    border-radius: 1rem;
    border: none;
    outline: none;
    margin-bottom: 1rem;
    background: var(--color-bg-surface);
    color: var(--color-text-primary);
    text-align: center;
  }

  button {
    padding: 0.7rem 3.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 1.5rem;
    background-color: var(--color-bg-secondary);
    color: var(--color-text-primary);
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 0 10px var(--color-bg-surface);
  }

  button:hover {
    background-color: var(--color-text-secondary);
  }

  #error {
    color: rgb(255, 4, 4);
    margin-top: 1em;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.6);
    padding: 1rem;
    font-size: 18px;
}
  
  @keyframes mouthOpen {
    0% {
      transform: scaleY(0);
    }
    100% {
      transform: scaleY(1);
    }
  }

  .container {
    background: rgba(0, 0, 0, 0.9);
    border-radius: 12px;
    padding: 2.5rem 3.5rem;
    text-align: center;
    width: 80%;
    animation: mouthOpen 1s ease-out forwards;
    transform: scaleY(0);
    transform-origin: center;
  }
  
  #mainContent {
    display: none;
  }

  header {
    padding-top: 1.5rem;
  }
  
  .logo {
    position:absolute;
    top: 8px;
    left: 8px;
    padding: 6px 10px;
    background-color: var(--color-accent-hover);
    color: var(--color-text-accent);
    font-size: 0.9rem;
    border-radius: 6px;
    z-index: 9999;
    pointer-events: auto;
    margin-bottom: 1.5rem;
  }
  .prompt {
    margin-bottom: 1.5rem;
  }

  .pen-underline {
    display: inline-block;
    position: relative;
}

  .pen-underline::after {
    content: '';
      position: absolute;
      left: 0;
      bottom: 0;
      width: 100%;
      height: 8px; /* height of the SVG */
      background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="8"><path d="M0,6 Q50,12 100,6" stroke="red" fill="transparent" stroke-width="2" stroke-linecap="round"/></svg>') no-repeat;
      background-size: 100% 100%;
      pointer-events: none;
}

  p {
    font-weight: 400;
    font-style: normal;
    font-size: 1.2rem;
    color: white;
    text-shadow: 0 0 10px rgb(128, 127, 127);
    padding: 10px;
  }

   .resultName, .resultNationality {
    font-family: 'Roboto', sans-serif;
  }
  
  .corner-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 6px 10px;
  background-color: #238636;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 6px;
  z-index: 9999;           /* Always on top */
  pointer-events: auto;    /* Still clickable */
  cursor: pointer;
}

.back-btn {
      padding: 10px 20px;
      background-color: crimson;
      color: white;
      border: none;
      cursor: pointer;
      border-radius: 5px;
    }

  #newDiv {
      display: none;
      height: 100vh;
      overflow-y: scroll;
      background: rgba(0, 0, 0, 0.9);
      padding: 2.5rem 3.5rem;
      text-align: center;
      width: 80%;
    }
    .warning {
      color: var(--color-accent-hover);
    }
  

    /*Edit this part to be responsive*/
  @media (max-width: 600px) {
    #loginBox {
    padding: 40px 20px;
    font-size: 1rem; /* use readable text */
  }

  .container {
      padding: 2rem 1.5rem;
      margin-bottom: 4rem;
  }

  #newDiv {
    padding: 1rem;
    font-size: 0.95rem;
  }

  h1, h2 {
    font-size: 1.3rem;
  }

  button {
    font-size: 0.9rem;
    padding: 0.5rem 1.5rem;
  }

  input[type="text"] {
    font-size: 1rem;
    padding: 12px;
  }
  }

