@charset "UTF-8";
:root {
  --background-color: #272929;
  --text-color: #c2c1bd;
  --inventory-background-color: #373737;
  --inventory-border-color: #272929;
  --light-border-color: gray;
  --accent-color: rgb(105, 147, 255);
  --bright-background-color: #272727; }

body {
  margin: 0;
  padding: 0;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color); }

main {
  /* background-color: darkred; */
  width: 75%;
  margin: auto; }

main:first-child:first-child {
  margin-bottom: 50px; }

article {
  display: flex;
  flex-direction: column; }
  article > div {
    display: flex;
    gap: 50px;
    align-items: center; }

h1 {
  margin: 0;
  position: absolute;
  left: 10px; }

h2 {
  font-size: 40px; }

h3 {
  font-size: x-large;
  /* margin: 0; */
  margin-top: 5px; }

p {
  font-size: large; }

a {
  color: var(--accent-color);
  text-decoration: none; }
  a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px; }
  a:visited {
    color: var(--accent-color); }

header {
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-bottom: dashed thin gray;
  height: 50px; }
  header a,
  header a:hover,
  header a:visited {
    text-decoration: none;
    color: var(--text-color); }
  header > div {
    margin: 0;
    position: absolute;
    right: 10px; }
    header > div > select {
      font-size: medium;
      background-color: var(--background-color);
      box-sizing: border-box;
      color: var(--text-color);
      padding: 2px 5px;
      border: solid var(--light-border-color) 2px;
      border-radius: 5px; }

nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
  font-size: large; }
  nav a {
    padding: 4px;
    transition: all 0.2s ease;
    border-bottom: solid var(--background-color) 3px; }

.selected,
nav a:hover {
  background-position: center;
  background-size: cover;
  border-color: var(--accent-color); }

.inventaire {
  display: grid;
  grid-template-columns: auto auto auto auto;
  border-right: solid 3px var(--inventory-border-color);
  border-bottom: solid 3px var(--inventory-border-color); }
  .inventaire > * {
    box-sizing: border-box;
    height: 70px;
    width: 70px;
    border-top: solid 3px var(--inventory-border-color);
    border-left: solid 3px var(--inventory-border-color);
    padding: 7px;
    display: flex;
    justify-content: center;
    background-color: var(--inventory-background-color);
    position: relative;
    -webkit-transition: all, -webkit-transform 0.2s cubic-bezier(0, 1, 1, 1);
    -moz-transition: all, -moz-transform 0.2s cubic-bezier(0, 1, 1, 1);
    transition: all 0.2s cubic-bezier(0, 1, 1, 1); }
  .inventaire img {
    width: 100%; }
  .inventaire > *:hover:not(.no-content) {
    -webkit-transform: scale(1.3);
    -moz-transform: scale(1.3);
    transform: scale(1.3);
    border: none var(--inventory-border-color);
    border-radius: 10%;
    z-index: 2; }
  .inventaire .selected {
    border: solid medium #333333;
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    transform: scale(1.1);
    border-radius: 10%;
    z-index: 1; }

#profile-container {
  height: 500px; }

.avatar {
  width: 200px;
  height: fit-content; }

.legendary-item,
.legendary-item:not(article) > * {
  background: linear-gradient(45deg, #f2e68c 0%, #fbb384 100%); }

.epic-item,
.epic-item:not(article) > * {
  background: linear-gradient(45deg, #bc8cf2 0%, #fb84ed 100%);
  color: white; }

.rare-item,
.rare-item:not(article) > * {
  background: linear-gradient(45deg, #8892f6 0%, #84dffb 100%);
  color: white; }

.uncommon-item,
.uncommon-item:not(article) > * {
  background: linear-gradient(45deg, #69d776 0%, #69d776 100%);
  color: var(--bright-background-color); }

.common-item,
.common-item:not(article) > * {
  background: linear-gradient(45deg, lightgray 0%, lightgray 100%);
  color: var(--bright-background-color); }

/* Panel de droite pour profil et succès */
section {
  flex-shrink: 7;
  flex-grow: 0;
  width: 800px;
  height: fit-content;
  padding: 10px;
  border: solid gray 7px;
  border-radius: 10px;
  transition: background-color 1s; }
  section article:not(:first-child) {
    display: none;
    background-color: var(--background-color);
    border-radius: 5px;
    width: 677px; }
  section article:first-child {
    display: flex; }

.realisations {
  /* background-color: cyan; */
  display: flex;
  /* justify-content: space-around; */
  flex-wrap: wrap;
  gap: 20px;
  flex-shrink: 4; }
  .realisations > * {
    width: 200px;
    height: 200px;
    background-position: center;
    background-size: 100px;
    background-repeat: no-repeat;
    border-radius: 10px;
    border: solid 7px;
    display: flex;
    flex-direction: column;
    /* align-items: start; */
    text-align: center;
    transition: transform 0.2s cubic-bezier(0, 1, 1, 1); }
    .realisations > *:hover {
      transform: scale(1.1); }
  .realisations a,
  .realisations a:hover,
  .realisations a:visited {
    text-decoration: none;
    color: var(--bright-background-color); }
  .realisations img {
    width: auto;
    padding: 5% 30% 0; }
  .realisations p {
    font-size: medium; }

.gold {
  background-color: #ffef61;
  border-color: #a0963d; }

.silver {
  background-color: #b9b9b9;
  border-color: #4b4b4b; }

.bronze {
  background-color: #aa853c;
  border-color: #57441f; }

/* Partie détails pour les succès */
.illustration {
  max-height: 350px; }

.details-succes {
  flex-direction: row;
  gap: 100px;
  margin-top: 30px;
  margin-bottom: 30px;
  align-items: center; }
  .details-succes > * {
    flex-direction: column;
    align-items: start;
    gap: 0; }
    .details-succes > *:first-child {
      flex-grow: 1; }

/* Tags pour les succès */
.tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap; }

.tag,
.tag:hover,
.tag:visited {
  padding: 5px 13px;
  border-radius: 99999px;
  text-decoration: none;
  color: black; }

/* Contact */
form {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: larger; }
  form > div {
    display: grid;
    grid-template-columns: 35% 60%;
    gap: 10px; }
  form > input {
    margin-top: 20px;
    width: fit-content; }

input[type="submit"] {
  font-size: medium; }

textarea {
  resize: none; }

.contact {
  display: initial; }

#loading {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  width: 75%;
  margin: auto;
  height: 500px; }
  #loading img {
    height: 100px;
    animation-name: spin;
    animation-duration: 1000ms;
    animation-iteration-count: infinite;
    animation-timing-function: linear; }

@keyframes spin {
  from {
    transform: rotate(0deg); }
  to {
    transform: rotate(-360deg); } }

/* Responsive */
@media screen and (max-width: 500px) {
  form > div {
    max-width: 60%; } }

@media screen and (max-width: 700px) {
  h1 {
    display: none; }
  article > div {
    flex-wrap: wrap-reverse; }
  .avatar {
    display: none; }
  .realisations {
    justify-content: center; }
  form > div {
    display: flex;
    flex-direction: column; } }

@media screen and (max-width: 1250px) {
  .details-succes {
    flex-wrap: wrap;
    gap: 0; }
  #sloubi {
    flex-wrap: nowrap;
    gap: 100px; } }

@media screen and (max-width: 1500px) {
  article > div {
    flex-wrap: wrap;
    justify-content: center; } }
