/* General Styles */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
  background-color: #FEFAF5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

h1, h2 {
  font-weight: 600;
  color: #111;
}

p {
  margin: 10px 0;
  color: #555;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #c1ff72;
  color: #333;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
  background-color: #ffde59;
  transform: scale(1.05);
}

/* Navbar */
/* Navbar */
.navbar {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #F5BB6E;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.navbar .logo {
  display: flex;
  align-items: center;
  transition: opacity 0.3s ease;
}

.navbar .logo .svg-logo {
  width: 150px;
  height: auto;
}

/* Hide logo when menu is active */
.navbar .nav-links.active + .logo {
  opacity: 0;
  pointer-events: none; /* Prevent clicks on the logo when hidden */
}

.navbar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
}

.navbar li {
  display: inline;
}

.navbar a {
  color: black;
  text-decoration: none;
  padding: 15px 30px;
  display: block;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s ease, transform 0.3s ease;
}

.navbar a:hover {
  background-color: #EC606C;
  color: white;
  transform: scale(0.95);
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  font-size: 30px;
  background: none;
  border: none;
  color: black;
  cursor: pointer;
}

/* Responsive Navbar for mobile (max-width: 768px) */
@media (max-width: 768px) {
  .navbar {
    padding: 10px 5px;
  }

  .navbar ul {
    display: none; /* Gömmer menyn som standard på mobilen */
    flex-direction: column; /* Gör navbaren vertikal */
    align-items: center;
    width: 100%;
    padding: 0;
  }

  .navbar ul.active {
    display: flex; /* Visar menyn när den är aktiv */
  }

  .menu-toggle {
    display: block; /* Visar hamburgermenyn på mobil */
  }

  .navbar a {
    padding: 15px;
    font-size: 18px;
    text-align: center;
  }

  .navbar .logo {
    flex: 1;
  }
}


/* Hero Section */
.hero {
  text-align: center;
  padding: 100px 20px;
  background-image: url('images/Bilder.png'); /* Lägg till din bakgrundsbild här */
  background-size: cover; /* Täck hela området */
  background-position: center; /* Centrera bilden */
  background-repeat: no-repeat; /* Ingen upprepning */
  color: #fff; /* Vit text för kontrast */
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* Lägg till en mörk överläggning för bättre kontrast */
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2; /* Behåller texten ovanpå överläggningen */
}

.gradient-text {
  font-size: 2.5rem;
  background-image: linear-gradient(#ff5757, #c1ff72);
  -webkit-background-clip: text;
  color: transparent;
}

.gradient-text-small {
  font-size: 1.1rem;
  background-image: linear-gradient(#c1ff72, #ffde59);
  -webkit-background-clip: text;
  color: transparent;
}

.btn {
  padding: 10px 20px;
  background-color: #F5BB6E;
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  background-color: #EC606C;
}


/* About Section */
.about {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.gradient-text {
  background: linear-gradient(90deg, #ff7e5f, #feb47b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro-text {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 20px;
}

.game-details {
  margin-top: 40px;
}

.game-details-list {
  list-style-type: none;
  padding: 0;
}

.game-details-list li {
  margin-bottom: 10px;
  font-size: 1em;
}

.faq-section {
  margin-top: 40px;
}

.faq-item {
  margin-bottom: 20px;
}

.question {
  font-weight: bold;
}

.answer {
  margin-top: 5px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* Förbeställningar-sektion */
#preorder {
  background-color: #f9f9f9;
  padding: 50px 20px;
  text-align: center;
}

#preorder h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #ff5757;
}

#preorder p {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 20px;
}

#preorder form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#preorder form input,
#preorder form textarea,
#preorder form button {
  width: 100%;
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#preorder form input:focus,
#preorder form textarea:focus {
  border-color: #ff5757;
  outline: none;
  box-shadow: 0 0 5px rgba(255, 87, 87, 0.5);
}

#preorder form textarea {
  resize: vertical;
  min-height: 100px;
}

#preorder form button {
  background-color: #ff5757;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#preorder form button:hover {
  background-color: #ffde59;
  color: #333;
  transform: scale(1.05);
}

#preorder #message {
  margin-top: 10px;
  padding: 15px 15px 15px 50px;
  font-size: 1rem;
  border-radius: 5px;
  display: none;
  position: relative;
}

#preorder #message.success {
  background-color: #c1ff72;
  color: #333;
  border: 1px solid #a5d85c;
}

#preorder #message.error {
  background-color: #ff5757;
  color: #fff;
  border: 1px solid #dc3545;
}

#preorder #message.success::before {
  content: '✔';
  font-size: 1.5rem;
  color: #007bff;
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
}

#preorder #message.error::before {
  content: '✖';
  font-size: 1.5rem;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
}


/* Galleri Sektion */
.gallery-section {
  background-color: #f9f9f9;
  padding: 50px 20px;
  text-align: center;
}

.gallery-section h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #ff5757;
}

.gallery-section p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #555;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding: 15px;
}

.gallery-item img {
  max-width: 100%;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

.gallery-item p {
  margin-top: 10px;
  font-size: 1rem;
  color: #555;
}




/* Info Section */
.info-section {
  background-color: #f9f9f9;
  padding: 50px 20px;
}

.info-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
  color: #ff5757;
}

.contact-info ul,
.game-info ul {
  list-style-type: none;
  padding: 0;
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 20px;
}

.contact-info ul li,
.game-info ul li {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #555;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background-color: #333;
  color: #fff;
}

.social-icons a:hover {
  color: #ffde59;
}

/* Scroll-to-Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #ff5757;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.scroll-to-top:hover {
  background-color: #c1ff72;
  transform: scale(1.2);
}