.top-navigation{
    display: flex;
    gap: 24px;
    margin-top: 25px;
    position: sticky;
    top: 80px;
    left: 0;
    z-index: 101;
    transition: all 250ms;
    background-color: var(--background0);
    /* box-shadow: 2px 4px 4px var(--box-shadow); */
    padding: 0 0 25px 0;
    justify-content: space-between;
}
.top-navigation-scrolling{
    box-shadow: 0 4px 4px var(--box-shadow);
    border-radius: 0 0 16px 16px;
    padding: 15px 25px 25px 25px;
}
.top-navigation button{
    min-width: 150px;
    font-size: clamp(0.5rem, 1rem, 1.5rem);
    color: var(--font-tertiary);
    background-color: rgb(55,55,60);
}
.top-navigation button:hover{
    background-color: rgb(75,75,80);
}
.top-categories{
    display: flex;
    gap: 16px;
}
input#search{
    width: 100%;
    max-width: 500px;
    min-width: 200px;
}
.preview{
    width: 100%;
    display: flex;
    gap: 4vw;
    /* margin-top: 25px; */
    justify-content: space-between;
}
.preview-buttons{
    display: flex;
    flex-direction: column;
    gap: 0.5vw;
    width: 25%;
    padding: 10px 0;
}
.preview-buttons button{
    padding: 1.30vw 1.82vw;
    width: 100%;
    text-align: left;
    background-color: transparent;
    justify-content: left;
    font-size: clamp(14px, 1vw, 16px);
    border-radius: 0.5vw;
}
.preview-buttons button:hover{
    background-color: var(--background2);
    color: var(--font-primary);
    transform: scale(1.05);
}
.preview-buttons button img{
    width: 50px;
    border-radius: 2px;
    object-fit: cover;
}
.preview-holder{
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 75%;
}
/* .preview-holder .images {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
}
.preview-holder .images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.preview-holder .images img.active {
    opacity: 1;
    z-index: 1;
}
 */

.preview-holder .images {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
}

.preview-holder .images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

/* Visible image */
.preview-holder .images img.active {
    opacity: 1;
    z-index: 2;
}

/* Animations */
.slide-in-right {
    animation: slideInFromRight 0.6s forwards;
}

.slide-out-left {
    animation: slideOutToLeft 0.6s forwards;
}

.slide-in-left {
    animation: slideInFromLeft 0.6s forwards;
}

.slide-out-right {
    animation: slideOutToRight 0.6s forwards;
}

/* Keyframes */
@keyframes slideInFromRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutToLeft {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(-100%); opacity: 0; }
}

@keyframes slideInFromLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutToRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}



.preview-holder .nav-left, .preview-holder .nav-right{
    position: absolute;
    z-index: 5;
    height: 7.5vw;
    font-size: clamp(16px, 1.5vw, 22px);
    padding: 0.55vw 1.3vw;
    box-shadow: 0 0 6px var(--box-shadow);
}
.preview-holder .nav-left{
    left: -25px;
}
.preview-holder .nav-right{
    right: -25px;
}

.category{
    display: flex;
    flex-direction: column;
}
.category .top{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.category > :first-child{
    margin-top: 6vw;
}
.category .top button{
    border-radius: 90px;
    height: 35px;
    width: 35px;
}
.category .top .left .bi-chevron-right{
    font-size: 24px;
    color: var(--font-secondary);
    transition: all 250ms;
}
.category .content{
    display: flex;
    gap: 1.67vw;
    overflow-x: hidden;
    padding: 1.30vw;
    scroll-behavior: smooth;
}

.game{
    width: 100%;
    padding: 0.83vw;
    border-radius: 0.625vw;
    transition: all 250ms;
}
.game:hover{
    background-color: var(--background2);
    cursor: pointer;
    transform: scale(1.05);
}
.game img{
    object-fit: cover;
    width: 18.75vw;
    min-width: 150px;
    border-radius: 0.625vw;
}
.game h3{
    font-size: clamp(14px, 2vw, 24px);
}
.game p{
    font-size: clamp(12px, 1vw, 16px);
}

.launcher{
    margin-top: 6vw;
}
.launcher .images{
    width: 100%;
    overflow: hidden;
}
.launcher .images .scroll-track{
    animation: scroll 20s linear infinite;
    gap: 2vw;
    padding: 2vw 0;
    display: flex;
    width: max-content;
}
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.launcher{
    padding: 5vw 4vw;
    border-radius: 1vw;
    border: 1px solid var(--darkgray);
}
.launcher p{
    max-width: 750px;
}
.launcher h1{
    margin-bottom: 25px;
}
.launcher .images{
    padding: 4vw 0;
}
.launcher .images img{
    width: 50vw;
    flex-shrink: 0;
    object-fit: cover;
    transition: all 250ms;
}
.launcher .images a:hover{
    transform: scale(1.05);
    cursor: pointer;
}
.launcher .advantages{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    margin-top: 2vw;
}
.launcher .advantages ul{
    display: flex;
    gap: 2vw;
    flex-wrap: wrap;
    padding: 0;
    padding: 2vw 6vw;
    justify-content: center;
}
.launcher .advantages li{
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 2vw;
    border-radius: 1vw;
    transition: all 250ms;
    width: 18vw;
    flex-direction: column;
    border: 1px solid var(--darkgray);
}
.launcher .advantages li .bi{
    font-size: clamp(14px, 2vw, 32px);
}
.launcher .advantages li:hover{
    transform: scale(1.05);
    box-shadow: 0 4px 4px var(--box-shadow);
    cursor: pointer;
}


@media  (max-width: 1085px) {
    .top-categories{
        display: none;
    }
    .button-toggle-top-categories{
        display: block;
    }
}