body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-family: "Poppins", cursive;
}

::-webkit-scrollbar {
  width: 2px;
  height: 2px;
}

::-webkit-scrollbar-track {
  background: black;
}

::-webkit-scrollbar-thumb {
  background: #888;
}

::-webkit-scrollbar-thumb:hover {
  background: #F3C65D;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

h1 {
  color: white;
  text-align: center;
  font-weight: 800;
  font-size: 70px;
  line-height: 1;
  margin-top: 10vh;
}
h1 span {
  color: #F3C65D;
}

h2 {
  color: white;
  text-align: center;
  text-transform: uppercase;
}

h3 {
  color: #F3C65D;
  text-align: center;
}

.version {
  position: absolute;
  bottom: 0;
  right: 20px;
  font-size: 12px;
  text-decoration: underline;
  color: #555555;
}

.grid-2 {
  display: grid;
  grid-template-columns: 40% 60%;
  grid-gap: 0px;
}

a {
  text-decoration: none;
}

.btn.focus,
.btn:focus {
  outline: 0;
  box-shadow: none !important;
}

/*--------------------------------------------*/
/*Started game*/
/*--------------------------------------------*/
#Left-Section,
#Right-Section {
  height: 100vh;
  position: relative;
}

#Left-Section {
  background-color: #f7f9fa;
  background-image: url("https://www.transparenttextures.com/patterns/beige-paper.png");
  background-repeat: repeat;
  background-size: initial;
}

#Right-Section {
  padding: 0px 40px;
  background-color: #212529;
  overflow: auto;
  position: relative;
}
#Right-Section section {
  display: none;
  min-height: calc(100vh - 115px);
}
#Right-Section section.disable {
  position: relative;
}
#Right-Section section.disable .disable-message {
  display: block;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 200;
}
#Right-Section section.disable .disable-message i {
  margin-right: 10px;
  margin-left: 0;
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#Right-Section section.disable .disable-message p {
  border-radius: 15px;
  color: white;
  background-color: #E9585B;
  color: white !important;
  font-weight: bold;
  padding: 15px;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  text-transform: uppercase;
  width: -moz-max-content;
  width: max-content;
  margin: 0 auto;
  margin-top: 100px;
}
#Right-Section section.disable .disable-message div {
  background-color: #F3C65D;
  color: white !important;
  box-shadow: none !important;
  width: -moz-max-content;
  width: max-content;
  padding: 15px;
  border-radius: 15px;
  margin: 15px auto;
  color: white !important;
  font-weight: bold;
  padding: 15px;
  box-shadow: none !important;
  text-transform: uppercase;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
}
#Right-Section section.disable .disable-message div:hover {
  background-color: #E9585B;
}
#Right-Section section.disable .disable-message div:hover i {
  background-color: white;
  color: #E9585B;
  border-radius: 15px;
}
#Right-Section section.disable .nav-pills,
#Right-Section section.disable .vignettes-section,
#Right-Section section.disable .vignettes-section-color {
  filter: grayscale(1) blur(10px);
}

#Skin {
  display: block;
}

/*--------------------------------------------*/
/*Global*/
/*--------------------------------------------*/
.btn.option:not(#sidebarCollapse) {
  display: none;
}
/*--------------------------------------------*/
/*Categories List*/
/*--------------------------------------------*/
.scroll-arrow {
  transition: all 0.3s ease;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: none;
  box-shadow: none;
  border: none;
  z-index: 20;
  position: absolute;
  top: 8px;
  cursor: pointer;
  background-color: white;
  border-radius: 15px;
  z-index: 1000;
  border: solid 1px lightgray;
}
.scroll-arrow img {
  width: 2rem;
  height: 2rem;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: all 0.3s ease;
}
.scroll-arrow:hover {
  background: #f4f4f4;
  cursor: pointer;
}
.scroll-arrow:hover img {
  filter: grayscale(0%);
  opacity: 1;
}
.scroll-arrow.active {
  display: flex;
}
.scroll-arrow.left-arrow {
  left: 8px;
}
.scroll-arrow.right-arrow {
  right: 8px;
}

#Top-right-Section .scroll-container {
  flex: 1;
  overflow: hidden;
  scroll-behavior: smooth;
  cursor: grab;
  overflow-x: auto;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
#Top-right-Section .scroll-container.active {
  cursor: grabbing;
}

#Top-right-Section {
  display: flex;
  gap: 32px;
  padding: 16px;
}
#Top-right-Section #Download {
  background: none;
  color: inherit;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  outline: inherit;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 260px;
  min-width: 64px;
  width: 100%;
  height: 64px;
  border-radius: 15px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1;
  transition: all ease-in-out 0.3s;
  position: relative;
  overflow: hidden;
  font-weight: bold;
  font-size: 18px;
}
#Top-right-Section #Download span {
  margin-left: 10px;
}
#Top-right-Section #Download:after {
  content: "";
  display: block;
  top: 0;
  bottom: 0;
  position: absolute;
  width: 90px;
  left: -80%;
  transform: skewX(-30deg);
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.56) 50%, rgba(255, 255, 255, 0) 100%);
  transition: 0ms ease all;
  opacity: 0.5;
}
#Top-right-Section #Download:hover {
  background-color: #F3C65D;
}
#Top-right-Section #Download:hover::after {
  left: 110%;
  transition: 800ms ease all;
  opacity: 0.2;
}
#Top-right-Section #Download.btn-success {
  background-color: #2fda8a !important;
}

#Categories {
  padding: 0;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  overflow: auto;
  cursor: grab;
  transition: all 0.3s ease;
  display: block;
  scroll-behavior: smooth;
  flex: 1;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1;
  border-radius: 15px;
}
#Categories nav {
  display: flex;
  align-items: center;
  overflow-x: hidden;
}
#Categories ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  padding: 0.5rem;
  margin: 0;
  list-style: none;
  width: -moz-max-content;
  width: max-content;
  transition: all ease-in-out 0.3s;
  gap: 5px;
}
#Categories ul li {
  transform: all 0.3s ease;
}
#Categories ul li button {
  text-decoration: none;
  color: #F3C65D;
  display: block;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: none;
  box-shadow: none;
  border: none;
  z-index: 20;
  position: relative;
}
#Categories ul li button.new span:after {
  content: "New";
  display: block;
  background: #E9585B;
  color: white;
  font-size: 8px;
  font-weight: bold;
  padding: 0.2rem 0.5rem;
  border-radius: 3rem;
  margin-right: 0.5rem;
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  border: solid white 2px;
}
#Categories ul li button img {
  width: 2rem;
  height: 2rem;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: all 0.3s ease;
}
#Categories ul li:hover, #Categories ul li.active {
  background: #f4f4f4;
  border-radius: 15px;
}
#Categories ul li:hover button, #Categories ul li.active button {
  cursor: pointer;
}
#Categories ul li:hover button img, #Categories ul li.active button img {
  filter: grayscale(0%);
  opacity: 1;
}
#Categories ul li.with_subnav {
  transition: all 0.3s ease;
}
#Categories ul li.with_subnav ul {
  padding: 0;
  display: none;
  width: 0;
  transform: width 0.3s ease;
  background-color: inherit;
  box-shadow: none;
  margin: 0;
  border-radius: 15px;
}
#Categories ul li.with_subnav ul li:hover, #Categories ul li.with_subnav ul li.active {
  background: #e8e8e8;
  border-radius: 15px;
}
#Categories ul li.with_subnav ul li:hover button, #Categories ul li.with_subnav ul li.active button {
  cursor: pointer;
}
#Categories ul li.with_subnav.active {
  display: flex;
  position: relative;
}
#Categories ul li.with_subnav.active:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 15px;
  background: #e5e5e5;
}
#Categories ul li.with_subnav.active ul {
  display: flex;
  width: -moz-max-content;
  width: max-content;
}

/*--------------------------------------------*/
/*Resultat*/
/*--------------------------------------------*/
.image-result {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 30px 0 30px;
}
.image-result .result {
  overflow: hidden;
  width: 100%;
  position: relative;
  background-color: white;
  border-radius: 16px;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 8px;
  max-height: 80dvh;
   max-width: 80dvh;
}
.image-result .result:after {
  content: "";
  display: block;
  padding-bottom: 100%;
}
.image-result .result.loading:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: #F3C65D;
  animation: text-loading 0.5s infinite;
}
.image-result img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  height: auto;
  image-rendering: optimizequality;
}
.image-result #Result_final {
  display: none;
}

.disable-message {
  display: none;
}

@keyframes text-loading {
  0% {
    content: ".";
  }
  50% {
    content: "..";
  }
  75% {
    content: "...";
  }
}
/*--------------------------------------------*/
/*Vignettes*/
/*--------------------------------------------*/
.vignettes-section {
  max-height: calc(100vh - 120px);
  height: 100%;
  overflow-y: auto;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  grid-auto-rows: max-content;
  grid-gap: 16px;
  width: 1fr;
  flex: 1;
}
.vignettes-section.hasZoomFace .vignette img {
  transform: scale(1.5) translate(15px, 15px);
}
.vignettes-section.hasZoomFace .reset .vignette img {
  transform: scale(1) translate(0px, 0px);
  background-image: none;
}

.vignette, .vignettes-section .reset {
  transition: all ease-in-out 0.5s;
  cursor: pointer;
  transition-duration: 300ms;
  box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px;
  border-radius: 16px;
  position: relative;
  background-size: 100%;
  background-color: white;
  overflow: hidden;
}
.vignette:hover, .vignettes-section .reset:hover {
  transition-duration: 150ms;
  box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
  transform: translateY(-5px);
}
.vignette:after, .vignettes-section .reset:after {
  content: "";
  display: block;
  padding-bottom: 100%;
}
.vignette img, .vignettes-section .reset img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  image-rendering: optimizequality;
}

.vignette-default .vignette img {
  background-image: url("images/UI/Base.png");
  background-size: cover;
  background-color: white;
}

#Vignettes-Skin .vignette img,
#Vignettes-Background .vignette img,
.vignettes-section.vignette-custom .vignette img {
  background-image: none;
}

div#Vignettes-Background div.vignette img {
  background-color: #DA6A6A;
}

#Vignettes-Hat-Costumes img.costume-category {
  width: 100%;
  height: 60px;
  opacity: 1;
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(55, 55, 55, 0.5);
  padding: 10px;
  top: unset;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  z-index: 10;
}

/*--------------------------------------------*/
/*Couleurs*/
/*--------------------------------------------*/

.vignettes-section-color {
    background-color: #605b5d;
    border-radius: 15px;
    margin: 16px;
    box-shadow: 0 2.8px 2.2px rgba(0,0,0,0.02), 0 6.7px 5.3px rgba(0,0,0,0.028), 0 12.5px 10px rgba(0,0,0,0.035), 0 22.3px 17.9px rgba(0,0,0,0.042), 0 41.8px 33.4px rgba(0,0,0,0.05), 0 100px 80px rgba(0,0,0,0.07);
    position: relative;
    width: 260px;
    padding: 16px;
	height: max-content;
	.scroll-container{
		display: grid;
		flex-wrap: wrap;
		gap: 5px;
		max-width: max-content;
		grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
		flex: 1;
		scroll-behavior: smooth;
		margin: 0;
		list-style: none;
		padding: 0;
		min-width: 100%;
	}
  span{
    display:none;
  }
	.scroll-arrow{
		img{
			width: 16px;
			height: 16px;
			
		}
	}
}

.vignette-color {
	width: 100%;
	height: 100%;
	transition: all ease .3s;
	cursor: pointer;
	border-radius: 10px;
	box-shadow:0px 0px 0px 3px rgba(255, 255, 255, 0.2) inset;
	position: relative;
	aspect-ratio: 1/1;
	border-bottom: 5px solid rgba(0, 0, 0, .3);

	&:not(.reset):hover,
	&:not(.reset).active {
		transform: translateY(5px);
		border-bottom: 0px solid rgba(0, 0, 0, .3);
		box-shadow:0px 0px 0px 3px rgba(255, 255, 255, 1) inset;
		height: calc(100% - 5px);
	}
}

/*--------------------------------------------*/
/*gender*/
/*--------------------------------------------*/
.button.gender {
  border-radius: 0;
  border: none;
  background-color: white;
  background-image: url('images/UI/Base.png');
  background-size: cover;
  transition: all ease-in-out 0.5s;
  cursor: pointer;
  box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px;
  border-radius: 10px;
  aspect-ratio: 1/1;
  height: 100%;
  max-height: 300px;
  min-height: 150px;
}
.button.gender:hover {
  transition-duration: 150ms;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 0.0625em 0.0625em, rgba(0, 0, 0, 0.25) 0px 0.125em 0.5em, rgba(255, 255, 255, 0.1) 0px 0px 0px 1px inset;
  transform: translateY(-5px);
}
.button.gender.Women {
  background-image: url('images/UI/Base__Femme.png');
}

/*------------------------------------------*/

@media screen and (max-width: 1120px) {
  h1 {
    font-size: 45px;
  }
  a.start {
    font-size: 80px;
  }
  a.start:before {
    font-size: 80px;
  }
  .nav-pill {
    padding: 0 !important;
  }
  .grid-2 {
    width: 100%;
    grid-template-columns: 1fr;
  }
  #sidebar {
    top: 15px;
    transform: none;
    max-height: 280px;
  }
  #Left-Section {
    max-height: 305px;
  }
  #Left-Section .image-result {
    height: 250px;
    margin-top: 15px;
  }
  #Left-Section .image-result .result {
    width: 250px;
  }
  #Right-Section section {
    flex-direction: column;
    min-height: -moz-max-content;
    min-height: max-content;
  }
}
@media screen and (max-width: 768px) {
  .game {
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }
  h1 {
    font-size: 35px;
  }
  .vignettes-section {
    max-height: calc(100vh - 375px);
    overflow: auto;
    height: 100%;
  }
  .hasColorPart.vignettes-section {
    max-height: calc(100vh - 417px);
  }
  #Right-Section {
    padding: 0px;
    background-image: none;
    background-color: white;
  }
  #Top-right-Section {
    padding: 0;
    gap: 0px;
  }
  #Top-right-Section #Categories {
    margin: 0;
    border-radius: 0px;
    width: 64px !important;
  }
  #Top-right-Section #Categories ul {
    border-radius: 0;
    margin: 0;
  }
  #Top-right-Section #Categories ul button {
    margin: 0;
  }
  #Top-right-Section #Download {
    width: 64px !important;
    border-radius: 0px;
  }
  #Top-right-Section #Download span {
    display: none;
  }
  #Right-Section section {
    flex-direction: column-reverse;
  }
  .vignettes-section {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0;
    padding: 0;
  }
  .vignettes-section-color {
    display: block;
    overflow-x: auto;
    background-color: white;
    margin: 0;
    padding: 0;
    border-radius: 0;
    overflow-x: auto;
    width: 100%;
  }
  .vignettes-section-color .scroll-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 0.5rem;
    margin: 0;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1;
    transition: all ease-in-out 0.3s;
    margin-bottom: 5px;
    gap: 10px;
    white-space: nowrap;
    cursor: grab;
  }
  .vignettes-section-color .scroll-container.active {
    cursor: grabbing;
  }
  .vignettes-section-color .scroll-container .vignette-color {
    min-width: 32px;
    height: 32px;
  }
  .vignettes-section-color span {
    display: none;
  }
  .vignette,
  .vignettes-section .reset {
    box-shadow: none;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
  }
  .vignette img,
  .vignettes-section .reset img {
    display: block;
    aspect-ratio: 1/1;
  }
  .vignette:hover,
  .vignettes-section .reset:hover {
    box-shadow: none;
    transform: translate(0, 0);
  }
  #Vignettes-Hat-Costumes img.costume-category {
    display: none;
  }
}