@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&display=swap');

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    background: #F7F8F9;
}

.background-image img {
    width: 100%;
    height: 24rem;
    object-fit: cover;
    object-position: 0 +20%;
}

/* Server Info */

.server-info {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.server-info-container {
    position: relative;
    height: 21rem;
    width: 48rem;
    transform: translateY(calc(-21rem/2));
    background: #ffffff;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    font-family: Montserrat;
    font-style: normal;
    font-weight: 600;
    font-size: 1.6rem;
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
    align-items: center;
    padding: 3rem 5rem;
    min-height: 0;
    min-width: 0;
    justify-items: start;
}

.server-stat {
    border-radius: 92px;
    padding: 0.35rem 1rem;
    white-space: nowrap;
}

.server-stat-title {
    white-space: nowrap;
}

.server-info-footer {
    position: absolute;
    color: rgba(0, 0, 0, 0.5);
    font-size: 12px;
    font-weight: 600;
    right: 1rem;
    bottom: 1rem;
}

/* Set ellipses */

.ellipse-green {
    color: #065F46;
    background: #D1FAE5;
}

.ellipse-red {
    color: #991B1B;
    background: #FEE2E2;
}

.ellipse-yellow {
    color: #E9A219;
    background: #FEF3E2;
}

.ellipse-indigo {
    color: #4E46F5;
    background: #E0E7FF;
}

.ellipse-grey {
    color: #4B5563;
    background: #F3F4F6;
}

/* Online Players */

.divider1 {
    position: absolute;
    height: 1px;
    background: rgba(0, 0, 0, 0.25);
    width: 80%;
    left: 10%;
    transform: translateY(-4rem);
}

.player-divider {
    position: absolute;
    height: 1px;
    background: rgba(0, 0, 0, 0.25);
    width: 90%;
    left: 5%;
    margin: 10px 0;
}

.online-players h1 {
    margin: 4rem 0;
    display: flex;
    justify-content: center;
}

.player-card-container {
    position: relative;
    display: grid;
    grid-gap: 3rem 0px;
    grid-template-columns: 1fr 1fr 1fr;
    margin: 3rem;
    align-items: center;
    max-width: 100%;
    word-wrap: break-word;
    justify-items: center;
}

.player-license-item {
    font-size: .5rem;
}

.player-card {
    position: relative;
    min-height: 10rem;
    width: 22.5rem;
    background: #ffffff;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    font-family: Montserrat;
    font-style: normal;
    font-weight: 600;
    font-size: 1rem;
    overflow: visible;
    padding: 1rem;
    white-space: normal;
    word-wrap: break-word;
}

.player-card-top {
    display: flex;
    justify-content: space-between;
    width: 99%;
}

.player-name {
    margin-top: 20px;
}

.player-id {
    color: #646464;
    margin: 0 10px;
    text-align: center;
}

.player-ping {
    text-align: right;
    display: flex;
    justify-content: right;
    align-items: center;
}

.player-left, .player-right {
    display: flex;
    align-items: center;
}

.player-ping span { margin: 0 5px; }
.ping-green { color: #29A914; }
.ping-yellow { color: #DBB800; }
.ping-red { color: #BA160C; }

/* Media screens */

@media screen and (min-width: 1900px) {
    /* Online players */
    .player-card-container {
        grid-gap: 2rem;
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

@media screen and (max-width: 1300px) and (min-width: 1050px) {
    
    /* Server stats */
    .server-info-container {
        height: 18rem;
        width: 38rem;
        transform: translateY(calc(-15rem/2));
        font-size: 1.4rem;
        grid-gap: 2rem;
        padding: 1.5rem 3rem 5rem 3rem;
    }

    .server-stat {
        border-radius: 92px;
        padding: 0.175rem .75rem;
    }

    .background-image img {
        height: 20rem;
    }

    /* Online players */
    .player-card-container {
        grid-gap: 2rem;
        grid-template-columns: 1fr 1fr 1fr;
    }

    .player-card {
        width: 18rem;
    }
}

@media screen and (max-width: 1050px) and (min-width: 900px) {
    
    /* Server stats */
    .server-info-container {
        height: 18rem;
        width: 38rem;
        transform: translateY(calc(-15rem/2));
        font-size: 1.4rem;
        grid-gap: 2rem;
        padding: 1.5rem 3rem 5rem 3rem;
    }

    .server-stat {
        border-radius: 92px;
        padding: 0.175rem .75rem;
    }

    .background-image img {
        height: 20rem;
    }

    /* Online players */
    .player-card-container {
        grid-gap: 2rem;
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 900px) and (min-width: 750px) {
    
    /* Server stats */
    .server-info-container {
        height: 18rem;
        width: 38rem;
        transform: translateY(calc(-15rem/2));
        font-size: 1.4rem;
        grid-gap: 2rem;
        padding: 1.5rem 3rem 5rem 3rem;
    }

    .server-stat {
        border-radius: 92px;
        padding: 0.175rem .75rem;
    }

    .background-image img {
        height: 20rem;
    }

    /* Online players */
    .player-card-container {
        grid-gap: 2rem;
        grid-template-columns: 1fr 1fr;
    }

    .player-card {
        width: 18rem;
    }
}

@media screen and (max-width: 750px) and (min-width: 550px) {
    
    /* Server stats */
    .server-info-container {
        height: 16rem;
        width: 32rem;
        transform: translateY(calc(-15rem/2));
        font-size: 1.4rem;
        grid-gap: 2rem;
        padding: 2rem 2rem 3rem 2rem;
    }

    .server-stat {
        border-radius: 92px;
        padding: 0.175rem .75rem;
    }

    .server-info-footer {
        bottom: .75rem;
    }

    .background-image img {
        height: 20rem;
    }

    /* Online players */
    .player-card-container {
        grid-gap: 1rem;
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 550px) and (min-width: 410px) {
    
    /* Server stats */
    .server-info-container {
        position: relative;
        height: 12rem;
        width: 90%;
        transform: translateY(calc(-12rem/2));
        font-size: 1rem;
        padding: 1.5rem 3rem;
    }

    .server-info-footer {
        font-size: 9px;
        bottom: .5rem;
    }

    .server-stat {
        padding: 0.175rem .75rem;
    }

    .background-image img {
        height: 10rem;
    }

    /* Online players */
    .player-card-container {
        margin: .5rem;
        grid-gap: 1rem;
        grid-template-columns: 1fr;
    }

    .player-card {
        width: 90%;
    }
}

@media screen and (max-width: 410px) {
    
    /* Server stats */
    .server-info-container {
        position: relative;
        height: 22rem;
        width: 90%;
        grid-gap: 0;
        grid-template-columns: 1fr;
        justify-items: center;
        transform: translateY(calc(-12rem/2));
        font-size: 1rem;
        padding: 1.5rem 3rem;
        min-height: auto;
        min-width: auto;
    }

    .server-info-footer {
        font-size: 8px;
        bottom: .5rem;
    }

    .server-stat {
        padding: 0.175rem .75rem;
        text-align: center;
    }

    /* Background image */
    .background-image img {
        height: 10rem;
    }

    /* Online players */
    .player-card-container {
        margin: .5rem;
        grid-gap: 1rem;
        grid-template-columns: 1fr;
    }

    .player-card {
        width: 90%;
    }

    .player-id { 
        margin: 0 3px;
        font-size: .8rem;
    }

    .player-ping span {
        margin: 0 3px;
        font-size: .8rem;
    }
}