@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200&amp;display=swap");

:root {
  --background-color: #531d68;
  --text-color: #ffffff;
  --accent-color: #2e2433;
  --link-color: #833da3;
  --hoverlink-color: #c461af;
  --form-control: #131b25;
}

html,
body {
  font-family: "Poppins", sans-serif !important;
  background-color: var(--background-color);
  width: 100%;
  height: 100%;
  position: fixed;
  color: var(--text-color) !important;
  overflow: auto;
}
.navbar-img { position: relative; } .santa-hat { position: absolute; top: 0; left: 0; width: 60px; height: auto;transform:rotate(-10deg)} 
#loader {
  position: fixed;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: url("../image/load.gif")
    50% 50% no-repeat var(--background-color);
  opacity: 1;
  transition: opacity 0.5s ease;
}

.hidden {
  display: none !important;
}

.infos {
  display: flex;
  justify-content: space-around;
}

.link h3 {
  word-wrap: break-word;
}

.shake {
  padding: 10px;
  transition: transform 0.2s;
}

.shake:hover {
  transform: scale(1.02);
}

.search {
  margin: 20px;
}
.search_byname {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.searchcontainer {
  display: flex;
  justify-content: center;
}
.searchforgames {
  background-color: var(--accent-color) !important;
  max-width: 350px;
  padding: 10px;
  margin: 30px;
}
.searchforgames::placeholder {
  color: white !important;
}

.categorySelector {
  display: flex;
  justify-content: center;
}
.select-btn {
  width: 350px;
  position: relative;
}

#gameList {
  width: 350px;
  margin-top: 60px;
  position: absolute;
  z-index: 999;
}

.dropdown-menu,
.dropdown-item {
  background-color: var(--background-color);
  border-color: var(--accent-color);
  color: white;
}

.dropdown-item:hover {
  background-color: var(--accent-color);
  color: white;
  border-radius: 5px;
}

.logiciels,
.cracks_games,
.category,
.games {
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  margin: 20px 20px;
}

.scrollable-card {
  overflow: auto;
  max-height: 300px; /* Ajustez la hauteur maximale selon vos besoins */
}

.card-container {
  display: flex;
}

.modal-header, .modal-footer {
  border:none;
}

.modal-content {
  background-color: var(--accent-color) !important;
}

.card {
  position: relative;
  width: 250px;
  height: 330px;
  margin: 0 15px 15px 0;
  background-color: var(--accent-color);
  transition: transform 0.3s, filter 0.3s;
  border-radius: 20px;
  overflow: hidden;
}

.card-img-top {
  width: 100%;
  height: 65%;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
}

.card-title {
  position: relative;
  bottom: 15px;
  left: 0;
  color: white;
  padding: 20px 10px 20px 10px;
  width: 100%;
  background-color: var(--accent-color);
}

.card-title h4 {
  color: white;
  width: 85%;
}

.card-title h4,
#dropdownMenuButton1 {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  margin-top: 20px;
}

#dropdownMenuButton1 {
  font-size: 20px;
  color: white;
  border: none;
  background: none !important;
  font-weight: 100;
  -webkit-text-stroke: -231px white;
  position: absolute;
  z-index: 1;
  right: 0px;
}

#dropItemCard {
  margin-bottom: 10px;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background-color: #c524e6;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}
.navbar {
  margin: 50px;
}

.square {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: -1;
}

.square #squa {
  position: absolute;
  display: block;
  list-style: none;
  width: 20px;
  height: 20px;
  background: #212b35;
  animation: animate 25s linear infinite;
  bottom: -150px;
}

.square #squa:nth-child(1) {
  left: 25%;
  width: 80px;
  height: 80px;
  animation-delay: 0s;
}

.square #squa:nth-child(2) {
  left: 10%;
  width: 20px;
  height: 20px;
  animation-delay: 2s;
  animation-duration: 12s;
}

.square #squa:nth-child(3) {
  left: 70%;
  width: 20px;
  height: 20px;
  animation-delay: 4s;
}

.square #squa:nth-child(4) {
  left: 40%;
  width: 60px;
  height: 60px;
  animation-delay: 0s;
  animation-duration: 18s;
}

.square #squa:nth-child(5) {
  left: 65%;
  width: 20px;
  height: 20px;
  animation-delay: 0s;
}

.login_form {
  background-color: var(--accent-color);
  color: var(--text-color);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0px 0px 30px var(--accent-color);
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  width: 350px;
  height: 450px;
  margin: 0 auto;
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login_form h3 {
  margin-bottom: 40px;
}

.login_form input,
.login_form input:focus,
.login_form input:active,
.login_form input::after {
  background-color: var(--link-color) !important;
  color: var(--text-color);
  border: none;
  border-radius: 5px;
  padding: 15px;
  width: 100%;
}

.login_form button {
  background-color: var(--link-color);
  color: var(--text-color);
  border: none;
  border-radius: 5px;
  padding: 10px;
  width: 100%;
  cursor: pointer;
  margin-top: auto;
}

.login_form button:hover {
  background-color: var(--hoverlink-color);
}

.custom__alert {
  position: fixed;
  bottom: 5px;
  width: 25%;
  margin-left: 10px;
  animation-name: slideDown;
  animation-duration: 3s;
  animation-fill-mode: forwards;
}

.panel {
  background-color: var(--accent-color);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  max-width: 35rem;
}

.panel-body {
  margin: 20px;
}

.panel-title {
  color: var(--text-color);
}

label {
  color: white;
}

.form-control,
.form-control:focus,
.form-control:active {
  background-color: var(--form-control);
  color: var(--text-color) !important;
  border: none;
  border-radius: 5px;
  margin: 7px 0;
}

#imagePreview {
  width: 200px;
  height: 200px;
  margin: 15px 0;
  background-color: var(--form-control);
  border-radius: 20px;
  background-size: cover; 
  background-position: center; 
}

.btn-primary {
  background-color: var(--link-color);
  color: var(--text-color);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
}

.btn-primary:hover {
  background-color: var(--hoverlink-color) !important;
}

#connexion {
  margin-right: 20px;
}

.channel {
  position: relative;
  display: inline-block;
}

.channel .tooltip-text {
  visibility: hidden;
  width: 120px;
  background-color: #060b0f !important;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.channel:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.channel .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #060b0f transparent transparent transparent;
}

.channel i {
  padding: 15px;
  background-color: var(--background-color);
  border-radius: 10px;
}

.channel i {
  font-size: 20px;
  margin: 15px 0;
}

.chan-id {
  font-size: 18px;
  font-weight: lighter !important;
  font-family: "Roboto", sans-serif !important;
  margin-left: 8px;
}

.update-checkbox {
  margin: 5px 0;
  font-size: 35px;
  background-color: var(--form-control);
  border: none;
}

.container {
  max-width: 320px;
  width: 100%;
  margin: 10px 0;
  padding: 0;
}

.select-btn {
  display: flex;
  height: 50px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-radius: 8px;
  cursor: pointer;
  background-color: var(--form-control);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.5s;
}

.select-btn .btn-text {
  font-size: 17px;
  font-weight: 400;
  color: var(--text-color);
}

.select-btn .arrow-dwn {
  display: flex;
  height: 21px;
  width: 21px;
  color: #fff;
  font-size: 14px;
  border-radius: 50%;
  background: #d76ef7;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.select-btn.open .arrow-dwn {
  transform: rotate(-180deg);
}

.list-items {
  position: relative;
  margin-top: 15px;
  border-radius: 8px;
  padding: 16px;
  background-color: var(--form-control);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  max-width: 350px;
  max-height: 200px;
  display: none;
  overflow-y: auto;
  transition: height 2s;
}

.list-items::-webkit-scrollbar {
  width: 8px;
}

.list-items::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 4px;
}

.list-items::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

.select-btn.open ~ .list-items {
  display: block;
}

.list-items .item {
  display: flex;
  align-items: center;
  list-style: none;
  height: 50px;
  cursor: pointer;
  transition: 0.3s;
  padding: 0 15px;
  border-radius: 8px;
  transition: all 0.3s;
}

.list-items .item:hover {
  background-color: var(--hoverlink-color);
}

.item .item-text {
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  margin-left: 15px;
}

.square {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: fixed;
  z-index: -1;
}

.square #squa {
  position: absolute;
  display: block;
  list-style: none;
  width: 20px;
  height: 20px;
  background: #212b35;
  animation: animate 25s linear infinite;
  bottom: -150px;
}

.square #squa:nth-child(1) {
  left: 25%;
  width: 80px;
  height: 80px;
  animation-delay: 0s;
}

.square #squa:nth-child(2) {
  left: 10%;
  width: 20px;
  height: 20px;
  animation-delay: 2s;
  animation-duration: 12s;
}

.square #squa:nth-child(3) {
  left: 70%;
  width: 20px;
  height: 20px;
  animation-delay: 4s;
}

.square #squa:nth-child(4) {
  left: 40%;
  width: 60px;
  height: 60px;
  animation-delay: 0s;
  animation-duration: 18s;
}

.square #squa:nth-child(5) {
  left: 65%;
  width: 20px;
  height: 20px;
  animation-delay: 0s;
}

.square #squa:nth-child(6) {
  left: 75%;
  width: 110px;
  height: 110px;
  animation-delay: 3s;
}

.square #squa:nth-child(7) {
  left: 35%;
  width: 150px;
  height: 150px;
  animation-delay: 7s;
}

.square #squa:nth-child(8) {
  left: 50%;
  width: 25px;
  height: 25px;
  animation-delay: 15s;
  animation-duration: 45s;
}

.square #squa:nth-child(9) {
  left: 20%;
  width: 15px;
  height: 15px;
  animation-delay: 2s;
  animation-duration: 35s;
}

.square #squa:nth-child(10) {
  left: 85%;
  width: 150px;
  height: 150px;
  animation-delay: 0s;
  animation-duration: 11s;
}

footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: var(--accent-color) !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

footer .container p {
  text-align: center;
}

@media (max-width: 1000px) {
  .custom__alert {
    width: 75% !important;
  }

  .select-btn {
    width: 75%;
  }

  #gameList {
    width: 48%;
    margin-top: 10px;
  }

  footer {
    position: relative;
    bottom: 0;
    width: 100%;
    background-color: var(--accent-color) !important;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
  }
}

@media (max-width: 1300px) {
  .custom__alert {
    width: 75% !important;
  }

  .infos {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    flex-wrap: wrap;
  }

  .link {
    margin: 0 10px 0 10px;
  }

  .discord-widget {
    display: none;
  }
}

@media (min-width: 1300px) {
  .card:hover {
    transform: scale(1.05) rotate(0.5deg);
    filter: drop-shadow(0 0 1rem #25313f);
  }
}

@keyframes zoomInLeft {
  from {
    transform: scaleX(0);
    transform-origin: left;
  }
  to {
    transform: scaleX(1);
    transform-origin: left;
  }
}

@keyframes animate {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
    border-radius: 0;
  }

  100% {
    transform: translateY(-1000px) rotate(720deg);
    opacity: 0;
    border-radius: 50%;
  }
}

@keyframes slideDown {
  0% {
    transform: translateY(0);
  }

  90% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}
