:root {
  --primary-color: #81c784; /* A lighter green */
  --secondary-color: #2196F3; /* A vibrant blue */
  --accent-color: #FFC107; /* An energetic yellow */
  --text-color: #FFFFFF;
  --header-height: 200px;
  --shape-size: 50px;
}

.unique-study-guide-header {
  position: relative;
  width: 100%;
  height: var(--header-height);
  overflow: hidden; /* Crucial for containing the pseudo-elements */
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Modern, clean font */
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

body {
  position: relative; /* For pseudo-elements to be positioned relative to body */
  min-height: 100vh; /* Ensure it covers the whole viewport */
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  margin: 0; /* Ensure no default body margin */
  padding: 0; /* Ensure no default body padding */
  font-family: sans-serif; /* Keep existing font family */
}

/* Vector-like shapes using pseudo-elements */
body::before,
body::after {
  content: '';
  position: absolute;
  background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white */
  z-index: -1; /* Behind the content */
}

/* Diagonal shape 1 */
body::before {
  width: 150%;
  height: 100%;
  top: -50%;
  left: -25%;
  transform: rotate(15deg);
  transform-origin: top left;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.05) 80%, transparent);
}

/* Diagonal shape 2 */
body::after {
  width: 150%;
  height: 100%;
  bottom: -50%;
  right: -25%;
  transform: rotate(-15deg);
  transform-origin: bottom right;
  background: linear-gradient(to left, transparent, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.05) 80%, transparent);
}


.header-content {
  position: relative;
  z-index: 2; /* Ensures text is on top */
  text-align: center;
  color: #333333;
}

.header-content h1 {
  margin: 0;
  font-size: 3em; /* Adjust as needed */
  font-weight: 700;
  letter-spacing: 2px;
  color: #2e7d32;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.header-content p {
  margin: 5px 0 0;
  font-size: 1.2em;
  font-weight: 300;
  opacity: 0.9;
  color: #555555;
}

/* Optional: Add small, subtle geometric elements */
.header-content::before,
.header-content::after {
    content: '';
    position: absolute;
    background-color: var(--accent-color);
    opacity: 0.7;
    z-index: -1; /* Behind the text, but above the main background */
}

/* Small square */
.header-content::before {
    width: 20px;
    height: 20px;
    top: -10px;
    left: -30px;
    transform: rotate(45deg);
}

/* Small circle */
.header-content::after {
    width: 25px;
    height: 25px;
    bottom: -10px;
    right: -30px;
    border-radius: 50%;
}


/* Responsive adjustments */
@media (max-width: 768px) {
  .unique-study-guide-header {
    height: 150px;
  }

  .header-content h1 {
    font-size: 2.2em;
  }

  .header-content p {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .unique-study-guide-header {
    height: 120px;
  }

  .header-content h1 {
    font-size: 1.8em;
  }

  .header-content p {
    font-size: 0.9em;
  }

  .header-background::before,
  .header-background::after {
      transform: rotate(10deg); /* Less aggressive rotation on smaller screens */
  }
}

.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - var(--header-height)); /* Adjust based on header height */
    padding: 20px;
    box-sizing: border-box;
    margin: auto;
    align-self: center;
    /* New/Updated Styles for Modernization */
    background-color: #ffffff; /* White background for the card */
    border-radius: 12px; /* More rounded corners */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); /* Softer, larger shadow */
    max-width: 600px; /* Slightly wider for better content display */
    width: 90%; /* Responsive width */
    padding: 40px; /* More internal spacing */
    flex-direction: column; /* Stack items vertically */
    text-align: center; /* Center align content */
}

#quiz-form {
    width: 100%;
    /* Removed redundant styles as they are now in .form-container or will be added to specific elements */
    background-color: transparent; /* No background here, handled by .form-container */
    padding: 0; /* No padding here */
    box-shadow: none; /* No shadow here */
    text-align: left; /* Align text within the form */
}

.question-container {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f0f8ff; /* Light blue background for question */
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.question-container p {
    font-size: 1.3em;
    color: #333; /* Darker text for readability */
    margin-bottom: 15px;
    font-weight: 600; /* Bolder question text */
}

label {
    display: block;
    margin: 5px 0; /* Reduced from 10px */
    font-size: 1.1em;
    color: #555;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease; /* Smooth transition for hover */
    padding: 10px; /* Padding around options */
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
    text-align: left;
}

label:hover {
    color: var(--primary-color);
    transform: translateX(5px); /* Slight movement on hover */
    background-color: #f5f5f5; /* Light grey on hover */
}

input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.2); /* Slightly larger radio buttons */
    vertical-align: middle; /* Align with text */
}

button[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

button[type="submit"]:hover {
    background-color: #689f38; /* Darker green on hover */
    transform: translateY(-3px); /* Lift effect on hover */
}

#feedback {
    font-size: 1.1em;
    font-weight: 600;
    margin-top: 25px;
    padding: 15px;
    border-radius: 8px;
    animation: fadeIn 0.5s ease-out;
}

#feedback p {
    margin: 0;
}

#feedback p[style*="color: green"] {
    background-color: #e8f5e9; /* Light green background */
    border: 1px solid #a5d6a7;
}

#feedback p[style*="color: red"] {
    background-color: #ffebee; /* Light red background */
    border: 1px solid #ef9a9a;
}

#feedback p[style*="color: orange"] {
    background-color: #fff3e0; /* Light orange background */
    border: 1px solid #ffcc80;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Existing styles for #question-form, input, etc. might need adjustment or removal if replaced by above */
#question-form {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

#question-form h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8em;
}

#question-form input[type="text"],
#question-form input[type="file"] {
    width: calc(100% - 20px);
    padding: 12px;
    margin-bottom: 5px; /* Reduced gap */
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

#question-form input[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

#question-form input[type="submit"]:hover {
    background-color: #45a049;
}

#pdfPageSelection {
    display: block;
    margin: 0 auto 15px auto;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    width: calc(100% - 20px);
}

.input-with-button-container {
    position: relative;
    width: calc(100% - 20px);
    margin: 0 auto 15px auto;
}

#paste-url-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    padding: 5px 10px;
    border: none;
    background-color: #f0f0f0;
    cursor: pointer;
    border-radius: 5px;
}

#paste-url-btn.hidden {
    display: none;
}

.google-btn-container {
    position: absolute;
    top: 20px;
    right: 20px;
}

.google-btn {
    display: inline-block;
    background: white;
    color: #444;
    border-radius: 5px;
    border: thin solid #888;
    box-shadow: 1px 1px 1px grey;
    white-space: nowrap;
}
.google-btn:hover {
    cursor: pointer;
}
.google-btn span.label {
    font-family: serif;
    font-weight: normal;
}
.google-btn span.icon {
    background: url('https://developers.google.com/identity/images/g-logo.png') transparent 5px 50% no-repeat;
    display: inline-block;
    vertical-align: middle;
    width: 42px;
    height: 42px;
}
.google-btn span.buttonText {
    display: inline-block;
    vertical-align: middle;
    padding-left: 42px;
    padding-right: 42px;
    font-size: 14px;
    font-weight: bold;
    /* Use the Roboto font that is loaded in the <head> */
    font-family: 'Roboto', sans-serif;
}
.input-error {
    border: 2px solid red !important;
}

#scrape-btn,
#qr-code-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px; /* Increased padding */
    border: none;
    border-radius: 8px; /* Slightly more rounded */
    cursor: pointer;
    font-size: 18px; /* Increased font size */
    margin-left: 10px; /* Increased spacing */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#scrape-btn:hover,
#qr-code-btn:hover {
    background-color: #689f38; /* Darker green on hover */
    transform: translateY(-2px); /* Slight lift effect */
}

/* Styling for other prominent buttons */
button[type="submit"],
#quiz-ready-btn {
    padding: 15px 30px; /* Larger padding */
    font-size: 1.2em; /* Larger font size */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button[type="submit"]:hover,
#quiz-ready-btn:hover {
    background-color: #689f38;
    transform: translateY(-3px);
}

#qrCodeModal {
    z-index: 1000 !important; /* Ensure the modal is on top of all other elements */
}

.profile-form-group input {
    max-width: 400px; /* Adjust this value as needed */
    margin: 0 auto; /* Center the input fields */
}

.profile-heading {
    font-size: 1.5rem; /* Adjust as needed, e.g., 2rem for slightly larger, 1.2rem for smaller */
}