/* Base styles */
:root {
  --primary-color: #0077b6;
  --secondary-color: #48cae4;
  --accent-color: #00b4d8;
  --text-color: #2d3436;
  --light-bg: #ffffff;
  --dark-bg: #2d3436;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --main-bg-color: #ffffff; /* Main background color for consistency */
  --section-bg-color: #ffffff; /* Section background color */
  --concept-box-border-color: var(--primary-color); /* Color for concept box borders */
}

/* Responsive breakpoints */
:root {
  --mobile-breakpoint: 576px;
  --tablet-breakpoint: 768px;
  --desktop-breakpoint: 992px;
  --large-desktop-breakpoint: 1200px;
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--main-bg-color);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .container {
    width: 95%;
    padding: 0 10px;
  }
}

@media (max-width: 576px) {
  .container {
    width: 98%;
    padding: 0 5px;
  }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

/* Mobile Typography */
@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  h4 {
    font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  h4 {
    font-size: 1.2rem;
  }
}

p {
  margin-bottom: 1.5rem;
}

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

a:hover {
  color: var(--primary-color);
}

nav a:hover {
  color: #ffffff;
}

ul,
ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

/* Header */
header {
  background-color: #003366;
  box-shadow: var(--box-shadow);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

@media (max-width: 768px) {
  header {
    position: static; /* Non-sticky header on mobile */
  }
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

@media (max-width: 768px) {
  header .container {
    justify-content: space-between;
  }
}

header .logo {
  display: flex;
  align-items: center;
  margin-right: 2rem;
}

header .logo a {
  color: #fd79a8;
}

.logo-text {
  color: #fd79a8 !important;
}

header .logo img {
  max-height: 80px;
  width: auto;
  transition: transform 0.3s ease;
}

header .logo img:hover {
  transform: scale(1.1) rotate(5deg);
}

nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

nav ul {
  display: flex;
  list-style: none;
  margin-bottom: 0;
  padding-left: 0;
}

nav li {
  margin-left: 1.5rem;
  position: relative;
}

nav a {
  font-weight: 600;
  padding: 0.5rem;
  display: block;
  color: #ffffff;
}

nav a.active {
  color: #ffffff;
  border-bottom: 2px solid #ffffff;
}

/* Dropdown Menu */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--section-bg-color);
  min-width: 200px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
  z-index: 101;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.dropdown-content a {
  color: var(--text-color);
  padding: 0.75rem 1rem;
  text-decoration: none;
  display: block;
  text-align: left;
  transition: background-color 0.3s ease;
  font-size: calc(1em - 4px);
}

.dropdown-content a:hover {
  background-color: var(--main-bg-color);
  color: var(--primary-color);
}

.dropdown-content a.active {
  color: #0077b6;
  font-weight: 600;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content,
.dropdown.active .dropdown-content {
  display: block !important;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.dropdown-toggle::after {
  content: "▼";
  font-size: 0.7em;
  margin-left: 0.3em;
  vertical-align: middle;
}

/* Mobile Dropdown */
@media (max-width: 768px) {
  .dropdown-content {
    position: static;
    transform: none;
    box-shadow: none;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0;
    background-color: var(--main-bg-color);
    max-height: 200px; /* Smaller max-height for mobile */
    overflow-y: auto; /* Ensure scrolling works on mobile too */
  }

  .dropdown-content a {
    padding: 0.5rem 1rem;
  }

  .dropdown:hover .dropdown-content,
  .dropdown:focus-within .dropdown-content {
    display: block !important;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .dropdown.active .dropdown-content {
    display: block;
  }
}

/* Navigation styles for all screen sizes */
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
  }

  header .logo {
    margin-right: 0;
    margin-bottom: 0;
  }

  nav {
    position: static;
    transform: none;
  }

  nav ul {
    justify-content: flex-end;
  }

  nav li {
    margin: 0 0.75rem;
  }
}

@media (max-width: 576px) {
  nav li {
    margin: 0 0.5rem;
  }

  nav a {
    font-size: 0.9rem;
    padding: 0.4rem;
  }
}

/* Hero section */
.hero {
  padding: 4rem 0;
  text-align: center;
  background-color: var(--primary-color);
  color: white;
  border-radius: var(--border-radius);
  margin: 2rem 0;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Responsive hero section */
@media (max-width: 768px) {
  .hero {
    padding: 3rem 1rem;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 2rem 1rem;
    margin: 1rem 0;
  }

  .hero h2 {
    font-size: 1.8rem;
  }
}

/* Intro section */
.intro {
  padding: 2rem 0;
}

/* Tutorials section */
.tutorials {
  padding: 2rem 0;
}

.tutorials {
  padding: 2rem 0;
}

.tutorials h3 {
  margin-bottom: 2rem;
  width: 100%;
}

/* Level card styling */
.level-card {
  background-color: var(--primary-color);
  color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.level-card:hover {
  background-color: #006094;
}

.level-card h4 {
  margin: 0;
  font-size: 22px;
}

.toggle-btn {
  background-color: var(--section-bg-color);
  color: var(--primary-color);
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-btn:hover {
  background-color: var(--main-bg-color);
}

.coming-soon-message {
  width: 100%;
  text-align: center;
  padding: 3rem;
  background-color: var(--section-bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.coming-soon-message h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin: 0;
}

/* Initially hide the tutorial cards */
#level-1-content,
#level-2-content {
  display: none;
}

/* When active, show the tutorial cards */
#level-1-content.active,
#level-2-content.active {
  display: flex;
}

/* Style for the list items in Nivo 2 cards */
.tutorial-card ul {
  padding-left: 1.2rem;
  margin: 0.8rem 0;
  color: #333;
}

.tutorial-card li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Add some space between levels */
#level-2-card {
  margin-top: 2rem;
}

.tutorials .tutorial-cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.tutorial-card {
  background-color: var(--section-bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
  width: calc(50% - 1rem);
  box-sizing: border-box;
}

.tutorial-card:hover {
  transform: translateY(-5px);
}

.tutorial-card h4 {
  color: var(--primary-color);
  font-size: 18px;
  margin-top: 0;
}

/* Responsive tutorials section */
@media (max-width: 768px) {
  .tutorials {
    padding: 1.5rem 0;
  }

  .tutorial-card {
    padding: 1.5rem;
    width: 100%;
  }
}

@media (max-width: 576px) {
  .tutorial-card {
    padding: 1rem;
  }

  .tutorial-card:hover {
    transform: none;
  }
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: background-color 0.3s ease;
  margin-top: 1rem;
}

.btn:hover {
  background-color: var(--accent-color);
  color: white;
}

/* Wallet images styling */
.wallet-image {
  margin: 20px 0;
  text-align: center;
}

/* Disclaimer styling */
.disclaimer {
  background-color: var(--section-bg-color);
  border-left: 4px solid #ffc107;
  padding: 15px;
  margin: 20px 0;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.wallet-image img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments for wallet images */
@media (max-width: 768px) {
  .wallet-image img {
    width: 400px;
    max-width: 90%;
  }
}

@media (max-width: 576px) {
  .wallet-image img {
    width: 300px;
    max-width: 100%;
  }
}

/* Concept box styling */
.concept-box {
  background-color: var(--section-bg-color);
  border-left: 4px solid var(--primary-color);
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;

.concept-box h5 {
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 600;
}

/* Hover effect for concept boxes */
.concept-box:hover {
  border-left-width: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateX(3px);
}

/* Tutorial section styling */
.tutorial-section {
  background-color: var(--section-bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  margin-bottom: 2rem;
  display: block;
  width: 100%;
}

.tutorial-intro {
  background-color: var(--section-bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

/* Tutorial navigation styling */
.tutorial-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

@media (max-width: 768px) {
  .tutorial-navigation {
    flex-direction: column;
    gap: 15px;
  }
}

.prev-tutorial,
.next-tutorial {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 15px 25px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 5px 0;
  cursor: pointer;
  border: none;
  min-width: 200px;
}

@media (max-width: 768px) {
  .prev-tutorial,
  .next-tutorial {
    width: 100%;
    max-width: 400px;
  }
}

.prev-tutorial:hover,
.next-tutorial:hover {
  background-color: var(--accent-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.breadcrumbs {
  margin-bottom: 2rem;
  color: #777;
}

/* Tutorial content page */
.content-page,
.tutorial-content {
  padding: 3rem 0;
}
.content-page .container,
.tutorial-content .container {
  max-width: 800px;
}

main {
  min-height: calc(100vh - 150px);
  padding: 2rem 0;
  background-color: var(--main-bg-color);
}

/* Responsive tutorial content */
@media (max-width: 768px) {
  .tutorial-content,
  .content-page {
    padding: 2rem 0;
  }

  .breadcrumbs {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .tutorial-content,
  .content-page {
    padding: 1rem 0;
  }

  .breadcrumbs {
    margin-bottom: 1rem;
    font-size: 0.85rem;
  }

  article p,
  article li {
    font-size: 0.95rem;
  }

  article h1 {
    font-size: 1.8rem;
  }

  article h2 {
    font-size: 1.5rem;
  }

  article h3 {
    font-size: 1.3rem;
  }

  article pre {
    padding: 1rem;
    overflow-x: auto;
  }
}

article {
  background-color: var(--section-bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
}

article h3 {
  margin-top: 2rem;
  color: var(--primary-color);
}

article h3:first-child {
  margin-top: 0;
}

.next-steps {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: white;
  padding: 2rem 0;
  margin-top: 3rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 1.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

/* Quiz Styles */
.quiz-container {
  background-color: var(--section-bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  margin: 2rem 0;
}

.quiz-step {
  margin-bottom: 1.5rem;
}

.question {
  margin-bottom: 2rem;
}

.question h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.options {
  list-style: none;
  padding: 0;
}

.option {
  background-color: var(--main-bg-color);
  border: 2px solid var(--light-bg);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.option:hover {
  background-color: #f0f0f0;
}

.option.selected {
  border-color: var(--primary-color);
  background-color: rgba(108, 92, 231, 0.1);
}

.option.correct {
  border-color: #2ecc71;
  background-color: rgba(46, 204, 113, 0.1);
}

.option.incorrect {
  border-color: #e74c3c;
  background-color: rgba(231, 76, 60, 0.1);
}

.quiz-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
}

#question-number {
  font-weight: 600;
  color: var(--primary-color);
}

#score-percentage {
  margin-top: 1rem;
  height: 20px;
  background-color: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
}

#score-percentage div {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 10px;
  transition: width 0.5s ease;
}

.answers-review {
  margin-top: 2rem;
  padding: 1rem;
  background-color: var(--section-bg-color);
  border-radius: var(--border-radius);
}

.answers-review h4 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.question-review {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: var(--border-radius);
  background-color: var(--section-bg-color);
}

.question-review.correct {
  border-left: 4px solid #2ecc71;
}

.question-review.incorrect {
  border-left: 4px solid #e74c3c;
}

.review-question {
  margin-bottom: 0.5rem;
}

.user-answer,
.correct-answer {
  margin: 0.5rem 0;
  padding-left: 1rem;
}

.correct-text {
  color: #2ecc71;
  font-weight: 600;
}

.incorrect-text {
  color: #e74c3c;
  font-weight: 600;
}

.unanswered-text {
  color: #f39c12;
  font-weight: 600;
}

.question-review.unanswered {
  border-left: 4px solid #f39c12;
}

@media (max-width: 768px) {
  .quiz-container {
    padding: 1.5rem;
  }

  .quiz-navigation {
    flex-direction: column;
    gap: 1rem;
  }

  .quiz-navigation button {
    width: 100%;
  }

  #question-number {
    order: -1;
    margin-bottom: 1rem;
  }
}

/* Responsive design */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
  }

  nav ul {
    margin-top: 1rem;
  }

  nav li {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }

  nav a {
    font-size: 0.9rem;
  }

  .dropdown-toggle {
    font-size: 0.9rem;
  }

  .dropdown-content a {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
  }

  .hero {
    padding: 2rem 0;
  }

  .hero h2 {
    font-size: 2rem;
  }
}


