:root{
    --color1: #F6D2E0;
    --color2: #F8B7CD;
    --color3: #FF93B7;
}

@import url('https://fonts.googleapis.com/css2?family=Itim&display=swap');

* {
    box-sizing: border-box;
    font-family: 'Itim', sans-serif;
}

body{
    background-color: var(--color1);
}

/* Navbar */

header{
    background-color: var(--color2);
}

.nvbar {
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nvbar-logo {
    height: 75%;
}

.nvbar-menu {
    display: flex;
    gap: 20px;
}

.nvbar-menu i{
    font-size: 30px;
}

.nvbar-text{
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nvbar-menu-item>button{
    padding: 5px;
    vertical-align: middle;
    background-color: transparent;
    border: none;
}

#btn-logout{
    display: flex;
    flex-direction: column;
    align-items: center;
}

#btn-logout>div{
    transform: translateY(5px);
}
#btn-logout>div:hover{
    color: white;
}

#btnLogout>div{
    transform: translateY(-10px);
}

#profile-name{
    font-size: 24px;
    font-weight: bold;
}

#user-online{
    font-size: 12px;
}

.online-icon{
    font-size: 1px!important;
    color: green;
}

/* Navbar END */

/* Lobby Page */

#lobby-box{
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: space-around;
    height: calc(100vh - 75px);
}

.logo{
    height: 40vh;
}

#btn-join{
    background-color: white;
    border: 1px solid black;
}

#profile-info{
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    padding: 20px;
    background-color: #F8B7CD;
    border-radius: 10px;
}

#profile-img{
    width: 250px;
    height: 250px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
}

#profile-img>img{
    object-fit: cover;
    width: 100%;
    height: 100%;
}

#profile-detail{
    font-size: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#profile-detail>#profile-username{
    font-size: 48px;
    font-weight: bold;
}

#profile-detail>#profile-email{
    transform: translateY(-20px);
}

#profile-detail>#profile-stat{
    display: flex;
    justify-content: space-between;
}

#profile-detail>#profile-exp{
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#profile-detail>#profile-exp>#profile-exp-info{
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

#profile-detail>#profile-exp>#profile-exp-progress-bar{
    width: 100%;
    height: 20px;
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
}

#profile-detail>#profile-exp>#profile-exp-progress-bar>div{
    width: var(--exp-percent);
    /* width: 50%; */
    height: 20px;
    background-color: var(--color3);
}

/* Lobby Page END */



/* leaderboard-lobby */
#leaderboard-lobby-box{
    display: flex;
}
#leaderboard-box{
    background-color: #FF93B7;
    width: 40vw;
    height: calc(100vh - 75px);
    /* margin-right: 7px; */
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
    padding-left: 7px;
}
#leaderboard-header{
    font-size: 3vh;
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: center;
}
#leaderboard-list{
    display: flex;
    flex-direction: column-reverse;
    border-bottom: 2px solid black;
}
#leaderboard-list ul{
    list-style-type: none;
    display: flex;
    border-bottom: 2px solid black;
    padding: 0;
    margin: 0;
    
}
#leaderboard-list ul li{
    text-align: center;
    align-items: center;
    flex: 1 1 calc((100% / 3) - 20px);
}
#leaderboard-list ul li p{
    flex-wrap: wrap;
}
.list-player{
    display: block;
    flex-wrap: wrap;
    flex-grow: 2;
    align-items: center;
    text-align: center;
}
.list-rank , .list-win {
    flex-grow: 1;
}
table{
    display: flex;
    flex-direction: column-reverse;
    
}
p {
    display: inline-block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
}
#btncloseLead{
    display: none;
    position: absolute;
    right: 10px;
    top: 5px;
    
}
#btncloseLead:hover{
    color: white;
    cursor: pointer;
}

.leaderboard-nav{
    border-bottom: 2px solid black;
}
.leaderboard-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
  }
  
.leaderboard-nav ul li{
    flex: 2;
}
.leaderboard-nav ul li.rank{
    flex: 1;
}
.leaderboard-nav ul li p {
    color: white;
    font-weight: 100;
    letter-spacing: 2px;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    transition: all 0.5s;
}

.leaderboard-rank{
    text-align: center;
}
.leaderboard-player{
    text-align: center;
}
.leaderboard-win{
    text-align: center;
}


.leader{
    list-style-type: none;
    display: flex;
}
#leaderboard-myRank{
    align-items: center;
    flex: 1;
    text-align: center;
}

/* leaderboard-lobby END*/



.modal-content{
    background-color: var(--color1);
}

.modal-header, .modal-body {
    border-bottom: 1px solid hsl(0, 0%, 0%, .25);
}

.modal .input-group-text{
    background-color: var(--color2);
    border: 1px solid hsl(0, 0%, 0%, .25);
}

.modal .form-select{
    border: 1px solid hsl(0, 0%, 0%, .25);
}
.homeimg{
    height: 55vh;
}
#homepge{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}
#btnLS{
    background-color: white;
    border: 1px solid black;
}
#btnSignup{
    padding: 0;
    color: black;
}
#login-input{
    width: 400px;
}
.chooseimg{
    display: flex;
}
.signimgbox{
    flex: 1 1 25%;
    padding-right: 10px;
    padding-bottom: 10px;
}
.chooseimg img{
    width: 100%;
}
/* .textbutton{
    display: flex;
    flex-direction: column;
    flex: 1 1 100%;
} */
.boxtextbutton{
    display: flex;
    flex-wrap: wrap;
}
.boxtextbutton button{
    margin: 5px;
}

.signupbox{
    display: flex;
    justify-content: center;
    align-items: center;
}

/* width */
::-webkit-scrollbar {
    width: 7px;
  }
  
  /* Track */
  /* ::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
  } */
  
  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
  }
  
  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background: #555;
    border-radius: 10px;
  }