:root {
    --gold: linear-gradient(rgb(183, 146, 0), #f0c929);
    --silver: linear-gradient(rgb(109, 109, 109), rgb(192, 192, 192));
    --bronze: linear-gradient(rgb(205, 127, 50), rgb(227, 177, 128));
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000;
    
    object-fit: cover;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-attachment: inherit;
    background-size: inherit;
    filter: blur(20px);
    background-image: url('imgs/background.png');
    background-attachment: fixed;
    background-size: cover;
    z-index: -1;
}

.icon-logo {
    display: flex;
    position: absolute;
    width: 100%;
    justify-content: center;
    transform: translateY(-10%);
}

.icon-logo img{
    width: 100px;
    height: 100px;
}

.classement-container {
    display: flex;
    flex-direction: column;
    margin: 5vh;
    height: calc(94vh - 10vh);
    border-radius: 10px;
    padding: 3vh;
    background: linear-gradient(180deg, rgba(67, 38, 146, 0.75) 30.5%, rgba(45, 26, 99, 0.75) 56.5%, rgba(20, 11, 44, 0.3) 100%);
    overflow: hidden;
}

.classement-container h1 {
    display: flex;
    justify-content: flex-start;
    color: white;
    font-size: 1.5em;
    margin: 0 0 4vh 0;
}

.classement {
    display: flex;
    /* background-color: rgba(0, 0, 0, 0.5); */
    height: 100%;
    max-height: 100%; /* Change height to max-height */
    overflow: hidden;
}

.classement-table {
    display: flex;
    flex-direction: column;
    width: 80%;
    overflow: auto;
}

.classement-table tr {
    justify-content: space-between;
    padding: 1vh;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
}

.classement-table td:first-child {
    background-color: rgba(0, 0, 0, 0.5);
    width: 10%;
    font-weight: bold;
}

.classement-table td:nth-child(2) {
    background-color: rgba(0, 0, 0, 0.2);
    width: 50%;
}

.classement-table td:nth-child(3) {
    font-weight: bold;
    color: gray;
    width: 20%;
}

.classement-table td:nth-child(4) {
    font-weight: bold;
    width: 10%;
}

.myPlace {
    padding-top: 1vh;
    width: 100%;
    height: 10%;
    overflow: auto;
}

.ranking {
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1vh;
    /* background-color: rgba(0, 0, 255, 0.5); */
    height: 100%;
    max-height: 100%;
    padding-left: 1vh;

    width: 20%;
}

.search-container input {
    font-size: 1em;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;

    width: calc(100% - 2vh);
    padding: 1vh;
    border-radius: 5px;
    border: none;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
}

.search-gamemodes {
    display: flex;
    justify-content: space-around;
    margin-top: 1vh;
    flex-wrap: wrap;
    gap: 1vh;
    overflow-y: auto;
    max-height: 100%;
}

.search-gamemodes a {
    width: calc(50% - 5vh);
    min-width: 100px;
    padding: 2vh;
    margin-bottom: 1vh;
    border-radius: 5px;
    color: white;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    background-position: center;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.search-gamemodes a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    /* background: rgba(0, 0, 0, 0.5); */
    backdrop-filter: blur(2px);
    z-index: 1;
}

.search-gamemodes a span {
    position: relative;
    z-index: 2;
}

.gamemode-text {
    display: flex;
    justify-content: center;
    align-items: center;
    /* background: linear-gradient(180deg, rgba(0.0, 0.0, 0.0, 0.0) 0%, rgba(0.0, 0.0, 0.0, 0.25) 50%, rgba(0.0, 0.0, 0.0, 0.5) 100%); */
    /* RADIAL GRADIENT MIDDLE BLACK -> TRANSPARENT */
    background: radial-gradient(circle, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    border-radius: 5px;
}

.top3-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2vh;
}

.place {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* PLACE SECOND CHILD */
.place:nth-child(2) {
    margin: 0 2vh;
    transform: translateY(-4vh);
}

.place h3 {
    display: flex;
    position: absolute;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.2vh 1vw;
    transform: translateY(calc(100% + 0.5vh));

    background: linear-gradient(180deg, rgba(67, 38, 146, 0.75) 50%, rgba(45, 26, 99, 0.75) 75%, rgba(20, 11, 44, 0.3) 100%);
    border-radius: 5px;
    color: white;
}

.place-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.place-info p {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.5vh;
    color: white;
    font-weight: bold;
}

.place-info p:first-child {
    margin: 1vh 0 0 0;
}

.icon-ranking {
    width: 25px;
    height: 25px;
    margin-left: 0.5vh;
}

/* Premier */
.poligon-first {
    display: inline-block;
    position: relative;
    width: 124.07px;
    height: 134.64px;
    box-sizing: border-box;
    -webkit-clip-path: polygon(0 25%, 50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%);
    clip-path: polygon(0 25%, 50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%);
}

.poligon-first img {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 116.07px;
    height: 126.64px;
    -webkit-clip-path: polygon(0 25%, 50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%);
    clip-path: polygon(0 25%, 50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%);
}

/* Deuxième */
.poligon-second {
    display: inline-block;
    position: relative;
    width: 134.07px;
    height: 134.64px;

    box-sizing: border-box;
    -webkit-clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

.poligon-second img {
    position: absolute;
    top: 4px; /* equal to border thickness */
    left: 4px; /* equal to border thickness */
    width: 126.07px;
    height: 126.64px;
    -webkit-clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

/* Troisième losange */
.poligon-three {
    display: inline-block;
    position: relative;
    width: 134.07px;
    height: 134.64px;

    box-sizing: border-box;
    -webkit-clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.poligon-three img {
    position: absolute;
    top: 4px; /* equal to border thickness */
    left: 4px; /* equal to border thickness */
    width: 126.07px;
    height: 126.64px;
    -webkit-clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

::-webkit-scrollbar {
    width: 8px;
  }
  
  /* Track */
  ::-webkit-scrollbar-track {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.40) 50%, rgba(0, 0, 0, 0.10) 100%);
    border-radius: 15px;
    /* opacity: 0.1; */
  }
  
  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: #0f0f0f;
    border-radius: 15px;
  }
  
  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background: #151515;
  }