body{
    background-image: url('./img/background.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 900 ;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-repeat:no-repeat ;
}

.grey{
    color: grey;
}

.small{
    font-size: 0.8em;
    font-weight: 400;
}

.footer{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(50, 50, 50, 0.8);
    text-align: center;
}

.navbar{
    width: 100%;
    background-color: rgba(50, 50, 50, 0.8);
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

a.back{
    color: white!important;
    padding-left: 12px;
    text-decoration: none;
}

.navbar .user-info{
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.navbar img{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

#filter-label{
    margin-left: 10px;
    margin-right: 5px;
    cursor: pointer;
}


#filter-dropdown{
    display: none;
    position: absolute;
    top: 62px;
    left: 54px;
    background-color: rgba(50, 50, 50, 0.8);
    color: white;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

#filter-dropdown input[type="text"]{
    width: calc(100% - 10px);
    padding: 5px;
    font-size: 16px;
    border-radius: 4px;
    border: none;
    margin-bottom: 10px;
}

#filter-dropdown button{
    display: block;
    width: 100%;
    padding: 10px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    text-align: left;
    color: white;
}

#filter-dropdown button.active{
    font-weight: inherit;
}

.badges{
    display: inline-block;
    max-width: 272px;
}

.listeelement > .fa-circle-xmark + span{
    font-weight: 600;
}

.logout{
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    background: none;
    border: none;
}

.container{
    margin-top: 80px;
    text-align: center;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-btn{
    display: inline-block;
    padding: 10px 20px;
    color: #fff;
    background-color: #6441a5;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid #6441a5;
}

.login-btn:hover{
    background-color: white;
    color: #6441a5;
}

.cards{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 50px;
}

.card{
    padding: 16px;
    margin: 16px;
    flex: 0 0 calc(25% - 40px);
    box-sizing: border-box;
    transition: transform 0.5s;
    perspective: 1000px;
}

.card.rotated{
    animation: spin 0.5s forwards;
}

@keyframes spin{
    0%{
        transform: rotateY(0deg);
    }
    100%{
        transform: rotateY(360deg);
    }
}

.card img{
    max-width: 250px;
    object-fit: contain;
    border-radius: 4px;
    backface-visibility: hidden;
    transition: transform 0.5s;
}

#enlarged-card{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

#enlarged-card-img{
    width: 400px;
    object-fit: contain;
    border-radius: 4px;
    transition: transform 0.5s;
    cursor: pointer;
}

#enlarged-card-close{
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: white;
    cursor: pointer;
}

.login{
    margin-top: 0!important;
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
}

.khapture img{
    cursor: pointer;
}

.tri.active i{
    display: inline-block;
}

.tri i{
    display: none;
}

.reseau{
    color: white;
    padding: 10px 7px;
}

.hvr-grow {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-property: transform;
  transition-property: transform;
}
.hvr-grow:hover, .hvr-grow:focus, .hvr-grow:active {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

.badge{
    isplay: inline-block;
    width: 27px;
    padding: 2px;
    float: left;
    position: relative;
    margin: 2px;
}

.badge .badgeinfo {
  visibility: hidden;
  background-color: #252525;
  color: #fff;
  text-align: center;
  padding: 5px;
  border-radius: 6px;
  width: 120px;
  bottom: 100%;
  left: 50%;
  margin-left: -60px;
  font-weight: 500;
  font-size: 0.8em;
 
  /* Position the tooltip text - see examples below! */
  position: absolute;
  z-index: 1;
}

.badge:hover .badgeinfo{
  visibility: visible;
}


.locked path,
.locked circle{
    fill: grey;
    opacity: 0.5;
}

.unlocked.bronze path,
.unlocked.bronze circle{
    fill: #795548;
}

.unlocked.argent path,
.unlocked.argent circle{
    fill: #a2a2a2;
}

.unlocked.or path,
.unlocked.or circle{
    fill: #ca9324;
}


.unlocked.platine path,
.unlocked.platine circle{
    fill: #81efec;
}


.listeelement{
    display: inline-block;
    float: left;
    width: 100%;
    padding-bottom: 5px;
}

.fa-circle-xmark{
    color: red;
}

.fa-circle-check{
    color: green;
}

@-webkit-keyframes hvr-bob {
  0% {
    -webkit-transform: translateY(-8px);
    transform: translateY(-8px);
  }
  50% {
    -webkit-transform: translateY(-4px);
    transform: translateY(-4px);
  }
  100% {
    -webkit-transform: translateY(-8px);
    transform: translateY(-8px);
  }
}
@keyframes hvr-bob {
  0% {
    -webkit-transform: translateY(-8px);
    transform: translateY(-8px);
  }
  50% {
    -webkit-transform: translateY(-4px);
    transform: translateY(-4px);
  }
  100% {
    -webkit-transform: translateY(-8px);
    transform: translateY(-8px);
  }
}
@-webkit-keyframes hvr-bob-float {
  100% {
    -webkit-transform: translateY(-8px);
    transform: translateY(-8px);
  }
}
@keyframes hvr-bob-float {
  100% {
    -webkit-transform: translateY(-8px);
    transform: translateY(-8px);
  }
}
.hvr-bob {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
}
.hvr-bob:hover, .hvr-bob:focus, .hvr-bob:active {
  -webkit-animation-name: hvr-bob-float, hvr-bob;
  animation-name: hvr-bob-float, hvr-bob;
  -webkit-animation-duration: .3s, 1.5s;
  animation-duration: .3s, 1.5s;
  -webkit-animation-delay: 0s, .3s;
  animation-delay: 0s, .3s;
  -webkit-animation-timing-function: ease-out, ease-in-out;
  animation-timing-function: ease-out, ease-in-out;
  -webkit-animation-iteration-count: 1, infinite;
  animation-iteration-count: 1, infinite;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
  -webkit-animation-direction: normal, alternate;
  animation-direction: normal, alternate;
}

@-webkit-keyframes hvr-buzz-out {
  10% {
    -webkit-transform: translateX(3px) rotate(2deg);
    transform: translateX(3px) rotate(2deg);
  }
  20% {
    -webkit-transform: translateX(-3px) rotate(-2deg);
    transform: translateX(-3px) rotate(-2deg);
  }
  30% {
    -webkit-transform: translateX(3px) rotate(2deg);
    transform: translateX(3px) rotate(2deg);
  }
  40% {
    -webkit-transform: translateX(-3px) rotate(-2deg);
    transform: translateX(-3px) rotate(-2deg);
  }
  50% {
    -webkit-transform: translateX(2px) rotate(1deg);
    transform: translateX(2px) rotate(1deg);
  }
  60% {
    -webkit-transform: translateX(-2px) rotate(-1deg);
    transform: translateX(-2px) rotate(-1deg);
  }
  70% {
    -webkit-transform: translateX(2px) rotate(1deg);
    transform: translateX(2px) rotate(1deg);
  }
  80% {
    -webkit-transform: translateX(-2px) rotate(-1deg);
    transform: translateX(-2px) rotate(-1deg);
  }
  90% {
    -webkit-transform: translateX(1px) rotate(0);
    transform: translateX(1px) rotate(0);
  }
  100% {
    -webkit-transform: translateX(-1px) rotate(0);
    transform: translateX(-1px) rotate(0);
  }
}
@keyframes hvr-buzz-out {
  10% {
    -webkit-transform: translateX(3px) rotate(2deg);
    transform: translateX(3px) rotate(2deg);
  }
  20% {
    -webkit-transform: translateX(-3px) rotate(-2deg);
    transform: translateX(-3px) rotate(-2deg);
  }
  30% {
    -webkit-transform: translateX(3px) rotate(2deg);
    transform: translateX(3px) rotate(2deg);
  }
  40% {
    -webkit-transform: translateX(-3px) rotate(-2deg);
    transform: translateX(-3px) rotate(-2deg);
  }
  50% {
    -webkit-transform: translateX(2px) rotate(1deg);
    transform: translateX(2px) rotate(1deg);
  }
  60% {
    -webkit-transform: translateX(-2px) rotate(-1deg);
    transform: translateX(-2px) rotate(-1deg);
  }
  70% {
    -webkit-transform: translateX(2px) rotate(1deg);
    transform: translateX(2px) rotate(1deg);
  }
  80% {
    -webkit-transform: translateX(-2px) rotate(-1deg);
    transform: translateX(-2px) rotate(-1deg);
  }
  90% {
    -webkit-transform: translateX(1px) rotate(0);
    transform: translateX(1px) rotate(0);
  }
  100% {
    -webkit-transform: translateX(-1px) rotate(0);
    transform: translateX(-1px) rotate(0);
  }
}
.hvr-buzz-out {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
}
.hvr-buzz-out:hover, .hvr-buzz-out:focus, .hvr-buzz-out:active {
  -webkit-animation-name: hvr-buzz-out;
  animation-name: hvr-buzz-out;
  -webkit-animation-duration: 0.75s;
  animation-duration: 0.75s;
  -webkit-animation-timing-function: linear;
  animation-timing-function: linear;
  -webkit-animation-iteration-count: 1;
  animation-iteration-count: 1;
}

.hvr-buzz-out:hover path,
.hvr-buzz-out:focus path,
.hvr-buzz-out:active path,
.hvr-buzz-out:hover circle,
.hvr-buzz-out:focus circle,
.hvr-buzz-out:active circle{
    transition-duration: 1s;
    transition-property: fill;
    fill: red;
}

@media screen and (max-width: 560px){
    .card{
        flex: 0 0 calc(100% - 0px)!important;
    }
    .card img{
        max-width: 100%;
    }
}