:root {
    --color-1:#ff4800;
    --color-2:#000000;
    --color-3:#71335d;
    --color-4:#ff5700;
    --color-5:#cb3c03;
    --color-6:#ffb800;
    --color-7:#fe7822;
    --color-8:#f34a05;
    --carousel-dot-size: 10px;
    --car-image-width: min(600px, 80vw);
    --car-image-height: calc(var(--car-image-width) * 0.8);
    --body-padding: 8vw;
}

body{
    margin: 0;
    background-color: #dcdcdc;
    font-family: "Roboto", sans-serif;
}
body > * {
    padding: 0 var(--body-padding) 0 var(--body-padding);
}

nav, footer{
    background-color: black;
}
nav {
    z-index: 10000;
    position: fixed;
    top: 0;
    width: calc(100vw - var(--body-padding) * 2);
}
.test-gape{width: 20px;}

.motto{
    font-size: 1.4rem;
    font-style: italic;
}

.nav_block, .contacts-block {
    min-height: 4em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*gap: 30px;*/
}

#nav_logo_big img{
    max-height: 50px;
}
#nav_logo_small img{
    max-height: 70px;
}

.links-block {
    display: flex;
    gap: 3vw;
}

h2{
    margin-top: 0;
    margin-bottom: 0.3em;
    font-weight: normal;
    color: var(--color-2)!important;
}

.main-block:nth-child( odd ) h2{
    color: white !important;
}

#after-contact{
    max-width: 50vw;
}
.main-block .description-text{
    max-width: 80vw;
    margin-bottom: 20px;
}


.game-table{
    margin: 20px 0 20px 0;
    /*width: 40vw;*/
}
.game-table tr {
    text-align: left;
    padding: 10px;
}
.game-table tr:nth-child( odd ){
    background-color: var(--color-3);
    color: white;
}
.game-table tr:nth-child( even ){ background-color: #e8ebf5; }
.game-table tr:hover, #send_button:hover {
    background-color: var(--color-6);
    -webkit-transition-duration: .4s;
}
.game-table td, .game-table th {
    border: 1px solid #ddd;
    padding: 8px;
}

.game-table th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: center;
    background-color: var(--color-1);
    color: white;
}

.demo-game-link, .demo-game-link:hover {
    text-transform: uppercase;
    text-decoration: none;
    color: white;
    font-weight: bold;
}
.demo-game-link-text {
    color: var(--color-2);
    margin-bottom: 16px;
    padding: 20px;
    background: linear-gradient(var(--color-7), var(--color-8));
    border-radius: 20px;
    margin-top: 20px;
    text-align: center;
}
.demo-game-link-text:hover {
    -webkit-transition-duration: .4s;
    background: linear-gradient(var(--color-5));
    color: white;
}

.navigation-item__content, .navigation-item__content:hover{
    color: white;
    font-size: 16px;
    text-decoration: none;
    text-transform: uppercase;
}

.carousel{
    margin-top: 30px;
}

.main-block{
    padding-top: 60px;
    padding-bottom: 60px;
}
.main-block__header{
    text-transform: uppercase;
    font-size: 3rem;
}
.main-block:nth-child( odd ) {
    background-color: var(--color-2);
    color: white;
}
.text-and-image {
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* .text-and-image-carousel{
    width: 82vw;
    display: flex;
    justify-content: center;
} */

#about-logo {
    margin-top: 20px;
    /*max-width: 16vw;*/
    max-height: 100px;
}

#products-header{
    color: var(--color-4)!important;
}
.products-list, .games-list {
    display: flex;
    flex-wrap: wrap;
    /*justify-content: center;*/
    gap: 10px;
}
/*.product-item{*/
/*    display: flex;*/
/*    align-items: flex-start;*/
/*    flex-direction: column;*/
/*}*/
.product-link, .product-link:hover{
    /*background-color: rgba(0, 0, 0, 0.5);*/
    /*border-radius: 20px;*/

    color: white;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}
.product-link img {
    max-width: 150px;
    max-height: 150px;
}
#games{
    background: linear-gradient(var(--color-2), var(--color-2), var(--color-5), var(--color-6));
}

.one-game-image{
    width: 36vw;
    height: 36vw;
    border-radius: 10px;
    pointer-events: none;
}
.simple-link, .simple-link:hover{
    color: black;
    text-decoration: underline;
}

.main-block:nth-child( odd ) .simple-link{
    color: white;
}

.contacts-block {
    flex-wrap: wrap;
}

form {
    /*margin: 10px;*/
    padding: 20px;
    background-color: #f6f6f6;
    border-radius: 5px;
}
form > * {
    min-width: 20vw;
    padding: 6px;
    border-radius: 10px;
    border-color: #eaeaea;
}

#send_button{
    text-transform: uppercase;
    background-color: var(--color-4);
    color: var(--color-2);
    border-color: #eaeaea00;
}

/*#after-contact{*/
/*    max-width: 60vw;*/
/*}*/

footer {
    display: flex!important;
    justify-content: space-between;
}
.footer-block {
    padding: 20px 0 20px 0;
}
.footer-block > span{
    color: white;
}
#footer-studio-name{
    font-size: 1.3rem;
    font-weight: 800;
}

@media (width >= 600px) {
    #nav_logo_small {
        display: none;
    }
    .products-list{
        justify-content: space-between;
    }
}
@media (width < 600px) {
    #nav_logo_big {
        display: none;
    }
    .products-list{
        justify-content: center;
    }
}
@media (width >= 800px) {
    .text-and-image-carousel{
        flex-wrap: nowrap;
    }
}
@media (width < 800px) {
    .text-and-image-carousel{
        flex-wrap: wrap;
    }
}

.slider {
    position: relative;
    /*width: 200px;*/
    /*height: 200px;*/
    /*margin: 50px auto 0;*/
    user-select: none;
    touch-action: pan-y;
}


.slider-list {
    /*width: 200px;*/
    /*height: 200px;*/
    overflow: hidden;
}
.game-info {
    width: 100%;
}

.hidden {
    display: none;
}
.game-info-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    cursor: pointer;
    font-size: larger;
    gap: 10px;
}
.game-info-button .arrow {
    font-size: xx-large;
}
.game-info-button .arrow {
    transform: rotate(90deg);
    display: none;
}
.game-info-button.active-info .arrow {
    transform: rotate(270deg);
    display: initial;
}
.info-sign {
    /* display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 20%;
    border: #013329 solid 1px; */
    content: '<img src="images/info-sign.svg">';
}

/* .slider-track {
    display: flex;
}

.slide {
    padding-right: 10px;
} */
.sliders-gap {
    height: 2px;
    width: 100%;
    background-color: #013329;
    margin: 20px 0 20px 0;

}

.game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.game-item img {
    max-width: max(30vw, 160px);
    height: auto;
}

.banners_wrapper {
    width: 100vw;
    max-height: 40vh;
}
.carousel-dot {
    width: var(--carousel-dot-size);
    height: var(--carousel-dot-size);
    border-radius: 100%;
    background-color: antiquewhite;
}
.carousel-dot.active{
    background-color: var(--color-1);
}
#dots {
    display: flex;
    flex-direction: row;
    gap: var(--carousel-dot-size);
    justify-content: center;
    margin-top: 20px;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 100vw;
    display: flex;
    justify-content: center;
    width: calc(100vw - var(--body-padding) * 2);
}
.carousel-image img{
    width: var(--car-image-width);
    height: var(--car-image-height);
}
#carousel-wrapper{
    position: relative;
    margin: auto;
    height:var(--car-image-height);
    overflow: hidden;
}
@keyframes appear {
    0% {
        left: 100vw;
    }
    100%{
        left: 0;
    }
}
@keyframes disappear {
    0% {
        left: 0;
    }
    100%{
        left: -100vw;
    }
}
.carousel-image.appeared {
    animation: appear 1s;
    left: 0;
}
.carousel-image.disappeared {
    animation: disappear 1s;
}
/* Age Gate Styles */
.age-gate {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30000;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.age-gate.visible {
  opacity: 1;
  visibility: visible;
}

#age-gate-question {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.age-gate-content {
  text-align: center;
  background: #222;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.age-gate.visible .age-gate-content {
  transform: translateY(0);
}

.age-gate button {
  margin: 10px;
  padding: 10px 25px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#yes-btn {
  background-color: #4caf50;
  color: white;
}

#no-btn {
  background-color: #f44336;
  color: white;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 5px;
    margin-left: auto;
    margin-right: 20px;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

.lang-btn.active {
    background: var(--color-1);
    border-color: var(--color-1);
    color: white;
}

@media (max-width: 768px) {
    .lang-switcher {
        margin-right: 10px;
    }

    .lang-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
}
