.ticket {
    width: 100%;
    max-width: 300px;
    height: 575px;
    background-color: #C5C5C5;
    position: relative;
    border-radius: 8px;
    margin: 10vh;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Responsive styles */
    /* Hover effect for ticket */
  }
  @media (max-width: 768px) {
    .ticket {
      height: auto;
    }
  }
  .ticket:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  }
  
  /* Holes at the top of the ticket */
  .holes-top,
  .holes-lower {
    position: relative;
    margin: 20px;
    border: 1px dashed #c52525;
  }
  .holes-top::before, .holes-top::after,
  .holes-lower::before,
  .holes-lower::after {
    content: "";
    height: 50px;
    width: 50px;
    background-color: #f7f7f5;
    position: absolute;
    border-radius: 50%;
  }
  .holes-top::before,
  .holes-lower::before {
    top: -25px;
    left: -50px;
  }
  .holes-top::after,
  .holes-lower::after {
    top: -25px;
    left: 200px;
  }
  
  /* Title styles */
  .title {
    padding: 50px 25px 10px;
  }
  
  /* Cinema label styles */
  .cinema {
    color: #c52525;
    font-size: 22px;
  }
  @media (max-width: 768px) {
    .cinema {
      font-size: 18px;
    }
  }
  
  /* Movie title styles */
  .movie-title {
    font-size: 50px;
  }
  @media (max-width: 768px) {
    .movie-title {
      font-size: 36px;
    }
  }
  
  /* Info section styles */
  .info {
    padding: 15px 25px;
  }
  @media (max-width: 768px) {
    .info {
      padding: 10px 15px;
    }
  }
  
  /* Table styles */
  table {
    width: 100%;
    font-size: 18px;
    margin-bottom: 15px;
  }
  table tr {
    margin-bottom: 10px;
  }
  table th {
    text-align: left;
  }
  table th:nth-of-type(1) {
    width: 38%;
  }
  table th:nth-of-type(2) {
    width: 40%;
  }
  table th:nth-of-type(3) {
    width: 15%;
  }
  table td {
    width: 33%;
    font-size: 32px;
  }
  @media (max-width: 768px) {
    table td {
      font-size: 24px;
    }
  }


  /* Bigger text for some sections */
.bigger {
    font-size: 48px;
  }
  @media (max-width: 768px) {
    .bigger {
      font-size: 36px;
    }
  }
  
  /* Serial section styles */
  .serial {
    padding: 25px;
  }
  .serial table {
    border-collapse: collapse;
    margin: 0 auto;
  }
  .serial td {
    width: 3px;
    height: 50px;
  }
  
  /* Numbers section styles */
  .numbers td {
    font-size: 16px;
    text-align: center;
  }
  @media (max-width: 768px) {
    .numbers td {
      font-size: 12px;
    }
  }
  
  /* Barcode button styles */
  .barcode-button {
    font-family: "Libre Barcode 39 Text", cursive;
    font-size: 40px;
    background: none;
    border: none;
    cursor: pointer;
    display: block;
    margin: 20px auto 0;
    color: black;
    position: relative;
  }
  .barcode-button:before {
    content: "";
    position: absolute;
    width: 150px;
    height: 5px;
    transform: translateX(-3px) translateY(-5px);
    background: rgba(255, 0, 0, 0);
    transition: 500ms;
  }
  .barcode-button:hover:before {
    animation: line 500ms forwards;
  }
  .barcode-button:hover {
    animation: blink 500ms 300ms;
  }
  .barcode-button:focus {
    outline: none;
  }
  
  @keyframes line {
    from {
      background: rgba(255, 0, 0, 0.8);
    }
    to {
      background: rgba(255, 0, 0, 0.8);
      transform: translateX(-3px) translateY(38px);
    }
  }
  @keyframes blink {
    from {
      color: #eee;
    }
    to {
      color: black;
    }
  }
  /* Popup style */
  .popup {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    text-align: center;
  }
  
  /* Show popup on ticket hover */
  .ticket:hover .popup {
    display: block;
  }
  
  .ticket-poster {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
  }
  
