@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");
html,
body {
  margin: 0 auto;
  box-sizing: border-box;
  overflow: auto;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-size: 18px;
  scroll-behavior: smooth;
}
p {
  margin: 0;
}
a:hover {
  color: #235392;
}
a,
ul,
li {
  text-decoration: none;
  font-style: normal;
  list-style: none;
  padding: 0;
  color: inherit;
}
.container {
  margin: 0 auto;
  max-width: 1400px;
  width: 100%;
  padding: 20px;
}
.logo img {
  max-width: 100px;
  width: 1005;
}
.header>.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-list {
  display: flex;
  gap: 20px;
  text-transform: uppercase;
  font-weight: 600;
}
.nav-list > li {
  border-bottom: solid 3px #2653ac;
}

.hero {
background: linear-gradient(to bottom, #000000, #0b2342);
  color: #eee;
  font-size: 40px;
}

.hero > .container {
  text-align: center;
  padding: 50px 0;
}
.grid-layout {
  display: flex;
  gap: 40px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.casino-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.casino-item {
  display: flex;
  background-color: #f8f8f8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.casino-item:hover {
  transform: scale(1.02);
}

.casino-item img {
  width: 330px;
  object-fit: cover;
}

.casino-text {
  padding: 20px;
  flex: 1;
}

.casino-text h4 {
  margin-top: 0;
  color: #004d28;
}

.casino-text ul {
  margin: 10px 0;
}
.button {
  background-color: #00bcff;
  padding: 10px 15px;
  border-radius: 10px;
  line-height: 1.8;
  border: solid 2px #0060af;
  text-transform: uppercase;
}
.button:hover {
  background-color: #3d62e9;
  color: #ffffff;
}

.comment,
.guide {
  background-color: #0f0f0f;
  color: #eee;
  text-align: center;
}
.comment-container,
.guide-container,
.comment-container-policy {
  margin: 0 200px;
  display: flex;
  gap: 20px;
  justify-content: center;
  padding-top: 30px;
}
.comment-container-policy {
  flex-direction: column;
}
.comment-item {
  flex: 1;
  background-color: #eee;
  padding: 30px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #000;
}
.guide-item {
  flex: 1;
  background-color: #3c3c3c;
  padding: 30px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
}
.guide-item > span {
  max-width: 50px;
  width: 100%;
  fill: #eee;
}
.footer {
  background-color: #eee;
}
.gamestops {
  margin: 0 auto;
  display: flex;
  gap: 50px;
  align-items: center;
  justify-content: center;
}
.gamestops img {
  max-width: 100px;
  width: 100%;
}
.footer-content {
  background-color: #062b72;
  color: #eee;
}
.footer-cooperation {
  text-align: center;
  padding: 20px 0;
}
.footer-content > .container {
  display: flex;
  gap: 40px;
  align-items: center;
}
.footer-text,
.footer-links {
  flex: 1;
  text-align: center;
}

/* pages */
.content-section {
  padding: 30px 0;
}

.content-section h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #004080;
}

.content-section p {
  font-size: 1.125rem;
  margin-bottom: 15px;
  color: #222;
}

@media (max-width: 720px) {
  .section-casino {
    flex-direction: column;
  }
  .casino-item {
    flex-direction: column;
    min-width: 300px;
    width: 100%;
  }
  .container {
    max-width: 330px;
    width: 100%;
  }
  .comment-container,
  .guide-container,
  .comment-container-policy {
    flex-direction: column;
    margin: 0;
  }
  .gamestops {
    flex-direction: column;
  }
  .footer-content > .container {
    flex-direction: column;
  }
  :-webkit-any(article, aside, nav, section) h1,
  h1 {
    font-size: 1em;
  }
  .casino-item img {
    min-width: 200px;
    width: 100%;
  }
  .gamestops img {
    max-width: 130px;
  }
  .nav-list {
    flex-direction: column;
  }
}

/* Styles de la bannière de cookies */
/* Банер кукі - початковий стан: прихований через opacity та pointer-events */
#cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 900px;
  margin: 0 auto;
  
  background-color: #0e2c71; /* Темно-синій фон */
  color: #fff;
  padding: 20px 25px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);

  display: flex;
  justify-content: space-between;
  align-items: center;

  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 9999;
}

/* Видимий банер */
#cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Кнопки */
.cookie-buttons {
  display: flex;
  gap: 10px;
}

.btn {
  padding: 10px 18px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s ease;
  color: #fff;
}

.btn-accept {
  background-color: #0b6632;
}

.btn-accept:hover {
  background-color: #27ae60;
}

.btn-reject {
  background-color: #8c382f;
}

.btn-reject:hover {
  background-color: #c0392b;
}

/* Адаптивність для мобільних */
@media (max-width: 600px) {
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
  }
  .cookie-buttons {
    justify-content: flex-start;
    width: 100%;
  }
  #cookie-banner p {
    margin-bottom: 10px;
  }
}



/* Стилі для повноекранного попапу */
.age-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100000;
}

.age-popup-content {
  background-color: #004080;
  padding: 40px 60px;
  border-radius: 12px;
  text-align: center;
  color: white;
  max-width: 400px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.age-popup-content h1 {
  margin-bottom: 20px;
  font-size: 2.5rem;
}

.age-popup-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.age-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-yes {
  background-color: #2ecc71;
  color: white;
}

.btn-yes:hover {
  background-color: #27ae60;
}

.btn-no {
  background-color: #e74c3c;
  color: white;
}

.btn-no:hover {
  background-color: #c0392b;
}

/* Фон модалки */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 50, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Активна модалка */
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Вміст модалки */
.modal-content {
  background: #0b2342;
  border-radius: 12px;
  padding: 2rem 2.5rem;
  width: 95%; /* Замість 90% */
max-width: 550px !important;
  max-height: 80vh;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;
  box-shadow: 0 12px 30px rgba(0, 40, 80, 0.7);
  color: #e0e7ff;
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
  box-sizing: border-box;

  transform: translateY(-40px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}

.modal-content::-webkit-scrollbar {
  display: none;
}


/* Анімація появи */
.modal-overlay.active .modal-content {
  transform: translateY(0);
  opacity: 1;
}

/* Заголовок */
.modal-content h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-weight: 700;
  font-size: 1.8rem;
  color: #a8c0ff;
  text-align: center;
}

/* Інпути та textarea */
.modal-content input,
.modal-content textarea {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid #204080;
  border-radius: 8px;
  font-size: 1rem;
  background-color: #142a4b;
  color: #d7e3fc;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.modal-content input::placeholder,
.modal-content textarea::placeholder {
  color: #a0b4d6;
  opacity: 1;
}

.modal-content input:focus,
.modal-content textarea:focus {
  border-color: #7095ff;
  background-color: #1c3a7d;
  outline: none;
  color: #f0f4ff;
}

.modal-content textarea {
  resize: vertical;
  min-height: 120px;
  max-height: 180px;
  overflow-y: auto;
}

/* Контейнер для кнопок */
.modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

/* Кнопки */
.modal-buttons button {
  flex: 1;
  padding: 0.75rem 1.2rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: background-color 0.3s ease;
}

/* Кнопка "Fermer" меншою */
.modal-buttons button.close-modal {
  flex: 0 0 auto;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 2px solid #7095ff;
  color: #7095ff;
  font-weight: 600;
}

.modal-buttons button.close-modal:hover {
  background-color: #7095ff;
  color: #0b2342;
}

/* Кнопка "Envoyer" */
.modal-buttons button[type="submit"] {
  background-color: #506eff;
  color: white;
  font-weight: 600;
}

.modal-buttons button[type="submit"]:hover {
  background-color: #7a95ff;
}

.modal-content p {
  margin-bottom: 10px;
}

/* 18+ */

/* Основний фон модалки */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 50, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Активна модалка */
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Вміст модалки */
.modal-content {
  background: #0b2342;
  border-radius: 12px;
  padding: 2rem 2.5rem;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 12px 30px rgba(0, 40, 80, 0.7);
  color: #e0e7ff;
  font-size: 1.5rem;
  text-align: center;

  transform: translateY(-40px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}

/* Анімація появи */
.modal-overlay.active .modal-content {
  transform: translateY(0);
  opacity: 1;
}

/* Кнопки */
.age-buttons {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.age-buttons button {
  flex: 1;
  padding: 0.75rem 1.2rem;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color: white;
}

/* Кнопка "Oui" - зелена */
.age-buttons #ageYes {
  background-color: #28a745;
}

.age-buttons #ageYes:hover {
  background-color: #40c057;
}

/* Кнопка "Non" - червона */
.age-buttons #ageNo {
  background-color: #dc3545;
}

.age-buttons #ageNo:hover {
  background-color: #e55360;
}

.page-container {
  max-width: 1100px;
  margin: 50px auto;
  padding: 60px 80px; /* більші відступи, щоб текст займав ширше поле */
  background: rgba(10, 31, 68, 0.05); /* майже прозорий, дуже світлий фон */
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  color: #bcc6e0; /* темно-сірий із синюватим відтінком, щоб краще читалось */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.85;
  box-sizing: border-box;
  transition: box-shadow 0.3s ease;
}

.page-container:hover {
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.4);
}

.page-container h1 {
  color: #4a6dbc; /* темно-синій, контрастний */
  font-size: 3.4rem;
  margin-bottom: 50px;
  text-align: center;
  font-weight: 700;
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.page-container h2 {
  color: #6078a0; /* темніший синій/сірий */
  font-size: 2.2rem;
  margin-top: 3rem;
  margin-bottom: 20px;
  font-weight: 600;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-shadow: 1px 1px 1.5px rgba(0,0,0,0.2);
}

.page-container p {
  font-size: 19px;
  margin-bottom: 28px;
  color: #596984; /* темний сірий із холодним відтінком */
}

.page-container strong {
  color: #3f4f78; /* ще темніший відтінок для акцентів */
  font-weight: 700;
}

.page-container a {
  color: #3f5ab8;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-container a:hover,
.page-container a:focus {
  color: #2a3f85;
  text-decoration: none;
}

/* Адаптивність */
@media (max-width: 768px) {
  .page-container {
    padding: 30px 25px;
    max-width: 95%;
  }
  .page-container h1 {
    font-size: 2.6rem;
    margin-bottom: 35px;
  }
  .page-container h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 16px;
  }
  .page-container p {
    font-size: 17px;
    margin-bottom: 22px;
  }
}
