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



body {
    width:  100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    user-select: none;
   /* background-image: url("img/bg.png");*/
    background-position: center;
    background-size: cover;
    overflow: hidden;
    position: relative;
    box-sizing:border-box;
    gap: -2vh;
   /* background: var(--default-bg); */
}

body::-webkit-scrollbar {display:none;margin: 0;}

:root {
    --bg: #171717;
    --bg-l: #DA0037;
    --select: #444444;
    --select-l: #00FFC6;
    --text: #EDEDED;
    --circle: #ff0040;
    --edit-icon: rgba(237, 237, 237, 0.5);
    --stat: rgba(68, 68, 68, 0.5);
    --stat-hover: rgba(68, 68, 68, 0.75);
    --edit-icon2: rgba(237, 237, 237, 0.6);
    --leaderboard-gradient:linear-gradient(0deg, rgba(0,0,0,0.3) 0%, rgba(23,23,23,1) 100%) ;
    --header: rgba(237, 237, 237, 0.75);
    --shadow: 0 0 25px 5px rgb(0, 0, 0);
    --button: rgba(218, 0, 55, 0.25);
    --button-text: rgba(237, 237, 237, 0.75);
    --default-bg: rgba(0, 0, 0, 0.75);
}

@font-face {
    font-family: Poppins-Medium;
    src: url(fonts/Poppins-Medium.otf);
}

@font-face {
    font-family: Poppins-ExtraBold;
    src: url(fonts/Poppins-ExtraBold.otf);
}

@font-face {
    font-family: Poppins-ExtraLight;
    src: url(fonts/Poppins-ExtraLight.otf);
}

@font-face {
    font-family: Rift-Bold;
    src: url(fonts/Rift-Bold.otf);
}

@font-face {
    font-family: Rift-Demi;
    src: url(fonts/Rift-Demi.otf);
}

@font-face {
    font-family: Bahnschrift;
    src: url(fonts/Bahnschrift.TTF);
}

@font-face {
    font-family: Bahnschrift-Light;
    src: url(fonts/Bahnschrift-Light.TTF);
}

@font-face {
    font-family: Poppins-Regular;
    src: url(fonts/Poppins-Regular.otf);
}

* {
    font-family: Poppins-Medium;
}

.my-profile, .player-profile {
    width: 50vh;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    position: relative;
    border-radius: 10px 10px 10px 10px;
    background-color: var(--bg);
    z-index: 1;
}

.player-profile {
    box-shadow: var(--shadow);
}

.myp-profiles {
    width:  100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: transparent;
    overflow: hidden;
    position: relative;
}

.myp-profiles > img {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

.mypp-information {
    width:  100%;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: normal;
    justify-content: flex-start;
    padding: .5vh;
    gap: .2vh;
}

.myp-pp {
  width: 20vh;
  height: 50vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10%;
  z-index: 2;
  overflow: hidden;
}

.myp-pp > img {
    border-radius: 100%;
    width: 100%;
    border: .3vh solid  rgb(75,0,130);
}
.myp-names {
    position: absolute;
    top: 85%;
    transform: translateY(-50%);
    gap: 0.5vh;
    z-index: 2;
    display: flex;
    justify-content: center;      /* Center horizontally */
    align-items: center;          /* Optional: center vertically */
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
}

.myp-name {
    width: 100%;
    height: 10%;
    display: flex;
    align-items: center;       /* Vertically center text */
    justify-content: center;   /* Horizontally center span */
}

.myp-name > span {
    color: var(--text);
    font-size: 2.75vh;
    text-transform: capitalize;
    white-space: nowrap;
    text-overflow: ellipsis;
    
    display: block;
    width: 100%;
    text-align: center;
}

.myp-names1 {
    position: absolute;
    top: 97.5%;
    transform: translateY(-50%);
    gap: 0.5vh;
    z-index: 2;
    display: flex;
    justify-content: center;      /* Center horizontally */
    align-items: center;          /* Optional: center vertically */
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
      border-radius: 15px 15px 1px 1px;
}

.myp-name1 {
    width: 70%;
    height: 10%;
    display: flex;
    align-items: center;       /* Vertically center text */
    justify-content: center;   /* Horizontally center span */
    background: linear-gradient(360deg, transparent,#0f0016 10%, rgb(75,0,130) 100%);
    border-radius: 5px 5px 1px 1px;
}

.myp-name1 > span {
    color: rgb(217, 167, 255);
    font-size: 1.55vh;
    text-transform: capitalize;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
    text-align: center;
    box-shadow: 0 0 25px 255px rgb(0, 0, 0);
     border-radius: 15px 15px 1px 1px;
}




#edit-banner {
    position: absolute;
    right: 1vh;
    top:   1vh;
    z-index: 3;
    font-size: 1.25vh;
    color: var(--edit-icon);
    transition: .2s ease-out;
}

#edit-banner:hover {
    color: var(--text);
    transform: scale(1.2);
}

#edit-banner:active {
    top: 8px;
}

#close-profile {
    position: absolute;
    right: 1vh;
    top:   1vh;
    z-index: 3;
    font-size: 1.25vh;
    color: var(--edit-icon);
    transition: .2s ease-out;
}

#close-profile:hover {
    color: var(--bg-l);
    transform: scale(1.2);
}

#close-profile:active {
    top: 8px;
}

#close-input {
    position: absolute;
    right: 1vh;
    top:   1vh;
    z-index: 3;
    font-size: 1.25vh;
    color: var(--edit-icon);
    transition: .2s ease-out;
}

#close-input:hover {
    color: var(--bg-l);
    transform: scale(1.2);
}

#close-input:active {
    top: 8px;
}

.stats {
    width:  100%;
    height: calc(100% - 13vh);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: .5vh;
    padding: 1vh;
    overflow-y: auto;
    overflow-x: hidden;
   
}

.stat-div {
    width:  100%;
    height: 5.5vh;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.stat {
    width:  45%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: .25vh;
    border-radius: .25vh;
    background: linear-gradient(360deg, transparent,#0f0016 10%, rgb(75,0,130) 90%);
    gap: .2vh;
}

.stat:hover {
    background-color: var(--stat-hover);
}

.stat-icon {
    width: 15%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon > i {
    color: var(--text);
    font-size: 2.75vh;
}

.stat-text {
    width: 60%;
    height: 45%;
    display: flex;
    align-items: right;
    justify-content: flex-start;
    
}

.stat-text > span {
    font-family: Poppins-Medium;
    color: white;
    font-size: 1.55vh;
    text-transform: uppercase;
    text-overflow: ellipsis;
    overflow: hidden !important;
    text-align: center;
}

.stat-count {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    text-transform: capitalize;
    text-overflow: ellipsis;
    overflow: hidden !important;
}

.stat-count > span {
    font-family: Poppins-Medium;
    color: rgb(217, 167, 255);
    font-size: 1.7vh;
    text-transform: capitalize;
    text-overflow: ellipsis;
    overflow: hidden !important;

}

.stat-rank {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    text-transform: capitalize;
    text-overflow: ellipsis;
    overflow: hidden !important;
}


.stat-rank > span {
    font-family: Poppins-Medium;
    color: rgb(217, 167, 255);
    font-size: 5.0vh;
    text-transform: capitalize;
    text-overflow: ellipsis;
    overflow: hidden !important;

}


.stat-textrank {
    width: 60%;
    height: 45%;
    display: flex;
    align-items: right;
    justify-content: flex-start;
    
}

.stat-textrank > span {
    font-family: Poppins-Medium;
    color: white;
    font-size: 1.55vh;
    text-transform: uppercase;
    text-overflow: ellipsis;
    overflow: hidden !important;
    text-align: center;
}

#date-first {
    font-size: 1vh;
}

#date-last {
    font-size: 1vh;
}

#rank-text {
    font-size: 1.55vh;
}

.leaderboard {
    width: 100vh;
    height: 60vh;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    border-radius: 1.0vh;
    background-position: center;
    background-size: cover;
    background: linear-gradient(45deg, #0f0016 0%, rgb(75,0,130) 100%);
    opacity: 1.0;
}

.header {
    width: 100%;
    height: 5.5vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-bottom: .1vh solid rgba(255, 255, 255, 0.436);
    background: linear-gradient(45deg, #0f0016 0%, rgb(75,0,130) 100%);
}

.header span {
    color: white;
    font-size: 1.86vh;
    text-transform: uppercase;
    text-overflow: ellipsis;
    overflow: hidden !important;
    font-family:Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 800px;
}

.header-rank {
   width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-rank {
    width: 50%;
    height: 150%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.line {
    width: .20vh;
    height: 100%;
    display: flex;
    background-color: rgb(75,0,130);
}

.header-name {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-name {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
   
}

.header-kill, .header-death {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-kill {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-death {
     width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-gang, .header-kda {
  width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-gang, .player-kda {
   width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    
}


.player-leaderboard {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    color: rgb(217, 167, 255);
}

.player-leaderboard::-webkit-scrollbar {
    width: .5vh;
}

.player-leaderboard::-webkit-scrollbar-track {
    border-radius: 2vh;
}

.player-leaderboard::-webkit-scrollbar-thumb {
    background: var(--select);
    border-radius: 2vh;
}

.player-lines {
    width: 100%;
    height: 6.5vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .55vh;
    border-bottom: .1vh solid rgba(255, 255, 255, 0.436);
    padding-bottom: .15vh;
      white-space: nowrap;
    overflow: hidden !important;
    text-overflow: ellipsis;
 
}

.player-lines:hover {
    background-color: rgb(116, 0, 199);
}

.player-lines span {
    color: rgb(217, 167, 255);
    font-size: 1.7vh;
    text-transform: uppercase; 
    white-space: normal;
    overflow: hidden !important;
    text-overflow: ellipsis;
    font-family: 'Kanit', sans-serif;
    letter-spacing: 2px;
    font-weight: 800px;
}

.pop-up {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
    background-color: rgba(23, 23, 23, 0.85);
 
}

.load-bar {
    width:  4vh;
    height: 4vh;
    margin: 0;
    background: transparent;
  
    border-right: .45vh solid transparent;
    border-radius: 50%;
    -webkit-animation: .5s spin linear infinite;
    animation: .5s spin linear infinite;
}

@-webkit-keyframes spin {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
          
@keyframes spin {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.banner-input {
    width: 30vh;
    height: 15vh;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-direction: column;
    border-radius: .5vh;
     background: linear-gradient(45deg, #0f0016 0%, rgb(75,0,130) 100%);
    position: relative;
    box-shadow: var(--shadow);
}

.banner-input > span {
    color: var(--text);
    font-size: 1.5vh;
    text-transform: uppercase;
    text-overflow: ellipsis;
    overflow: hidden !important;
    font-family: Bahnschrift;
  
}

.banner-input > input {
    width: 50%;
    height: 15%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: none;
    outline: none;
    background-color: var(--select);
    color: var(--text);
    border-radius: .25vh;
    font-family: Bahnschrift;
    border-bottom: .25vh solid transparent;
}

.banner-input > input:focus {
    border-bottom: .25vh solid var(--bg-l);
}

.banner-input > button {
    width: 7vh;
    height: 3.5vh;
    text-align: center;
    border: none;
    outline: none;
    background: linear-gradient(45deg, #0f0016 0%, rgb(75,0,130) 100%);
    color: white;
    border-radius: .25vh;
    font-family: Bahnschrift;
    transition: .2s ease-out;
    text-transform: capitalize;
}

.banner-input > button:hover {
    transform: scale(1.05);
      background: linear-gradient(45deg, #d987ff 0%, rgb(75,0,130) 100%);
  
    color: var(--text);
}

.banner-input > button:active {
    position: relative;
    top: 1px;
}

#ptime {
    font-size: 1.25vh;
}