/*Table*/
table {
  margin: 0 auto; /* center the table */
  color: white; /* set the text color to white */
}

a {
  color: #e3b028; /* set the link color to #e3b028 */
}

td a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

th {
  padding: 0.5em;
}

td {
  padding: 0.5em;
  text-align: center; /* center the contents of the cell */
}

.table-wrap {
  overflow-y: scroll;
  max-height: 40em; /* set the max-height according to your preference */
}

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: #000;
  padding: 0.1em;
}

/* General styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: 'Avenir Next', sans-serif; /* Change font to Avenir Next */
    font-size: 16px;
    line-height: 1.5;
    background: url(../../elementi/img/bg1.jpg);
    background-size: cover;
    background-position: center;
    color: #000;
  }
  
  /* Movie page styles */
  .movie-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }
  
  .title-section {
    text-align: center;
  }

  .acquista {
    text-align: center;
    padding: 20px;
  }

  .scopri {
    text-align: center;
  }

  .scopri button{
    background-color: #e3b028; /* Green */
  border: none;
  color: white;
  padding: 0.4em 0.4em;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  border-radius: 10px;
  }

  .acquista button{
    background-color: #4CAF50; /* Green */
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin-bottom: 20px;
  border-radius: 10px;
  }

  br {
    line-height: 0.8em; /* Set the line-height to 2 times the font size */
  }

  h1, h3, p, li {
    color: white;
  }

  h2 {
    color: #e3b028;ti
  }
  
  h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3em;
  }

  p {
    font-size: 18px; /* Make p text slightly bigger in mobile */
  }
  
  .event-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%; /* Make event section fit the width in mobile */
    margin-bottom: 4em;
  }

  .date-section{
    margin-bottom: 1.6em;
  }

  .event-section img{
    width: 100%; /* Make poster bigger to fit the page in mobile */
    max-width: none;
    margin: 0 auto; /* Center poster */
  }

  .synopsis-section {
    margin-bottom: 4em;
  }

  .cast-wrapper {
    margin-bottom: 4em;
  }

  .crew-wrapper {
    margin-bottom: 4em;
  }

  .section-1 {
    display: flex;
    flex-direction: row;
    justify-content: center;
  }
  
  .cast-wrapper,
  .crew-wrapper {
    flex-basis: 48%; /* Set the width of each section to 48% */
    margin: 3em;
  }

  @media screen and (min-width: 768px) {
    .event-section img {
      width: 50%; /* Revert poster size to original in non-mobile */
    }

  }
  
  .poster-section {
    display: flex;
    flex-wrap: wrap;
  }

  .poster-section {
    display: flex;
    justify-content: center;
}
  
  .poster-wrapper {
    flex-basis: 50%;
  }
  
  .poster-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    margin-bottom: 4em;
  }
  
  .video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    position: relative;
    overflow: hidden; /* prevent iframe from overflowing */
  }
  
  .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  .trailer-section {
    text-align: center;
    margin-bottom: 20px;
    max-width: 100%; /* make sure container div does not exceed the viewport width */
    margin-bottom: 4em;
  }
