body {
  margin: 0;
  min-height: 60vh;
  background-image: url('bakgrundentrev.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  text-align: center;
  color: #FF6F00;
  overflow-x: hidden;
  font-family: "Lilita One", sans-serif;
}

.press-start-2p-regular {
  font-family: "Press Start 2P", system-ui;
  font-weight: 400;
  font-style: normal;
}


.lilita-one-regular {
  font-family: "Lilita One", sans-serif;
  font-weight: 400;
  font-style: normal;
}


.logo-container {
  text-align: center;
  margin-top: 50px;
  margin-bottom: -100px;
}

.logo{
  width: 100%;
  max-width: 700px;
  top: 70px;
  height: auto;
  filter: drop-shadow(4px 4px 0px #000);
  position: relative;
  transform: scale(0.8);
}

.choose {
  font-family: "Press Start 2P", system-ui;
  font-weight: 400;
  font-style: normal;
  background: linear-gradient(to bottom, #ff651d, #000000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.5em;
  padding: 10px;
  margin: 0 auto;
  animation: retro-glow 1.5s infinite alternate;
  margin-top: 120px;
}

@keyframes retro-glow {
  0% {
    text-shadow: 0 0 5px #ff651d, 0 0 10px #ff651d, 0 0 20px #ffdf74, 0 0 30px #ffdf74;
  }
  100% {
    text-shadow: 0 0 10px #ffdf74, 0 0 20px #ffdf74, 0 0 30px #ff651d, 0 0 40px #ff651d;
  }
}

.fighters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 5rem;
  justify-items: center;
  align-items: center;
  margin: 2rem auto;
  max-width: 1000px;
  margin-top: 100px;
}

.fighter {
  width: 250px;
  height: 400px;
  perspective: 1000px;
}

.fighter-card,
.fighter-card .front,
.fighter-card img {
  transition: transform 0.5s ease;
}

.fighter-card {
  width: 100%;
  height: 100%;
  position: relative;
  background-color: rgba(255, 200, 100, 0.6);
  transform-style: preserve-3d;
  border-radius: 30px;
}

.front {
  border: 3px solid rgba(255, 140, 0, 0.7);
  border-radius: 30px;
}

.front:hover {
  cursor: pointer;
}

.fighter-card .front {
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

.fighter-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}

.fighter-card .back {
  position: absolute;
  inset: 0;
  background: rgba(255, 200, 100, 0.6);
  color: black;
  text-align: center;
  transform: rotateY(180deg);
  backface-visibility: hidden;
  transition: opacity 0.5s ease;
  border-radius: 30px;
  border: 3px solid rgba(255, 140, 0, 0.7);
}

.fighter-card.flipped {
  transform: rotateY(180deg);
}

.fighter-card.flipped .back {
  border-radius: 30px;
  height: 580px;
  max-height: 580px;
  margin-bottom: 200px;
}

.backh3 {
  margin:0;
  padding:0;
}

.fighter-info {
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
  object-fit: cover;
}

.fighter-card.flipped .fighter-info {
  opacity: 1;
}

.back-img {
  width: 100%;
  max-height: 60%;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.icons {
  margin: 5px;
  color: #FF6F00;
  font-size: 1.5rem;
}

.omoss {
  display: inline-flex; /* Anpassar klickytan till innehållet */
  justify-content: center;
  align-items: center;
  background-color: #AED9E0;
  color: black;
  border: 2px solid #000;
  cursor: pointer;
  padding: 0.4em;
  font-size: 1.7em;
  border-radius: 30px;
  text-align: center;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 6px rgba(0.2, 0.2, 0.3, 0.4);
  font-weight: 700;
  font-family: "Lilita One", sans-serif;
  position: relative;
  top: -300px;
  height: 60px;
  text-decoration: none;
}

.omoss:hover {
  background-color: #AED9E0;
  box-shadow: 0 6px 8px rgba(0.2, 0.2, 0.3, 0.4), 0 8px 16px rgba(0, 0, 0, 0.2);
}

.footer {
  background-color: transparent;
  color: #000;
  text-align: center;
  font-size: 1em;
  padding: 20px 10px;
  position: relative;
  bottom: 0px;
  font-family: "Lilita One", sans-serif;
  font-weight: 400;
  font-style: normal;
}

@media screen and (max-width: 768px) {
  .logo {
    position: relative;
    max-width: 100%;
    width: 100%;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    padding: 10px;
  }

  .fighter-card.flipped .back {
    height: 475px;
    max-height: 475px;
    margin-bottom: 200px;
  }
  
  .choose {
    position: relative;
    font-size: 1em;
    top: 30px;
    margin-bottom: 30px;
  }

  .fighters {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 70px;
    padding: 0 1rem;
  }

  .fighter-card,
  .fighter-card .front,
  .fighter-card img {
    transition: transform 0.5s ease;
  }

  .flipped {
    margin-bottom: 200px;
    transition: margin-bottom 0.3s ease;
    transform: rotateY(180deg);
  }

  .fighter {
    width: 60%;
    height: auto;
  }

  .fighter-card {
    height: auto;
  }

  .fighter-card img,
  .back-img {
    height: auto;
    max-height: none;
  }

  .button-container {
    position: static;
    margin: 2rem auto;
    transform: none;
  }

  .omoss {
    font-size: 1.4em;
    padding: 0.5em 1em;
    margin: 2rem 1rem;
    position: relative;
    top: 20px;
  }

  body {
    text-align: center;
  }

  .footer {
    margin-top: 0px;
  }
}


