/* Google E-Book Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background-color: rgb(31, 224, 199);
    color: #000000;
    line-height: 1.8;
    font-weight: bold;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, rgb(208, 31, 224), rgb(31, 224, 199));
    color: #ffffff;
    text-align: center;
    padding: 40px 20px;
    border: 5px solid rgb(208, 31, 224);
    border-radius: 15px;
    margin: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

header h1 {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

header p {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 20px;
}

.print-btn {
    background-color: rgb(208, 31, 224);
    color: #ffffff;
    border: 3px solid #ffffff;
    padding: 15px 35px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.print-btn:hover {
    background-color: #ffffff;
    color: rgb(208, 31, 224);
    transform: scale(1.05);
}

/* Navigation Styles */
.navigation {
    background-color: rgba(255, 255, 255, 0.95);
    border: 5px solid rgb(208, 31, 224);
    border-radius: 15px;
    margin: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.navigation h2 {
    color: rgb(208, 31, 224);
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 25px;
    text-align: center;
}

.navigation ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.navigation li {
    margin: 0;
}

.navigation button {
    width: 100%;
    background-color: rgb(31, 224, 199);
    color: #000000;
    border: 3px solid rgb(208, 31, 224);
    padding: 15px 20px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.navigation button:hover {
    background-color: rgb(208, 31, 224);
    color: #ffffff;
    transform: translateX(10px);
}

/* Main Content Styles */
.content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.section {
    background-color: rgba(255, 255, 255, 0.95);
    border: 5px solid rgb(208, 31, 224);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.section h2 {
    color: rgb(208, 31, 224);
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 4px solid rgb(31, 224, 199);
}

.subsection {
    margin-bottom: 35px;
}

.subsection h3 {
    color: rgb(31, 224, 199);
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.subsection ul {
    list-style: none;
    padding-left: 0;
}

.subsection ul li {
    background-color: rgba(31, 224, 199, 0.2);
    border-left: 5px solid rgb(208, 31, 224);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
}

.subsection ul li:hover {
    background-color: rgba(208, 31, 224, 0.2);
    transform: translateX(10px);
}

/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background-color: #ffffff;
    border: 4px solid rgb(208, 31, 224);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.data-table thead {
    background-color: rgb(208, 31, 224);
    color: #ffffff;
}

.data-table th {
    padding: 18px 15px;
    text-align: left;
    font-size: 1.2em;
    font-weight: bold;
    border-right: 2px solid rgba(255, 255, 255, 0.3);
}

.data-table th:last-child {
    border-right: none;
}

.data-table tbody tr {
    border-bottom: 2px solid rgb(31, 224, 199);
    transition: all 0.3s ease;
}

.data-table tbody tr:hover {
    background-color: rgba(31, 224, 199, 0.3);
    transform: scale(1.02);
}

.data-table td {
    padding: 15px;
    font-size: 1.05em;
    font-weight: bold;
    border-right: 2px solid rgba(208, 31, 224, 0.2);
}

.data-table td:last-child {
    border-right: none;
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

/* Flowchart Styles */
.flowchart {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    background-color: rgba(31, 224, 199, 0.1);
    border-radius: 15px;
    border: 3px dashed rgb(208, 31, 224);
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 0;
}

.flow-box {
    background-color: #ffffff;
    border: 4px solid rgb(208, 31, 224);
    border-radius: 15px;
    padding: 25px 40px;
    min-width: 350px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.flow-box:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(208, 31, 224, 0.4);
}

.flow-box.start {
    background: linear-gradient(135deg, rgb(31, 224, 199), rgb(208, 31, 224));
    color: #ffffff;
    font-size: 1.3em;
}

.flow-box.end {
    background: linear-gradient(135deg, rgb(208, 31, 224), rgb(31, 224, 199));
    color: #ffffff;
    font-size: 1.3em;
}

.flow-box strong {
    font-size: 1.2em;
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
}

.flow-box small {
    font-size: 0.95em;
    font-weight: bold;
    color: #555555;
}

.flow-box.start small,
.flow-box.end small {
    color: #ffffff;
}

.flow-arrow {
    font-size: 3em;
    color: rgb(208, 31, 224);
    margin: 10px 0;
    font-weight: bold;
}

/* Quiz Section Styles */
.quiz-item {
    background-color: rgba(31, 224, 199, 0.2);
    border: 3px solid rgb(208, 31, 224);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.quiz-item:hover {
    box-shadow: 0 8px 25px rgba(208, 31, 224, 0.3);
    transform: translateY(-5px);
}

.question {
    font-size: 1.3em;
    font-weight: bold;
    color: #000000;
    margin-bottom: 15px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
}

.answer-btn {
    background-color: rgb(208, 31, 224);
    color: #ffffff;
    border: 3px solid rgb(31, 224, 199);
    padding: 12px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.answer-btn:hover {
    background-color: rgb(31, 224, 199);
    color: #000000;
    transform: scale(1.05);
}

.answer {
    margin-top: 15px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-left: 5px solid rgb(31, 224, 199);
    border-radius: 8px;
    font-size: 1.15em;
    font-weight: bold;
    color: #000000;
    transition: all 0.5s ease;
}

.answer.hidden {
    display: none;
}

/* Footer Styles */
footer {
    background-color: rgb(208, 31, 224);
    color: #ffffff;
    text-align: center;
    padding: 30px 20px;
    border: 5px solid rgb(31, 224, 199);
    border-radius: 15px;
    margin: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

footer p {
    font-size: 1.1em;
    font-weight: bold;
    margin: 8px 0;
}

/* Print Styles */
@media print {
    body {
        background-color: #ffffff;
    }
    
    .navigation,
    .print-btn,
    .answer-btn {
        display: none;
    }
    
    .section {
        page-break-inside: avoid;
        border: 2px solid #000000;
    }
    
    .answer {
        display: block !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    .navigation ul {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 20px;
    }
    
    .section h2 {
        font-size: 1.8em;
    }
    
    .subsection h3 {
        font-size: 1.4em;
    }
    
    .data-table {
        font-size: 0.9em;
    }
    
    .flow-box {
        min-width: 250px;
        padding: 20px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Scroll Offset for Navigation */
.section {
    scroll-margin-top: 20px;
}