@import "reset.css";

/* Estilos Globais e Base (Mobile) */
html {
  font-size: 62.5%;
}

body {
  font-family: "Oxanium", cursive;
  font-size: 1.6rem;
  background-color: #000000;
  color: #ffffff;
  width: 100;
}

body::before {
  content: "";
  background-image: url(../images/bg-desktop.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: -1;
  opacity: 0.4;
}

.header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

.header .logo {
  width: 200px;
}

.character-selection {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  width: 100%;
  max-width: 410px;
  margin: 0 auto;
  padding: 2rem;
  min-height: calc(100vh - 212px);
}

.character-selection .characters {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  margin-top: 4rem;
}

.character-selection .characters .title {
  width: 100%;
  font-size: 1.5rem;
  letter-spacing: 0.4rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  border-bottom: 2px solid #47f4ff;
}

.character-selection .character-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.character-list .character img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 1rem;
}

.character-list .character.selected img,
.character-list .character.selected {
  box-shadow: 0 0 24px 5px #0271f7;
  border-radius: 1rem;

}

.selected-character {
  text-align: center;
  max-height: 530px;
}

.selected-character .large-character-image {
  width: 300px;
  height: 300px;
}

.selected-character .character-name {
  letter-spacing: 0.4rem;
  text-transform: uppercase;
  border-bottom: 2px solid #47f4ff;
}

.selected-character .character-description {
  font-size: 1.6rem;
  line-height: 2.2rem;
  text-align: center;
  width: 80%;
  margin: 2rem auto;
}

/* Responsividade */
@media (min-width: 375px) {
  .selected-character .large-character-image {
    width: 350px;
    height: 350px;
  }
}

@media (min-width: 1100px) {
  .header .logo {
    width: 300px;
  }
  .character-selection {
    flex-direction: row; 
    max-width: 1100px; 
    gap: 3rem;
    min-height: calc(100vh - 212px); 
  }

  .character-selection .characters {
    max-width: 585px;
    margin-top: 0; 
  }

  .character-selection .characters .title {
    font-size: 2rem; 
  }

  .character-selection .character-list {
    gap: 3rem; 
  }

  .character-list .character img {
    width: 100%; 
    height: 100%;
  }

  .selected-character .large-character-image {
    width: 430px;
    height: 430px;
  }

  .selected-character .character-description {
    width: 100%; 
    max-width: 420px; 
    margin-top: 2rem;
  }
}
