@import url("https://fonts.cdnfonts.com/css/the-sims-sans");

body {
  margin: 0;
  min-height: 100vh;

  justify-content: center;
  align-items: center;
  perspective: 600px;
  font-family: "The Sims Sans", sans-serif;
}

/* header */

/*import sims font from /fonts folder*/
@font-face {
  font-family: "Homes";
  src: url("../font/sims.woff2") format("woff2");
}

@font-face {
  font-family: "Homesans";
  src: url("../font/sims_sansuderline.woff2") format("woff2");
}

header a {
  text-decoration: none;
}
header {
  list-style: none;
  top: 0;
}

/* plumbob */
#plumbob {
  height: 370px;
  width: 150px;
  position: fixed;
  transform-style: preserve-3d;
  animation-name: rotate;
  animation-duration: 8s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}
@keyframes rotate {
  from {
    transform: rotateY(0);
  }
  to {
    transform: rotateY(360deg);
  }
}

.top,
.bottom {
  position: absolute;
  left: 0;
  height: 200px;
  width: 150px;
  transform-style: preserve-3d;
  transform: translateZ(1px);
}
.top {
  top: 0;
}
.bottom {
  bottom: 0;
}

.top div,
.bottom div {
  position: absolute;
  left: 0;
  height: 200px;
  width: 0;
  border-left: 75px solid transparent;
  border-right: 75px solid transparent;
  filter: drop-shadow(0 0 5px rgba(0, 100, 0, 0.5));
}

.top div {
  border-bottom: 200px solid rgba(0, 150, 50, 0.3);
  bottom: 0;
}
.bottom div {
  border-top: 200px solid rgba(0, 150, 50, 0.4);
  top: 0;
}

.front {
  transform: rotateX(22deg);
}
.back {
  transform: rotateX(-22deg);
}
.left {
  transform: rotateY(-90deg) rotateX(22deg);
}
.right {
  transform: rotateY(90deg) rotateX(22deg);
}

.window {
  background: #f1f5fc;
  height: 700px;
  max-height: 700px;
  overflow: auto;
  border-radius: 20px;
  margin: 15px 40px;
  display: flex;
  padding: 20px 10px;
  justify-content: space-evenly;
  flex-wrap: wrap;
  row-gap: 20px;
}

.card {
  width: 350px;
  height: 320px;
  background: #ffffff;
  border-radius: 10px;
}

.card-header {
  display: flex;
  padding: 10px 20px;
  justify-content: space-between;
  align-items: center;
  height: 30px;
}

.card-body {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
}

.card-body img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
}

.player-name {
  font-family: Homesans, sans-serif;
  color: #0255b6;
  font-weight: 700;
  margin: 0;
  font-size: 20px;
}

.plumbob_icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.jeu-sims {
  display: flex;
  align-items: center;

  color: #0587ee;
}

.card-header button {
  background: linear-gradient(rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0.1));
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #0255b6;
  height: 30px;
  width: 30px;
  box-shadow: -1px 3px 8px rgb(0 0 0 / 31%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-footer {
  height: 70px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 20px;
}

/* footer */

footer {
  text-decoration: none;
  color: black;
  width: 100%;
  text-align: center;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}
footer p,
footer a {
  text-decoration: none;
  margin: 0;
}

/*Media query pour telephone*/
@media (max-width: 480px) {
  .header_mobile {
    background: linear-gradient(180deg, #1c1095 0%, #40d2f7 100%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    transition: 0.3s;
    z-index: 5;
  }

  .header_mobile .hm_button {
    background: #4e75d9b8;
    height: 50px;
    border-radius: 10px;
    margin: 0 20px;
    margin-bottom: 15px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: left;
    padding: 0 20px;
    gap: 10px;
    transition: background 0.3s, color 0.3s;
    cursor: pointer;
  }

  .hm_button:hover {
    background: white;
    color: #1c1095;
  }

  .header_mobile .hm_home {
    height: 70px;
    border-radius: 10px;
    margin: 60px 20px 0 20px;
    background: #27a4f8;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background 0.3s, color 0.3s;
  }

  .hm_home:hover {
    background: white;
    color: #1c1095;
  }

  .hm_home img {
    width: 70px;
    scale: 1.4;
    position: absolute;
    left: 15px;
    top: -5px;
  }

  .header_mobile .hm_bubble {
    background: #162a9f;
    height: 35px;
    border-radius: 10px;
    margin: 15px 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hm_bubble .triangle {
    position: absolute;
    top: -18px;
    left: 5px;
  }

  .bar_mobile,
  .croix_mobile {
    position: absolute;
    z-index: 6;
    color: white;
    top: 15px;
    right: 20px;
    font-size: 22px;
    margin: 0;
  }

  .croix_mobile {
    display: none;
  }

  .hm_footer {
    position: absolute;
    bottom: 10px;
    margin: 0 20px;
    text-align: center;
    font-size: 12px;
    color: white;
  }

  .hm_footer span {
    color: #162a9f;
  }

  #sulsul {
    color: white;
    font-size: 14px;
  }

  .bar_mobile {
    color: black;
  }

  .window {
    margin: 0 0 0 0;
    padding-top: 56px;
    border-radius: 0;
  }

  .header_desktop {
    display: none !important;
  }
  h1 {
    text-align: center;
    color: #1906b4;
    font-size: 22px;
  }
}

/*Media query pour autre*/
@media (min-width: 481px) {
  .header_mobile {
    display: none !important;
  }

  .bar_mobile,
  .croix_mobile {
    display: none !important;
  }

  .header_desktop {
    margin: 20px;
    display: flex;
    gap: 40px;
    font-family: Homesans, sans-serif;
    font-size: 22px;
  }

  .header_desktop a {
    text-decoration: none;
    color: #1906b4;
  }

  .header_desktop a:hover {
    text-decoration: underline;
  }

  .header_desktop a.active {
    text-decoration: underline;
  }
  h1 {
    text-align: center;
    color: #1906b4;
  }
}
.recherche {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  background-color: #162a9f;
  border-radius: 40px;
  padding: 40px 0;
  width: 463px;
}
.bouton {
  display: flex;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: none;
  outline: none;
  background-color: #ffffff;
  color: #162a9f;
  height: 30px;
  width: 100px;
}
.envoyer {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
#search {
  color: white;
}

.result {
  display: flex;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: none;
  outline: none;
  background-color: white;
  color: #1906b4;
  width: 250px;
  height: 30px;
}

.tout {
  display: flex;
  justify-content: center;
}

#bouton-recherche {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  background-color: #f1f5fc;
  border-radius: 40px;
  padding: 40px 0;
  width: 400px;
}
.table1 {
  display: flex;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: none;
  outline: none;
  background-color: #162a9f;
  color: #ffffff;
  height: 30px;
  width: 100px;
}
.table2 {
  display: flex;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: none;
  outline: none;
  background-color: #162a9f;
  color: #ffffff;
  height: 30px;
  width: 100px;
}
#description {
  color: #1906b4;
  text-align: center;
  margin: auto;
  text-decoration: none;
  text-align: justify;
  font-size: 20px;
}

#description p {
  margin-bottom: 100px;
  margin-right: 50px;
  margin-left: 50px;
}
.histoire {
  display: flex;
  justify-content: center;
}

.center {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding-bottom: 100px;
}

.cimg {
  display: flex;
  justify-content: center;
  width: 400px;
  margin-right: 10px;
  height: 400px;
}
.cimg2 {
  display: flex;
  justify-content: center;
  width: 300px;
  margin-right: 10px;
  height: 400px;
}
