:root {
  --light: #fff6e5;
  --darkGrey: #3a3a3a;
  --gold: #b99049;
  --red: #b71713;
  --green: #124b10;
  --blue: #078cb1;
  --yellow: #e1b50c;
}

@font-face {
  font-family: "Rubik";
  src: url("./../font/Rubik-Regular.ttf");
}
@font-face {
  font-family: "Rubik";
  src: url("./../font/Rubik-Bold.ttf");
  font-weight: bold;
}
* {
  margin: 0;
  padding: 0;
}

body {
  background: url("./../images/bgHP.webp") repeat;
  font-family: "Rubik";
}

main {
  background-color: var(--light);
  max-width: 1024px;
  margin: auto;
  margin-bottom: 70px;
}
main h3 {
  text-transform: uppercase;
  border-bottom: 3px solid black;
  text-align: center;
  color: var(--DarkGrey, #3a3a3a);
  text-align: center;
  font-family: Rubik;
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  padding-top: 10px;
}
main h2 {
  color: var(--DarkGrey, #3a3a3a);
  text-align: center;
  font-family: Roboto;
  font-size: 40px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-bottom: 54px;
}

footer {
  background-color: #000;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}
footer p {
  text-align: center;
  color: #fff;
}

.header {
  display: flex;
  max-width: 1024px;
  margin: auto;
  margin-top: 20px;
}
.header h1 {
  margin-bottom: 20px;
}
.header__right img {
  height: 100px;
  margin-right: 20px;
}
.header__left {
  width: 100%;
  display: flex;
  align-items: center;
  text-transform: uppercase;
}
.header__left ul {
  display: flex;
  justify-content: space-between;
  width: 80%;
}
.header__left ul li {
  list-style: none;
  font-weight: bold;
}
.header__left img {
  display: none;
}

.houses {
  display: flex;
  justify-content: center;
  gap: 3rem;
  background: rgba(185, 144, 73, 0.5);
  padding: 30px;
  flex-wrap: wrap;
}
.houses > label {
  box-sizing: content-box;
  border: 8px solid transparent;
  background: none;
  border-radius: 140px;
  width: 140px;
  height: 140px;
  text-align: center;
}
.houses > label input {
  opacity: 0;
  height: 0;
  width: 0;
  position: absolute;
}
.houses > label:hover,
.houses > label:focus-within {
  background: #fff6e6;
}
.houses > label:has(input:checked) {
  border-color: var(--gold);
}

.houses img {
  width: 121px;
  height: 136px;
}

.characters {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 30px;
}
.sorter,
.filterer {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding: 1rem 0;
}
.sorter label input,
.filterer label input {
  margin-right: 4px;
}

.characters > div {
  padding: 30px;
  position: relative;
}
.characters img {
  width: 150px;
  height: 150px;
  border-radius: 150px;
  border: 8px solid var(--Gold, #b99049);

  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  object-fit: cover;
}
.characters p {
  text-align: center;
  font-weight: 600;
  margin-top: 1rem;
  font-size: 1.2rem;
  color: var(--Gold, #b99049);
}
.characters a {
  text-decoration: none;
  color: inherit;
}
.characters a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.characters div.gryffindor:hover img {
  border-color: var(--red);
}
.characters div.gryffindor:hover p {
  color: var(--red);
}

.characters div.hufflepuff:hover img {
  border-color: var(--yellow);
}
.characters div.hufflepuff:hover p {
  color: var(--yellow);
}

.characters div.ravenclaw:hover img {
  border-color: var(--blue);
}
.characters div.ravenclaw:hover p {
  color: var(--blue);
}

.characters div.slytherin:hover img {
  border-color: var(--green);
}
.characters div.slytherin:hover p {
  color: var(--green);
}

/* PAGE PERSO */
.page_perso h3 {
  padding: 50px 50px 0 50px;
}
.page_perso .perso {
  background: rgba(185, 144, 73, 0.5);
  padding: 50px;
  display: flex;
  gap: 120px;
}
.page_perso .perso__right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 100%;
}
.page_perso .perso__right p.attr {
  font-weight: bold;
}
.page_perso figure {
  width: 215px;
  flex-shrink: 0;
}
.page_perso figure img {
  width: 100%;
}
.page_perso figure figcaption {
  background: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  height: 66px;
  justify-content: center;
  font-size: 20px;
}
.page_perso .house__perso {
  display: flex;
  justify-content: center;
  align-items: center;
}

@media screen and (max-width: 425px) {
  header {
    width: 90%;
  }
  header h1,
  header ul {
    display: none !important;
  }
  header .header__left {
    display: flex;
    justify-content: flex-end;
  }
  header .header__left img {
    display: block !important;
    height: 70px;
  }

  .houses {
    flex-direction: column;
    align-content: space-around;
  }
}

/*# sourceMappingURL=style.css.map */
