/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background-color: rgb(101, 201, 10);
    color: #1a1a1a;
    line-height: 1.8;
    font-weight: bold;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 4px solid rgb(206, 230, 168);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Header Styles */
header {
    background: linear-gradient(135deg, rgb(101, 201, 10), rgb(70, 160, 5));
    color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 3px solid rgb(206, 230, 168);
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.disclaimer {
    font-size: 1.1em;
    font-weight: bold;
    color: #fff8dc;
    font-style: italic;
    margin-top: 15px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

/* Navigation Styles */
.navigation {
    background-color: rgb(206, 230, 168);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 3px solid rgb(101, 201, 10);
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.navigation h3 {
    font-size: 1.6em;
    margin-bottom: 20px;
    color: #2d5016;
    font-weight: bold;
}

.navigation button {
    background-color: rgb(101, 201, 10);
    color: white;
    border: 2px solid rgb(206, 230, 168);
    padding: 12px 24px;
    margin: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.05em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.navigation button:hover {
    background-color: rgb(70, 160, 5);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
}

.navigation button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.print-btn {
    background-color: #2d5016 !important;
    border: 2px solid rgb(101, 201, 10) !important;
}

.print-btn:hover {
    background-color: #1a3010 !important;
}

/* Main Content Styles */
main {
    padding: 20px;
}

.content-section {
    background-color: #ffffff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    border: 3px solid rgb(206, 230, 168);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.content-section h2 {
    font-size: 2em;
    color: rgb(70, 160, 5);
    margin-bottom: 20px;
    font-weight: bold;
    border-bottom: 4px solid rgb(206, 230, 168);
    padding-bottom: 12px;
}

.content-section h3 {
    font-size: 1.6em;
    color: rgb(101, 201, 10);
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: bold;
}

.content-section h4 {
    font-size: 1.3em;
    color: #2d5016;
    margin-top: 20px;
    margin-bottom: 12px;
    font-weight: bold;
}

.content-section p {
    margin-bottom: 15px;
    font-size: 1.1em;
    text-align: justify;
    font-weight: bold;
}

.content-section ul {
    margin-left: 25px;
    margin-bottom: 15px;
}

.content-section li {
    margin-bottom: 12px;
    font-size: 1.05em;
    font-weight: bold;
}

/* Rationale Boxes */
.rationale-box {
    background-color: #f0f9e8;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 8px;
    border: 3px solid rgb(206, 230, 168);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.theory-comparison {
    background-color: #f9fdf5;
    padding: 25px;
    border-radius: 8px;
    border: 3px solid rgb(206, 230, 168);
    margin-top: 20px;
}

/* Example Boxes */
.example-box {
    background-color: #fffef0;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 8px;
    border: 3px solid rgb(206, 230, 168);
    border-left: 8px solid rgb(101, 201, 10);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

/* Case Law Boxes */
.case-box {
    background-color: #e8f5e9;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    border: 3px solid rgb(206, 230, 168);
    border-left: 10px solid rgb(70, 160, 5);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    margin: 25px 0;
    border-radius: 8px;
    border: 3px solid rgb(206, 230, 168);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    font-weight: bold;
}

thead {
    background: linear-gradient(135deg, rgb(101, 201, 10), rgb(70, 160, 5));
    color: white;
}

th {
    padding: 18px;
    text-align: left;
    font-size: 1.15em;
    font-weight: bold;
    border: 2px solid rgb(206, 230, 168);
}

td {
    padding: 15px;
    border: 2px solid rgb(206, 230, 168);
    font-size: 1.05em;
    font-weight: bold;
}

tbody tr:nth-child(even) {
    background-color: #f0f9e8;
}

tbody tr:hover {
    background-color: rgb(206, 230, 168);
    transition: background-color 0.3s ease;
}

/* Flowchart Styles */
.flowchart {
    padding: 30px;
    background-color: #fafffe;
    border-radius: 10px;
    border: 3px solid rgb(206, 230, 168);
    margin: 25px 0;
}

.flow-box {
    background-color: white;
    border: 3px solid rgb(101, 201, 10);
    border-radius: 8px;
    padding: 20px;
    margin: 15px auto;
    max-width: 700px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-weight: bold;
}

.start-box {
    background: linear-gradient(135deg, rgb(101, 201, 10), rgb(70, 160, 5));
    color: white;
    font-size: 1.3em;
    border: 3px solid rgb(206, 230, 168);
}

.question-box {
    background-color: rgb(206, 230, 168);
    color: #1a1a1a;
    font-size: 1.2em;
    border: 3px solid rgb(101, 201, 10);
}

.answer-box {
    background-color: #e8f5e9;
    border: 3px solid rgb(70, 160, 5);
    font-size: 1.1em;
    text-align: left;
}

.end-box {
    background: linear-gradient(135deg, rgb(70, 160, 5), rgb(50, 120, 3));
    color: white;
    font-size: 1.3em;
    border: 3px solid rgb(206, 230, 168);
}

.flow-arrow {
    text-align: center;
    font-size: 2.5em;
    color: rgb(101, 201, 10);
    font-weight: bold;
    margin: 10px 0;
}

.flow-branches {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    flex-wrap: wrap;
}

.branch-left,
.branch-right {
    flex: 1;
    min-width: 300px;
    margin: 10px;
}

.flow-arrow-side {
    text-align: center;
    font-size: 1.8em;
    color: rgb(101, 201, 10);
    font-weight: bold;
    margin: 15px 0;
}

.flow-detail {
    font-size: 0.95em;
    display: block;
    margin-top: 10px;
    color: #2d5016;
    font-weight: bold;
}

/* Question and Answer Styles */
.question-container {
    margin-top: 25px;
}

.question-box {
    background-color: white;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 8px;
    border: 3px solid rgb(206, 230, 168);
    border-left: 8px solid rgb(101, 201, 10);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.question-box h3 {
    color: rgb(70, 160, 5);
    margin-bottom: 15px;
    font-weight: bold;
}

.question-box p {
    color: #1a1a1a;
    font-size: 1.15em;
    margin-bottom: 20px;
    font-weight: bold;
}

.reveal-btn {
    background-color: rgb(101, 201, 10);
    color: white;
    border: 2px solid rgb(206, 230, 168);
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.reveal-btn:hover {
    background-color: rgb(70, 160, 5);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
}

.reveal-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.answer {
    margin-top: 20px;
    padding: 25px;
    background-color: #f0f9e8;
    border-radius: 8px;
    border: 3px solid rgb(206, 230, 168);
    transition: all 0.5s ease;
    max-height: 5000px;
    overflow: hidden;
}

.answer.hidden {
    max-height: 0;
    padding: 0;
    margin: 0;
    border: none;
    opacity: 0;
}

.answer h4 {
    color: rgb(70, 160, 5);
    margin-bottom: 15px;
    font-weight: bold;
}

.answer p {
    margin-bottom: 15px;
    font-weight: bold;
}

.answer ul {
    margin-left: 25px;
    margin-bottom: 15px;
}

.answer li {
    margin-bottom: 10px;
    font-weight: bold;
}

/* Summary Box */
.summary-box {
    background: linear-gradient(135deg, #f0f9e8, #e8f5e9);
    padding: 30px;
    border-radius: 8px;
    border: 3px solid rgb(206, 230, 168);
    border-left: 10px solid rgb(101, 201, 10);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.summary-box li {
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: bold;
    color: #1a1a1a;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, rgb(101, 201, 10), rgb(70, 160, 5));
    color: white;
    padding: 25px;
    text-align: center;
    border-radius: 8px;
    border: 3px solid rgb(206, 230, 168);
    margin-top: 30px;
    font-weight: bold;
}

footer p {
    margin: 8px 0;
    font-size: 1.1em;
    font-weight: bold;
}

/* Print Styles */
@media print {
    body {
        background-color: white;
        color: black;
    }

    .container {
        border: none;
        box-shadow: none;
    }

    .navigation {
        display: none;
    }

    .reveal-btn {
        display: none;
    }

    .answer {
        display: block !important;
        max-height: none !important;
        opacity: 1 !important;
        padding: 25px !important;
        margin-top: 20px !important;
        border: 2px solid #ccc !important;
    }

    .content-section {
        page-break-inside: avoid;
        border: 2px solid #ccc;
    }

    header,
    footer {
        background: #eee;
        color: black;
        border: 2px solid #ccc;
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .container {
        padding: 10px;
    }

    header h1 {
        font-size: 1.8em;
    }

    header h2 {
        font-size: 1.3em;
    }

    .navigation button {
        width: 100%;
        margin: 5px 0;
    }

    .content-section {
        padding: 15px;
    }

    .flow-branches {
        flex-direction: column;
    }

    table {
        font-size: 0.9em;
    }

    th,
    td {
        padding: 10px;
    }
}