﻿body {
    font-family: 'Manrope', serif;
    background-image: url("/Images/scp.png");
    background-size: 100% auto;
    background-repeat: repeat-y;
    background-color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #e0e0e0;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
}

.scp-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: rgba(20, 20, 20, 0.85);
    border: 1px solid #444;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
    padding: 20px;
    position: relative;
}

.scp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #555;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.scp-title {
    font-family: 'Manrope', monospace;
    font-size: 2.5em;
    font-weight: bold;
    color: #f0f0f0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.scp-content {
    font-family: 'Manrope', serif;
    line-height: 1.7;
    font-size: 1.1em;
}

.scp-content p {
    margin-bottom: 17px;
}

.description-container {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.description-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.description-sidebar {
    width: 320px;
}

.scp-image {
    max-width: 100%;
    border: 1px solid #444;
    margin: 0 0 20px 0;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px;
}

.literature-section {
    margin-bottom: 20px;
}

.literature-title {
    font-family: 'Manrope', monospace;
    font-size: 1.2em;
    color: #d4a76a;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.literature-links {
    list-style-type: none;
    padding-left: 0;
}

.literature-links li {
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.literature-links li:before {
    content: "\203A";
    color: #8b4513;
    position: absolute;
    left: 0;
}

.literature-links a {
    color: #9d9dff;
    text-decoration: none;
    font-family: 'Manrope', monospace;
}

.literature-links a:hover {
    text-decoration: underline;
    color: #c0c0ff;
}

.collapsible-section {
    margin-bottom: 20px;
    border-bottom: 1px solid #444;
}

.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
    color: #f0f0f0;
    font-size: 1.3em;
}

.collapsible-header h2 {
    margin: 0;
    font-size: 1.4em;
    color: #f0f0f0;
    padding-bottom: 8px;
    border-bottom: 1px solid #444;
}

.collapsible-toggle {
    font-family: 'Manrope', monospace;
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-top: 15px;
}

.collapsible-section.expanded .collapsible-content {
    max-height: 5000px;
}

.collapsible-section.expanded .collapsible-toggle {
    transform: rotate(45deg);
}

.roleplay-notes {
    list-style-type: none;
    padding-left: 0;
}

.roleplay-notes li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.roleplay-notes li:before {
    content: "\25A0";
    color: #8b4513;
    position: absolute;
    left: 0;
}

.note-detail {
    font-style: italic;
    font-size: 0.9em;
    color: #aaa;
    margin-top: 5px;
    padding-left: 15px;
    border-left: 1px solid #666;
}

.text-content {
    flex: 1;
}

.objective-sidebar {
    width: 100%;
    background-color: rgba(40, 30, 25, 0.7);
    border: 1px solid #5a3a2a;
    border-radius: 3px;
    padding: 15px;
    font-family: 'Manrope', monospace;
    margin-top: 20px;
}

.objective-title {
    color: #d4a76a;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: 1px solid #5a3a2a;
    padding-bottom: 5px;
}

.objective-text {
    color: #e0e0e0;
    line-height: 1.5;
}

.objective-subclass {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #5a3a2a;
}

.objective-subclass-title {
    color: #d4a76a;
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 5px;
}

.subclass-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.subclass-card {
    flex: 1;
    min-width: 250px;
    background-color: rgba(30, 20, 15, 0.8);
    border: 1px solid #5a3a2a;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.subclass-title {
    font-family: 'Manrope', monospace;
    font-size: 1.3em;
    color: #d4a76a;
    margin-bottom: 10px;
    border-bottom: 1px solid #5a3a2a;
    padding-bottom: 5px;
}

.subclass-features {
    list-style-type: none;
    padding-left: 0;
}

.subclass-features li {
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.subclass-features li:before {
    content: "\2022";
    color: #8b4513;
    position: absolute;
    left: 0;
}

.scp-content h2 {
    color: #d4a76a;
    border-bottom: 1px solid #5a3a2a;
    padding-bottom: 8px;
    margin-top: 35px;
    font-family: 'Manrope', monospace;
    font-size: 1.5em;
    letter-spacing: 0.5px;
}

.scp-content h3 {
    color: #c2a87d;
    margin-top: 28px;
    font-family: 'Manrope', monospace;
    font-size: 1.3em;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.scp-content h4 {
    color: #aaa;
    margin-top: 22px;
    font-family: 'Manrope', monospace;
    font-size: 1.1em;
    font-weight: 500;
}

.dialogue-block {
    background-color: rgba(30, 30, 40, 0.6);
    border-left: 3px solid #5a4a3a;
    padding: 16px 20px;
    margin: 22px 0;
    font-style: italic;
    font-family: 'Manrope', serif;
    line-height: 1.65;
    border-radius: 0 4px 4px 0;
}

.dialogue-block strong {
    color: #e6d0a0;
    font-style: normal;
    font-weight: 600;
}

.system-message {
    background-color: rgba(40, 40, 50, 0.7);
    color: #b0b0b0;
    font-family: 'Manrope', monospace;
    padding: 10px 15px;
    margin: 16px 0;
    border-radius: 3px;
    font-size: 0.95em;
    border: 1px solid #444;
}

.key-term {
    color: #d9c9a1;
    font-weight: 600;
    background-color: rgba(80, 70, 50, 0.25);
    padding: 2px 8px;
    border-radius: 3px;
    font-family: 'Manrope', monospace;
    font-size: 0.95em;
}

.scp-content ul, .scp-content ol {
    margin: 18px 0;
    padding-left: 30px;
}

.scp-content ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.scp-content ul li::marker {
    color: #c9b28b;
    font-weight: 500;
}

.scp-content ol li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.scp-content ol li::marker {
    color: #a89575;
    font-weight: 500;
}

.document-meta {
    color: #9a9a9a;
    font-style: italic;
    font-size: 0.9em;
    margin-bottom: 12px;
    font-family: 'Manrope', monospace;
}

.o5-appendix {
    background-color: rgba(25, 25, 35, 0.7);
    border: 1px dashed #5a5a7a;
    padding: 20px;
    margin: 25px 0;
    font-family: 'Manrope', serif;
    font-size: 0.95em;
    line-height: 1.65;
    border-radius: 4px;
}

.o5-appendix-header {
    color: #b0b0d0;
    font-family: 'Manrope', monospace;
    font-size: 1.1em;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #444;
}

.amended-notice {
    background-color: rgba(90, 40, 30, 0.35);
    border: 1px solid #8b4513;
    border-left: 4px solid #cc5533;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
    font-family: 'Manrope', monospace;
    font-size: 0.95em;
    line-height: 1.6;
}

.amended-notice strong {
    color: #e8a070;
}

.experiment-log {
    background-color: rgba(25, 30, 25, 0.7);
    border: 1px solid #4a5a3a;
    padding: 18px;
    margin: 20px 0;
    border-radius: 4px;
    font-family: 'Manrope', serif;
    font-size: 0.95em;
    line-height: 1.65;
}

.experiment-log-header {
    color: #a0c080;
    font-family: 'Manrope', monospace;
    font-size: 1.05em;
    margin-bottom: 12px;
    padding-bottom: 5px;
    border-bottom: 1px solid #4a5a3a;
    font-weight: 600;
}

@media (max-width: 768px) {
    body {
        background-size: auto 100%;
        padding: 10px;
    }

    .scp-container {
        padding: 15px;
        margin: 10px;
        width: calc(100% - 20px);
    }

    .scp-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .scp-title {
        font-size: 1.8em;
        text-align: center;
    }

    .description-container {
        flex-direction: column;
        gap: 15px;
    }

    .description-sidebar {
        width: 100%;
        order: -1;
    }

    .scp-image {
        width: 100%;
        max-width: 300px;
        display: block;
        margin: 0 auto 20px;
    }

    .literature-section {
        text-align: center;
    }

    .text-content {
        order: 2;
    }

    .objective-sidebar {
        margin-top: 15px;
        text-align: center;
    }

    .collapsible-header h2 {
        font-size: 1.2em;
    }

    .roleplay-notes li {
        padding-left: 15px;
        margin-bottom: 15px;
    }

    .note-detail {
        font-size: 0.85em;
        margin-top: 8px;
    }
}
