@import "reset.css";

html {
  font-size: 62.5%;
}

body {
  font-size: 1.6rem;
  font-family: "Rubik", Arial, sans-serif;
  background-color: #000000;
  overflow: hidden;
}

.characters::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  min-height: 100vh;
  width: 80vw;
  background: linear-gradient(-233deg, #000 40%, rgba(0, 0, 0, 0) 65%) no-repeat;
}

.character {
  display: none;
  height: 100vh;
}

.character.selected {
  display: block;
}

.character .character-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.character .character-info {
  position: absolute;
  top: 0;
  left: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  width: 500px;
  color: #ffffff;
  z-index: 1;
}

.character-info .logo {
  background-image: url("../images/one-piece-logo.png");
  background-size: cover;
  height: 100px;
  width: 230px;
  margin-bottom: 35px;
}

.character-info .character-name {
  font-size: 4.8rem;
  font-family: "Secular One", Arial, sans-serif;
  font-weight: 400;
  margin-bottom: 20px;
}

.character-info .character-description {
  font-size: 1.6rem;
  line-height: 2.4rem;
}

.character-buttons {
  position: fixed;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 180px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background-color: rgba(0, 0, 0, 0.3);
}

.character-buttons li {
  border-radius: 50%;
}

.character-buttons .character-button {
  background-color: #000000;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.character-buttons .character-button img {
  border-radius: 50%;
}

.character-buttons .character-button.selected {
  transform: scale(1.2);
  box-shadow: 0 0 10px #d9d9d9;
}

@media (max-width: 769px) {
  .characters::after {
    width: 100vw;
    background: linear-gradient(0deg, #000000 20%, rgba(0, 0, 0, 0) 65%) no-repeat;
  }

  .character .character-image {
    height: 85%;
  }

  .character .character-info {
    justify-content: flex-end;
    left: 0;
    top: -20%;
    max-width: 100vw;
    padding: 30px;
  }

  .character-info .character-name {
    font-size: 3.6rem;
  }

  .character-info .character-description {
    max-width: 500px;
  }

  .character-buttons {
    flex-direction: row;
    align-items: flex-end;
    width: 100%;
    padding: 30px;
  }

  .character-buttons .character-button img {
    max-width: 60px;
  }
}

@media (max-width: 425px) {
  .character .character-image {
    height: auto;
  }

  .character .character-info {
    top: -30%;
  }

  .character-info .logo {
    width: 170px;
    height: 75px;
  }

  .character-info .character-name {
    font-size: 2.4rem;
  }

  .character-buttons {
    top: -20%;
    padding: 20px;
  }

  .character-buttons .character-button img {
    max-width: 50px;
  }
}
