@import url('https://fonts.cdnfonts.com/css/star-wars');
*{
  font-family: 'Star Wars', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  color: #fff;
  list-style: none;
}

body{
  background-image: url("./assets/images/universo-bg.jpg");
  background-size: cover;

  header{
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-around;
  }
  .logo{
    width: 250px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    .logo-img{
      width: 40%;
      height: auto;
    }
    .logo-text{
      font-size: 1rem;
    }
  }

  .social-media{
    width: 130px;
    display: flex;
    justify-content: space-between;
    
    i{
      font-size: 1.2rem;
    }

    i:hover{
      color: gold;
    }
  }
  @media (max-width:768px){
    header{
      flex-direction:column;
      justify-content: center;
      margin: 10px auto;
      row-gap: 10px;
    }
  }

  main{
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
    padding: 20px 0;

    h2{
      margin: 20px;
      color: gold;
      font-weight: 300;
      text-align: center;
    }

    .main-content{
      width: 100%;
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      column-gap: 20px;
      row-gap: 10px;
      padding: 0 20px;
    }

    .cards{
      width: 230px;
      height: 470px;
      background-position: 50% 50%;
      background-size: cover;
      display: flex;
      align-items: end;
      border-radius: 8px;

      cursor: pointer;
      transition: 0.5s;
      padding: 5px;

    }

    

    .cards:hover{
      transform: scale(1.02);
    }
    .character-name-bg{
      width: 100%;
      height: 30px;
      background-color: rgba(0,0,0,0.6);
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 10px;
    }

    .character-name{
      color: gold;
      font-size: 1rem;
    }

    .buttons {
      width: 60%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 20px;
    }

    button{
      font-family: Arial, Helvetica, sans-serif;
      width: 70px;
      height: 25px;
      background-color: gold;
      color: #000;
      font-weight: 800;
      border-radius: 3px;
      cursor: pointer;
      border: 1px solid #000;
      outline: none;
      transition: 0.3s;
    }

    button:hover{
      background-color: #000;
      color: gold;
    }

    #back-button{

      visibility: hidden;
    }
    
  }

  footer{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 10px;
    margin: 40px 0 20px 0;
  }

  .footer-logo{
    font-size: 1.5rem;
    font-weight: 500;
  }
  .copyrigth{
    font-family: serif;
    font-weight: 500;
  }


  .modal{
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    position: fixed;
    top: 0;
  }

  .modal-content{
    width: 25vw;
    height: 70vh;
    background-color: #0d0d0d;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    row-gap: 15px;
    padding: 30px 10px;
    align-items: center;
  }

  

  .character-image{
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-position: 50% 10%;
    background-size: cover;

  }

  @media (max-width:768px) {
    .modal-content{
      width: 70vw;
      
    }
    .character-details{
      text-align: center;
    }
  }

  .character-details{
    font-size: 1rem;
    font-weight: lighter;
    color: gold;
  }

  .footer-logo{
    text-align: center;
    margin: o auto;
  }
  
}

