/* body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background: radial-gradient(circle, #fff8e1, #ffe0b2);
    color: #333;
    margin: 0;
    padding: 0;
} */


body {
    background-image: url('./pictures/phone-style.jpg'); /* путь к картинке */
    background-size: cover;       /* масштабирует под размер экрана */
    background-position: center;  /* центрирует изображение */
    background-repeat: no-repeat; /* не повторяет */
    background-attachment: fixed; /* фон остается при прокрутке */
    margin: 0;
    padding: 0;
    font-family: sans-serif;
  }
  


header {
    background: url(./pictures/The\ Greatest\ Show.jpg);
    background-size: 100%;
    background-repeat: no-repeat;
    color: white;
    padding: 20px 0;
    text-align: center;
    /* border-bottom: 5px dashed yellow; */
}

h1 {
    font-size: 50px;
}

h2 {
    color: #fff;
}
h3 {
    color: #fff;
}

nav a {
    font-size:35px ;
    color: yellow;
    font-weight: bold;
    text-shadow: 2px 2px red;
    text-decoration: none;
}
nav li {
    list-style: none;
    padding-left: 0;
}
nav ul {
    padding-left: 0%;
}

main {
    padding: 20px;
    text-align: center;
}
main p {
    color: #fff;
}

main ul {
    padding: 0;
}
main li {
    list-style: none;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.1rem; /* чуть больше стандартного (16–18px) */
  font-weight: 500;  /* средняя жирность для читаемости */
  color: #ffffff;       /* приятный темный цвет */
  padding: 1px 0;
  position: relative;
  line-height: 1.5;  /* увеличиваем межстрочный интервал */
  transition: color 0.3s ease;
}

button {
    background-color: #ff6f00;
    color: white;
    padding: 10px 20px;
    border: 3px solid yellow;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
}

.ball {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, red, darkred);
    border-radius: 50%;
    animation: bounce 2.5s infinite;
    margin: 50px auto;
}

table {
    width: 80%;
    margin: 20px auto;
    border-collapse: collapse;
}

table, th, td {
    border: 2px solid red;
}

th {
    background-color: #ffcc80;
}

td {
    background-color: #fff3e0;
}

.gallery img:hover {
    transform: scale(1.1) rotate(5deg);
}

/* .slider {
    width: 85vh;
    height: 70vh;
    margin: 20px auto;
    overflow: hidden;
    border: 5px solid red;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.slider img {
    width: 100vh;
    height: 100vh;
    display: none;
}

.slider img.active {
    display: block;
} */





.slider-container {
    position: relative;
    width: 100%;
    /* max-width: 900px; */
    height: 100%;
    margin: 30px auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  }
  
  .slider {
    display: flex;
    transition: transform 0.5s ease;
  }
  
  .slide {
    width: 100%;
    height: 100%;
    position: relative;
    display: none;
  }
  
  .slide.active {
    display: block;
    
  }
  
  .slide img {
    width: 100%;
    height: 100vh;
    object-fit: contain;
    display: block;
    
  }
  
  .caption {
    position: absolute;
    bottom: 5%;
    left: 10%;
    color: white;
    font-size: clamp(16px, 4vw, 24px);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 8px;
  }
  
  .slider-buttons {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 0px;
  }
  
  .slider-buttons button {
    background-color: rgba(0, 0, 0, 0.4);
    border: none;
    color: white;
    font-size: 28px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
  }
  
  .slider-buttons button:hover {
    background-color: rgba(0, 0, 0, 0.7);
  }




  .video-ball-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;      /* по центру горизонтально */
    justify-content: center;  /* по центру вертикально, если надо */
    gap: 30px;                /* отступ между кнопкой и м'ячем */
    margin-top: 40px;
  }
  .ball {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, red, darkred);
    border-radius: 50%;
    animation: bounceUp 2s infinite;
    position: relative;
  }
  
  /* Анимация мяча вверх от кнопки */
  @keyframes bounceUp {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-60px); /* прыг вверх */
    }
  }
    
  




  
/* Стили кнопки */
.video-button {
    padding: 10px 20px;
    background-color: #e63946;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    justify-content: center; /* по горизонтали */
  align-items: center;     /* по вертикали, если надо */
  text-align: center;
  }

  /* Затемнение фона */
  .overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }

  /* Контейнер видео */
  .video-popup {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: #000;
    border-radius: 12px;
  }

  .video-popup iframe {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 12px;
  }

  /* Кнопка закрытия */
  .close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: rgb(6, 6, 6);
    color: rgb(9, 9, 9);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
  }


@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-50px); }
}
footer p {
    text-align: center;
    color: #fff;
}





 .social-icons {
    display: flex;
    gap: 15px;
    justify-content: center; /* или center, или start */
    align-items: center;
    padding: 10px;
  }
  
  .social-icons a {
    color: #fff; /* цвет иконок */
    font-size: 24px;
    transition: color 0.3s ease;
    text-decoration: none;
  }
  
  .social-icons a:hover {
    color: #e63946; /* при наведении */
  }





  


   
  .contact-form {
    max-width: 500px;
    margin: auto;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  }
  
  input, textarea {
    width: 90%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
  }
  
  button {
    background: #e63946;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
  }
  
  button:hover {
    background: #c9303a;
  }
  
  #successMessage {
    display: none;
    background: #d4edda;
    color: #155724;
    padding: 15px;
    margin-top: 15px;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    text-align: center;
  }
  
  #successMessage.show {
    display: block;
  }
  
  
  



  

/* Мобильные устройства (до 600px) */
@media (max-width: 600px) {
    header {
      padding: 15px 10px;
      background-size: cover;
      text-align: center;
    }
  
    nav ul {
      padding-left: 0;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
    }
  
    nav li {
      padding: 5px 10px;
    }
  
    nav a {
      font-size: 14px;
    }
  
    .social-icons {
      justify-content: center;
      gap: 12px;
      padding: 8px 0;
    }
  
    main {
      padding: 10px;
    }
  
    iframe {
      width: 100% !important; /* iframe карты на всю ширину контейнера */
      height: 250px !important;
    }
  
    .contact-form {
      max-width: 100%;
      padding: 15px;
      box-shadow: none;
    }
  
    .contact-form input,
    .contact-form textarea,
    .contact-form button {
      width: 100% !important;
      box-sizing: border-box;
      margin: 8px 0;
    }
  
    button {
      font-size: 1em;
      padding: 10px;
    }
  }
  
  /* Планшеты (от 601px до 900px) */
  @media (min-width: 601px) and (max-width: 900px) {
    header {
      padding: 20px 15px;
      background-size: cover;
    }
  
    nav ul {
      display: flex;
      justify-content: center;
      gap: 15px;
    }
  
    nav a {
      font-size: 16px;
    }
  
    main {
      padding: 15px 20px;
    }
  
    iframe {
      width: 100% !important;
      height: 350px !important;
    }
  
    .contact-form {
      max-width: 450px;
      margin: auto;
    }
  
    .contact-form input,
    .contact-form textarea,
    .contact-form button {
      width: 100% !important;
    }
  }
  
  /* Десктоп (более 900px) */
  @media (min-width: 901px) {
    iframe {
      width: 600px !important;
      height: 450px !important;
    }
  
    .contact-form {
      max-width: 500px;
    }
  }


/* Galery */



  
  .content1 {
    width: 100%;
    max-width: 100vw;
    padding: 3rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    transition: all 0.3s ease;
  }
  
  .content1 img {
    width: 60px;
    height: 185px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0px 0px 7px rgba(255, 255, 255, 0.6);
    transition: all 0.4s ease-in-out;
  }
  
  .content1 img:hover {
    width: 200px;
  }
  .lightbox {
    display: none; /* Початково сховано */
    position: fixed; /* Важливо — саме fixed! */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999; /* Обов’язково великий z-index! */
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  .lightbox {
    overflow: hidden; /* <--- Це прибирає повзунки */
  }

  .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: 0.3s;
  }
  
  .close:hover {
    color: #ff5555;
  }

  .prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
    color: white;
    user-select: none;
    padding: 10px;
    z-index: 10000;
    transition: 0.3s;
  }
  
  .prev:hover, .next:hover {
    color: #ffcc00;
  }
  
  .prev {
    left: 20px;
  }
  
  .next {
    right: 20px;
  }
  
  
    
  
  /* ===== Responsive Queries ===== */
  @media (max-width: 768px) {
    .content1 {
      flex-direction: row;
      justify-content: center;
      padding: 1rem;
      gap: 0.5rem;
    }
  
    .content1 img {
      width: 80px;
      height: 200px;
    }
  
    .content1 img:hover {
      width: 140px;
    }
  }
  
  @media (max-width: 480px) {
    .content1 {
      flex-direction: row;
      flex-wrap: wrap;
      gap: 0.4rem;
    }
  
    .content1 img {
      width: 60px;
      height: 160px;
    }
  
    .content1 img:hover {
      width: 100px;
    }
  }
  
  
  
 
  /* Video player */

  .container {
    background-color: #151515;
    min-height: calc(100vh - 50px);
    color: white;
  }
  
  .content-container {
    margin-left: 50px;
  }
  
  .featured-content {
    height: 50vh;
    padding: 50px;
  }
  
  .featured-title {
    width: 200px;
  }
  
  .featured-desc {
    width: 500px;
    color: lightgray;
    margin: 30px 0;
  }
  
  .featured-button {
    background-color: #4dbf00;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    outline: none;
    font-weight: bold;
  }
  
  .movie-list-container {
    padding: 0 20px;
  }
  
  .movie-list-wrapper {
    position: relative;
    overflow: hidden;
  }
  
  .movie-list {
    display: flex;
    align-items: center;
    height: 300px;
    transform: translateX(0);
    transition: all 1s ease-in-out;
  }
  
  .movie-list-item {
    margin-right: 30px;
    position: relative;
  }
  
  .movie-list-item:hover .movie-list-item-img {
    transform: scale(1.2);
    margin: 0 30px;
    opacity: 0.5;
  }
  
  .movie-list-item:hover .movie-list-item-title,
  .movie-list-item:hover .movie-list-item-desc,
  .movie-list-item:hover .movie-list-item-button {
    opacity: 1;
  }
  
  .movie-list-item-img {
    transition: all 1s ease-in-out;
    width: 270px;
    height: 200px;
    object-fit: cover;
    border-radius: 20px;
  }
  
  .movie-list-item-title {
    background-color: #f8f3f3;
    padding: 0 10px;
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    top: 10%;
    left: 50px;
    opacity: 0;
    transition: 1s all ease-in-out;
  }
  
  .movie-list-item-desc {
    background-color: #fcf8f8;
    padding: 10px;
    font-size: 14px;
    position: absolute;
    top: 30%;
    left: 50px;
    width: 160px;
    opacity: 0;
    transition: 1s all ease-in-out;
  }

  .movie-list-item-button1 {
    padding: 10px;
    background-color: #f8ab11;
    color: white;
    border-radius: 10px;
    outline: none;
    border: none;
    cursor: pointer;
    position: absolute;
    bottom: 10px;
    left: 38%;
    opacity: 0;
    transition: 1s all ease-in-out;

  }
  
  .movie-list-item-button {
    padding: 10px;
    background-color: #f8ab11;
    color: white;
    border-radius: 10px;
    outline: none;
    border: none;
    cursor: pointer;
    position: absolute;
    bottom: 10px;
    left: 38%;
    opacity: 0;
    transition: 1s all ease-in-out;
  }
  
  .arrow {
    font-size: 120px;
    position: absolute;
    top: 90px;
    right: 0;
    color: lightgray;
    opacity: 0.5;
    cursor: pointer;
  }
  
  .container.active {
    background-color: white;
  }

  .movie-list-title {
    color: #311cec;
     font-size: clamp(20px, 3vw, 35px);/*для адаптивности шрифта */
  }
  
  .movie-list-title.active {
    color: rgb(254, 252, 252);
  }

  .navbar-container.active {
    background-color: white;
  
    color: black;
  }
  
  .sidebar.active{
      background-color: white;
  }
  
  .left-menu-icon.active{
      color: black;
  }
  
  .toggle.active{
      background-color: black;
  }
  
  .toggle-ball.active{
      background-color: white;
      transform: translateX(-20px);
  }
  
  @media only screen and (max-width: 940px){
      .menu-container{
          display: none;
      }
  }


  
  
   .gallery-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px 20px;
    position: relative;
  }
  
  .arrow {
    font-size: 50px;
    background: #444;
    color: white;
    border: none;
    padding: 30px 15px;
    cursor: pointer;
    z-index: 2;
  }
  
  .video-gallery {
    overflow: hidden;
    width: 80%;
    max-width: 1000px;
  }
  
  .videos {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
  }
  
  .video-item img {
    width: 270px;
    height: 150px;
    cursor: pointer;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s;
  }
  
  .video-item img:hover {
    transform: scale(1.05);
  }
  
  /* Модальне відео */
   .video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
  }
  
  .video-content {
    position: relative;
  }
  
  .video-content iframe {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 10px;
  }
  
  .close-btn {
    position: absolute;
    top: -40px;
    right: -10px;
    font-size: 30px;
    color: white;
    cursor: pointer;
  }
  .video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: auto;
    aspect-ratio: 16 / 9;
  }
  
  .video-container iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
  }
  
  .video-caption {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5); /* напівпрозорий чорний фон */
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 18px;
    font-family: sans-serif;
    pointer-events: none; /* дозволяє кліки проходити до відео */
  }  
  
  


