.btn-outline-secondary {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.4rem;
}

    .card {
    max-width: 950px;
    width: 100%;
    padding: 30px;
    background: linear-gradient(135deg, #2a2a40, #1f1f33);
    border-radius: 15px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 auto; /* Horizontally center */

    }

    .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
    }

    #hint-text {
      background-color: #f0f8ff;
      padding: 15px;
      border-radius: 8px;
      margin-bottom: 20px;
      font-size: 0.9em;
      color: #555;
      box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    }

    #hint-text ul {
      list-style: none;
      padding: 0;
    }

    #hint-text ul li {
      margin: 8px 0;
    }

    #user-input button {
      padding: 12px 30px;
      font-size: 0.8em;
      background-color: #2980b9;
      color: white;
      border: none;
      border-radius: 30px;
      cursor: pointer;
      transition: background-color 0.3s ease;
      box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    }

    #user-input button:hover {
      background-color: #3498db;
    }

    #controls {
        text-align: center;
        margin-top: 10px;
        display: flex;
        flex-direction: column;
        align-items: center; 
        justify-content: center;
    }

    #controls label {
    color: white;
    }

    #final-answer {
      padding: 15px;
      font-size: 18px;
      width: 80%;
      max-width: 400px;
      margin-top: 15px;
      margin-bottom: 20px;
      border: 2px solid #ccc;
      border-radius: 8px;
      outline: none;
      box-sizing: border-box;
      box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
      text-align: center;
      background-color: #303031;
    }

    /* #final-answer:focus {
      border-color: #2980b9;
    } */

    button {
      padding: 12px 30px;
      font-size: 0.8em;
      background-color: #2980b9;
      color: white;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      transition: background-color 0.3s ease;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      width: 60%;
      max-width: 200px;
      margin: 10px auto;
      display: block;
    }

    button:hover {
      background-color: #3498db;
      transform: translateY(-2px);
    }

    #final-result {
      margin-top: 10px;
      font-size: 0.8em;
      font-weight: bold;
      text-align: center;
      display: block;
      padding: 10px;
      margin-bottom: 10px;
    }

    #skip-btn {
      width: 60%;
      max-width: 200px;
      display: block;
      margin-top: 20px;
      padding: 12px 30px;
      background-color: #f1c40f;
      color: white;
      border-radius: 8px;
      font-size: 0.8em;
      border: none;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }

    #skip-btn:hover {
      background-color: #f1c40f;
      color: #222;
    }

    #score {
      font-weight: bold;
      font-size: 0.8em;
      color: #007acc;
      margin-top: 10px;
      text-align: center;
    }

  #question {
    font-size: 1.4em;
    font-weight: 600;
    color: #f0f0f0;
    background-color: #3a3a5a;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }

    /* Progress Bar */
  .progress-container {
    background: #444;
    border-radius: 10px;
    height: 12px;
    margin: 20px auto;
    width: 80%;
    overflow: hidden;
  }

  .progress-bar {
    height: 100%;
    background-color: #00bfff;
    width: 0%;
    transition: width 0.4s ease;
  }

    .centered-text {
    display: flex;
    flex-direction: column;
    align-items: center; /* centers child elements horizontally */
    justify-content: center;
    width: 100%;
    margin-top: 20px;
    text-align: center;  /* ensures inline text like spans is centered */
    }

    .centered-text h3 {
    width: 100%;
    margin: 5px 0;
    text-align: center;
    }

    /* playfair cipher quiz */

        #playfair-grid {
    display: grid;
    grid-template-columns: repeat(5, 50px);
    grid-gap: 5px;
    justify-content: center;
    margin: 20px 0;

    }

    .grid-cell {
    width: 50px;
    height: 50px;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    background-color: #fff;
    cursor: pointer;
    }

    .grid-cell.selected {
    background-color: #a3d2ca;
    }

    /* rail fence quiz */
    #letter-container {
      margin: 10px auto;
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
    }

    .letter {
      padding: 10px 15px;
      margin: 5px;
      background-color: #3498db;
      color: white;
      border-radius: 4px;
      cursor: grab;
      font-size: 18px;
      user-select: none;
    }

    #grid-container {
      display: flex;
        flex-direction: column;
        align-items: center;
        margin: 20px 0;
    }

    .grid-row {
      display: flex;
    }

    .drop-zone {
      width: 40px;
      height: 40px;
      border: 2px dashed #ccc;
      margin: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
      font-size: 18px;
      background-color: white;
      border-radius: 6px;
    }

    .drop-zone.correct {
      background-color: #2ecc71;
      color: white;
      border-color: #27ae60;
    }

    .drop-zone.incorrect {
      background-color: #e74c3c;
      color: white;
      border-color: #c0392b;
    }
    
    .drop-zone.empty-zone {
      visibility: hidden;
    }




