/* General Reset and Body Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background-color: rgb(101, 150, 50);
    color: #000000;
    line-height: 1.8;
    font-weight: bold;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgb(150, 201, 50);
    border: 8px solid rgb(199, 230, 30);
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

/* Header Styling */
header {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgb(118, 230, 30), rgb(101, 201, 50));
    border: 5px solid rgb(118, 230, 30);
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

header h1 {
    font-size: 3em;
    color: #000000;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.3);
    margin-bottom: 15px;
}

header h2 {
    font-size: 1.8em;
    color: #1a1a1a;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Print Button */
.print-btn {
    background-color: #ffffff;
    color: rgb(101, 201, 50);
    border: 3px solid rgb(250, 230, 30);
    padding: 12px 30px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.print-btn:hover {
    background-color: rgb(118, 230, 30);
    color: #000000;
    transform: scale(1.05);
}

/* Navigation */
.navigation {
    background-color: rgba(118, 230, 30, 0.3);
    border: 5px solid rgb(118, 230, 30);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
}

.navigation h3 {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #000000;
}

.navigation button {
    background-color: #ffffff;
    color: rgb(101, 201, 50);
    border: 3px solid rgb(118, 230, 30);
    padding: 10px 20px;
    margin: 8px;
    font-size: 1em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.navigation button:hover {
    background-color: rgb(118, 230, 30);
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Content Sections */
.content-section {
    background-color: rgba(255, 255, 255, 0.15);
    border: 5px solid rgb(118, 230, 30);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.content-section h2 {
    font-size: 2.2em;
    font-weight: bold;
    color: #000000;
    margin-bottom: 20px;
    text-decoration: underline;
    text-decoration-color: rgb(118, 230, 30);
    text-decoration-thickness: 4px;
}

.content-section h3 {
    font-size: 1.8em;
    font-weight: bold;
    color: #0a0a0a;
    margin-top: 25px;
    margin-bottom: 15px;
}

.content-section h4 {
    font-size: 1.5em;
    font-weight: bold;
    color: #1a1a1a;
    margin-top: 20px;
    margin-bottom: 12px;
}

.content-section p {
    font-size: 1.15em;
    font-weight: bold;
    color: #000000;
    margin-bottom: 15px;
    text-align: justify;
}

.content-section ul {
    margin-left: 30px;
    margin-bottom: 20px;
}

.content-section li {
    font-size: 1.1em;
    font-weight: bold;
    color: #000000;
    margin-bottom: 12px;
    line-height: 1.8;
}

/* Example Box */
.example-box {
    background-color: rgba(255, 255, 255, 0.25);
    border: 4px solid rgb(118, 230, 30);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    font-style: italic;
}

.example-box p {
    font-size: 1.1em;
    font-weight: bold;
    color: #000000;
}

/* Table Styling */
.table-container {
    overflow-x: auto;
    margin: 25px 0;
    border: 5px solid rgb(118, 230, 30);
    border-radius: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.2);
}

thead {
    background-color: rgb(118, 230, 30);
}

th {
    padding: 18px;
    text-align: left;
    font-size: 1.3em;
    font-weight: bold;
    color: #000000;
    border: 3px solid rgb(101, 201, 50);
}

td {
    padding: 15px;
    font-size: 1.1em;
    font-weight: bold;
    color: #000000;
    border: 2px solid rgb(118, 230, 30);
}

tbody tr:nth-child(even) {
    background-color: rgba(118, 230, 30, 0.2);
}

tbody tr:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.15);
}

tbody tr:hover {
    background-color: rgba(118, 230, 30, 0.4);
}

/* Flowchart Styling */
.flowchart {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.15);
    border: 5px solid rgb(118, 230, 30);
    border-radius: 15px;
    margin: 25px 0;
}

.flow-box {
    background-color: rgba(255, 255, 255, 0.3);
    border: 4px solid rgb(118, 230, 30);
    border-radius: 12px;
    padding: 20px;
    margin: 10px 0;
    min-width: 350px;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.flow-box strong {
    font-size: 1.2em;
    font-weight: bold;
    color: #000000;
}

.flow-box.start {
    background-color: rgba(118, 230, 30, 0.5);
    border-color: #000000;
    border-width: 5px;
}

.flow-box.decision {
    background-color: rgba(255, 255, 255, 0.4);
    border-style: dashed;
}

.flow-box.valid {
    background-color: rgba(118, 230, 30, 0.6);
    border-color: #000000;
    border-width: 5px;
    font-size: 1.3em;
}

.flow-arrow {
    font-size: 2.5em;
    font-weight: bold;
    color: #000000;
    margin: 5px 0;
}

.flow-note {
    background-color: rgba(255, 200, 200, 0.3);
    border: 4px solid #ff0000;
    border-radius: 10px;
    padding: 15px;
    margin-top: 25px;
    max-width: 650px;
    text-align: center;
}

.flow-note strong {
    font-size: 1.15em;
    font-weight: bold;
    color: #000000;
}

/* Question and Answer Section */
.qa-container {
    margin-top: 25px;
}

.question-box {
    margin-bottom: 20px;
    border: 4px solid rgb(118, 230, 30);
    border-radius: 10px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.2);
}

.question-btn {
    width: 100%;
    background-color: rgb(118, 230, 30);
    color: #000000;
    border: none;
    padding: 20px;
    text-align: left;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.question-btn:hover {
    background-color: rgba(118, 230, 30, 0.7);
    transform: scale(1.02);
}

.question-btn::before {
    content: "▶ ";
    margin-right: 10px;
    font-size: 1.2em;
}

.answer {
    display: none;
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.3);
    border-top: 3px solid rgb(118, 230, 30);
}

.answer.show {
    display: block;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

.answer p {
    font-size: 1.1em;
    font-weight: bold;
    color: #000000;
    margin-bottom: 12px;
}

.answer ul {
    margin-left: 30px;
    margin-top: 10px;
}

.answer li {
    font-size: 1.05em;
    font-weight: bold;
    color: #000000;
    margin-bottom: 10px;
}

/* Footer */
footer {
    text-align: center;
    padding: 25px;
    background-color: rgba(118, 230, 30, 0.4);
    border: 5px solid rgb(118, 230, 30);
    border-radius: 12px;
    margin-top: 40px;
}

footer p {
    font-size: 1.1em;
    font-weight: bold;
    color: #000000;
    margin: 8px 0;
}

/* Print Styles */
@media print {
    body {
        background-color: white;
        color: black;
    }
    
    .container {
        border: 2px solid black;
        box-shadow: none;
    }
    
    .print-btn {
        display: none;
    }
    
    .navigation {
        display: none;
    }
    
    .content-section {
        page-break-inside: avoid;
        border: 2px solid black;
    }
    
    .question-btn {
        display: none;
    }
    
    .answer {
        display: block !important;
        border: 1px solid black;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    header h2 {
        font-size: 1.3em;
    }
    
    .navigation button {
        font-size: 0.9em;
        padding: 8px 15px;
        margin: 5px;
    }
    
    .content-section h2 {
        font-size: 1.6em;
    }
    
    .content-section h3 {
        font-size: 1.4em;
    }
    
    table {
        font-size: 0.9em;
    }
    
    .flow-box {
        min-width: 250px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background-color: rgb(118, 230, 30);
    color: #000000;
}