

html {
    overscroll-behavior: none;
}


html[lang="en"] :root {
    --selected-lang-path: "en";
}

html[lang="es"] :root {
    --selected-lang-path: "es";
}

html[lang="ru"] :root {
    --selected-lang-path: "ru";
}

html[lang="pt"] :root {
    --selected-lang-path: "pt";
}

html[lang="fr"] :root {
    --selected-lang-path: "fr";
}

*:focus, *:focus-visible {
    outline: none;
}

h2 {
    text-align: center;
}



.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
  }

  

.page-container {
    margin: 20px;
    display: flex;
    flex-direction: column;
    /* align-items: center; */
}
main .container{
    margin: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}


body.dark-mode {
    background: radial-gradient(circle, #1d1d1d, #090909);
    color: var(--font-color-base-dark-mode);
}

body.light-mode {
    /* background: radial-gradient(circle, #f5f5f5, #e0e0e0); */
    background: radial-gradient(circle, #f5f5f5, #ffffff);
    color: var(--font-color-base-light-mode);
}

.about, .products {
    /* display: flex; */
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    /* padding: 10px 20px; */
    /* padding: 20px; */
    /* Отступы внутри секции */
}

.blog {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    opacity: 1;
    max-height: 3000px;
    visibility: visible;
    /* padding: 10px 20px; */
    max-width: 1200px;
    align-self: center;
    /* width: 100%; */
    /* transition: opacity 0.5s ease-in-out;  */
    transition: opacity 0.5s ease-in-out, max-height 0s ease-in-out;
    padding: 0;
    overflow: visible;
    /* overflow-y: visible; */
    gap: 10px;
}

section p {
    text-align: justify;
    margin: 4px 0;
    hyphens: auto;
}

section.showing {
    opacity: 1;
    max-height: 3000px;
    visibility: visible;
    padding: 10px 20px;
    max-width: 1200px;
    align-self: center;
}


header {
    display: flex;
    position: relative;
    justify-content: space-between;
    padding: 10px 20px;
    align-items: center;
    /* background: #222; */
    gap: 20px;
    z-index: 5;
}

.main {
    /* height: 100vh; */
    display: flex;
    /* padding: 10px 20px; */
}


.roulette-promo-video {
    width: 100%;
    border-radius: 6px;
}

.screenshots {
    display: flex;
}


.about p {
    text-align: justify;
    /* Выравнивание текста по ширине */
    max-width: 800px;
    /* Максимальная ширина текста, чтобы он не был слишком широким на больших экранах */
    margin: 10px auto;
    /* Отступы сверху и снизу для параграфов и выравнивание по центру блока */
    line-height: 1.6;
    /* Высота строки для лучшей читаемости */
}


.contacts {
    /* display: flex; */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* padding: 10px 20px; */
    gap: 45px;
}

.contacts h2 {
    text-align: center;
    /* color: #000; */
    margin-bottom: 10px;
}

.contacts .icons, .contacts .social-icons {
    display: flex;
    justify-content: center;
    gap: 45px;
    /* Расстояние между иконками */
}

.contacts .icons i, .contacts .social-icons i {
    font-size: 2rem;
    transition: transform 0.3s;
    /* color: #000; */
}

.contacts .icons img, .contacts .social-icons img, .contacts .icons svg, .contacts .social-icons svg  {
    width: 80px;
    height: 80px;
    transition: transform 0.3s;
}


.contacts .icons a:hover svg, .contacts .social-icons a:hover svg, .contacts .icons a:hover img, .contacts .social-icons a:hover img {
    transform: scale(1.1);
    /* Увеличение иконки при наведении */
}






.logo {
    cursor: pointer;
}

.logo img {
    height: 40px;
    margin-right: 20px;
}

.logo svg {
    height: 40px;
    margin-right: 20px;
}

body.light-mode .logo svg path, body.light-mode .logo svg circle, body.light-mode .logo svg rect, body.light-mode .social-icons svg path, body.light-mode .social-icons svg circle {
    fill: black;
}


body.dark-mode .logo svg path, body.dark-mode .logo svg circle, body.dark-mode .social-icons svg path, body.dark-mode .social-icons svg circle, body.dark-mode .logo svg rect {
    fill: white;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-grow: 1;
}

nav ul {
    list-style-type: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav li a {
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

body.dark-mode nav li a {
    color: var(--font-color-base-dark-mode);
}

body.light-mode nav li a {
    color: var(--font-color-base-light-mode);
}

nav li a:hover {
    background-color: #ff4500;
}

nav li a.active {
    background-color: #ff4500;
}

nav li {
    position: relative;
    white-space: nowrap;
}

nav a {
    text-decoration: none;
    padding: 10px;
    display: block;
}

/* Стили для подменю */
.submenu {
    opacity: 0;
    /* Изначально подменю прозрачно */
    visibility: hidden;
    /* pointer-events: none;  */
    /* display: none;  */
    position: absolute;
    /* Абсолютное позиционирование под основным меню */
    top: 100%;
    /* Подменю начинается сразу после основного пункта меню */
    left: 0;
    white-space: nowrap;
    /* Это предотвратит перенос текста в подменю */
    background-color: #ff4500;
    /* Цвет фона подменю */
    /* border: 1px solid #000;  */
    border-radius: 5px;
    box-shadow: 0 4px 28px rgba(0, 0, 0, .07);
    padding: 15px;
    margin-top: 15px;
    /* transition: opacity 0.3s, visibility 0.3s; */
    z-index: 999;

    display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  max-width: 50vw;
  gap: 10px;
}


/* При наведении на основной пункт меню показываем подменю */
nav li:hover>.submenu {
    /* display: block; */
    opacity: 1;
    /* pointer-events: auto;   */
    transition-delay: 0s;
    visibility: visible;
}

nav li>.submenu {
    transition-delay: .5s;
}

nav li:hover>.submenu {
    transition-delay: 0s;
}


.submenu li {
    display: inline-block;
    /* Элементы подменю идут горизонтально */
}

.submenu li a {
    color: white !important;
}

.submenu li a:hover {
    color: var(--font-color-base-light-mode) !important;
}

.language-selector {
    cursor: pointer;
    margin-left: 10px;
    white-space: nowrap;
}

.promo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('path_to_background_image.jpg'); */
    background-size: cover;
    background-position: center;
    width: 100%;
    /* height: 85vh;
    position: absolute; */
}

h1, h2 {
    margin: 0;
    padding: 0;
    font-weight: bold;
}



.social-icons {
    display: flex;
    align-items: center;
}

.facebook-icon {
    width: 1em;
    height: 1em;
    margin-left: 10px;
}


body.dark-mode .facebook-icon svg path {
    fill: var(--font-color-base-dark-mode);
}

body.light-mode .facebook-icon svg path {
    fill: var(--font-color-base-light-mode);
}

.language-selector {
    position: relative;
    cursor: pointer;
}

.selected-language {
    display: flex;
    align-items: center;
    gap: 5px;
}

.language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #000;
    border: 1px solid #cdcdcd;
    border-radius: 5px;
    z-index: 9999;
}

.language-option {
    padding: 5px 10px;
    color: #cdcdcd;
    transition: background-color 0.3s;
}

/* Общий стиль при наведении */
.language-option:hover {
    background-color: #ff4500;
}

/* Стиль для закругления верхних углов первого дочернего элемента */
.language-option:first-child:hover {
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

/* Стиль для закругления нижних углов последнего дочернего элемента */
.language-option:last-child:hover {
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
}


.language-selector:hover .language-dropdown {
    display: block;
}

.clean-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    transition: background 0.3s;
}

/* .clean-btn:hover {
    background: rgba(255, 255, 255, 0.1);
} */

.toggleButton {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lightToggleIcon, .darkToggleIcon {
    display: none;
}

body.dark-mode .lightToggleIcon, body.dark-mode .darkToggleIcon {
    color: var(--font-color-base-dark-mode);
}

body.light-mode .lightToggleIcon, body.light-mode .darkToggleIcon {
    color: var(--font-color-base-light-mode);
}

body.light-mode .lightToggleIcon {
    display: block;
}

body.dark-mode .darkToggleIcon {
    display: block;
}



footer {
    text-align: left;
    padding: 10px 0;
    width: 100%;
    display: flex;
    position: absolute;
    bottom: 20px;
    z-index: 4;
}

footer p {
    margin: 0;
    line-height: 1.5;
    margin-left: 20px;
}

#slide1, #slide2, #slide3, #slide4, #slide5, #slide6, #slide7, #slide8, #slide9 {
    /* background-image: url(../img/slide1-black.png); */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 100vh;
    mix-blend-mode: color-dodge;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* padding: 20px; */
    margin-top: -65px;
}

body.dark-mode #slide1 {
    /* background: url(../img/slide1-black3.png) no-repeat center center fixed; */
    /* background-image: url(../img/slide1-black4.png); */
    /* background-image: url(../img/SOFTWARE-2.png); */
    background-position: center 25px;
    /* -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover; */
}

body.light-mode #slide1 {
    /* background-image: url(../img/slide1-white4.png); */
    /* background-image: url(../img/SOFTWARE.png); */
    background-position: center 25px;
}

body.dark-mode #slide2 {
    /* background-image: url(../img/RULETAS-dark.png); */
    background-position: center 25px;

}

body.light-mode #slide2 {
    /* background-image: url(../img/RULETAS-light.png); */
    background-position: center 25px;
}

body.dark-mode #slide3 {
    /* background-image: url(../img/WHITE-LABEL-dark.png); */
    background-position: center 25px;

}

body.light-mode #slide3 {
    /* background-image: url(../img/WHITE-LABEL-light.png); */
    background-position: center 25px;
}

body.dark-mode #slide4 {
    /* background-image: url(../img/UNIVERSO-dark.png); */
    background-position: center 25px;
}

body.light-mode #slide4 {
    /* background-image: url(../img/UNIVERSO-light.png); */
    background-position: center 25px;
}

body.dark-mode #slide5 {
    /* background-image: url(../img/TERMINALES-dark.png); */
    background-position: center 25px;
}

body.light-mode #slide5 {
    /* background-image: url(../img/TERMINALES-light.png); */
    background-position: center 25px;
}

body.dark-mode #slide6 {
    /* background-image: url(../img/TERMINALES-dark.png); */
    background-position: center 25px;
}

body.light-mode #slide6 {
    /* background-image: url(../img/TERMINALES-light.png); */
    background-position: center 25px;
}

body.dark-mode #slide7 {
    /* background-image: url(../img/TERMINALES-dark.png); */
    background-position: center 25px;
}

body.light-mode #slide7 {
    /* background-image: url(../img/TERMINALES-light.png); */
    background-position: center 25px;
}

body.dark-mode #slide8 {
    /* background-image: url(../img/TERMINALES-dark.png); */
    background-position: center 25px;
}

body.light-mode #slide8 {
    /* background-image: url(../img/TERMINALES-light.png); */
    background-position: center 25px;
}

body.dark-mode #slide9 {
    /* background-image: url(../img/TERMINALES-dark.png); */
    background-position: center 25px;
}

body.light-mode #slide9 {
    /* background-image: url(../img/TERMINALES-light.png); */
    background-position: center 25px;
}

.swiper {
    overflow-y: visible !important;
}



.slide-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 60px;
}

#slide1 h1, #slide2 h1, #slide3 h1, #slide4 h1, #slide5 h1, #slide6 h1, #slide7 h1, #slide8 h1, #slide9 h1 {
    font-size: 4.5em;
    font-weight: bold;
    text-transform: capitalize;
    /* background: linear-gradient(45deg, #cdcdcd, #a0a0a0, #cdcdcd, #a0a0a0);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    color: transparent;
    animation: waveGradient 3s infinite; */
}

#slide1 p, #slide2 p, #slide3 p, #slide4 p, #slide5 p, #slide6 p, #slide7 p, #slide8 p, #slide9 p {
    font-size: 1.5em;
    margin-top: 20px;
    quotes: "« "" »";
}

.slide-content p:before {
    content: open-quote;
}

.slide-content p:after {
    content: close-quote;
}


.slider-navigation {
    position: absolute;
    /* bottom: 20px; */
    right: 40px;
    z-index: 1000;
}

.slider-prev, .slider-next {
    background-color: rgba(60, 60, 60, 0.6);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-prev:hover, .slider-next:hover {
    background-color: rgba(60, 60, 60, 0.8);
}

.slide-indicator {
    position: absolute;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    z-index: 3;
}

.slide-number {
    /* margin-top: 20px; */
    font-size: 20px;
    position: absolute !important;
    left: 24px !important;
    bottom: unset !important;
    display: flex;
}

.gradient-bar {
    height: 100px;
    width: 2px;
    background: linear-gradient(to top, rgba(67, 67, 67, 1), rgba(255, 255, 255, 0));
}

.gradient-bar.bottom {
    background: linear-gradient(to bottom, rgba(67, 67, 67, 1), rgba(255, 255, 255, 0));
}

.dots {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

body.dark-mode .dot {
    background-color: white;
}

body.light-mode .dot {
    background-color: #aeaeae;
}

.dot-outer {
    width: 8px;
    height: 8px;
}

body.dark-mode .dot-outer {
    background-color: #454545;
}

body.light-mode .dot-outer {
    background-color: #454545;
}

.dot-inner {
    background-color: #838383;
    width: 10px;
    height: 10px;
}

body.dark-mode .dot-inner {
    background-color: #838383;
}

body.light-mode .dot-inner {
    background-color: #838383;
}

.dot.active {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.progress-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 2s linear infinite;
}



body.dark-mode .slide-number {
    color: white;
}

body.light-mode .slide-number {
    /* color: var(--font-color-base-light-mode); */
    color: #aeaeae;
}

.dot.active svg {
    transform: rotate(-90deg);
    position: absolute;
}

.bg, .fg {
    stroke-linecap: round;
}

body.dark-mode .bg, body.dark-mode .fg {
    stroke: white;
}

body.light-mode .bg, body.light-mode .fg {
    stroke: #838383;
}

.bg {
    opacity: 0.2;
}

.fg {
    transition: stroke-dashoffset 0.5s;
}

.test-slide {
    /* background-image: url(../img/testslide.png); */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center 70px;
    width: 100%;
    height: 100vh;
    mix-blend-mode: color-dodge;
    position: absolute;

    /* background: url(../img/testslide.png) no-repeat center 100px fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover; */
}

.swiper {
    width: 100%;
    height: 100%;
    /* background-color: rebeccapurple; */
}

.swiper-slide {
    display: flex !important;
    justify-content: center;
    align-items: center;
    text-align: center;
}



.slide {
    width: 100%;
    height: 100vh;
    position: absolute;
    background-color: rebeccapurple;

}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 колонки */
    gap: 10px;
    /* Отступ между элементами */
    width: 90%;
    max-width: 90%;
}

.roulette-touch .grid-container {
    grid-template-columns: repeat(5, 1fr);
    margin-bottom: 20px;
}

.grid-img-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background-color: #333;
    /* border: 4px solid #222; */
    padding-top: 100%;
    object-fit: cover;
}

.grid-item {
    position: relative;
    /* overflow: hidden; */
    /* Настройка соотношения сторон 16:9 */
    padding-top: 56.25%;
    background-color: #333;
    /* border: 8px solid #222; */
    /* box-shadow: 0 0 20px rgba(0,0,0,0.5); */
    border-radius: 6px;
    /* padding: 10px;  */
}

.grid-item::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(
      45deg,
      #ff00ff,
      #00ffff,
      #ff00ff,
      #00ffff
    );
    z-index: -1;
    border-radius: 8px;
    background-size: 400%;
    animation: gradient 15s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .grid-item:hover::before {
    opacity: 1;
  }
  
  @keyframes gradient {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }

.web-casino .grid-item, .web-hipica .grid-item, .web-sports-betting .grid-item, .virtual-games .grid-item, .white-label .grid-item {
    /* border: 2px solid #222; */
    border-radius: 6px;
}

.terminals .grid-item {
    /* border: 2px solid #222; */
    border-radius: 6px;
}

.blur-video::before {
    content: '';
    position: absolute;
    inset: 5px; /* Отступ от краев */
    backdrop-filter: blur(5px);
    pointer-events: none;
    z-index: 1;
  }

.product-image,
.product-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
    /* border-radius: 6px; */
    border-radius: 6px;
}

.light-mode .more-info2 {
    color: var(--font-color-base-dark-mode);
    /* color: var(--font-color-base-light-mode); */
}

.dark-mode .more-info2 {
    color: var(--font-color-base-dark-mode);
}

.more-info2 p {
    text-align: center;
    margin: 4px 0;
    hyphens: auto;
  }

.more-info2 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, .7);
    /* Затемненный фон */
    opacity: 1;
    /* По умолчанию элемент скрыт */
    transition: opacity 0.3s;
    /* Плавное изменение прозрачности */
    border-radius: 6px;
    padding: 20px; /* Отступ внутри блока */
    font-size: 20px; /* Размер текста крупнее */
    text-align: center; /* Выравнивание текста по центру */
    /* line-height: 1.2;       
    word-spacing: normal;    
    letter-spacing: normal;  
    word-break: break-word;
    text-wrap: balance; */
    hyphens: auto; 
}

.more-info {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, .7);
    /* Затемненный фон */
    opacity: 0;
    /* По умолчанию элемент скрыт */
    transition: opacity 0.3s;
    /* Плавное изменение прозрачности */
    border-radius: 6px;
}

.more-info button {
    border-radius: 500px;
    border: 2px solid white;
    /* color: var(--font-color-base-dark-mode); */
    color: white;
    background-color: #ff4500;
    padding: 10px 32px;
    letter-spacing: 1px;
    text-align: center;
    transition: .1s ease-in-out;
    transition-property: color, background-color, background-position, background-size, border-color, box-shadow;
    font-weight: 600;
    cursor: pointer;
    /* box-shadow: 0 4px 28px rgba(0,0,0,.07); */
}

.more-info button:hover {
    border: 2px solid #ff4500;
    color: var(--font-color-base-light-mode);
    background-color: white;
}

.tv-games .grid-item:hover .tv-games .product-image,
.tv-games .grid-item:hover .product-video {
    opacity: 0.7;
    /* При наведении уменьшаем прозрачность изображения/видео */
}

.tv-games .grid-item:hover .more-info {
    opacity: 1;
    /* При наведении показываем кнопку "Подробнее" */
}

section ul {
    list-style: none;
    padding-left: 0; 
  }
  

.tv-games .grid-item:hover img, .grid-item:hover video {
    filter: blur(2px);
}


.desktop .grid-item:hover img, .desktop .grid-item:hover video {
    filter: grayscale(0);
}


.support>h2 {
    margin-top: 40px;
    margin-bottom: 10px;
}

section.support .articles-grid-header, section.support .articles-grid {
    display: none;
}

.app-container {
    display: inline-block;
    width: 256px;
    height: 165px;

    border-radius: 10px;
    margin: 10px;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s, border-color 0.3s;
    padding: 10px 20px;
    cursor: pointer;
    text-decoration: none;
}

body.dark-mode .app-container {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--font-color-base-dark-mode)
}

body.light-mode .app-container {
    border: 2px solid var(--font-color-base-light-mode);
    color: #222;
}

.app-container:hover {
    background-color: rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.6);

}

.app-icon {
    width: 60px;
    height: 60px;
    display: block;
    margin: 15px auto;
}

.app-name {
    text-align: center;
    font-weight: bold;
    margin-top: 10px;

}

body.dark-mode .app-name {
    color: white;
}

body.light-mode .app-name {
    color: var(--font-color-base-light-mode);
}

.apps-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.app-info {
    text-align: center;
    font-size: 12px;
    margin-top: 5px;
}

.app-size {
    position: absolute;
    top: 10px;
    right: 10px;
    /* background-color: rgba(0, 0, 0, 0.7); */
    /* background-color: #262626 */
    padding: 2px 5px;
    border-radius: 5px;
    display: none;
}

.app-marker {
    position: absolute;
    top: 10px;
    left: 10px;

    padding: 2px 5px;
    border-radius: 5px;
    /* color: #000; */
    /* display: none; */
    /* color: #ff9200; */
}

body.dark-mode .app-marker {
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--font-color-base-dark-mode);
}

body.light-mode .app-marker {
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--font-color-base-dark-mode);
}

body.dark-mode .app-size {
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--font-color-base-dark-mode);
}

body.light-mode .app-size {
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--font-color-base-dark-mode);
}

.app-container:hover .app-size {
    display: block;
}

.custom-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 32px;
    padding: 20px;
    background-color: #f5f5f5;
}


.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 32px;
}

.article-item {
    display: flex;
    width: 100%;
    min-height: 250px;
    /* padding: 20px; */
    border-radius: 8px;
    transition: all .2s ease;
}



body.dark-mode .article-item {
    background-color: #262626;
}

body.light-mode .article-item {
    background-color: #ededed;
}

body.dark-mode .article-item:hover .article-title, body.dark-mode .article-item:hover .article-buttons {
    /* background-color: #4E4E4E; */
    color: white;
}

body.light-mode .article-item:hover .article-title, body.light-mode .article-item:hover .article-buttons {
    /* background-color: #4E4E4E; */
    color: var(--font-color-base-light-mode);
}



.btn-download, .btn-details {
    display: inline-block;
    background-color: #555;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-right: 10px;
    transition: background-color .2s;
}

.btn-download:hover, .btn-details:hover {
    background-color: #777;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

body.dark-mode .mobile-menu-toggle svg path {
    stroke: var(--font-color-base-dark-mode);
}

body.light-mode .mobile-menu-toggle svg path {
    stroke: var(--font-color-base-light-mode);
}

.card-grid {
    display: flex;
    flex-wrap: wrap;
  justify-content: center;
}

.articles {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

article .image {
    /* width: 400px; */
    width: 30%;
    height: 100%;
    flex-shrink: 0;
}

article .image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: contain; /* Масштабирует изображение, чтобы оно полностью поместилось в контейнер без обрезания */
    /* Или можно использовать другие варианты: */
    /* object-fit: cover; */ /* Заполняет всё пространство, может обрезать части изображения */
    /* object-fit: scale-down; */ /* Подобно contain, но не увеличивает изображение больше его оригинального размера */
  }

  a {
    display: inline-flex;
    color: inherit;
    text-decoration: none;
    -webkit-hyphens: auto;
    hyphens: auto;
    cursor: pointer;
  }

body.dark-mode .articles article {
    background-color: #1d1d1d;
}
body.light-mode .articles article {
    background-color: #ececec;
}

body.dark-mode .articles article:hover {
    background-color: #242424;
}

body.light-mode .articles article:hover {
    background-color: #ddd;
}

.articles article {
    
    border-radius: 10px;
    min-height: 100px;
    /* width: 100%; */
    display: flex;
    flex-direction: row;
    overflow: hidden;
    gap: 20px;
    padding: 20px;
    align-items: center;
    cursor: pointer;
}

.articles article div{
    pointer-events: none;
}



article .header {
    flex-grow: 1; /* Занимает все доступное пространство */
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

article .header p {
  font-weight: normal;
  text-align: center;
}

article .short-description {
    width: 20%;
    display: flex;
    flex-direction: column;
}

article .short-description  p{
    
    text-align: justify;
    hyphens: auto;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
    flex-shrink: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    
    /* Добавим дополнительные свойства для лучшей кроссбраузерности */
    max-height: calc(1.5em * 4); /* 4 строки текста */
    line-height: 1.5em;
    position: relative; /* Для запасного метода */
  }
  
  /* Запасной вариант для браузеров без поддержки -webkit-line-clamp */
  article .short-description p::after {
    content: "...";
    position: absolute;
    bottom: 0;
    right: 0;
    padding-left: 3px;
    background: white; /* Цвет фона должен совпадать с фоном контейнера */
    display: none; /* По умолчанию скрыт */
  }


  .article-thumbnail {
    flex-shrink: 0;
    width: 325px;
    /* adjust as per your image size */
    height: 100%;
    overflow: hidden;
    border-radius: 8px 0 0 8px;
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-thumbnail img:hover {
    object-fit: contain;
}

.article-content h2 {
    text-align: left;
}

.article-content img, .article-content a.center, .article-content p img {
    max-width: 100%;
    /* max-width: 800px; */
    height: auto;
    margin: 20px auto; 
    display: block; 
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

.article-content p {
    text-align: left;
}

.article-content {
    flex-grow: 1;
    /* padding-left: 20px; */
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.article-title {
    margin-top: 0;
    font-size: 24px;
}

.article-meta {
    font-size: 14px;
    margin: 10px 0;
    color: #aaa;

}

.article-meta img {
    vertical-align: middle;
}

.article-description {
    margin-top: 20px;
    margin-bottom: 20px;
}

.article-buttons {
    margin-top: auto;
    /* position: absolute;
    right: 10px;
    bottom: 10px; */
    align-self: end;
}
  
  /* Показываем ... только если текст обрезан и -webkit-line-clamp не поддерживается */
  @supports not (-webkit-line-clamp: 4) {
    article .short-description p.overflow::after {
      display: inline;
    }
  }

  .short-description time {
    font-weight: bold;
    margin-top: auto;
  align-self: flex-end;
  }


@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes spin2 {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes waveGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


@media (max-width: 1024px) {
    .social-icons {
        display: none;
    }

    .language-selector span {
        display: none;
    }
    .card-grid {
        scale: .9;
    }
    .articles-grid {
        scale: .95;
    }
}

/* Mobile styles */
@media (max-width: 870px) {
    .articles article{
        flex-direction: column;
    }
    article .short-description {
        width: 100%;
      }
      article .image {
        width: 100%;
        height: 100%;
        flex-shrink: 0;
      }



    body.dark-mode nav li a {
        color: var(--font-color-base-dark-mode);
    }
    
    body.light-mode nav li a {
        color: var(--font-color-base-dark-mode);
    }

    body.light-mode .mobile-menu-toggle[aria-expanded="true"] svg path {
        stroke: var(--font-color-base-dark-mode);
      }

    .card-grid {
        flex-direction: column;
        scale: 1;
    }

    .article-thumbnail {
        display: none;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
    }

    section p, section h2 {
        max-width: 90% !important;
    }

    footer .slider-navigation {
        display: none;
    }

    footer {
        display: none !important;
        /* text-align: center;
        position: relative;
        align-content: flex-end;
        justify-content: center; */
    }

    footer p {
        margin: unset;
    }

    .slide-indicator {
        top: 80px;
        left: 50%;
        transform: rotate(90deg) translate(-50%, -50%);
        transform-origin: top left;
        /* margin-left: -149px; */
    }

    .slide-number {
        /* left: 50% !important; */
        transform: rotate(-90deg) translate(-50%, -50%) !important;
        transform-origin: center;
        margin-left: 15px;
    }

    /* .swiper-slide {
        height: 50vh !important;
    } */

    section.showing {
        width: 95%;
        padding: unset;
        margin-top: 0px;
    }

    section.main.showing {
        margin-top: 60px;
    }

    /* .swiper-slide {
        min-width: 100% !important;
      } */



    .logo {
        margin-bottom: 1rem;
    }

    nav ul {
        flex-direction: column;
        align-items: left;
    }

    .mobile-menu-toggle {
        display: block;
        /* Показать кнопку меню */
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 9999;
    }

    #navigation {
        display: none;
        /* Скрыть навигацию по умолчанию */
        position: absolute;
        background: radial-gradient(circle, #1d1d1d, #090909);
        top: 0;
        right: 0;
        width: 100%;
        /* или любая другая ширина */
        /* Другие стили для вашего мобильного меню */
    }

    #navigation ul li {
        white-space: nowrap;
    }

    #navigation.active {
        display: block;
        display: block;
        /* background-color: red !important; */
        /* background: radial-gradient(circle, #1d1d1d, #090909); */
        width: 100%;
        height: 100%;
        position: fixed;
        z-index: 9998 !important;
    }

    .page-container {
        margin: 0;
        height: 100vh;
    }

    
    .roulette-touch .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    /* .submenu {
        display: none;
    } */

    /* nav ul li:hover .submenu {
        display: block;
    } */

    nav>ul {
        align-items: flex-start;
        margin: 20px;
    }

    .submenu {
        align-items: flex-start;
        gap: 10px;
        margin-left: 20px;
        position: relative;
        opacity: 1;
        visibility: visible;
        background-color: transparent;
        margin-top: 10px;
        padding: unset;
    }

    .desktop .grid-container, .roulette-touch  .grid-container, .terminals .grid-container, .web-casino .grid-container, .web-hipica .grid-container, .web-sports-betting .grid-container, .virtual-games .grid-container, .white-label .grid-container{
        grid-template-columns: repeat(1, 1fr);
      }

    .social-icons,
    .language-selector,
    .toggleButton {
        display: none;
        /* Hide elements if needed */
    }
}


