/* Base styles */
body {
      margin: 0;
      padding: 0;
      font-family: 'Comic Sans MS', cursive;
      background: #FFF8E1;
      color: #333;
      height: 100vh;
      display: flex;
      flex-direction: column;
      transition: all 0.5s ease;
    }
body.night-mode {
  background: #121212;
  color: white;
}

/* Header styles */
header {
    text-align: center;
    background-color: #ffd700; /* Bright yellow */
    color: #8b0000; /* Deep red */
    padding: 20px;
    border-bottom: 5px solid #f4a460; /* Sandy border */
}

header h1 {
    font-size: 2.5em;
    margin: 0;
    font-family: 'Trebuchet MS', sans-serif; /* Friendly font */
    text-shadow: 2px 2px 5px #ff6347; /* Orange glow */
}

header p {
    font-size: 1.5em;
    margin-top: 10px;
    color: #006400; /* Forest green */
}

/* Navigation styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ff4500; /* Bright orange-red */
    padding: 10px 20px;
    color: white;
}

.nav-logo {
    font-size: 1.8em;
    font-weight: bold;
    text-shadow: 2px 2px 4px #000000; /* Bold shadow */
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 10px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    font-family: 'Comic Sans MS', sans-serif; /* Fun font */
}

.nav-links a:hover {
    text-decoration: underline;
    color: #fffacd; /* Lemon chiffon */
}

/* Hide menu for small screens */
.nav-links {
    display: flex; /* Show links by default */
}

.nav-toggle {
    display: none; /* Hidden by default */
}

@media screen and (max-width: 768px) {
    .nav-links {
        display: none; /* Hide links on small screens */
        flex-direction: column; /* Stack links vertically */
        background-color: #ff4500;
        position: absolute;
        top: 50px; /* Position below navbar */
        right: 20px;
        width: 250px;
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    }

    .nav-links.show {
        display: flex; /* Show links when toggle button is clicked */
    }

    .nav-toggle {
        display: block; /* Show toggle button on small screens */
        background: none;
        border: none;
        color: white;
        font-size: 1.5em;
        cursor: pointer;
    }
}

/* Story content styles */
#story-content {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#story-text {
    font-size: 20px;
    margin-bottom: 20px;
    color: #ff6347; /* Orange red */
    font-family: 'Comic Sans MS', sans-serif;
}

#story-image {
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 85%;
    height: auto;
    border: 5px solid #ffd700; /* Bright border */
}

/* Canvas styles */
#colorCanvas {
    border: 3px solid #ff4500; /* Bright border for visibility */
    display: block;
    margin: 20px auto;
    background-color: #fff;
    width: 100%;
    max-width: 600px;
    height: auto;
}

/* Button styles */
button {
    background-color: #32cd32; /* Lime green */
    color: white;
    font-size: 20px;
    font-family: 'Comic Sans MS', sans-serif; /* Fun font */
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

button:hover {
    background-color: #ff4500; /* Orange-red hover */
    transform: scale(1.1); /* Slight zoom effect */
}

button:active {
    background-color: #ffa500; /* Bright orange */
}

/* Quiz container */
.quiz-container {
    max-width: 600px;
    margin: auto;
    padding: 20px;
    border: 2px solid #32cd32; /* Lime green border */
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    background-color: #ffebcd; /* Blanched almond */
}

.options label {
    cursor: pointer;
    font-size: 1.1em;
}

.result {
    display: none;
    margin-top: 20px;
    padding: 10px;
    border: 2px solid #ffa500;
    border-radius: 5px;
    background-color: #ffebcd;
    color: #ff4500;
}

.result.show {
    display: block;
}

@media screen and (max-width: 768px) {
    /* Adjustments for smaller screens */
    #story-text {
        font-size: 18px;
    }

    #story-image {
        max-width: 95%;
    }

    button {
        font-size: 18px;
        padding: 10px 20px;
    }

    .quiz-container {
        max-width: 90%;
    }
}
