/* CBT Tape Site - Shared Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Sticky Navigation Sidebar */
.sidebar {
    width: 180px;
    flex-shrink: 0;
    background-color: #f5f5f5;
    border-right: 1px solid #ddd;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 15px;
}

.sidebar-logo {
    text-align: center;
    margin-bottom: 15px;
}

.sidebar-logo img {
    max-width: 88px;
    height: auto;
}

.sidebar h3 {
    font-size: 14px;
    margin: 15px 0 8px 0;
    color: #000;
}

.sidebar a {
    display: block;
    color: #0066cc;
    text-decoration: none;
    font-size: 13px;
    padding: 3px 0;
}

.sidebar a:hover {
    text-decoration: underline;
    color: #004499;
}

/* Main Content Area */
.main-content {
    flex: 1;
    padding: 30px 40px;
    max-width: 900px;
}

.main-content h1 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: #000;
}

.main-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

.main-content a {
    color: #0066cc;
}

.main-content a:hover {
    text-decoration: underline;
}

.highlight {
    color: #ff0000;
    font-weight: bold;
}

code {
    background-color: #f0f0f0;
    padding: 2px 6px;
    font-family: "Courier New", Courier, monospace;
}

.note-box {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    margin: 20px 0;
    font-size: 16px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: #666;
    border-top: 1px solid #ddd;
    margin-top: 40px;
}

/* Updated date line */
.updated {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-top: -20px;
    margin-bottom: 30px;
}

/* Download tables */
.download-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.download-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.download-table a {
    font-size: 18px;
}

.file-description {
    font-size: 14px;
    color: #555;
    margin: 10px 0;
}

/* SHARE section */
.share-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
}

.share-section img {
    flex-shrink: 0;
}

/* Email quote blockquote */
.email-quote {
    background-color: #f5f5f5;
    border-left: 4px solid #ccc;
    padding: 20px;
    margin: 20px 0;
    font-size: 14px;
}

.email-quote .quoted {
    color: #666;
    font-family: "Courier New", Courier, monospace;
    white-space: pre-wrap;
}

.email-quote .signature {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    font-size: 13px;
    color: #555;
}

/* Section headings */
.main-content h2 {
    font-size: 22px;
    margin: 30px 0 15px 0;
    color: #000;
}

/* Links list (for links.htm) */
.links-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.links-list li {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.links-list li:last-child {
    border-bottom: none;
}

.links-list a {
    font-weight: bold;
    font-size: 18px;
    display: block;
    margin-bottom: 5px;
}

.links-list p {
    margin: 5px 0 0;
    color: #666;
    font-size: 14px;
}

.tag {
    display: inline-block;
    background-color: #e1eef7;
    color: #006699;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 8px;
}

/* FAQ list (for cbtfaq.htm) */
.faq-list {
    margin: 0;
    padding: 0;
}

.faq-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item .question {
    font-size: 20px;
    font-weight: bold;
    color: #000;
    margin-bottom: 10px;
}

.faq-item .answer {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.faq-item img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
}

/* JCL code blocks */
pre.jcl {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    padding: 15px;
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    overflow-x: auto;
    line-height: 1.4;
}

/* Fun list (for fun.htm) */
.fun-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fun-list li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.fun-list li:last-child {
    border-bottom: none;
}

.fun-list a {
    font-size: 18px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.fun-list a img {
    flex-shrink: 0;
}

.fun-list .format {
    font-size: 14px;
    color: #666;
    font-weight: normal;
    margin-left: 10px;
}

.fun-list .description {
    font-size: 14px;
    color: #555;
    margin: 10px 0 0 50px;
    font-style: italic;
    line-height: 1.5;
}

/* Features list (for features.htm) */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list a {
    font-size: 20px;
    font-weight: bold;
}

.features-list .date {
    font-size: 14px;
    color: #666;
    font-weight: normal;
    margin-left: 10px;
}

.features-list .format {
    font-size: 14px;
    color: #666;
    font-weight: normal;
    display: block;
    margin-top: 5px;
}

/* Book info (for samson.htm) */
.book-info {
    margin: 20px 0;
}

.book-info h2 {
    font-size: 22px;
    margin: 30px 0 10px 0;
    color: #000;
}

.book-info .author {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
}

.book-info .format {
    font-size: 14px;
    color: #666;
}

.book-info .legal {
    font-size: 14px;
    color: #666;
    margin: 15px 0;
}

/* Contribute sections (for contribute.htm) */
.contribute-section {
    margin-bottom: 30px;
}

.contribute-section h2 {
    font-size: 22px;
    margin: 0 0 15px 0;
    color: #000;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

.contribute-section h3 {
    font-size: 18px;
    margin: 20px 0 10px 0;
    color: #333;
}

.contribute-section p {
    margin-bottom: 15px;
}

.contact-info {
    font-size: 18px;
    font-weight: bold;
    margin: 15px 0;
    padding: 10px 15px;
    background-color: #f5f5f5;
    border-left: 4px solid #0066cc;
}

/* Linking page (for linking.htm) */
.site-description {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    margin: 20px 0;
}

.site-description h2 {
    margin-top: 0;
    font-size: 22px;
}

.site-description .site-url {
    font-size: 18px;
    margin: 10px 0;
}

.site-description .site-url a {
    color: #0066cc;
}

.banner-option {
    background-color: #ffffcc;
    border: 1px solid #ddd;
    padding: 20px;
    margin: 20px 0;
}

.banner-option h3 {
    margin-top: 0;
    font-size: 18px;
}

.banner-preview {
    text-align: center;
    margin: 15px 0;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #eee;
}

pre.html-code {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    overflow-x: auto;
    line-height: 1.4;
    color: #800080;
}

/* Contact page (for contact.htm) */
.contact-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 30px 0;
}

.contact-card {
    flex: 1;
    min-width: 250px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 25px;
    text-align: center;
}

.contact-card img {
    max-width: 150px;
    height: auto;
    border: 1px solid #ccc;
    margin-bottom: 15px;
}

.contact-card h2 {
    font-size: 22px;
    margin: 0 0 5px 0;
}

.contact-card .role {
    font-style: italic;
    color: #666;
    margin: 0 0 15px 0;
}

.contact-card .email {
    font-size: 18px;
    margin: 10px 0;
}

.contact-card .email a {
    color: #0066cc;
}

.contact-card .address {
    font-size: 14px;
    color: #555;
    margin-top: 10px;
}

/* Download list (for zips.htm and similar) */
.download-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.download-list li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.download-list li:last-child {
    border-bottom: none;
}

.download-list a {
    font-size: 18px;
    font-weight: bold;
}

.download-list .source {
    display: block;
    font-size: 14px;
    color: #555;
    margin-top: 5px;
}

.badge-new {
    display: inline-block;
    background-color: #ff0000;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 10px;
    vertical-align: middle;
}

.note {
    text-align: center;
    font-style: italic;
    color: #666;
    margin: 30px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    .main-content {
        padding: 20px;
    }

    .main-content h1 {
        font-size: 22px;
    }

    .main-content p {
        font-size: 16px;
    }
}
