/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f9fafb;
    margin: 0;
}

/* Header */
header {
    background-color: #1a73e8;
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 15px;
}

header nav ul li {
    display: inline;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

header nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Main Content */
main {
    padding: 20px;
    max-width: 1200px;
    margin: 20px auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

main h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #1a73e8;
}

.filter-input {
    width: 100%;
    padding: 10px;
    margin-left:20px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

/* Table */
#questionsTable {
    width: 95%;
    border-collapse: collapse;
    margin: 20px auto;
}

#questionsTable th, #questionsTable td {
    border: 1px solid #e5e7eb;
    padding: 15px;
    text-align: left;
    word-wrap: break-word;
    vertical-align: top;
}

#questionsTable th {
    background-color: #f1f5f9;
    color: #1a73e8;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
}

#questionsTable tr:nth-child(even) {
    background-color: #f9fafb;
}

#questionsTable tr:hover {
    background-color: #eef2f7;
}

/* List Styling for Options */
ol.myList {
    list-style-type: lower-alpha;
    margin-left: 20px;
    padding-left: 20px;
}

/* Footer */
footer {
    background-color: #1a73e8;
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: 20px;
}

footer p {
    font-size: 0.9rem;
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    text-align: center;
    line-height: 50px;
    cursor: pointer;
    display: none;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#backToTop:hover {
    background-color: #1669c3;
    transform: scale(1.1);
}

.view-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px;
}

.answer-buttons {
    display: flex;
    gap: 10px;
}

.answer-buttons button {
    padding: 5px 15px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    font-size: 14px;
}

.answer-buttons button:hover {
    background-color: #0056b3;
}
  
  .view-toggle button {
    padding: 10px 20px;
    margin: 0 5px;
    border: none;
    background-color: #1a73e8;
    color: white;
    cursor: pointer;
    border-radius: 5px;
  }
  
  .view-toggle button:hover {
    background-color: #005cbf;
  }
  
  .question-block, .quiz-block {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #f9fafb;
  }

  #clearButton {
    background-color: #f44336; /* Red background */
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
}

#clearButton:hover {
    background-color: #d32f2f; /* Darker red */
}

#viewSelect {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    background-color: #fff;
    cursor: pointer;
  }
  
  #viewSelect:hover {
    border-color: #1a73e8;
  }
  