body {
    margin: 0;
    font-family: "Fira Code", monospace;
    background-color: #0a0a0a;
    text-align: center;
}

main {
    padding: 28px;
}





footer {
    background-color: #111111;
    padding: 15px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;

    user-select: none;
    color: #7c7c7c;
    font-size: 15px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-right {
    display: flex;
    align-items: center;
}

footer img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

footer a {
    text-decoration: none;
    color: #ffffff;
}

footer a:hover {
    text-decoration: underline;
}

footer button {
    font-family: "Fira Code", monospace;
    background-color: #0e0e0e;
    border: 1px solid #2a2a2a;
    border-radius: 999px;
    color: #bbb;
    font-size: 12px;
    padding: 6px 14px;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}

footer button:hover {
    border-color: #484848;
    color: #fff;
}

footer button:active {
    background-color: #1a1a1a;
    border-color: #606060;
    color: #fff;
}

.title-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto 28px;
    background-color: #141414;
    padding: 18px 0;
    width: 100%;
    height: 100px;
    border-radius: 10px;
    border: 1px solid #222;
    color: #fff;
    letter-spacing: 0.02em;
}

.title-box .heading {
    font-size: 26px;
    color: #e0e0e0;
    text-align: center;
    margin: 0;  /* remove the negative margin-top */
}

.title-box .subtitle {
    margin-top: 6px;
    font-size: 14px;
    color: #888;
    text-align: center;
}

/* ── Grid ── */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 0;
}

/* ── Card ── */
.box {
    background-color: #141414;
    border: 1px solid #1e1e1e;
    border-radius: 12px;
    padding: 16px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

/* ── Card top row (image + text) ── */
.box-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.box img {
    width: 98px;
    height: 98px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

/* ── Card text group ── */
.box-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 4px;
    flex: 1;
    min-width: 0;
}

.box p {
    margin: 0;
    color: #f0f0f0;
    font-size: 20px;
    font-weight: 500;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
}

.box .p2 {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    overflow-wrap: break-word;
}

/* ── Buttons ── */
.box-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    justify-items: center;
}

.box button {
    font-family: "Fira Code", monospace;
    background-color: #0e0e0e;
    border: 1px solid #2a2a2a;
    border-radius: 999px;
    color: #bbb;
    font-size: 12px;
    padding: 6px 14px;
    cursor: pointer;
    width: 100%;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.box button:hover {
    border-color: #484848;
    color: #fff;
}

.box button:active {
    background-color: #1a1a1a;
    border-color: #606060;
    color: #fff;
}

#slope-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    height: 90vh;
    z-index: 1000;
    background: #000;
    border-radius: 10px;
    border: 1px solid #2a2a2a;
}

#slope-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
    display: block;
}

#slope-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1001;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 999px;
    color: #fff;
    font-family: "Fira Code", monospace;
    font-size: 12px;
    padding: 6px 14px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

#slope-close:hover {
    background: #2a2a2a;
    border-color: #666;
}