html,
body {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
  font-family: 'Roboto', Arial, sans-serif;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
  animation: neon-line 5s linear infinite;
  z-index: 1000;
}

@keyframes neon-line {
  0% {
    background-position: 0%;
  }
  100% {
    background-position: 400%;
  }
}

.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  border-radius: 25px;
  margin: auto;
  margin-top: 20px;
  margin-bottom: 20px;
  width: 30%;
  position: relative;
  z-index: 2;
  background: linear-gradient(to right, #bcbcbc67, #ffffff4d);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  height: 50px;
}

.navbar .logo {
  position: absolute;
  transform: translateX(-1870%);
  z-index: 3;
}

.navbar .logo img {
  height: 55px;
  width: auto;
}

.navbar .brand {
  position: absolute;
  transform: translateX(-685%);
  z-index: 3;
}

.navbar .brand a {
  text-decoration: none;
}

.navbar .brand h1 {
  font-family: 'Orbitron', sans-serif;
  color: #ffffff;
  font-size: 24px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
  margin: 0;
  padding: 0;
  white-space: nowrap;
}


.navbar .brand h1:hover {
  color: #ff512f;
  text-shadow: 0 0 15px rgba(255, 82, 47, 0.8);
}


nav ul {
  display: flex;
  list-style: none;
  margin-bottom: 25px;
}

nav, ul {
  margin: auto;
}

nav li {
  margin-right: 20px;
}

nav a {
  color: rgb(255, 255, 255);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
  font-weight: bold;
}


nav a:hover, nav a:active {
  color: #ff512f;
  text-shadow: 0 0 15px rgba(255, 82, 47, 0.8);
}

nav ul i {
  margin-right: 5px;
}

.search-icon {
  position: absolute;
  top: 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to right, #ff512f, #dd2476);
  border-radius: 50%;
  padding: 7px;
  color: white;
  font-size: 30px;
  cursor: pointer;
  z-index: 4;
}

.search-bar {
  position: absolute;
  display: none;
  top: 50%;
  margin: auto;
  transform: translateY(-50%);
  border-radius: 30px;
  padding: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: calc(107% - 40px);
  max-width: 600px;
  background-image: linear-gradient(to right, rgb(255, 82, 47), rgb(221, 36, 119));
  background-size: 100% 3px;
  background-position: 0% 100%;
  transition: background-position 0.5s ease-out;
  z-index: 3
}

.search-bar:hover {
  background-position: 100% 100%;
}

.search-bar input {
  border: none;
  outline: none;
  padding: 10px;
  font-size: 16px;
  width: 100%;
  background-color: #25465309;
  color: #fff;
}

.search-bar input::placeholder {
  color: #ccc;
  opacity: 1;
}

.close-btn {
  position: absolute;
  top: -8px;
  right: -45px;
  font-size: 40px;
  cursor: pointer;
  background: none;
  border: none;
  color: #fff;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);

}

.close-btn:hover {
  color: #ff0000;
}

.search-bar.open .close-btn {
  display: block;
}

.search-bar:not(.open) .close-btn {
  display: none;
}

.clear-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
}

.clear-btn.show {
  display: block;
}

.clear-btn:hover {
  color: #720000;
}


.search-results {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.95);
  width: calc(105% - 40px);
  display: none;
  padding: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(-30px);
  border-radius: 8px;
}

.search-results.open {
  display: block;
  opacity: 1;
  transform: translateY(8px);
}

.game-sheet {
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.game-sheet:hover {
  background-color: rgba(240, 240, 240, 0.5);
  transform: scale(1.02);
}

.game-sheet.selected {
  background-color: rgba(200, 200, 200, 0.5);
}

.user-icon {
  position: absolute;
  top: 50%;
  right: -450px;
  background: linear-gradient(to right, #eaeaea8b, #ffffff8c);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(-50%);
  cursor: pointer;
  border: none;
  transition: border 0.3s ease;
}

.user-icon i {
  font-size: 25px;
  color: #ffffff;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  margin-left: 10px;
}

.user-icon:focus, .user-icon:hover {
  border: 2px solid rgb(255, 82, 47);
  border-radius: 50%;
}

.dropdown {
  position: relative;
  display: inline-block;
  right: 90px;
  top: 8px;
}

.dropbtn {
  background-color: transparent;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #272727;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 10px;
}

.dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #555;
}

.user-icon:hover .dropdown-content {
  display: block;
}

header {
  position: relative;
  top: -115px;
  z-index: 1;
  display: block;
}

header img {
  width: 100%;
  height: auto;
  transform: skewY(1deg);
}

.flash-messages {
  position: sticky;
  top: 0;
  z-index: 1030;
}

.carousel {
  margin: auto;
  margin-bottom: 50px;
  width: 60%;
}

.carousel-indicators li {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  list-style-type: none;
  margin: 0 3px;
}

.carousel-indicators li.active {
  background-color: rgb(250, 121, 0);
}

.avatar-image {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
}

.miniature-avatar {
  width: 50px;
  height: 50px;
}

.name-container {
  border-radius: 5px;
  margin-bottom: 10px;
}

.img-thumbnail {
  max-width: 100%;
  max-height: 400px;
  object-fit: cover;
  border: none;
}

.no-cover-image {
  max-width: 100%;
  max-height: 360px;
}

.card-img-top {
  object-fit: cover;
  width: 100%;
  height: 100%;
}


.description-container {
  border-radius: 5px;
  margin-bottom: 10px;
}

.text-justify {
  text-align: justify;
}

.embed-responsive {
  height: 350px;
}

.card:hover .card-img-top {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card:hover .card-img-top::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateZ(-20px);
  transition: transform 0.5s ease-in-out;
}

.overlay-description {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(156, 156, 156, 0.37);
  backdrop-filter: blur(5px);
  color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease-out;
  border-radius: 25px;
}

.card:hover .overlay-description {
  opacity: 1;
  transition: opacity 0.4s ease-out;
}


.fas.fa-star.fa-2x {
  color: #ffd700;
}

.rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-start;
  align-items: center;
}

.rating > input {
  display: none;
}

.rating > label {
  cursor: pointer;
  color: #ccc;
}

.rating > input:checked  ~ label {
  color: #ffd700;
}

.rating > input:hover + label, .rating > input:checked + label:hover {
  color: #ffd700;
}

.rating-text {
  margin-left: 10px;
  text-align: right;
}

.custom-card-comments {
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 25px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.custom-card-comments:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}



.comments-center-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.btn-comments {
  background-color: #40E0D0;
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  cursor: pointer;
}

.btn-comments:hover {
  background-color: #36b0b0;
}

.hidden-comments {
  display: none;
}

.comments-textarea-dark {
  background-color: #1a1a1a;
  border: 1px solid #333;
  color: #ffffff;
  border-radius: 10px;
  padding: 10px;
  width: 100%;
  resize: vertical;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.comments-textarea-dark:focus {
  border-color: #ff512f;
  outline: none;
  box-shadow: 0 0 5px rgba(255, 82, 47, 0.8);
}


.btn-add-comment {
  background-color: #555;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: not-allowed;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}


.btn-add-comment:hover {
  background-color: #0056b3;
}


@keyframes pulse {
  0% {
      transform: scale(1);
  }
  50% {
      transform: scale(1.2);
  }
  100% {
      transform: scale(1);
  }
}

.heart-pulse {
  animation: pulse 0.5s ease-in-out;
}

.btn-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: #333;
  color: #fff;
  border: none;
  padding: 10px;
  font-size: 18px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-top:hover {
  background-color: #555;
}

.btn-top i {
  font-size: 24px;
}



.game-over {
  font-size: 90px;
  font-weight: bold;
  font-family: 'Games', sans-serif;
}

.error-icon {
  display: block;
  margin: 20px auto;
  max-width: 25%;
  height: auto;
}

.error-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  padding: 20px;
  text-align: center;
  width: 100%;
}

.error-title {
  font-size: 70px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 20px;
  font-family: "Orbitron", sans-serif;
}

.error-text {
  font-size: 18px;
  color: #fff;
  margin-bottom: 20px;
  font-weight: bold;
  font-family: "Orbitron", sans-serif;
  font-optical-sizing: auto;
  font-weight: weight;
  font-style: normal;
}

.error-btn-group {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  justify-content: flex-end;
}

.error-btn {
  width: 100%;
  margin: 10px;
  padding: 5px;
  border-radius: 5px;
  background-color: #dc3545;
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.error-btn:hover {
  background-color: #c82333;
}

.fas.fa-arrow-left {
  margin-right: 10px;
  animation: pulseAndShake 2s infinite;
}

@keyframes pulseAndShake {
  0% {
    transform: scale(1) translateX(0);
  }
  10% {
    transform: scale(1.1) translateX(-2px);
  }
  20% {
    transform: scale(1) translateX(0);
  }
  30% {
    transform: scale(1.1) translateX(2px);
  }
  40% {
    transform: scale(1) translateX(0);
  }
  50% {
    transform: scale(1.1) translateX(-2px);
  }
  60% {
    transform: scale(1) translateX(0);
  }
  70% {
    transform: scale(1.1) translateX(2px);
  }
  80% {
    transform: scale(1) translateX(0);
  }
  90% {
    transform: scale(1.1) translateX(-2px);
  }
  100% {
    transform: scale(1) translateX(0);
  }
}

@media (min-width: 1920px) {
  .search-icon.search-icon {
    margin-left: 530px;
  }


  .user-icon {
    right: -200px;
  }

  nav li {
    margin-right: 30px;
  }

  nav a {
    font-size: 18px;
  }
}


/*
  ##Appareil = Ordinateurs de bureau
  ##Écran = 1281px et résolutions d'écran plus élevées
*/

@media (min-width: 2560px) and (max-width: 3840px) {
  .navbar {
    width: 20%;
  }

  .search-icon.search-icon {
    margin-left: 470px;
  }

}


@media (min-width: 1441px) and (max-width: 1920px){

  .navbar {
    width: 30%;
  }

  .navbar .logo {
    transform: translateX(-1000%);
  }

  .navbar .brand {
    transform: translateX(-335%);
  }

  .search-icon.search-icon {
    margin-left: 395px;
  }

  nav, ul {
    margin-left: -5px;
  }

  .user-icon {
    right: -170px;
  }


}



@media (min-width: 1281px) and (max-width: 1440px) {
  .navbar {
    width: 33%;
  }

  .navbar .logo {
    transform: translateX(-1000%);
  }

  .navbar .brand {
    transform: translateX(-335%);
  }

  nav, ul {
    margin-left: -10px;
  }

  .search-icon {
    margin-left: 396px;
  }

  .user-icon {
    right: -170px;
  }

}

/*
  ##Appareil = Ordinateurs portables, Ordinateurs de bureau
  ##Écran = Entre 1024px et 1280px
*/
@media (min-width: 1024px) and (max-width: 1280px) {
  .navbar {
    width: 40%;
  }

  .navbar .logo {
    transform: translateX(-710%);
  }

  .navbar .brand {
    transform: translateX(-215%);
  }

  nav, ul {
    margin-left: -10px;
  }

  .search-icon.search-icon {
    margin-left: 370px;
  }

  .user-icon {
    right: -130px;
  }

}

/*
  ##Appareil = Tablettes, iPads (portrait)
  ##Écran = Entre 768px et 1024px
*/
@media (min-width: 768px) and (max-width: 1023px) {

  .navbar {
    width: 52%;
  }

  .navbar .logo {
    transform: translateX(-690%);
  }

  .navbar .logo img {
    height: 45px;

  }

  .navbar .brand {
    transform: translateX(-250%);
  }

  .navbar .brand h1 {
    font-size: 17px;
  }

  nav, ul {
    margin-left: -15px;
  }

  .search-icon.search-icon {
    margin-left: 350px;
  }

  .user-icon {
    right: -120px;
  }

}


/*
  ##Appareil = La plupart des smartphones Mobiles (portrait)
  ##Écran = Entre 320px et 480px
*/
@media (min-width: 320px) and (max-width: 480px) {
  .navbar {
    top: 50px;
    border-radius: 0px;
    width: 100%;
    height: 40px;
  }

  .navbar .logo {
    top: -65px;
    transform: translateX(0%);
    z-index: 2;
  }

  .navbar .logo img {
    height: 40px;
  }

  .navbar .brand {
    top: -26px;
    transform: translateX(5%);
    z-index: 2;
  }

  .navbar .brand h1 {
    font-size: 18px;
  }

  nav {
    margin-top: -5px;
  }

  nav a {
    font-size: 12px;
  }

  .search-icon {
    top: -62px;
    right: 40px;
    z-index: 3;
  }

  .search-bar {
    transform: translateY(-160%);
    width: calc(95% - 40px);
    max-width: 600px;
    z-index: 3;
  }

  .close-btn {
    top: -5px;
    right: -28px;
    font-size: 33px;
  }

  .clear-btn {
    right: 60px;
  }

  .user-icon {
    top: -40px;
    left: 61px;
    z-index: 2;
  }

  header {
    top: -7px;
  }

  header img {
    height: 270px;
    object-fit: cover;
  }

  .carousel {
    width: 90%;
  }

}