html, body {
    background: #0b0b0b;
}

.server:hover {
    color:pink;
    font-weight: 600;
}
.modrinth:hover {
    color:lightgreen;
    font-weight: 600;
}
.blog {
    grid-column: 2;
    justify-self: center;
}
.blog:hover {
    color:lightblue;
    font-weight: 600;
}
.letterboxd:hover {
    background: linear-gradient(to right, #ff8000, #00e054, #40bcf4);
    color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* .margoles {
    color: white;
    text-decoration: none;
    transition: 0.2s;
}
.margoles:hover {
    color: rgb(124, 17, 157);
    font-weight: 600;
    transform: translateY(-2px);
} */
/* ================= BASE ================= */

body {
    margin: 0;
    min-height: 100vh;

    font-family: 'Fira Code', monospace;
    color: white;

    display: flex;
    justify-content: center;
    align-items: center;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.25s ease, transform 0.25s ease
}
h3 {
        color:red;
}

/* ================= THEMES ================= */

body.margoles {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)),
    url("/src/lighthouse.jpg");
     background-size: cover; background-position: center; background-repeat: no-repeat;
}

body.modpacks {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)),
    url("/src/minecraft.jpg");
    background-size: cover; background-position: center; background-repeat: no-repeat;
}

/* ================= TRANSITIONS ================= */

body.page-out {
    opacity: 0;
    transform: translateY(12px);
}

body.page-in {
    opacity: 0;
    transform: translateY(-12px);
    animation: pageIn 0.25s ease forwards;
}

@keyframes pageIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= CARD ================= */

.card {
    width: 600px;

    background: rgba(20, 20, 20, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;

    padding: 40px;
    text-align: center;

    transition: 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
}

/* ================= LINKS ================= */

.links {
    display: grid;
    grid-template-columns: repeat(3, auto);
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px  ;
    margin-top: 25px;
}

.links a {
    color: white;
    text-decoration: none;

    padding: 6px 12px;
    border-radius: 10px;

    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);

    transition: 0.2s;
}

.links a:hover {
    transform: translateY(-2px);
}


/* ================= MODPACKS ================= */

.modpacks_card {
    width: 700px;
    text-align: left;
}

.versions_list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
}

.version_item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;

    padding: 20px;

    transition: 0.2s;
}

.version_item:hover {
    transform: translateY(-3px);
}

.version_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.download_btn {
    padding: 6px 12px;
    border-radius: 10px;

    border: 1px solid rgba(255,255,255,0.2);

    text-decoration: none;
    color: white;

    background: rgba(0, 150, 255, 0.1);

    transition: 0.2s;
}

.download_btn:hover {
    transform: translateY(-2px);
}

/* ================= SUPPORT ================= */

.support_btn {
    display: inline-block;
    margin-top: 15px;

    padding: 10px 14px;

    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);

    background: rgba(0, 150, 255, 0.12);
    color: white;
    text-decoration: none;

    transition: 0.2s;
}

.support_btn:hover {
    transform: translateY(-2px);
}

.top_btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;

    padding: 10px 20px;

    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;

    color: white;
    text-decoration: none;

    transition: 0.2s;
}

.top_btn:hover {
    transform: translateY(-2px);
}

/* ================= SERVER ================= */

.server_card {
    width: 700px;
    text-align: left;
}

.server_info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.info_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;

    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;

    padding: 12px 16px;
}

.info_label {
    opacity: 0.55;
    text-transform: lowercase;
    font-size: 0.9rem;
}

.info_value {
    font-weight: 600;
}

.copy_btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    font-family: inherit;
    color: white;
    font-weight: 600;

    background: rgba(0, 150, 255, 0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;

    padding: 6px 12px;
    cursor: pointer;

    transition: 0.2s;
}

.copy_btn:hover {
    transform: translateY(-2px);
}

.copy_btn.copied {
    background: rgba(0, 200, 120, 0.18);
}

.copy_hint {
    opacity: 0.6;
    font-size: 0.8rem;
    font-weight: 400;
}

.section_title {
    margin-top: 30px;
    margin-bottom: 10px;
    font-size: 1.1rem;
    opacity: 0.85;
}

.steps {
    margin: 0;
    padding-left: 20px;
    opacity: 0.85;
    line-height: 1.7;
}

.invite_form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field > span {
    opacity: 0.6;
    font-size: 0.85rem;
}

.field input,
.field textarea {
    font-family: inherit;
    font-size: 0.95rem;
    color: white;

    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;

    padding: 10px 12px;
    resize: vertical;

    transition: 0.2s;
    outline: none;
}

.field input:focus,
.field textarea:focus {
    border-color: rgba(0, 150, 255, 0.5);
    background: rgba(255,255,255,0.06);
}

.submit_btn {
    margin-top: 6px;
    padding: 12px 16px;

    font-family: inherit;
    font-size: 0.95rem;
    color: white;

    background: rgba(0, 150, 255, 0.18);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;

    cursor: pointer;
    transition: 0.2s;
}

.submit_btn:hover {
    transform: translateY(-2px);
}

.submit_btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.form_status {
    margin: 4px 0 0;
    min-height: 1.2em;
    font-size: 0.9rem;
    opacity: 0.85;
}

.form_status.ok    { color: #6bd97a; }
.form_status.error { color: #ff7a7a; }

.contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.contact_btn {
    display: inline-block;
    padding: 10px 14px;

    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);

    background: rgba(0, 150, 255, 0.12);
    color: white;
    text-decoration: none;

    transition: 0.2s;
}

.contact_btn:hover {
    transform: translateY(-2px);
}

@media (max-width: 760px) {
    .card, .server_card, .modpacks_card { width: auto; max-width: 92vw; padding: 24px; }
    .info_row { flex-direction: column; align-items: flex-start; gap: 6px; }
}
