/* Styles */
body {
    font-family: 'Georgia', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #eb9b9b;
    margin-bottom: 25px; /* keep larger than footer height */
}

header {
    background: #eb9b9b;
    color: #fff;
    padding: 10px 0;
    text-align: center;
    position: relative; /* to absolutely position images inside */
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
    margin: 0 4rem; /* 4rem on left and right */
    letter-spacing: -0.05rem; 
    line-height: 1.2;
    z-index: 1;
}
.leaf {
    position: absolute;   /* in corners */
    z-index: 0;           
    opacity: 0.9;        
}

/* Top-left corner */
.leaf-top-left {
    top: 0;       
    left: 0; 
    width: 3.3rem;          
    height: auto;     
    transform: translate(15%, 20%); 
    z-index: 0;
    /* move the image further outward to make closer to margin (had this at -20,-20 before) */
}

/* Bottom-right corner */
.leaf-bottom-right {
    bottom: 0;   
    right: 0;   
    width: 4rem;          
    height: auto;     
    transform: translate(-14%, -10%); /* (had this at 20,20 before) */
    z-index: 0;
}


nav ul {
    display: flex;
    flex-wrap: wrap;     
    list-style: none;
    justify-content: center;
    gap: 0rem;
    margin: 0rem 3rem;
    padding: 0;
    z-index: 1;
}

nav ul li {
    display: inline;
    margin: 0.5rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

section {
    padding: 20px;
    margin: 20px 0;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

footer {
    text-align: center;
    padding: 1px 0;
    background: #ffffff; opacity: 0.6;
    color: #ffffff;
    position: relative;
    width: 100%;
    bottom: 0;
    font-size: 0.5em; /* Smaller text */
    height: 40px; /* Reduced height */
    line-height: 1; /* Tighter line spacing */
    z-index: 1000; /* Ensures footer stays above content */
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
}

form label {
    margin-bottom: 5px;
}

form input, form textarea {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    padding: 10px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover {
    background: #df8686;
}


/* QUIZ! */
#quiz-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

#question {
    margin-bottom: 20px;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-btn {
    padding: 10px;
    background: #eb9b9b;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: left;
}

.option-btn:hover {
    background: #eb9b9b;
}

#result {
    margin: 20px 0;
    font-weight: bold;
}

#next-btn {
    padding: 10px 20px;
    background: #eb9b9b;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#next-btn:hover {
    background: #eb9b9b;
}

.correct { background: #4CAF50 !important; }
.incorrect { background: #f44336 !important; }

/* welcome to radiation quiz button */
.quiz-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 25px;
    background: #eb9b9b;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.quiz-btn:hover {
    background: #eda6a6; /* lighter pink on hover */
}

/* Header buttons */
.nav-btn {
    background: rgb(246, 109, 109); 
    color: #fff !important; /* Override default  color */
    padding: 8px 15px !important;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
    margin-left: 5px; /* spacing from other links */
    height: 20px; /* Fixed height */
}

.nav-btn:hover {
    background: #eba1a1; 
}


/* Basics page */
#basics .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border: none;
}

.basics-list {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #4CAF50;
}

.card {
    background: #fff;
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card h4 {
    color: #4CAF50;
    margin-top: 0;
}

/* Basics Button in Navigation */
.basics-btn {
    background: rgb(230,117,114); /* color of button */
    color: #fff !important;
    padding: 8px 15px !important;
    border-radius: 5px;
    margin-left: 5px;
    transition: background 0.3s;
    display: inline-block;
}

.basics-btn:hover {
    background: #eda6a6; /* lighter grey on hover */
}

.hero {
    /* Overwrite the default section styling for this one section */
    position: relative;
    background: #f2c6c6; /* or a lighter pink if you prefer, or a gradient */
    color: #fff;         /* White text for contrast */
    padding: 60px 20px;  /* Larger padding for a bigger hero feel */
    margin: 20px 0;      /* Or remove margin if you want it flush with header */
    border-radius: 0;    /* Remove corners if desired */
    box-shadow: none;    /* Remove default box-shadow from 'section' rule */
    text-align: center;  /* Center text in hero */
    overflow: hidden;           /* hides overflowing images */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 1; /* ensures content is above background images */
  }
  .hero-content h2 {
    font-size: 2.5rem; /* or bigger */
    color: #fff;       /* if you want white text on pink background */
    margin-bottom: 1rem;
  }
  .hero-content p {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 2rem;
  }
  
.hero h2 {
    font-size: 2.2rem;
}


.hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 1.5rem; /* center the text block & add spacing */
}


/* Add these styles to your existing CSS file */

/* Container for content */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Card styling */
.card {
    background: #f9f9f9;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    border-left: 5px solid #eb9b9b;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card h4 {
    color: #eb9b9b;
    margin-top: 0;
}

/* Image styling */
.symptom-image, .stage-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


/* List styling */
ul {
    list-style-type: disc;
    padding-left: 20px;
}

ul li {
    margin-bottom: 10px;
}


/* Add these styles to your existing CSS file */

/* Container for content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Grid layout for text and images */
.content-grid {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.text-content {
    flex: 2;
}

.image-content {
    flex: 1;
    text-align: center;
}

/* Image styling */
.symptom-image, .stage-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.image-credit {
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
}

/* Card styling */
.card {
    background: #f9f9f9;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    border-left: 5px solid #eb9b9b;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card h4 {
    color: #eb9b9b;
    margin-top: 0;
}

/* List styling */
ul {
    list-style-type: disc;
    padding-left: 20px;
}

ul li {
    margin-bottom: 10px;
}



/* Add more color to headers and text */
 h2, h3, h4 {
    color: #eb9b9b;
}

p {
    color: #555;
}

/* Additional CSS for the accordion effect */
/* Additional CSS for the accordion effect */
.accordion {
    background-color: #f9c6c6; /* Lighter pink background */
    border: 1px solid #ddd;
    border-radius: 10px;
    margin: 10px 0;
    padding: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: #333; /* Darker text color for contrast */
}

.accordion:hover {
    background-color: #f1b6b6; /* Slightly darker pink on hover */
}

.accordion.active {
    background-color: #eb9b9b; /* Original pink for active state */
}

.accordion.active h2,
.accordion.active h3,
.accordion.active h4 {
    color: white !important; /* Force white text for active state */
}

.panel {
    display: none;
    padding: 10px 20px;
    background-color: white;
    border-radius: 0 0 10px 10px;
    border: 1px solid #ddd;
    border-top: none;
    margin-bottom: 10px; /* Add space between panels */
}

.panel.show {
    display: block;
}

/* Ensure the header stays fixed at the top */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #eb9b9b;
    padding: 10px 0;
}


/* Default heading styles */
h2, h3, h4 {
    color: #eb9b9b; /* Default pink color for headings */
}