/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: rgb(31, 150, 199);
    color: #ffffff;
    line-height: 1.8;
    font-weight: bold;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(150, 31, 224, 0.3), rgba(31, 150, 199, 0.5));
    border: 4px solid rgb(150, 31, 224);
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px 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.5);
    color: #ffffff;
}

.subtitle {
    font-size: 1.4em;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 20px;
}

.print-btn {
    background-color: rgb(150, 31, 224);
    color: #ffffff;
    font-weight: bold;
    padding: 15px 35px;
    font-size: 1.1em;
    border: 3px solid #ffffff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.print-btn:hover {
    background-color: #ffffff;
    color: rgb(150, 31, 224);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Navigation/Table of Contents */
.table-of-contents {
    background-color: rgba(0, 0, 0, 0.3);
    border: 4px solid rgb(150, 31, 224);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.table-of-contents h2 {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.table-of-contents ul {
    list-style: none;
}

.table-of-contents li {
    margin-bottom: 12px;
}

.table-of-contents button {
    background-color: rgba(150, 31, 224, 0.7);
    color: #ffffff;
    font-weight: bold;
    border: 2px solid rgb(150, 31, 224);
    padding: 12px 20px;
    width: 100%;
    text-align: left;
    font-size: 1.1em;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.table-of-contents button:hover {
    background-color: rgb(150, 31, 224);
    transform: translateX(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Content Sections */
.content-section {
    background-color: rgba(0, 0, 0, 0.35);
    border: 4px solid rgb(150, 31, 224);
    border-radius: 15px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.content-section h2 {
    font-size: 2.2em;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 25px;
    border-bottom: 4px solid rgb(150, 31, 224);
    padding-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.content-box {
    background-color: rgba(0, 0, 0, 0.25);
    border: 3px solid rgb(150, 31, 224);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.content-box h3 {
    font-size: 1.6em;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 15px;
    margin-top: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.content-box p {
    font-size: 1.15em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffffff;
    line-height: 1.8;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.content-box ul,
.content-box ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.content-box li {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 12px;
    color: #ffffff;
    line-height: 1.8;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background-color: rgba(0, 0, 0, 0.3);
    border: 3px solid rgb(150, 31, 224);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

thead {
    background-color: rgb(150, 31, 224);
}

thead th {
    padding: 18px;
    text-align: left;
    font-weight: bold;
    font-size: 1.15em;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

tbody td {
    padding: 15px;
    font-weight: bold;
    font-size: 1.05em;
    color: #ffffff;
    border: 2px solid rgba(150, 31, 224, 0.4);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

tbody tr {
    background-color: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

tbody tr:hover {
    background-color: rgba(150, 31, 224, 0.4);
    transform: scale(1.02);
}

/* Flowchart Styles */
.flowchart {
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.25);
    border: 3px solid rgb(150, 31, 224);
    border-radius: 15px;
    margin: 25px 0;
}

.flow-box {
    background-color: rgba(150, 31, 224, 0.8);
    border: 3px solid rgb(150, 31, 224);
    border-radius: 12px;
    padding: 20px;
    margin: 15px auto;
    max-width: 500px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.start-box {
    background-color: rgb(150, 31, 224);
    border: 4px solid #ffffff;
}

.end-box {
    background-color: rgb(150, 31, 224);
    border: 4px solid #ffffff;
}

.decision-box {
    background-color: rgba(255, 165, 0, 0.9);
    border: 3px solid rgb(150, 31, 224);
    border-radius: 50%;
    padding: 30px;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.flow-arrow {
    text-align: center;
    font-size: 2em;
    font-weight: bold;
    color: rgb(150, 31, 224);
    margin: 10px 0;
}

.flow-arrow-side {
    font-size: 1.3em;
    font-weight: bold;
    color: rgb(150, 31, 224);
    margin: 10px 0;
    text-align: center;
}

.flow-arrow-return {
    font-size: 1.1em;
    font-weight: bold;
    color: rgb(150, 31, 224);
    margin: 15px 0;
    text-align: center;
}

.flow-split {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 20px;
}

.flow-branch {
    flex: 1;
}

.flow-subsplit {
    margin: 10px 0;
}

/* Example Prompt Box */
.example-prompt {
    background-color: rgba(150, 31, 224, 0.6);
    border: 3px solid rgb(150, 31, 224);
    border-left: 6px solid rgb(150, 31, 224);
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #ffffff;
    font-size: 1.1em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* Quiz Styles */
.quiz-container {
    margin-top: 25px;
}

.question-box {
    margin-bottom: 20px;
    border: 3px solid rgb(150, 31, 224);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.question-btn {
    width: 100%;
    background-color: rgb(150, 31, 224);
    color: #ffffff;
    font-weight: bold;
    border: none;
    padding: 20px;
    font-size: 1.15em;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.question-btn:hover {
    background-color: rgba(150, 31, 224, 0.8);
    transform: scale(1.02);
}

.answer-box {
    display: none;
    background-color: rgba(0, 0, 0, 0.35);
    padding: 20px;
    font-weight: bold;
    font-size: 1.1em;
    color: #ffffff;
    border-top: 2px solid rgba(150, 31, 224, 0.5);
    line-height: 1.8;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.answer-box.show {
    display: block;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    background-color: rgba(150, 31, 224, 0.8);
    border: 4px solid rgb(150, 31, 224);
    border-radius: 15px;
    padding: 35px;
    text-align: center;
    margin-top: 40px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.footer-content h3 {
    font-size: 2em;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.footer-content p {
    font-size: 1.15em;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.8;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.footer-note {
    font-style: italic;
    margin-top: 20px;
}

.copyright {
    margin-top: 25px;
    font-size: 1em;
    opacity: 0.9;
}

/* Print Styles */
@media print {
    body {
        background-color: white;
        color: black;
    }
    
    .print-btn {
        display: none;
    }
    
    .table-of-contents {
        page-break-after: always;
    }
    
    .content-section {
        page-break-inside: avoid;
        border: 2px solid black;
    }
    
    table {
        page-break-inside: avoid;
    }
    
    .answer-box {
        display: block !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    .subtitle {
        font-size: 1.1em;
    }
    
    .content-section {
        padding: 20px;
    }
    
    .content-section h2 {
        font-size: 1.6em;
    }
    
    table {
        font-size: 0.85em;
    }
    
    thead th,
    tbody td {
        padding: 10px;
    }
    
    .flow-split {
        flex-direction: column;
    }
    
    .decision-box {
        width: 220px;
        height: 220px;
        padding: 20px;
    }
}