/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: rgb(11, 201, 50);
    color: #000;
    line-height: 1.8;
    font-weight: bold;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    background-color: rgb(50, 201, 155);
    color: #fff;
    padding: 30px;
    text-align: center;
    border: 5px solid rgb(50, 100, 55);
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

header h1 {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

header h2 {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 20px;
}

.print-btn {
    background-color: #fff;
    color: rgb(50, 100, 55);
    border: 3px solid rgb(50, 100, 55);
    padding: 12px 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.print-btn:hover {
    background-color: rgb(50, 100, 55);
    color: #fff;
    transform: scale(1.05);
}

/* Navigation Styles */
.navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.3);
    border: 4px solid rgb(50, 100, 55);
    border-radius: 10px;
}

.navigation button {
    background-color: rgb(50, 100, 55);
    color: #fff;
    border: 3px solid rgb(50, 100, 55);
    padding: 12px 20px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navigation button:hover {
    background-color: #fff;
    color: rgb(50, 100, 55);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Main Content Styles */
main {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 30px;
    border: 5px solid rgb(50, 100, 55);
    border-radius: 10px;
    margin-bottom: 30px;
}

.content-section {
    background-color: rgba(255, 255, 255, 0.5);
    padding: 30px;
    margin-bottom: 30px;
    border: 4px solid rgb(50, 100, 55);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.content-section h3 {
    font-size: 2em;
    font-weight: bold;
    color: rgb(50, 100, 55);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 4px solid rgb(50, 100, 55);
}

.sub-section {
    margin-bottom: 30px;
}

.sub-section h4 {
    font-size: 1.5em;
    font-weight: bold;
    color: rgb(50, 100, 55);
    margin-bottom: 15px;
}

.sub-section h5 {
    font-size: 1.3em;
    font-weight: bold;
    color: rgb(50, 100, 55);
    margin-bottom: 10px;
    margin-top: 15px;
}

.sub-section p {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: justify;
}

.sub-section ul {
    margin-left: 30px;
    margin-bottom: 15px;
}

.sub-section ul li {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 10px;
}

.sub-section ol {
    margin-left: 30px;
    margin-bottom: 15px;
}

.sub-section ol li {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Special Boxes */
.definition-box {
    background-color: rgba(255, 255, 255, 0.8);
    border: 4px solid rgb(50, 100, 55);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.definition-box p {
    font-size: 1.1em;
    font-weight: bold;
    color: #000;
    margin-bottom: 15px;
}

.definition-box ul {
    margin-left: 25px;
}

.definition-box ul li {
    font-size: 1.05em;
    font-weight: bold;
    margin-bottom: 10px;
}

.example-box {
    background-color: rgba(255, 255, 200, 0.7);
    border: 4px solid rgb(50, 100, 55);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.example-box p {
    font-size: 1.05em;
    font-weight: bold;
    margin-bottom: 12px;
}

.example-box ul {
    margin-left: 25px;
}

.example-box ul li {
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 8px;
}

.observation-box {
    background-color: rgba(200, 255, 200, 0.7);
    border: 4px solid rgb(50, 100, 55);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.observation-box h5 {
    font-size: 1.3em;
    font-weight: bold;
    color: rgb(50, 100, 55);
    margin-bottom: 12px;
}

.observation-box p {
    font-size: 1.05em;
    font-weight: bold;
    margin-bottom: 12px;
}

.observation-box ul {
    margin-left: 25px;
}

.observation-box ul li {
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 8px;
}

/* Table Styles */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: rgba(255, 255, 255, 0.9);
    border: 4px solid rgb(50, 100, 55);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.info-table thead {
    background-color: rgb(50, 100, 55);
    color: #fff;
}

.info-table thead th {
    padding: 15px;
    text-align: left;
    font-size: 1.1em;
    font-weight: bold;
    border: 2px solid rgb(50, 100, 55);
}

.info-table tbody tr {
    border-bottom: 2px solid rgb(50, 100, 55);
}

.info-table tbody tr:nth-child(even) {
    background-color: rgba(200, 240, 200, 0.5);
}

.info-table tbody tr:hover {
    background-color: rgba(150, 220, 150, 0.6);
}

.info-table tbody td {
    padding: 12px;
    font-size: 1em;
    font-weight: bold;
    border: 2px solid rgb(50, 100, 55);
}

/* Flowchart Styles */
.flowchart-container {
    overflow-x: auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 4px solid rgb(50, 100, 55);
    border-radius: 10px;
    margin: 20px 0;
}

.flowchart {
    min-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flow-step {
    background-color: rgba(200, 240, 200, 0.9);
    border: 4px solid rgb(50, 100, 55);
    border-radius: 10px;
    padding: 20px;
    margin: 10px 0;
    width: 90%;
    max-width: 500px;
    font-size: 1em;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.flow-step.start {
    background-color: rgba(150, 255, 150, 0.9);
}

.flow-step.end {
    background-color: rgba(255, 200, 200, 0.9);
}

.flow-step.decision {
    background-color: rgba(255, 255, 150, 0.9);
    border-radius: 50px;
}

.flow-arrow {
    font-size: 2em;
    font-weight: bold;
    color: rgb(50, 100, 55);
    margin: 5px 0;
}

.flow-branch {
    display: flex;
    justify-content: space-around;
    width: 100%;
    gap: 20px;
    margin: 10px 0;
}

.flow-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flow-option span {
    font-size: 1.2em;
    font-weight: bold;
    color: rgb(50, 100, 55);
    background-color: rgba(255, 255, 255, 0.9);
    border: 3px solid rgb(50, 100, 55);
    border-radius: 8px;
    padding: 8px 20px;
    margin-bottom: 10px;
}

/* Q&A Styles */
.qa-item {
    background-color: rgba(255, 255, 255, 0.8);
    border: 4px solid rgb(50, 100, 55);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.question {
    font-size: 1.2em;
    font-weight: bold;
    color: rgb(50, 100, 55);
    margin-bottom: 15px;
}

.toggle-btn {
    background-color: rgb(50, 100, 55);
    color: #fff;
    border: 3px solid rgb(50, 100, 55);
    padding: 10px 20px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background-color: #fff;
    color: rgb(50, 100, 55);
    transform: scale(1.05);
}

.answer {
    margin-top: 15px;
    padding: 20px;
    background-color: rgba(200, 255, 200, 0.6);
    border: 3px solid rgb(50, 100, 55);
    border-radius: 8px;
    font-size: 1.05em;
    font-weight: bold;
    transition: all 0.3s ease;
}

.answer strong {
    color: rgb(50, 100, 55);
    font-size: 1.1em;
}

.answer ul {
    margin-left: 25px;
    margin-top: 10px;
}

.answer ul li {
    margin-bottom: 8px;
}

.hidden {
    display: none;
}

/* Footer Styles */
footer {
    background-color: rgb(50, 100, 55);
    color: #fff;
    padding: 25px;
    text-align: center;
    border: 5px solid rgb(50, 100, 55);
    border-radius: 10px;
    font-weight: bold;
}

footer p {
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Print Styles */
@media print {
    body {
        background-color: white;
        color: black;
    }
    
    .navigation,
    .print-btn,
    .toggle-btn {
        display: none;
    }
    
    .content-section {
        page-break-inside: avoid;
        border: 2px solid black;
    }
    
    .answer {
        display: block !important;
    }
    
    .info-table {
        page-break-inside: avoid;
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }
    
    header h2 {
        font-size: 1.2em;
    }
    
    .navigation {
        flex-direction: column;
    }
    
    .navigation button {
        width: 100%;
    }
    
    .content-section h3 {
        font-size: 1.5em;
    }
    
    .sub-section h4 {
        font-size: 1.2em;
    }
    
    .info-table {
        font-size: 0.9em;
    }
    
    .flow-branch {
        flex-direction: column;
    }
}