/* Global styles */
body {
  font-family: 'Arial', sans-serif;
}

p {
  text-align: justify;
  line-height: 1.5;
}

/* Header styles */
header {
  position: relative;
  text-align: center;
  padding: 20px; /* Add padding for left and right */
}

header img {
  width: 100%; /* Make sure the image takes the full width */
  height: auto;
  max-width: 100%;
}

/* Section styles */
section {
  margin: 20px 0;
}

/* Section padding for different screen sizes */
#event-description,
#bild-gallery,
#director,
#youtube-videos,
#sponsors,
#legal,
#contact {
  padding: 20px 20%;
}

.partner {
  display: flex;
  flex-wrap: wrap;
}

@media only screen and (max-width: 768px) {
  #event-description,
  #bild-gallery,
  #director,
  #youtube-videos,
  #sponsors,
  #legal,
  #contact {
    padding: 20px 10%;
  }
}

/* Gallery styles */
.gallery img {
  width: 100%;
  margin-bottom: 10px;
}

/* Video grid styles */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 20px;
}

/* Sponsor images styles */
.sponsor-images img {
  width: 100px;
  margin-right: 10px;
}

.sponsor-images {
  width: 100%; /* Make sure the images don't exceed the container width */
  height: auto; /* Maintain the aspect ratio */
  max-height: 100px; /* Set the maximum height */
  display: block;
  margin: 10px; /* Add spacing between images */
}

@media only screen and (min-width: 768px) {
  .sponsor-images {
    width: auto; /* Reset width for desktop view */
  }
}

/* Partner images styles */
.partner-images {
  width: auto; /* Make sure the images don't exceed the container width */
  height: auto; /* Maintain the aspect ratio */
  max-height: 40px; /* Set the maximum height */
  margin: 10px; /* Add spacing between images */
}

@media only screen and (min-width: 768px) {
  .partner-images {
    width: auto; /* Reset width for desktop view */
  }
}

/* Image gallery styles */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px; /* Adjust the gap between items */
}

.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px; /* Optional: Add rounded corners */
}

/* Director section styles */
#director {
  text-align: center;
}

.director-content {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.director-text {
  flex: 1;
  text-align: left;
  padding-right: 20px;
}

.director-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
}

#director img {
  max-width: 100%; /* Set the maximum width to 100% of the parent container */
  height: auto; /* Maintain the aspect ratio */
  display: block; /* Remove any potential spacing issues */
  margin: 0 auto; /* Center the image within its container */
}

/* Section background colors and font colors */
#event-description,
#cast,
#bild-gallery,
#director,
#youtube-videos,
#sponsors,
#contact {
  background-color: #f3f4ee; /* Grey */
  color: #000; /* Black */
}

#cast,
#director,
#sponsors {
  background-color: #a1937f; /* Brown */
  color: #fff; /* White */
}

/* Paragraph styles within sections */
#event-description p,
#cast p,
#director p,
#contact p {
  text-align: justify;
  line-height: 1.5;
}

/* Mobile menu styles */
@media only screen and (max-width: 768px) {
  #mobile-menu-icon {
    display: block;
  }

  #desktop-menu {
    display: none;
  }
}

/* YouTube video styles */
#youtube-videos iframe {
  max-width: 100%; /* Make sure the videos don't exceed the container width */
  height: auto; /* Maintain the aspect ratio */
  display: block;
  margin: 0 auto; /* Center the videos within the container */
  margin-bottom: 20px; /* Add spacing between videos */
}

@media only screen and (max-width: 768px) {
  #youtube-videos iframe {
    width: 100%; /* Full width on mobile */
  }
}

/* Buy tickets button styles */
.buy-tickets-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #d32f2f; /* Theater red */
  color: #fff; /* White */
  text-decoration: none;
  border-radius: 20px; /* Rounded corners */
  font-family: Arial, sans-serif; /* Choose appropriate font */
  font-size: 16px; /* Adjust font size as needed */
}

.buy-tickets-btn:hover {
  background-color: #b71c1c; /* Darker shade of red on hover */
}

/* Contact information styles */
.contact-info {
  display: flex;
  flex-wrap: wrap;
}

.contact-info-item {
  flex: 1;
  margin-bottom: 20px;
}

.label {
  display: block;
  font-weight: bold;
  text-transform: uppercase;
}

@media only screen and (min-width: 768px) {
  .contact-info-item {
    flex-basis: 33.33%; /* 3 columns on desktop */
  }
}

@media only screen and (max-width: 767px) {
  .contact-info-item {
    flex-basis: 100%; /* Full width on mobile */
  }

  .label {
    display: inline-block;
    width: 30%;
  }

  .info {
    display: inline-block;
    width: 70%;
    text-align: left;
  }
}

/* Video thumbnail styles */
.video-thumbnail {
  display: inline-block;
  margin: 10px;
}

@media only screen and (min-width: 768px) {
  .video-thumbnail {
    width: calc(50% - 20px); /* 2 columns with 20px margin in between */
  }
}

@media only screen and (max-width: 767px) {
  .video-thumbnail {
    width: calc(100% - 20px); /* Full width with 20px margin on both sides */
    max-width: calc(50vw - 20px); /* Limit thumbnail width to 50% of viewport width */
  }
}

/* Footer styles */
footer {
  text-align: center; /* Center-align the text in the footer */
}

/* Buy tickets container styles */
.buy-tickets-container {
  text-align: center; /* Center-align the button */
}