/* Grundinställningar */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  font-family: Arial, sans-serif;
  background-color: #e7bb2a;
  color: #111;
  line-height: 1.6;
  scroll-behavior: smooth;
}
/*
label {
  display: none;
} */

/* HEADER */
.header {
  position: relative;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.header-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  object-fit: cover;
}

.header-navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e7bb2a;
  opacity: 0.5;
  position: fixed;
  top: 0px;
  width: 100vw;
  height: 8vh;
  z-index: 100;
}

.header-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  border-radius: 8px;
}

.header-content img {
  position: sticky;
  top: 0;
  width: 80vw;
  max-width: 500px;
  height: 100%;
  animation: pulse;
  animation-duration: 0.8s;
  animation-iteration-count: infinite;
}

.header-content h1 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 0.5rem;
}

.header-content p {
  font-size: 1.2rem;
  color: white;
  margin-bottom: 1rem;
}

#event {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #e7bb2a;
  width: 100vw;
  clip-path: polygon(0 1%, 100% 8%, 100% 100%, 0% 100%);
}

section .eventContainer {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid red;
  padding: 10px;
}

section img {
  aspect-ratio: 4/1;
  width: 100%;
  object-fit: cover;
  border-top-right-radius: 20px;
  border-top-left-radius: 20px;
}

.eventCalendar {
  padding: 12px 20px;
  background-color: #1cb8e8;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  appearance: none; /* Tar bort webbläsarens standard-pil */
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 40px;
}

.eventCalendar:hover {
  background-color: #e0fa18;
}

.eventActions {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* SEKTIONER */
.section {
  padding: 60px 20px;
  /* border: 1px solid red; */
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

/* EVENT */

.event-info p {
  margin-bottom: 10px;
}

.event-link {
  color: #4f46e5;
  text-decoration: underline;
}

/* Map */
.event-map iframe {
  width: 100%;
  height: 200px;
  border: none;
  border-radius: 8px;
}

/* PARALLAX */
#parallax {
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url("/images/Lunchbeat\ \(1\).jpg");
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  height: 250px;
  width: 100vw;
  clip-path: polygon(0 0%, 100% 0%, 100% 100%, -20% 100%);
}

.parallax-content h2 {
  color: white;
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border-radius: 6px;
}

/* KONTAKT */

#kontakt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  background-color: #de444c;
  clip-path: polygon(0 8%, 100% 0%, 100% 100%, 0% 100%);
}
.contactContainer {
  width: clamp(300px, 90%, 800px);
  height: 100vh;
  background-color: #f2bf17;
  padding: 10px;
  gap: 20px;
  clip-path: polygon(
    0% 0%,
    100% 0%,
    100% 75%,
    65% 75%,
    75% 100%,
    50% 75%,
    0% 75%
  );
}
.contactForm {
  border: 1px solid red;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.writeBar {
  width: 90%;
  height: 30px;
  border-radius: 30px;
}

.contact-label {
  font-weight: bold;
  margin-bottom: 5px;
}

.contact-item a {
  color: #4f46e5;
  text-decoration: underline;
}

/* FOOTER */
footer {
  background: #1cb8e8;
  color: white;
  text-align: center;
  width: 100vw;
  padding: 20px;
}

/* RESPONSIVITET */
@media (min-width: 768px) {
  .header-content h1 {
    font-size: 4rem;
  }
  .header-content p {
    font-size: 1.5rem;
  }

  .event-container {
    flex-direction: row;
  }

  .event-map iframe {
    height: 250px;
  }

  .contact-container {
    flex-direction: row;
    gap: 50px;
  }
}

/* ANIMATIONER */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* För delay */
.delay-1 {
  transition-delay: 0.2s;
}
.delay-2 {
  transition-delay: 0.4s;
}
.delay-3 {
  transition-delay: 0.6s;
}
