@import url('/assets/fonts/fonts.css');

:root {
    --HT1: #ffcf4a;
    --LT1: #d5b355;
    --HT2: #a4b3c7;
    --LT2: #888d95;
    --HT3: #dd8849;
    --LT3: #b36830;
    --HT4: #655b79;
    --LT4: #484058;
    --HT5: #437ab4;
    --LT5: #2e5176;
    --RHT: #651d6e;
    --RLT: #301234;
    --HT1-foreground: #806a24;
    --LT1-foreground: #6a5a2c;
    --HT2-foreground: #525c6a;
    --LT2-foreground: #44474d;
    --HT3-foreground: #6e4726;
    --LT3-foreground: #593a1e;
    --HT4-foreground: #342e41;
    --LT4-foreground: #242031;
    --HT5-foreground: #224263;
    --LT5-foreground: #1a2a3d;
    --RHT-foreground: #bdbd1b;
    --RLT-foreground: #bab023;
    --unranked: #363636;
    --unranked-foreground: #444444;
    --owner: #fff000;
    --tester: #00b7ff;
    --admin: #ff0000;
    --co-owner: #00ff00;
    --moderator: #9b7849;
}

body {

    background-color: #0a1018;
    color: white;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    max-width: 100%;

    a {

        color: white;

    }

}

nav {

    background-color: #10182499;
    backdrop-filter: blur(15px);
    border: 3px solid #1c293d;
    padding: 10px 15px;
    border-radius: 15px;
    display: flex;
    transition-duration: 0.4s;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    position: fixed;
    top: 10px;
    right: 50%;
    transform: translateX(50%);
    margin-left: 50%;
    width: 1000px;
    user-select: none;
    z-index: 5;

    #nav-links {

        display: flex;
        flex-direction: row;

    }

    .nav-button {

        padding: 10px;
        border-radius: 5px;
        text-decoration: none;
        color: #cadfff;
        transition-duration: 0.4s;

    }

    .nav-button:hover {

        background-color: #26375055;
        color: white;

    }

    #search {

        height: 40px;
        width: 170px;
        border: 2px solid #1e1e1e;
        border-radius: 10px;
        padding: 0px 5px;
        font-size: 1em;
        color: white;
        background-color: #141414;
        cursor: pointer;
        transition-duration: 0.4s;

    }

    #search:hover {

        background-color: #161616;
        cursor: text;

    }

    #search:focus {

        outline: none;
        border: 2px solid #1e1e1e;

    }

    #search-button {

        position: absolute;
        right: 20px;
        border: none;
        background-color: transparent;
        color: white;
        font-size: 1em;
        cursor: pointer;
        height: 40px;

    }

}

nav:hover {

    border: 3px solid #24344b;

}

main {

    width: 1200px;
    background-color: #101824;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 220px;
    padding: 15px;
    border: 2px solid #24344b;
    border-radius: 15px;
    gap: 10px;

    .card {

        display: flex;
        flex-direction: row;
        background-color: #1c293d;
        align-items: center;
        padding: 0 10px;
        border-radius: 15px;
        width: 90%;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        cursor: pointer;
        height: 100px;
        transition-duration: 0.2s;
        justify-content: space-between;
        margin-top: 5px;

        .profile {

            display: flex;
            flex-direction: row;
            gap: 5px;
            align-items: center;

            .stats {

                line-height: 5px;
                font-size: 1.1em;

            }

            .place {

                font-size: 2.2em;

            }

            .pfp {

                align-self: flex-end;

            }

            .rest {

                position: absolute;
                left: 75px;
                bottom: 0;
                display: flex;
                flex-direction: row;

            }

        }

    }

    .card:hover {

        left: calc(50% - 20px);
        background-color: #24344d;

    }

    .tier-container {

        display: flex;
        flex-direction: row;
        justify-self: end;
        width: 600px;
        height: 80px;
        border-radius: 5px;
        align-items: center;
        gap: 6px;

        .tier {

            text-align: center;

            img {

                background-color: #101824;
                padding: 3px;
                border-radius: 100%;

            }

            p {

                background-color: #6d5d2c;
                border-radius: 15px;
                font-weight: 600;
                color: #e8ba3a;
                padding: 0;
                margin: 0;
                width: 40px;
                height: 24px;

            }

            .retired {
                font-size: small;
                line-height: 24px;
            }

        }

    }

}

.gamemodes {

    margin-bottom: 0;
    width: 1200px;
    position: absolute;
    left: 50%;
    margin-top: 120px;
    transform: translateX(-50%);
    align-items: center;
    line-height: 16px;
    display: flex;
    flex-direction: row;
    gap: 15px;
    z-index: 1;

    .gamemode {

        text-align: center;
        cursor: pointer;
        background-color: #101824;
        border: 2px solid #24344b;
        border-bottom: none;
        border-radius: 15px 15px 0 0;
        width: 80px;
        height: 90px;
        padding-top: 10px;
        transition-duration: 0.2s;
        text-decoration: inherit;

    }

    .gamemode:hover {

        margin-top: -10px !important;
        height: 100px !important;

    }

}

#overlay {

    background-color: #00000044;
    z-index: 15;
    cursor: pointer;
    width: 100%;
    height: 100vh;
    position: fixed;

}

.pprofile {

    width: 650px;
    height: fit-content;
    background-image: linear-gradient(to bottom, #1d1d1d, #111111);
    position: fixed;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    z-index: 20;
    border-radius: 15px;

    #close {

        position: absolute;
        top: 25px;
        right: 25px;
        color: #161616;
        background-color: #1f1f1f;
        border-radius: 100%;
        font-size: 2em;
        padding: 15px;
        cursor: pointer;
        width: 25px;
        height: 25px;
        margin: 0;
        line-height: 0;

        p {

            position: absolute;
            top: -20px;

        }

    }

    .info {

        width: 250px;
        text-align: center;
        margin-left: 15px;

        .name {

            .minecraft {

                background-color: #00000055;
                font-family: 'Minecraft';
                padding: 5px;

            }

        }

    }

    .rank {

        font-size: 700%;
        font-weight: 400;
        position: absolute;
        right: 10px;
        bottom: 210px;
        transform: translateY(50%);

    }

    .container-title {

        position: absolute;
        bottom: 175px;
        right: 125px;
        z-index: 1;
        font-weight: 700;
        background-color: #4a535f;
        padding: 5px 50px;
        border-radius: 15px 15px 0 0;

    }

    .tier-container {

        display: flex;
        flex-direction: row;
        width: 350px;
        height: 150px;
        border-radius: 15px;
        align-items: center;
        gap: 10px;
        justify-content: space-evenly;
        position: absolute;
        right: 15px;
        bottom: 15px;
        background-color: #4a535f;
        flex-wrap: wrap;
        padding: 15px;
        box-shadow: 0 0 30px #000000aa;

        .tier {

            text-align: center;
            cursor: pointer;

            img {

                background-color: #101824;
                padding: 3px;
                border-radius: 100%;

            }

            p {

                background-color: #6d5d2c;
                border-radius: 15px;
                font-weight: 600;
                color: #e8ba3a;
                padding: 0;
                margin: 0;
                width: 40px;
                height: 24px;

            }

            .retired {
                font-size: small;
                line-height: 24px;
            }

        }

    }

}

.tooltip {
    
  position: relative;
  display: inline-block;

}

.tooltip .tooltiptext {

  visibility: hidden;
  width: 80px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 2;
  bottom: 125%;
  left: 50%;
  margin-left: -40px;
  opacity: 0;
  transition: opacity 0.3s;

}

.tooltip .tooltiptext::after {

  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  z-index: 2;
  border-color: #555 transparent transparent transparent;

}

.tooltip:hover .tooltiptext {

  visibility: visible;
  opacity: 1;

}

#template {

    display: flex;
    flex-direction: row;
    font-weight: 500;
    color: #2d3f5c;
    user-select: none;
    margin-left: 50px;

    #place {

        margin-left: 10px;

    }

    #name {

        margin-left: 140px;

    }

    #tiers {

        margin-left: 290px;

    }

}
