/* CSS for Literal Rule Project - Interpretation of Statutes */

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    background-color: rgb(101, 201, 10);
    color: #000000;
    line-height: 1.8;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgb(101, 201, 10);
    border: 5px solid rgb(206, 230, 168);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Header Styles */
header {
    background: linear-gradient(135deg, rgb(80, 180, 0), rgb(101, 201, 10));
    color: #003300;
    text-align: center;
    padding: 40px 20px;
    border-bottom: 5px solid rgb(206, 230, 168);
    border-radius: 5px 5px 0 0;
}

header h1 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

header h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #004400;
}

.disclaimer {
    font-size: 14px;
    font-weight: bold;
    font-style: italic;
    color: #660000;
    margin-top: 15px;
    background-color: rgba(255, 255, 255, 0.3);
    padding: 10px;
    border-radius: 5px;
}

/* Navigation Menu */
#nav-menu {
    background-color: rgb(120, 210, 30);
    padding: 25px;
    border-bottom: 5px solid rgb(206, 230, 168);
    border-top: 5px solid rgb(206, 230, 168);
    position: sticky;
    top: 0;
    z-index: 1000;
}

#nav-menu h3 {
    font-size: 22px;
    font-weight: bold;
    color: #003300;
    margin-bottom: 15px;
    text-align: center;
}

#nav-menu ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

#nav-menu li {
    margin: 0;
}

.nav-btn {
    width: 100%;
    padding: 12px 15px;
    background-color: rgb(206, 230, 168);
    color: #003300;
    border: 3px solid rgb(80, 180, 0);
    border-radius: 5px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.nav-btn:hover {
    background-color: rgb(150, 220, 100);
    transform: translateX(5px);
    border-color: rgb(206, 230, 168);
}

.print-btn {
    display: block;
    width: 200px;
    margin: 20px auto 0;
    padding: 15px 25px;
    background-color: #003300;
    color: rgb(206, 230, 168);
    border: 3px solid rgb(206, 230, 168);
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.print-btn:hover {
    background-color: #005500;
    transform: scale(1.05);
}

/* Main Content */
main {
    padding: 30px;
}

.content-section {
    background-color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    padding: 30px;
    border: 4px solid rgb(206, 230, 168);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.content-section h2 {
    font-size: 28px;
    font-weight: bold;
    color: #003300;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 4px solid rgb(206, 230, 168);
}

.content-section h3 {
    font-size: 22px;
    font-weight: bold;
    color: #004400;
    margin: 25px 0 15px 0;
}

.content-section h4 {
    font-size: 18px;
    font-weight: bold;
    color: #005500;
    margin: 20px 0 10px 0;
}

.content-section p {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: justify;
    color: #000000;
}

.content-section ul {
    margin: 15px 0 15px 40px;
    font-weight: bold;
}

.content-section ul li {
    margin-bottom: 10px;
    font-size: 16px;
    color: #000000;
    font-weight: bold;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    margin: 20px 0;
    border: 4px solid rgb(206, 230, 168);
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    font-weight: bold;
}

table thead {
    background-color: rgb(80, 180, 0);
    color: white;
}

table th {
    padding: 15px;
    text-align: left;
    font-size: 17px;
    font-weight: bold;
    border: 3px solid rgb(206, 230, 168);
}

table td {
    padding: 12px 15px;
    border: 3px solid rgb(206, 230, 168);
    font-size: 15px;
    font-weight: bold;
    color: #000000;
}

table tbody tr:nth-child(even) {
    background-color: rgba(206, 230, 168, 0.3);
}

table tbody tr:hover {
    background-color: rgba(206, 230, 168, 0.5);
}

/* Case Box Styles */
.case-box {
    background-color: rgba(206, 230, 168, 0.4);
    border: 4px solid rgb(206, 230, 168);
    border-left: 8px solid rgb(80, 180, 0);
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.case-box h4 {
    font-size: 20px;
    font-weight: bold;
    color: #003300;
    margin-bottom: 15px;
}

.case-box p {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #000000;
}

.case-box strong {
    color: #004400;
    font-weight: bold;
}

/* Example Box Styles */
.example-box {
    background-color: rgba(255, 255, 255, 0.95);
    border: 4px solid rgb(206, 230, 168);
    border-left: 8px solid rgb(101, 201, 10);
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.example-box h4 {
    font-size: 18px;
    font-weight: bold;
    color: #003300;
    margin-bottom: 12px;
}

.example-box p {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 10px;
}

.example-box ul {
    margin: 10px 0 10px 30px;
}

.example-box ul li {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 8px;
}

/* Principle Box Styles */
.principle-box {
    background-color: rgba(206, 230, 168, 0.5);
    border: 3px solid rgb(206, 230, 168);
    padding: 20px;
    margin: 15px 0;
    border-radius: 8px;
    border-left: 6px solid rgb(80, 180, 0);
}

.principle-box h4 {
    font-size: 18px;
    font-weight: bold;
    color: #003300;
    margin-bottom: 10px;
}

.principle-box p {
    font-size: 15px;
    font-weight: bold;
}

.principle-list, .application-list, .conclusion-list, .reference-list {
    list-style-type: disc;
    margin-left: 40px;
    font-weight: bold;
}

.principle-list li, .application-list li, .conclusion-list li, .reference-list li {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: bold;
}

/* Hierarchy Box */
.hierarchy-box {
    background-color: rgba(255, 255, 255, 0.95);
    border: 4px solid rgb(206, 230, 168);
    padding: 25px;
    margin: 20px 0;
    border-radius: 8px;
    text-align: center;
}

.hierarchy-box p {
    font-size: 17px;
    font-weight: bold;
    margin: 10px 0;
    color: #003300;
}

/* Flowchart Styles */
.flowchart-container {
    background-color: rgba(255, 255, 255, 0.95);
    border: 5px solid rgb(206, 230, 168);
    padding: 30px;
    margin: 25px 0;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flow-box {
    padding: 20px 30px;
    border-radius: 8px;
    margin: 10px 0;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    max-width: 600px;
    width: 100%;
    border: 4px solid rgb(206, 230, 168);
}

.start-box {
    background-color: rgb(80, 180, 0);
    color: white;
    font-size: 18px;
    border: 4px solid rgb(206, 230, 168);
}

.end-box {
    background-color: rgb(80, 180, 0);
    color: white;
    font-size: 18px;
    border: 4px solid rgb(206, 230, 168);
}

.process-box {
    background-color: rgba(206, 230, 168, 0.6);
    color: #003300;
    border: 4px solid rgb(80, 180, 0);
}

.decision-box {
    background-color: rgba(255, 255, 200, 0.8);
    color: #003300;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    padding: 25px;
    border: 4px solid rgb(206, 230, 168);
}

.alternative-box {
    background-color: rgba(255, 200, 200, 0.7);
    color: #330000;
    border: 4px solid rgb(206, 230, 168);
}

.warning-box {
    background-color: rgba(255, 165, 0, 0.4);
    color: #330000;
    border: 4px solid rgb(206, 230, 168);
}

.flow-arrow {
    font-size: 40px;
    color: rgb(80, 180, 0);
    font-weight: bold;
    margin: 0;
}

.flow-split {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 800px;
    margin: 10px 0;
}

.flow-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.flow-label {
    font-weight: bold;
    color: rgb(80, 180, 0);
    font-size: 18px;
    margin: 5px 0;
}

/* Q&A Section Styles */
.qa-block {
    background-color: rgba(206, 230, 168, 0.3);
    border: 4px solid rgb(206, 230, 168);
    border-radius: 8px;
    margin: 20px 0;
    overflow: hidden;
}

.qa-toggle {
    width: 100%;
    padding: 18px 20px;
    background-color: rgb(206, 230, 168);
    color: #003300;
    border: none;
    border-bottom: 3px solid rgb(80, 180, 0);
    font-size: 17px;
    font-weight: bold;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.qa-toggle:hover {
    background-color: rgb(150, 220, 100);
}

.qa-answer {
    display: none;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    border-top: 3px solid rgb(206, 230, 168);
    animation: slideDown 0.3s ease;
}

.qa-answer.show {
    display: block;
}

.qa-answer p {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
}

.qa-answer ul {
    margin-left: 35px;
    font-weight: bold;
}

.qa-answer ul li {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 10px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

/* Conclusion Box */
.conclusion-box {
    background-color: rgba(206, 230, 168, 0.5);
    border: 4px solid rgb(80, 180, 0);
    border-left: 8px solid rgb(80, 180, 0);
    padding: 25px;
    margin: 25px 0;
    border-radius: 8px;
}

.conclusion-box p {
    font-size: 17px;
    font-weight: bold;
    color: #003300;
    text-align: justify;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, rgb(80, 180, 0), rgb(101, 201, 10));
    color: #003300;
    text-align: center;
    padding: 30px 20px;
    border-top: 5px solid rgb(206, 230, 168);
    border-radius: 0 0 5px 5px;
    margin-top: 30px;
}

footer p {
    font-size: 16px;
    font-weight: bold;
    margin: 8px 0;
}

/* Print Styles */
@media print {
    body {
        background-color: white;
        color: black;
        font-weight: bold;
    }
    
    .container {
        border: none;
        box-shadow: none;
    }
    
    #nav-menu {
        display: none;
    }
    
    .print-btn {
        display: none;
    }
    
    .qa-toggle {
        display: none;
    }
    
    .qa-answer {
        display: block !important;
        border: 2px solid #000;
        margin: 10px 0;
    }
    
    .content-section {
        page-break-inside: avoid;
        border: 2px solid #000;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        font-weight: bold;
    }
    
    table {
        page-break-inside: avoid;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    header h1 {
        font-size: 24px;
    }
    
    header h2 {
        font-size: 18px;
    }
    
    #nav-menu ul {
        grid-template-columns: 1fr;
    }
    
    .content-section {
        padding: 20px;
    }
    
    .content-section h2 {
        font-size: 22px;
    }
    
    .content-section h3 {
        font-size: 18px;
    }
    
    table th, table td {
        font-size: 14px;
        padding: 10px;
    }
    
    .flow-split {
        flex-direction: column;
    }
    
    .flow-box {
        font-size: 14px;
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 20px;
    }
    
    .content-section h2 {
        font-size: 20px;
    }
    
    .content-section p, .content-section ul li {
        font-size: 14px;
    }
    
    table th, table td {
        font-size: 12px;
        padding: 8px;
    }
}

/* Strong and Bold Emphasis */
strong {
    font-weight: bold;
    color: #003300;
}

em {
    font-style: italic;
    font-weight: bold;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}