/* STATYPUS ACADEMY - GLOBAL STYLESHEET
   Location: /css/style.css
*/

/* --- Page Layout & Background --- */
body {
    font-family: "Courier New", Courier, monospace;
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    background-color: #000; 
    /* Updated to a relative link: moving up from /css/ then into /r/images/ */
    background-image: url('../r/images/Statypus.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.container {
    max-width: 750px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border: 4px solid #000;
    box-shadow: 10px 10px 0px 0px #000;
    overflow-y: auto;
    max-height: 90vh;
}

/* --- Typography --- */
h1 { 
    font-size: 2.2rem; 
    margin-bottom: 5px; 
    border-bottom: 4px solid #000; 
    display: inline-block; 
}

.academy-subtitle { 
    font-weight: bold; 
    display: block; 
    margin-bottom: 25px; 
    font-size: 1.1rem; 
    color: #444; 
}

/* --- Philosophy Box & Images --- */
.landing-intro {
    border: 2px solid #000;
    padding: 20px;
    background: #fff;
    margin-bottom: 40px;
    line-height: 1.5;
    overflow: auto; 
}

.landing-intro h2 { 
    margin-top: 0; 
    font-size: 1.2rem; 
    text-transform: uppercase; 
    text-decoration: underline; 
}

.landing-intro p { 
    margin-bottom: 15px; 
    font-size: 0.95rem; 
}

.kart-img {
    float: right;
    width: 180px;
    margin-left: 20px;
    margin-bottom: 10px;
    border: 1px solid #000;
}

/* --- Collapsible Chapters (Details/Summary) --- */
details {
    border-bottom: 2px solid #000;
    padding-bottom: 15px;
}

summary {
    background-color: #000;
    color: #fff;
    padding: 12px;
    margin-top: 25px;
    font-weight: 900;
    font-size: 1.2rem;
    text-transform: uppercase;
    cursor: pointer;
    list-style: none; 
    border: 1px solid #000;
}

summary::-webkit-details-marker {
    display: none; 
}

summary:hover {
    background-color: #333;
}

summary::before {
    content: "[+] ";
    font-family: monospace;
}

details[open] summary::before {
    content: "[-] ";
}

/* --- Subheaders & Categories --- */
.section-subheader {
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 5px;
    color: #333;
    border-bottom: 2px solid #000;
    display: inline-block;
}

.category-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: 20px 0 5px 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 3px;
}

.sub-category {
    font-style: italic;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.block-count {
    font-size: 0.7rem;
    background: #eee;
    padding: 2px 6px;
    border: 1px solid #000;
    text-transform: uppercase;
    font-style: normal;
}

.multi-block { 
    background: #000; 
    color: #fff; 
}

/* --- Resource Items & Links --- */
.resource-list { 
    list-style: none; 
    padding: 0 0 0 10px; 
    margin-top: 5px; 
}

.resource-item { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #000;
    margin-bottom: 5px;
    background: #fff;
}

.resource-item:hover { 
    background: #f0f0f0; 
}

.file-link { 
    text-decoration: none; 
    color: #000; 
    font-weight: bold; 
    font-size: 0.95rem; 
}

.file-type { 
    font-size: 0.7rem; 
    font-weight: bold; 
    border-left: 2px solid #000; 
    padding-left: 10px; 
    min-width: 110px; 
    text-align: right; 
}

/* --- Navigation & Footer --- */
.back-link { 
    display: inline-block; 
    margin-top: 30px; 
    text-decoration: none; 
    color: #000; 
    font-weight: bold; 
    font-size: 0.9rem; 
    border: 2px solid #000; 
    padding: 5px 10px; 
}

.back-link:hover { 
    background: #000; 
    color: #fff; 
}

footer {
    margin-top: 40px; 
    font-size: 0.8rem; 
    opacity: 0.7; 
    text-align: center;
}

/* --- Responsive Adjustments --- */
@media (max-width: 600px) {
    .kart-img {
        float: none;
        display: block;
        margin: 0 auto 20px auto;
        width: 150px;
    }
    
    .container {
        padding: 20px;
    }
}