html {
  font-size: 14px;
  font-family: "Figtree", serif
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.my-container {
  max-width: 80%;
  min-width: 80%;
  margin: 2rem;
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.august-shadow {
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.17);
}

.quest-editor label {
  margin-top: .5rem;
}

.btn-primary {
  border-radius: 1rem !important;
}

.a-icon {
  color: inherit !important;
  text-decoration: none !important;
  cursor: pointer !important;
}
.a-icon:hover {
  color: #0077D8 !important;
}
.a-icon.delete-icon:hover {
  color: #ca4748 !important;
}

.a-icon.disabled {
  pointer-events: none; /* Disables click and hover events */
  color: gray !important; /* Override hover color */
}
.a-icon.disabled:hover {
  color: gray !important; /* Ensure hover color doesn’t apply */
}

@media (max-width: 725px) {
  .hidden-half-screen {
    display: none;
  }

  #loading-indicator {
    left: 38% !important;
    top: 40% !important;
  }
}

.quest-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: .5rem;
  margin: 2rem;
  width: 20rem;
  height: 20rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  cursor: pointer;
}

h1 {
  color: #2c3e50;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

p {
  color: #34495e;
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Welcome screen mascot */
.mascot-container {
  width: 200px;
  height: 200px;
  margin: 2rem auto;
}

.mascot {
  width: 200px;
  height: 200px;
  object-fit: contain;
}

/* Mission screen mascot */
.mission-mascot-container {
  width: 150px;
  height: 150px;
  margin: 1rem 0;
}

.mission-mascot-container.right {
  margin-left: 0;
  margin-right: auto;
}

.mission-mascot-container.left {
  margin-left: auto;
  margin-right: 0;
}

.mission-mascot {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

/* Buttons */
.next-button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
  margin-top: 2rem;
}

.next-button:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}

.next-button:active {
  transform: translateY(0);
}

/* Quiz elements */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 2rem auto;
}

.quiz-button {
  background-color: #fff;
  border: 2px solid #3498db;
  color: #3498db;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
}

.quiz-button:hover {
  background-color: #3498db;
  color: white;
}

.quiz-button.correct {
  background-color: #2ecc71;
  border-color: #2ecc71;
  color: white;
}

.quiz-button.incorrect {
  background-color: #e74c3c;
  border-color: #e74c3c;
  color: white;
}

.hint {
  color: #34495e !important;
}

.settings-explainer {
  color: #7f8c8d;
  font-size: 0.9rem;
  text-align: left;
  margin-bottom: 0.5rem;
}

#step-1 p {
  margin-bottom: 0.5rem;
}

/* Keep the original paragraph spacing for other sections */
p {
  color: #34495e;
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.mission-image {
  width: 100%;
  max-width: 400px;
  margin: 2rem auto;
}

.footer {
    text-align: center;
    padding: 1rem;
    color: #2c3e50;
    margin-top: auto;
}

.footer a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
}

.footer a:hover {
    text-decoration: underline;
}

.mission-step:not(:first-of-type) {
  display: none;
}

#loading-indicator {
  position: absolute;
  left: 45%;
  top: 45%;
  width: 300px;
  height: 300px;
  z-index: 1100;
}
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.preview-target {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  overflow: scroll;
}

.preview-target h1 {
  font-size: 1.4rem !important;
}

.preview-target h3 {
  font-size: 1.2rem !important;
}

.preview-target p {
  font-size: .85rem !important;
}

.preview-target .mascot-container {
  width: 150px !important;
  height: 150px !important;
  margin: 1.25rem auto !important;
}

.preview-target .mascot {
  width: 150px !important;
  height: 150px !important;
}

.preview-target .footer {
  font-size: 0.7rem;
}

.preview-target .next-button {
  font-size: 1rem !important;
  margin-top: .5rem !important;
  padding: .75rem 1.5rem !important;
}

.preview-target .my-container {
  margin: 1.75rem !important;
  padding: 1.5rem !important;
}

.preview-target iframe {
  width: 100% !important;
}

.preview-target .quiz-options {
  margin: 1rem auto !important;
}

.preview-target .quiz-button {
  padding: .5rem 1rem !important;
  font-size: .8rem !important;
}

#reset-this-root {
  all: unset;
}

.btn-primary:not(.btn-success) {
  background-color: #3498db !important;
}

.btn-primary:hover {
  background-color: #2980b9 !important;
  transform: translateY(-2px) !important;
}