/*
yellow:
FBC82E
*/

* {
  box-sizing: border-box;
}

@font-face {
  font-family: "BebasNeue-Regular";
  src: url("assets/BebasNeue-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "HedvigLettersSerif-Regular-VariableFont_opsz";
  src: url(assets/HedvigLettersSerif-Regular-VariableFont_opsz.ttf)
    format("truetype");
}

body {
  background-color: #191716;
  color: #f3f1eb;
  font-family: "HedvigLettersSerif-Regular-VariableFont_opsz";
}

h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 80px;
  text-decoration: underline;
}

h3 {
  text-align: center;
  font-size: 1.3em;
  text-transform: uppercase;
  font-family: "HedvigLettersSerif-Regular-VariableFont_opsz";
  font-weight: normal;
}

p {
  text-align: left;
  margin-bottom: 25px;
}

form {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  margin-top: 10%;
  margin-bottom: 10%;
  align-items: center;
}

main input {
  width: 25%;
  height: 50px;
  border-radius: 25px;
  border: #191716 3px solid;
  padding-left: 15px;
}
main input:focus {
  outline: none;
  border: #fbc82e 3px solid;
}

main button {
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  text-align: center;
  color: #f3f1eb;
  font-size: 1.5em;
  font-family: "BebasNeue-Regular";
  height: 50px;
  margin-left: 20px;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 25px;
  background-color: #b53929;
  border: #b53929 3px solid;
}
main button:hover {
  box-shadow: 0 0 10px 0 #fbc82e inset, 0 0 10px 2px #fbc82e;
  background-color: #fbc82e;
  color: #191716;
  border: #fbc82e 3px solid;
  cursor: pointer;
}

#titles {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  flex-direction: column;
  position: relative;
  padding-top: 15%;
  padding-bottom: 15%;
  margin-bottom: 10%;
  background-image: url("assets/papyrusjpg.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
  box-shadow: inset 0 0 100px 100px rgba(25, 23, 22, 1);
  border-radius: 30%;
}

.cont {
  position: relative;
}

h1 {
  font-size: 7em;
  position: relative;
  /* centrer le texte */
  text-align: center;
  color: #fbc82e;
  font-family: "BebasNeue-Regular";
  margin-top: 0;
  padding: 0;
  transform: rotate(-3deg);
  line-height: -2%;
}

#text-title {
  text-align: center;
  font-size: 1em;
  margin-top: 5%;
  margin-bottom: -1%;
  text-transform: uppercase;
}

.tape-title {
  /*resize a img*/
  height: auto;
  position: absolute;
  transform-origin: center;
}

#tape1 {
  width: 50px;
  left: 5%;
  top: 12%;
  transform: rotate(-80deg);
  opacity: 0.9;
  filter: contrast(0.8), brightness(1.2), saturate(1.5);
}

#stamp {
  width: 100px;
  right: -5%;
  top: -8%;
  transform: rotate(20deg);
}

.navbar a {
  text-decoration: none;
  color: #f3f1eb;
  margin-right: 20px;
  font-family: "BebasNeue-Regular";
  text-transform: capitalize;
  font-size: 1.8em;
  padding: 10px;
}

.navbar a:hover {
  color: #fbc82e;
}

#logoutImg {
  width: 30px;
  height: 30px;
  margin-right: 10px;
}

#logoutButton {
  background-color: #b53929;
  text-decoration: none;
  text-transform: uppercase;
  padding: 10px;
  border-radius: 5px;
}

.navbar #HomePage {
  color: #fbc82e;
  font-size: 2em;
  font-family: "BebasNeue-Regular";
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}
.hamburger {
  display: none;
}

.bar {
  color: #f3f1eb;
  background-color: #f3f1eb;
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.nav-menu {
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-item {
  margin-left: 3rem;
}

.nav-link {
  font-size: 1.6rem;
  font-weight: 400;
  color: #475569;
}

.nav-link:hover {
  color: #482ff7;
}

.nav-logo {
  font-size: 2.1rem;
  font-weight: 500;
  color: #482ff7;
}

#button_engimes {
  right: 0px;
  padding: 20px;
  background-color: #b53929;
  text-decoration: none;
  color: #f3f1eb;
  text-transform: uppercase;
}

main {
  width: 60%;
  position: relative;
  margin: auto;
  margin-top: 7%;
  margin-bottom: 10%;
}

.namePlusPic {
  display: flex;
  align-items: center;
  justify-content: left;
  flex-wrap: wrap;
  position: relative;
  margin-bottom: 5%;
}

.profilePic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  overflow: hidden;
  margin-left: 30px;
  margin-right: 50px;
}

.name {
  font-family: "BebasNeue-Regular";
  font-size: 3em;
}

.profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 5%;
}

.profile p {
  font-size: 1.5em;
  font-family: "BebasNeue-Regular";
}

h4 {
  font-size: 3em;
  font-family: "BebasNeue-Regular";
  text-align: center;
  margin-top: 15%;
}

/* graph */
@keyframes progress {
  0% {
    stroke-dasharray: 0 100;
  }
}
.circle-svg {
  max-height: 300px;
}
.percent-text {
  text-align: center;
  font-family: "BebasNeue-Regular";
  color: #f3f1eb;
  font-size: 10px;
}
.circle-svg path.percent {
  stroke: #b53929;
  fill: none;
  stroke-width: 2.8;
  stroke-linecap: round;
  animation: progress 1s ease-out forwards;
}
.circle-svg path.around {
  stroke: #c4c4c4;
  fill: none;
  stroke-width: 2.8;
}

strong[title="Votre niveau d'accréditation n'est pas suffisamment élevé"]:hover {
  cursor: not-allowed;
}

/* footer */
footer {
  position: relative;
  bottom: 0;
  width: 100%;
  background-color: #24221f;
  color: #f3f1eb;
  text-align: center;
  font-family: "BebasNeue-Regular";
  padding-top: 40px;
  padding-bottom: 40px;
}
.wrapper {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  position: relative;
}
.login-form {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  flex-direction: column;
  position: relative;
}

.wrapper h4 {
  font-size: 3em;
  margin-top: 0;
  margin-bottom: 30px;
}

li {
  list-style-type: none;
}

/* leaderboard */
#leaderboard {
  border-collapse: separate;
  border-spacing: 0 10px;
  margin-top: 10%;
  width: 100%;
  font-family: "BebasNeue-Regular";
  font-size: inherit;
}
#leaderboard th,
#leaderboard td {
  text-align: left;
  font: inherit;
  font-size: 1.5em;
  border: none;
}
#leaderboardTitle {
  font-family: "BebasNeue-Regular";
  font-size: 3em;
}

#leaderboard tr {
  background-color: #24221f;
}
.leaderboardRow {
  border-radius: 20px;
}

#leaderboard td:first-child {
  width: 5%;
}
#leaderboard td:nth-child(2) {
  width: 20%;
}
#leaderboard td:last-child {
  text-align: right;
}

#leaderboard img {
  display: block;
  margin: auto;
}

.profilePicLead {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  overflow: hidden;
}

/* podium */
#podium {
  display: block;
  margin: auto;
  width: 90%;
}

#firstThree {
  display: inline-flex;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
  width: 100%;
}

.podiumUser {
  background-color: #b53929;
  width: 25%;
  overflow: hidden;
  border-radius: 20px;
  padding: 10px;
}

.podiumUser a,
.podiumUser p {
  display: block;
  color: #f3f1eb;
  text-decoration: none;
  margin: auto;
  text-align: center;
  font-size: 1.5em;
  font-family: "BebasNeue-Regular";
  margin-bottom: 10px;
  margin-top: 10px;
  word-wrap: break-word;
}

.podiumImg {
  width: 70%; /* Utilisez 70% de la largeur du conteneur parent */
  height: 0;
  padding-bottom: 70%; /* Ajustez ce pourcentage pour conserver le ratio */
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
}

.podiumImg img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

#place1 {
  transform: scale(1.3);
}
#place1 img {
  border: 5px solid gold;
}

#place2 {
  transform: scale(1.15);
}
#place2 img {
  border: 5px solid silver;
}

#place3 img {
  border: 5px solid #cd7f32;
}

/*tweet*/
.twitter-tweet {
  position: relative;
  text-align: center;
  margin: auto;
}

/* tableau */

.resolu {
  color: #898883 !important;
  font-style: italic;
}
.resolu:hover {
  color: #fbc82e !important;
  cursor: pointer;
}

#enigmesTab {
  margin-top: 10%;
  margin-bottom: 10%;
  width: 100%;
  font-family: "BebasNeue-Regular";
  font-size: 1.5em;
  color: #f3f1eb;
  background-color: #24221f;
  border-radius: 15px;
}
#enigmesTab .droite {
  text-align: right;
}
#enigmesTab a {
  color: #f3f1eb;
  text-decoration: none;
}
#enigmesTab a:hover {
  color: #fbc82e;
}

#enigmesTab tr,
th {
  background-color: #24221f;
}

#enigmesTab th,
td {
  border: 2px solid rgb(79, 79, 79);
}

#enigmesTab tbody {
  white-space: nowrap;
}

#enigmesTab th,
td {
  padding: 20px;
  border-top-width: 0;
  border-left-width: 0;
}

#enigmesTab th {
  position: sticky;
  top: 0;
  vertical-align: bottom;
}

#enigmesTab th:last-child,
td:last-child {
  border-right-width: 0;
}

#enigmesTab tr:last-child td {
  border-bottom-width: 0;
}

.image-indice {
  display: block;
  width: 40%;
  height: auto;
  margin: auto;
  margin-top: 40px;
  margin-bottom: 40px;
}

.sketchfab-embed-wrapper,
.sketchfab {
  width: 100%;
  height: 500px;
}

a {
  color: #f3f1eb;
  text-decoration: none;
}
a:hover {
  color: #fbc82e;
}

/* badge */

.badges {
  display: flex;
  align-items: center;
  justify-content: left;
  position: relative;
  margin-bottom: 10%;
  flex-wrap: wrap;
  width: 100%;
}

.badge {
  width: 150px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  flex-direction: column;
  background-color: #24221f;
  color: #f3f1eb;
  padding: 10px;
  border-radius: 5px;
  padding-bottom: 20px;
  padding-top: 20px;
  font-size: 1em;
  height: 200px;

  margin: 25px;

  /* box shadow jaune */
  box-shadow: 0 0 10px 2px #fbc82e;
  transition: 0.2s;
}
.badgeNotFound {
  box-shadow: 0 0 10px 2px #a74231;
}
.badgeProOwned {
  box-shadow: 0 0 10px 2px rgb(147, 40, 165);
}
.badge:hover {
  transform: scale3d(1.1, 1.1, 1.1);
  box-shadow: 0 0 20px 4px #fbc82e; /* Augmentez la taille de l'ombre pendant le survol */
  transition: 0.2s;
}
.badgeNotFound:hover {
  box-shadow: 0 0 20px 4px #a74231;
}
.badgeProOwned:hover {
  box-shadow: 0 0 20px 4px rgb(147, 40, 165);
}

.badge:hover img {
  transform: scale3d(1.3, 1.3, 1.3);
}

.badge img {
  width: 70px;
  height: 70px;
  transition: 0.2s;
}

.badge .badgePercent {
  font-size: 0.6em;
  color: #d0ccbd;
  margin-top: 0%;
  margin-bottom: 0%;
  text-align: center;
}

.badgeProOwned .badgePercent {
  color: #24221f;
}

/* enigme 12 */
#enigme12 span {
  color: #f3f1eb;
}
#enigme12 .hide {
  color: #191716 !important;
}
#enigme12 span.hide::selection {
  color: #191716 !important;
}

@media (max-width: 990px) {
  main {
    width: 90%;
  }
  h1 {
    font-size: 8em;
  }
  h2 {
    font-size: 2em;
  }
  main input {
    height: 80px;
    width: 40%;
  }
  main button {
    height: 80px;
    font-size: 4em;
  }
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 5rem;
    flex-direction: column;
    background-color: #191716;
    width: 100%;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    margin: 2.5rem 0;
    font-size: 2.3rem;
  }

  .hamburger {
    display: block;
    cursor: pointer;
  }
  .bar {
    width: 50px;
    height: 6px;
    margin: 10px auto;
  }
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(16px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-16px) rotate(-45deg);
  }

  .leaderboardUser {
    font-size: 3rem;
  }
  .profilePicLead {
    width: 70px;
    height: 70px;
  }
  .image-indice {
    width: 100%;
  }
}
