@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap");

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    background:
        linear-gradient(rgba(0, 0, 0, 0.60), rgba(0, 0, 0, 0.60)),
        url("background.png") center center / cover fixed no-repeat;

    color: white;
    font-family: "Poppins", sans-serif;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.site-logo {
    display: block;
    width: min(80%, 500px);
    height: auto;
    margin: 40px auto 0;
}

.hero p {
    position: relative;
    z-index: 2;

    margin: -50px 20px 0;

    color: white;
    text-align: center;
    font-size: clamp(1rem, 2.5vw, 20px);
}

.bottom-card {
    grid-column: 1 / -1;
}



@media (max-width: 480px) {
    .site-logo {
        width: 85%;
        margin-top: 30px;
    }
}


h1 {
    color: whitesmoke;
    text-align: center;
    font-size: clamp(2rem, 6vw, 50px);
    line-height: 1.1;
    margin: 40px 20px 0;
}

h2 {
    color: white;
    text-align: center;
    font-size: clamp(1.4rem, 4vw, 30px);
}

h3 {
    color: white;
    font-size: clamp(1rem, 2.5vw, 20px);
    line-height: 1.6;
}

p {
    color: white;
    text-align: center;
    font-size: clamp(1rem, 2.5vw, 20px);
}

.announcement {
    width: 100%;

    padding: 12px 20px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 8px;

    background-color: #b91c1c;
    color: white;

    text-align: center;

    font-size: 14px;
}

.announcement strong {
    font-weight: 700;
}

.announcement span {
    color: #ffe0e0;
}

@media (max-width: 480px) {
    .announcement {
        padding: 10px 15px;
        font-size: 12px;
        gap: 3px;
    }
}


.content-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    width: min(90%, 1000px);
    margin: 80px auto 50px;
}

.content-card {
    width: 100%;
    padding: 2rem;
    border-radius: 15px;
    background-color: rgba(46, 46, 46, 0.60);
}


.site-footer {
    width: 100%;
    margin-top: auto;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #000;
}

.footer-logo {
    color: #f2f2f2;
    font-family: monospace;
    font-size: clamp(20px, 4vw, 25px);
    font-weight: bold;
    letter-spacing: -1px;
    line-height: 25px;
}

.footer-subtitle {
    margin-top: 1px;
    color: #777;
    font-size: 10px;
    line-height: 14px;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 7px;
}

.footer-links a {
    color: #777;
    font-size: 10px;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: #aaa;
}

@media (max-width: 700px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        width: min(90%, 500px);
        gap: 1.5rem;
        margin-top: 50px;
    }

    .content1,
    .content2 {
        padding: 1.5rem;
    }
}

.background-credit {
    width: 100%;
    padding: 6px 16px;

    color: rgba(255, 255, 255, 0.45);

    font-size: 18px;
    text-align: center;

    background: transparent;
}


.server-status {
    grid-column: 1 / -1;

    display: flex;
    align-items: center;

    gap: 20px;

    width: 100%;

    padding: 1.5rem 2rem;

    background-color: rgba(46, 46, 46, 0.60);

    border-radius: 15px;
}

.server-status img {
    width: 64px;
    height: 64px;

    flex-shrink: 0;

    border-radius: 8px;

    image-rendering: pixelated;
}

.server-info {
    min-width: 0;
    flex: 1;
}

.server-info h2 {
    margin: 0 0 4px;

    text-align: left;
}

.server-info p {
    margin: 0;

    color: #ccc;

    font-size: 14px;

    text-align: left;

    overflow: hidden;
    text-overflow: ellipsis;
}

.player-count {
    display: flex;
    align-items: baseline;

    gap: 4px;

    color: #fff;

    font-size: 22px;
    font-weight: bold;

    white-space: nowrap;
}

.player-count small {
    margin-left: 5px;

    color: #aaa;

    font-size: 11px;
    font-weight: normal;
}

@media (max-width: 700px) {
    .server-status {
        grid-column: auto;

        padding: 1.25rem;

        gap: 14px;
    }

    .server-status img {
        width: 56px;
        height: 56px;
    }

    .server-info h2 {
        font-size: 20px;
    }

    .server-info p {
        font-size: 12px;
    }

    .player-count {
        flex-direction: column;
        align-items: center;

        gap: 0;

        font-size: 18px;
    }

    .player-count small {
        margin: 2px 0 0;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .server-status {
        display: grid;
        grid-template-columns: auto 1fr;
    }

    .player-count {
        grid-column: 1 / -1;

        flex-direction: row;
        justify-content: center;

        gap: 4px;

        padding-top: 8px;

        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .player-count small {
        margin-left: 5px;
    }
}


@media (max-width: 480px) {
    h1 {
        margin-top: 30px;
    }

    .content-wrapper {
        width: calc(100% - 32px);
        margin-top: 35px;
        margin-bottom: 35px;
        gap: 1rem;
    }

    .content1,
    .content2 {
        padding: 1.25rem;
        border-radius: 12px;
    }

    h3 {
        text-align: center;
    }

    .footer-links {
        gap: 8px 14px;
    }

    .footer-links a {
        font-size: 10px;
    }
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.75);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: relative;

    width: min(100%, 600px);
    max-height: 85vh;

    padding: 35px;

    overflow-y: auto;

    background: #1c1c1c;

    border: 1px solid #333;
    border-radius: 15px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);

    transform: translateY(15px) scale(0.98);

    transition: transform 0.2s ease;
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;

    width: 32px;
    height: 32px;

    border: none;
    background: transparent;

    color: #777;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;

    transition: color 0.15s ease;
}

.modal-close:hover {
    color: white;
}

.modal-content {
    display: none;
}

.modal-content.active {
    display: block;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;

    text-align: left;

    color: white;
}

.modal-content p {
    margin: 0 0 15px;

    color: #aaa;

    font-size: 14px;
    line-height: 1.7;

    text-align: left;
}

body.modal-open {
    overflow: hidden;
}

.modal-content p {
    margin: 0 0 15px;
    color: #aaa;
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
}


@media (max-width: 480px) {
    .modal-overlay {
        padding: 15px;
    }

    .modal {
        max-height: 90vh;
        padding: 30px 20px 20px;

        border-radius: 12px;
    }

    .modal-content h2 {
        font-size: 22px;
    }

    .modal-content p {
        font-size: 13px;
    }
}
