/* Image Upload Preview Feature Styles */
:root {
  --default-font: "Roboto",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Nunito Sans",  sans-serif;
  --nav-font: "Raleway",  sans-serif;
}

:root { 
  --background-color: #031119; /* Background color for the entire website, including individual sections */
  --default-color: rgba(255, 255, 255, 0.8); /* Default color used for the majority of the text content across the entire website */
  --heading-color: #e0e9f2; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #e3a127; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #1b262c; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}

:root {
  --nav-color: rgba(255, 255, 255, 0.8);  /* The default color of the main navmenu links */
  --nav-hover-color: #e3a127; /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #29343a; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #29343a; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: rgba(255, 255, 255, 0.8); /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #e3a127; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  background-color: var(--background-color);
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 10px);
  font-family: var(--default-font);
}
/* Image Upload Preview Styles */
#display-container {
  margin-top: 20px;
  padding: 0;
  background: none;
  border-radius: 10px;
  box-shadow: none;
  text-align: center;
  max-width: 350px;
  margin-left: auto;
  margin-right: auto;
}

#imageContainer img {
  max-width: 100%;
  max-height: 250px;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.10);
  margin-bottom: 10px;
  margin-top: 10px;
  border: 1px solid #d3d3d3;
  background: none;
}

#error-image-message {
  font-size: 1rem;
  margin-top: 8px;
  min-height: 22px;
  font-weight: 500;
  text-align: center;
}

#error-image-message.success {
  color: #d3a81d !important;
  background: none !important;
  border: none !important;
  display: inline-block;
  padding: 0;
  border-radius: 0;
  font-weight: 600;
}

@media (max-width: 500px) {
  #display-container {
    max-width: 98vw;
    padding: 8px;
  }
  #imageContainer img {
    max-height: 150px;
  }
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

.container {
  max-width: 900px;
  width: 90%;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 0 20px #e3a127;
  text-align: center;
  margin: 9rem auto;  
  color: var(--default-color);
  background-color: #1B262C;
}



.container h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--heading-color);
  font-family: var(--heading-font);
}


  .hero-image {
  display: flex;
  margin: 0 auto;
  max-width: 100%;
  border-radius: 15px;
  justify-content: center;
  height: 200px;
  width: 200px;
  }

.title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--heading-color);
  
  
}

.subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
} 

/* Buttons*/
.btn {
  background: #e3a127;
  border: none;
  padding: 0.75rem 1.5rem;
  margin: 0.5rem;
  border-radius: 30px;
  color: #0a0a0a;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  background: #e69028;
  color: #fff;
}

.btn.secondary {
  background: transparent;
  border: 2px solid #e3a127;
  color: #e3a127;
}

.btn.secondary:hover {
  background: #e3a127;
  color: #0a0a0a;
}

/* Navigation buttons container */
.nav-buttons {
  margin-top: 2rem;
}

/* Form elements */
input[type="file"] {
  margin-bottom: 1rem;
  padding: 0.5rem;
  border-radius: 10px;
  border: none;
  background: #203a43;
  color: #e0e0e0;
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  background: #e3a127;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  color: #0a0a0a;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

input[type="file"]::file-selector-button:hover {
  background: #cc9600;
  color: #fff;
}

/* Loading and error messages */
.hidden {
  display: none;
}

.error-message {
  color: #ff4c4c;
  margin-top: 1rem;
  font-weight: bold;
}

/* Generative AI style preloader */
.preloader {
  margin: 2rem auto;
  width: 80px;
  height: 80px;
  position: relative;
}

.preloader div {
  position: absolute;
  border: 4px solid #c28332;
  opacity: 1;
  border-radius: 50%;
  animation: preloaderAnim 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.preloader div:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 0;
  left: 0;
  animation-delay: -0.3s;
}

.preloader div:nth-child(2) {
  width: 64px;
  height: 64px;
  top: 8px;
  left: 8px;
  animation-delay: -0.15s;
}

.preloader div:nth-child(3) {
  width: 48px;
  height: 48px;
  top: 16px;
  left: 16px;
  animation-delay: 0;
}

@keyframes preloaderAnim {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Caption and story boxes */
.caption-box,
.story-box {
  background: #4c4914;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 15px;
  box-shadow: 0 0 10px #948115;
  font-size: 1.2rem;
  line-height: 1.5;
}

/* Quiz form */
#quizForm {
  text-align: left;
}

.quiz-question {
  margin-bottom: 1rem;
}

.quiz-question label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: bold;
  color: #7be716;
}

.quiz-question input[type="text"] {
  width: 100%;
  padding: 0.5rem;
  border-radius: 10px;
  border: none;
  background: #203a43;
  color: #e0e0e0;
}

/* Results container */
#resultsContainer {
  text-align: left;
}

.result-item {
  background: #797917;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 15px;
  box-shadow: 0 0 10px #61c503;
}

.result-item.correct {
  border-left: 5px solid #00ff94;
}

.result-item.incorrect {
  border-left: 5px solid #ff4c4c;
}

/* Generative AI animation on homepage */
.generative-ai-animation {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 2rem auto 3rem;
}

.generative-ai-animation .dot {
  position: absolute;
  width: 16px;
  height: 16px;
  background: #00e5ff;
  border-radius: 50%;
  box-shadow: 0 0 10px #00e5ff;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.generative-ai-animation .dot1 {
  top: 10%;
  left: 50%;
  animation-name: pulse1;
  animation-duration: 2.5s;
}

.generative-ai-animation .dot2 {
  top: 30%;
  left: 80%;
  animation-name: pulse2;
  animation-duration: 3s;
}

.generative-ai-animation .dot3 {
  top: 60%;
  left: 70%;
  animation-name: pulse3;
  animation-duration: 2.8s;
}

.generative-ai-animation .dot4 {
  top: 80%;
  left: 40%;
  animation-name: pulse4;
  animation-duration: 3.2s;
}

.generative-ai-animation .dot5 {
  top: 60%;
  left: 20%;
  animation-name: pulse5;
  animation-duration: 2.6s;
}

.generative-ai-animation .dot6 {
  top: 30%;
  left: 20%;
  animation-name: pulse6;
  animation-duration: 3.1s;
}

.generative-ai-animation .dot7 {
  top: 10%;
  left: 30%;
  animation-name: pulse7;
  animation-duration: 2.7s;
}

.generative-ai-animation .dot8 {
  top: 40%;
  left: 50%;
  animation-name: pulse8;
  animation-duration: 3.3s;
}

.generative-ai-animation svg.lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: 200px;
  stroke: #00e5ff;
  stroke-width: 1.5;
  stroke-opacity: 0.6;
  animation: linesGlow 4s ease-in-out infinite alternate;
}

@keyframes linesGlow {
  0% {
    stroke-opacity: 0.3;
  }

  100% {
    stroke-opacity: 0.9;
  }
}

@keyframes pulse1 {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.5);
    opacity: 0.6;
  }
}

@keyframes pulse2 {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.5;
  }
}

@keyframes pulse3 {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.4);
    opacity: 0.7;
  }
}

@keyframes pulse4 {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.6;
  }
}

@keyframes pulse5 {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.5;
  }
}

@keyframes pulse6 {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}

@keyframes pulse7 {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.5;
  }
}

@keyframes pulse8 {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.5);
    opacity: 0.7;
  }
}