:root {
  --primary-color: #0d6efd;
  --secondary-color: #ffc107;
  --background-color: #f8f9fa;
  --text-color: #333333;
  --border-radius: 8px;
  --button-size: 40px;
  --transition-speed: 0.3s;
}

body {
  font-family: Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
}

.quiz-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h2 {
  text-align: center;
  margin-bottom: 20px;
}

.chat-toggles {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}



#anatomyFaqBtn {
  background-color: var(--secondary-color);
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin: 0 10px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

/* Styles for the anatomy selector image container */
.owlContentImg {
  display: block; /* For centering with margin auto */
  width: 90%;    /* Responsive width */
  max-width: 450px !important; /* Maximum width for larger screens */
  /* mx-auto is on the HTML element for margin-left/right: auto */
}

input:checked + .slider {
  background-color: var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(26px);
}


.question-container {
  text-align: center;
}

.question-image {
  max-width: 100%;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
}

.answer-image {
  max-width: 100%;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
}


.user-answer-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ced4da;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  font-size: 16px;
}

.submit-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 16px;
}

@media (max-width: 600px) {
  .chat-toggles {
    flex-wrap: wrap;
  }
  

  
  .submit-button {
    width: 100%;
  }
}


/* General container settings */
.container {
  max-width: 100%; /* Limiting maximum width for better readability on large screens */
  margin: auto; /* Centering container */
}

/* SVG area styles */
.svg-area {
  display: block;
  background: var(--background-default);
}

/* Styles for core and radar animations in SVG */
.core, .radar {
  animation-duration: 5.5s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.core {
  fill: red;
  animation-name: pulse1;
}

.radar {
  fill: rgba(255, 82, 82, 0.5); /* Lighter red for radar */
  animation-name: pulse2;
}

/* Keyframe animations for SVG elements */

@keyframes pulse1 {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }
  30% {
    opacity: 1;
    transform: scale(1);
  }
  60% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
}

@keyframes pulse2 {
  0% {
    transform: scale(1px, 1px);
    opacity: 0;
  }
  50% {
    r: 4%;
    height: 5px; 
    opacity: 1;
  }
  100% {
    transform: scale(6px, 6px);
    opacity: 0;
  }
}

.htmx-indicator {
  display: none;
}
.htmx-request .htmx-indicator {
  display: block;
}
.htmx-request.htmx-indicator {
  display: block;
}

#aiModelLabel {
  margin-left: 8px;
}

.ai-model-toggle .ai-label {
  transition: all 0.3s ease;
  font-weight: normal;
  font-size: 14px;
}

.ai-model-toggle .ai-label.active {
  font-weight: bold;
  font-size: 16px;
  text-shadow: 0 0 1px rgba(0,0,0,0.3);
}

.ai-model-toggle .ai-label.inactive {
  opacity: 0.5;
}

.ai-model-toggle .switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.ai-model-toggle .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ai-model-toggle .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #10A37F;
  transition: .4s;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
}

.ai-model-toggle .slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.ai-model-toggle input:checked + .slider {
  background-color: #4285F4;
}

.ai-model-toggle input:checked + .slider:before {
  transform: translateX(26px);
}

.ai-model-toggle .slider.round {
  border-radius: 34px;
}

.ai-model-toggle .slider.round:before {
  border-radius: 50%;
}
