/* CSS Variables based on itch.io theme */
:root {
    --bg-outer: #4f6781;
    --bg-inner: #f2f7f5;
    --text-color: #222222;
    --link-color: #41aab0;
    --header-color: #255b5e;
    --btn-bg: #4a9d93;
    --btn-hover: #3d827a;
}

/* Global Reset and Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    /* Corrected path for robust structure */
    background: var(--bg-outer) url('../images/background.png') repeat top left;
    background-attachment: fixed;
    font-family: 'Anonymous Pro', monospace;
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    padding: 20px;
}

/* Main Container for Mobile-First Single Page Layout */
.container {
    background-color: var(--bg-inner);
    max-width: 800px;
    width: 100%;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Headers */
h1, h2, h3 {
    color: var(--header-color);
    margin-bottom: 15px;
    text-align: center;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 5px;
}

p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* ASCII Art Styling */
.ascii-art {
    text-align: center;
    white-space: pre;
    color: var(--header-color);
    margin: 20px 0;
    font-weight: bold;
}

/* Sections */
section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--header-color);
}

section:last-of-type {
    border-bottom: none;
}

/* Buttons and Links */
a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

.btn {
    display: block;
    width: 100%;
    background-color: var(--btn-bg);
    color: #ffffff;
    text-align: center;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.btn:hover {
    background-color: var(--btn-hover);
    text-decoration: none;
    color: #ffffff;
}

.btn-primary {
    font-size: 1.4rem;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* New class to format the second line of text inside buttons */
.btn-subtext {
    display: block;
    font-size: 0.85rem;
    font-weight: normal;
    margin-top: 5px;
}

/* Footer */
footer {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 20px;
}

/* Responsive adjustments for laptop screens */
@media (min-width: 600px) {
    .container {
        padding: 50px;
    }
}