@font-face{
  font-family: 'Star Jedi';
  src: url('./assets/Starjedi.woff') format('woff');
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  color: #fff;
}

body {
  background-image: url('./assets/rembackground.jpg');
  background-size: contain;
}

a{
  text-decoration: none;
}

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-family: 'Star Jedi', sans-serif;
  font-size: 1rem;
}

.social-media {
  width: 130px;
  display: flex;
  justify-content: space-between;
}

i {
  font-size: 1.2rem;
}

i:hover {
  color: gold;
}

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

h2 {
  font-family: 'Star Jedi', sans-serif;
  margin-bottom: 20px;
  color: gold;
  font-weight: 300;  
}

.main-content {
  display: grid;
  justify-content: center;
  /* flex-wrap: wrap; */
  column-gap: 25px;
  row-gap: 38px;
  padding: 0 20px;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr ;
}

.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 {
  font-family: 'Star Jedi', sans-serif;
  color: gold;
  font-size: 1rem;
}

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

button {
  width: 70px;
  height: 25px;
  background-color: gold;
  color: #000;
  font-weight: 700;
  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-family: 'Star Jedi', sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
}

.copyright {
  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;
}

.character-details {
  font-family: 'Star Jedi', sans-serif;
  font-size: 1rem;
  font-weight: lighter;
  color: gold;
}