body { 
    margin: 0;
    background-color: #111;
    color: #fff;
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 10px; /* add some breathing room on small screens */
    box-sizing: border-box;
}

.container {
    background-color: #222;
    border-radius: 12px;
    padding: 20px; /* smaller padding for mobile */
    margin-top: 20px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    max-width: 70%; /* prevent overflowing screen */
    width: 600px; /* optional max width for large screens */
}

img {
    width: 100%; /* scales images to container width */
    height: auto;
    display: block;
    margin: 0 auto;
    margin-bottom: 10px;
    margin-top: 10px;
}

img + img {
    margin-top: 20px;
}

p {
    margin-top: 20px;
    font-size: 1rem; /* slightly smaller for mobile */
}

a.next {
    display: inline-block;
    margin-top: 20px;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    background-color: #444;
    padding: 8px 20px;
    border-radius: 8px;
    transition: background 0.2s;
}

a.next:hover {
    background-color: #666;
}

ul {
    text-align: left;
    margin-top: 10px;
    padding-left: 20px; /* space for bullets */
}

.home-btn {
    position: fixed;   /* stays in the corner even when scrolling */
    top: 15px;
    left: -12px;
    display: inline-block;
    transition: filter 0.2s;
    z-index: 1000;     /* ensures it’s above other content */
}

.home-btn img {
    width: 35px; /* smaller button on mobile */
    height: auto;
}

.container p {
    max-width: 100%;
    margin: 0 auto;
}
.chatlog {
    max-width: 600px;
    margin: 20px auto;
    background: #000;
    border: 2px solid #fff;
    padding: 10px;
    font-family: "Courier New", monospace;
    color: #fff;
    text-align: left;
}
.chatlog button {
    display: block;
    margin: 5px auto;
    padding: 5px 10px;
    background: #222;
    color: #fff;
    border: 1px solid #888;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}
.chatlog button:hover {
    background: #555;
}
.chat-content {
    display: none;
    margin-top: 10px;
}
.chat-line {
    display: block;
    margin-bottom: 5px;
}
.chat-line .pfp {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 8px;
    display: inline-block;
    margin-top: 10px;
    margin-bottom: -3px;
}
.chat-line span {
    display: inline-block;
    vertical-align: middle;
    margin: 0;
    padding: 0;
    margin-top: 10px;
    margin-bottom: -3px;
}
.chat-line p {
    margin: 0;
    padding: 0;
    margin-top: 5px;
}
/* Media query for very small screens */
@media (max-width: 400px) {
    .container {
        padding: 15px;
    }
    a.next {
        font-size: 1.2rem;
        padding: 6px 15px;
    }
    p {
        font-size: 0.9rem;
    }
}
