/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: rgb(101, 201, 10);
    font-family: 'Times New Roman', serif;
    line-height: 1.8;
    color: #000000;
    font-weight: bold;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 30px;
    background-color: rgb(101, 201, 10);
    border: 5px solid rgb(206, 230, 168);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Header Styles */
header {
    text-align: center;
    padding: 30px;
    background-color: rgba(206, 230, 168, 0.3);
    border: 3px solid rgb(206, 230, 168);
    border-radius: 8px;
    margin-bottom: 30px;
}

header h1 {
    font-size: 32px;
    font-weight: bold;
    color: #003300;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

header h2 {
    font-size: 24px;
    font-weight: bold;
    color: #004400;
    margin-bottom: 20px;
}

.project-info {
    text-align: left;
    display: inline-block;
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgb(206, 230, 168);
    border-radius: 5px;
}

.project-info p {
    font-size: 16px;
    font-weight: bold;
    color: #002200;
    margin: 8px 0;
}

.print-btn {
    margin-top: 20px;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: bold;
    background-color: #003300;
    color: rgb(206, 230, 168);
    border: 3px solid rgb(206, 230, 168);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.print-btn:hover {
    background-color: #005500;
    transform: scale(1.05);
}

/* Navigation Menu */
.nav-menu {
    background-color: rgba(206, 230, 168, 0.4);
    border: 3px solid rgb(206, 230, 168);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.nav-menu h3 {
    font-size: 22px;
    font-weight: bold;
    color: #003300;
    margin-bottom: 15px;
    text-align: center;
}

.nav-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    font-size: 16px;
    font-weight: bold;
    background-color: #004400;
    color: rgb(206, 230, 168);
    border: 2px solid rgb(206, 230, 168);
    border-radius: 5px;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: #006600;
    transform: translateX(10px);
}

/* Section Styles */
.section {
    background-color: rgba(255, 255, 255, 0.15);
    border: 4px solid rgb(206, 230, 168);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.section h2 {
    font-size: 28px;
    font-weight: bold;
    color: #002200;
    margin-bottom: 20px;
    text-align: center;
    text-decoration: underline;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section h3 {
    font-size: 22px;
    font-weight: bold;
    color: #003300;
    margin-top: 25px;
    margin-bottom: 15px;
}

.section h4 {
    font-size: 18px;
    font-weight: bold;
    color: #004400;
    margin-top: 20px;
    margin-bottom: 12px;
}

.section p {
    font-size: 16px;
    font-weight: bold;
    color: #001100;
    margin-bottom: 15px;
    text-align: justify;
}

.section ul {
    margin-left: 30px;
    margin-bottom: 15px;
}

.section li {
    font-size: 16px;
    font-weight: bold;
    color: #001100;
    margin-bottom: 10px;
}

/* Table of Contents */
.toc p {
    font-size: 16px;
    font-weight: bold;
    color: #002200;
    padding: 8px 0;
    border-bottom: 1px solid rgb(206, 230, 168);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: rgba(255, 255, 255, 0.2);
    border: 3px solid rgb(206, 230, 168);
}

thead {
    background-color: rgba(0, 68, 0, 0.7);
}

thead th {
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    color: rgb(206, 230, 168);
    text-align: left;
    border: 2px solid rgb(206, 230, 168);
}

tbody td {
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    color: #001100;
    border: 2px solid rgb(206, 230, 168);
}

tbody tr:nth-child(even) {
    background-color: rgba(206, 230, 168, 0.2);
}

tbody tr:hover {
    background-color: rgba(206, 230, 168, 0.4);
}

/* Special Boxes */
.definition-box,
.example-box,
.condition-box,
.limitation-box,
.case-box {
    background-color: rgba(206, 230, 168, 0.3);
    border: 3px solid rgb(206, 230, 168);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.definition-box p,
.example-box p,
.condition-box p,
.limitation-box p,
.case-box p {
    font-size: 16px;
    font-weight: bold;
    color: #002200;
}

.case-box {
    background-color: rgba(255, 255, 200, 0.3);
    border-color: rgb(180, 200, 140);
}

.case-box h4 {
    font-size: 18px;
    font-weight: bold;
    color: #003300;
    margin-bottom: 15px;
    text-decoration: underline;
}

/* Flowchart Styles */
.flowchart {
    margin: 30px 0;
    padding: 20px;
    background-color: rgba(206, 230, 168, 0.2);
    border: 3px solid rgb(206, 230, 168);
    border-radius: 8px;
}

.flow-step {
    background-color: #004400;
    color: rgb(206, 230, 168);
    padding: 15px;
    margin: 10px auto;
    max-width: 600px;
    text-align: center;
    border: 3px solid rgb(206, 230, 168);
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
}

.flow-arrow {
    text-align: center;
    font-size: 30px;
    font-weight: bold;
    color: #003300;
    margin: 5px 0;
}

.flow-decision {
    background-color: #006600;
    color: rgb(206, 230, 168);
    padding: 20px;
    margin: 10px auto;
    max-width: 600px;
    text-align: center;
    border: 3px solid rgb(206, 230, 168);
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
}

.flow-decision div {
    margin: 10px 0;
    padding: 10px;
    background-color: rgba(206, 230, 168, 0.2);
    border: 2px solid rgb(206, 230, 168);
    border-radius: 5px;
}

/* Q&A Section */
.qa-container {
    margin-top: 20px;
}

.question-box {
    margin-bottom: 20px;
    border: 3px solid rgb(206, 230, 168);
    border-radius: 8px;
    overflow: hidden;
}

.qa-button {
    width: 100%;
    padding: 18px;
    font-size: 17px;
    font-weight: bold;
    background-color: #004400;
    color: rgb(206, 230, 168);
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.qa-button:hover {
    background-color: #006600;
}

.answer-box {
    display: none;
    padding: 20px;
    background-color: rgba(206, 230, 168, 0.3);
    border-top: 3px solid rgb(206, 230, 168);
}

.answer-box.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

.answer-box p {
    font-size: 16px;
    font-weight: bold;
    color: #002200;
    margin-bottom: 10px;
}

.answer-box ul {
    margin-left: 25px;
}

.answer-box li {
    font-size: 16px;
    font-weight: bold;
    color: #002200;
    margin-bottom: 8px;
}

/* Footer */
footer {
    text-align: center;
    padding: 25px;
    background-color: rgba(206, 230, 168, 0.3);
    border: 3px solid rgb(206, 230, 168);
    border-radius: 8px;
    margin-top: 30px;
}

footer p {
    font-size: 16px;
    font-weight: bold;
    color: #003300;
    margin: 8px 0;
}

/* Print Styles */
@media print {
    body {
        background-color: white;
    }
    
    .container {
        border: none;
        box-shadow: none;
    }
    
    .nav-menu,
    .print-btn {
        display: none;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    .answer-box {
        display: block !important;
    }
    
    .qa-button {
        background-color: #333;
        color: white;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin: 10px;
    }
    
    header h1 {
        font-size: 24px;
    }
    
    header h2 {
        font-size: 20px;
    }
    
    .section h2 {
        font-size: 22px;
    }
    
    .section h3 {
        font-size: 18px;
    }
    
    table {
        font-size: 14px;
    }
    
    .flow-step,
    .flow-decision {
        font-size: 14px;
        padding: 12px;
    }
}

/* Accessibility */
*:focus {
    outline: 3px solid rgb(206, 230, 168);
    outline-offset: 2px;
}

button:focus {
    outline: 3px solid rgb(206, 230, 168);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Additional Styling for Better Readability */
strong {
    font-weight: bold;
}

em {
    font-style: italic;
    font-weight: bold;
}

/* Link Styling (if any added) */
a {
    color: #003300;
    font-weight: bold;
    text-decoration: underline;
}

a:hover {
    color: #005500;
}

/* Table Specific Styles */
.abbreviations-table,
.timeline-table,
.elements-table,
.case-table,
.comparison-table,
.conflict-table {
    margin: 25px 0;
}

/* Comparison Table Special Styling */
.comparison-table tbody td {
    vertical-align: top;
}

/* Timeline Table Special Styling */
.timeline-table tbody tr {
    transition: all 0.3s ease;
}

.timeline-table tbody tr:hover {
    transform: scale(1.02);
}