html {
    font-family: "JetBrains Mono", monospace;
    background-color: #11111b;
    color: #cdd6f4;
    font-size: 16px;
}

body {
    margin: 0;
    padding: 1rem;
}

.header-container {
    border-bottom: 1px solid #313244;
    padding-bottom: 0.625rem;
    margin-bottom: 1rem;
}

.pico8-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 82.6%; 
}

.pico8-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: none;
}

h1 {
    color: #fabeea;
    padding-bottom: 0;
    border-bottom: none;
    font-size: 1.8rem;
    margin: 0;
}

h2 {
    color: #fabeea;
    padding-bottom: 0;
    border-bottom: none;
    font-size: 1.8rem;
    margin: 0;
}

a {
    color: #89b4fa;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

.p8logo {
    position: fixed;
    top: 0.75rem;
    right: 0.75rem;
    width: 40px;
    height: auto;
}

.history-link {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1000;
    color: #6c7086;
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    background-color: rgba(30, 30, 46, 0.8);
    border-radius: 5px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.history-link:hover {
    color: #cdd6f4;
}

pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    background-color: #1e1e2e;
    border: 1px solid #45475a;
    border-radius: 4px;
    padding: 0.625rem;
    margin: 0;
    max-height: 150px;
    overflow-y: auto;
    font-size: 0.75rem;
    color: #f38ba8;
}

.truncate {
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-wrap {
    white-space: nowrap;
}


/* for desktop */
@media (min-width: 768px) {

    body {
        max-width: 1540px;
        margin: 2.5rem auto;
        padding: 0;
    }

    h1 {
        font-size: 2.0rem;
    }

    .p8logo {
        top: 20px;
        right: 20px;
        width: auto;
    }

    .history-link {
        bottom: 20px;
        right: 20px;
    }
}