/* Colors */
:root {
    --primary-color: #7289da;
    --secondary-color: #99aab5;
    --background-color: #36393f;
    --text-color: #ffffff;
}

@font-face {
    font-family: font;
    src: url(https://gdjkhp.github.io/fonts/AmaticSC-Regular.ttf);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: black;
    color: white;
}

/* Rank card */
.rank-card {
    background-color: var(--background-color);
    border-radius: 10px;
    padding: 20px;
    width: 500px;
    margin: auto; /* center */
    position: relative;
    z-index: 1;
}
.rank-card-avatar {
    border-radius: 50%;
    overflow: hidden;
    position: absolute;
    height: 120px;
    width: 120px;
}
.rank-card-avatar img {
    height: 100%;
    width: 100%;
}

/* Progress bar */
.progress {
    background-color: var(--secondary-color);
    border-radius: 10px;
    height: 22px;
    overflow: hidden;
    display: flex;
    justify-content: flex-start;
    position: relative; /* Add this */
    z-index: 2;
    border: #000 solid 1px;
}
.progress-bar {
    background-color: var(--primary-color);
    height: 100%;
}
.progress-percent {
    position: absolute; /* Add this */
    right: 1%;
    font-weight: bold;
}
.progress2 {
    background-color: var(--secondary-color);
    /* border-radius: 0px 0px 5px 5px; */
    height: 12px;
    overflow: hidden;
    display: flex;
    justify-content: flex-start;
    position: relative; /* Add this */
    width: 95%;
    margin: -1px auto 1px auto;
    z-index: 1;
    border: #000 solid 1px;
}
.progress-bar2 {
    background-color: var(--primary-color);
    height: 100%;
}
.progress-percent2 {
    position: absolute; /* Add this */
    right: 1%;
    font-weight: bold;
    font-size: 8px;
}
.progress-label {
    font-size: 16px;
}
.progress-label-limit {
    opacity: 0.7;
}
.progress-label-msg {
    font-weight: bold;
}

/* let me take it from here */
/* div, span {
    border: 1px solid black;
} */
.info {
    width: 75%;
    margin-left: 25%;
}

/* user section */
.usernamegroup {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.usernamegroup a {
    text-decoration: none;
}
.usernamegroup a:hover {
    text-decoration: underline;
}
.otherstats:hover, .copy:hover, #json:hover, #wychee:hover, .copylink:hover {
    text-decoration: underline;
}
.discriminator {
    font-size: 16px;
    opacity: 0.7;
}

/* rank section */
.rankgroup {
    text-align: right;
}
.rank, .level {
    font-size: 16px;
}
.rank-number, .level-number {
    font-size: 32px;
    font-weight: bold;
}

/* footer section */
.footergroup {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
}
.serverpng {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 4px;
}
.otherstats {
    opacity: 0.7;
    white-space: nowrap; /* Prevent wrapping within the span */
}
.servername {
    opacity: 0.7;
    text-align: right;
}
.server {
    display: flex;
    justify-content: space-between;
}

/* website stuff */
.querygroup {
    text-align: center;
    position: fixed;
    left: 50%;
    transform: translate(-50%);
    background-color: #000;
    z-index: 3;
    border: white dashed 3px;
    padding: 10px;
}
a {
    /* text-decoration: none; */
    color: white;
}
.params {
    margin: auto;
    border: white solid 1px;
}
th {
    text-align: left;
    border: white solid 1px;
    padding: 5px;
}
td {
    border: white solid 1px;
    padding: 5px;
}
.foot {
    text-align: center;
}
#particles-js {
    width: 100%;
    height: 100%;
    position: fixed;
}

img:hover {
	animation: shake 0.5s;
	animation-iteration-count: infinite;
}
  
@keyframes shake {
	0% { transform: translate(1px, 1px) rotate(0deg); }
	10% { transform: translate(-1px, -2px) rotate(-1deg); }
	20% { transform: translate(-3px, 0px) rotate(1deg); }
	30% { transform: translate(3px, 2px) rotate(0deg); }
	40% { transform: translate(1px, -1px) rotate(1deg); }
	50% { transform: translate(-1px, 2px) rotate(-1deg); }
	60% { transform: translate(-3px, 1px) rotate(0deg); }
	70% { transform: translate(3px, 1px) rotate(-1deg); }
	80% { transform: translate(-1px, -1px) rotate(1deg); }
	90% { transform: translate(1px, 2px) rotate(0deg); }
	100% { transform: translate(1px, -2px) rotate(-1deg); }
}
.hiddengroup {
    text-align: center;
}
/* Progress bar (custom) */
.progress-custom {
    background-color: red;
    border-radius: 10px;
    height: 22px;
    overflow: hidden;
    display: flex;
    justify-content: flex-start;
    position: relative; /* Add this */
    z-index: 2;
    border: #000 solid 1px;
}
.progress-bar-custom {
    background-color: var(--secondary-color);
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: flex-start;
}
.progress-percent-custom {
    position: absolute; /* Add this */
    right: 1%;
    font-weight: bold;
}
.green-xp {
    font-weight: bold;
    color: lime;
}
.red-xp {
    font-weight: bold;
    color: red;
}
.progress-segment {
    height: 100%;
}

.realusername {
    font-size: 24px;
    font-weight: bold; 
}

.hidden-label {
    font-weight: bold;
}

.footinfo {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}

@media (max-width: 1000px) {
    .footinfo {
        flex-direction: column;
    }
}

@media (max-width: 570px) {
    .querygroup {
        width: 95%;
        max-width: 100%;
        padding: 8px;
        border-width: 2px;
    }
    .rank-card {
        width: 300px;
    }
    .rank-card-avatar {
        width: 60px;
        height: 60px;
    }
    .level-number, .rank-number {
        font-size: 16px;
    }
    .realusername {
        font-size: 12px;
    }
    .progress-percent, .progress-percent-custom, .green-xp, .red-xp, .rank, .level, .progress-label, .hidden-label {
        font-size: 8px;
    }
    .progress, .progress-custom {
        height: 12px;
    }
    .progress-percent2 {
        font-size: 6px;
    }
    .progress2 {
        height: 8px;
    }
    .footergroup {
        font-size: 6px;
    }
    .serverpng {
        width: 8px;
        height: 8px;
        margin-right: 2px;
    }
}