/* Facebook E-Book CSS Styling */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: rgb(31, 224, 199);
    color: #000000;
    line-height: 1.8;
    font-weight: bold;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 5px solid rgb(208, 31, 224);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Header Styles */
header {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgb(31, 224, 199), rgb(208, 31, 224));
    border: 3px solid rgb(208, 31, 224);
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

header h1 {
    font-size: 3em;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

header h2 {
    font-size: 1.5em;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
}

/* Navigation Styles */
.navigation {
    background-color: rgb(31, 224, 199);
    border: 4px solid rgb(208, 31, 224);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.navigation h3 {
    font-size: 1.8em;
    font-weight: bold;
    color: #000000;
    margin-bottom: 15px;
    text-align: center;
}

.nav-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
}

.nav-list li {
    margin: 0;
}

.nav-btn {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1em;
    font-weight: bold;
    background-color: rgb(208, 31, 224);
    color: #ffffff;
    border: 3px solid #000000;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.nav-btn:hover {
    background-color: rgb(180, 20, 200);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.nav-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Chapter Sections */
.chapter {
    background-color: #ffffff;
    border: 4px solid rgb(208, 31, 224);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.chapter h2 {
    font-size: 2.2em;
    font-weight: bold;
    color: rgb(208, 31, 224);
    margin-bottom: 20px;
    border-bottom: 4px solid rgb(31, 224, 199);
    padding-bottom: 10px;
}

.chapter h3 {
    font-size: 1.6em;
    font-weight: bold;
    color: rgb(31, 224, 199);
    margin-top: 25px;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.chapter p {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: justify;
    color: #000000;
}

.chapter ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.chapter ul li {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 12px;
    color: #000000;
    line-height: 1.6;
}

.chapter ul li strong {
    color: rgb(208, 31, 224);
    font-weight: bold;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background-color: #ffffff;
    border: 4px solid rgb(208, 31, 224);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

thead {
    background: linear-gradient(135deg, rgb(208, 31, 224), rgb(31, 224, 199));
}

thead tr th {
    padding: 15px;
    text-align: left;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    border: 2px solid #ffffff;
}

tbody tr {
    border-bottom: 2px solid rgb(31, 224, 199);
}

tbody tr:nth-child(even) {
    background-color: rgba(31, 224, 199, 0.1);
}

tbody tr:hover {
    background-color: rgba(208, 31, 224, 0.1);
    transition: background-color 0.3s ease;
}

tbody tr td {
    padding: 12px 15px;
    font-size: 1.05em;
    font-weight: bold;
    color: #000000;
    border: 1px solid rgb(208, 31, 224);
}

/* Flowchart Styles */
.flowchart {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    background-color: rgba(31, 224, 199, 0.1);
    border: 4px solid rgb(208, 31, 224);
    border-radius: 10px;
    margin: 25px 0;
}

.flow-box {
    padding: 18px 30px;
    margin: 10px;
    border: 3px solid rgb(208, 31, 224);
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.1em;
    text-align: center;
    min-width: 250px;
    background-color: #ffffff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.flow-box.start {
    background: linear-gradient(135deg, rgb(31, 224, 199), rgb(208, 31, 224));
    color: #ffffff;
    font-size: 1.3em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.flow-box.end {
    background: linear-gradient(135deg, rgb(208, 31, 224), rgb(31, 224, 199));
    color: #ffffff;
    font-size: 1.3em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.flow-box.decision {
    background-color: rgb(208, 31, 224);
    color: #ffffff;
    border-radius: 50px;
    font-weight: bold;
}

.arrow {
    font-size: 2em;
    font-weight: bold;
    color: rgb(208, 31, 224);
    margin: 5px 0;
}

.flow-split, .flow-options {
    display: flex;
    justify-content: space-around;
    width: 100%;
    flex-wrap: wrap;
    gap: 20px;
}

.flow-branch, .flow-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 200px;
}

/* Quiz Section */
.quiz-container {
    margin-top: 20px;
}

.question-block {
    background-color: rgba(31, 224, 199, 0.2);
    border: 3px solid rgb(208, 31, 224);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.question-block h3 {
    font-size: 1.3em;
    font-weight: bold;
    color: rgb(208, 31, 224);
    margin-bottom: 15px;
}

.answer-btn {
    padding: 12px 25px;
    font-size: 1.1em;
    font-weight: bold;
    background-color: rgb(208, 31, 224);
    color: #ffffff;
    border: 3px solid #000000;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.answer-btn:hover {
    background-color: rgb(180, 20, 200);
    transform: scale(1.05);
}

.answer-btn:active {
    transform: scale(0.98);
}

.answer {
    margin-top: 15px;
    padding: 20px;
    background-color: rgb(31, 224, 199);
    border: 3px solid rgb(208, 31, 224);
    border-radius: 8px;
    font-weight: bold;
    color: #000000;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.answer.hidden {
    display: none;
}

.answer strong {
    color: rgb(208, 31, 224);
    font-size: 1.2em;
}

/* Print Button */
.print-btn {
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    background: linear-gradient(135deg, rgb(208, 31, 224), rgb(31, 224, 199));
    color: #ffffff;
    border: 3px solid #000000;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.print-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.4);
}

.print-btn:active {
    transform: translateY(0);
}

/* Footer */
footer {
    background: linear-gradient(135deg, rgb(31, 224, 199), rgb(208, 31, 224));
    border: 4px solid rgb(208, 31, 224);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

footer h2 {
    font-size: 2em;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

footer p {
    font-size: 1.1em;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

footer ul {
    list-style: none;
    margin: 20px 0;
}

footer ul li {
    font-size: 1.1em;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.final-note {
    font-size: 1.3em;
    font-weight: bold;
    color: #ffffff;
    margin-top: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Print Styles */
@media print {
    body {
        background-color: white;
    }
    
    .container {
        border: 2px solid black;
        box-shadow: none;
    }
    
    .print-btn, .nav-btn, .answer-btn {
        display: none;
    }
    
    .navigation {
        display: none;
    }
    
    .answer.hidden {
        display: block !important;
    }
    
    .chapter {
        page-break-inside: avoid;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    header h2 {
        font-size: 1.2em;
    }
    
    .nav-list {
        grid-template-columns: 1fr;
    }
    
    .chapter h2 {
        font-size: 1.8em;
    }
    
    .chapter h3 {
        font-size: 1.3em;
    }
    
    table {
        font-size: 0.9em;
    }
    
    .flow-split, .flow-options {
        flex-direction: column;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background-color: rgb(208, 31, 224);
    color: #ffffff;
}

/* Link Styles */
a {
    color: rgb(208, 31, 224);
    font-weight: bold;
    text-decoration: none;
}

a:hover {
    color: rgb(31, 224, 199);
    text-decoration: underline;
}