/* -----Slideshow----- */
.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
    height: 60vh;
    z-index: 0;
}

.myslides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.myslides {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.myslides.active {
    opacity: 1;
}

.slideshow-container a {
    display: block;
    width: 100%;
    height: 100%;
}

/* -----Button----- */
.slide-button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px;
    border-radius: 50vw;
    border: 2px solid white;
    background-color: none;
}

.youtube-button{
    background-color: #ff0000;
}

.twitch-button {
    background-color: #924ef8;
}

.webshop-button {
    background-color: #1464dc;
}


/* ----- Hover----- */

.youtube-button:hover {
    transition: background-color 0.3s ease;
    background-color: #104fad; 
}

.twitch-button:hover {
    transition: background-color 0.3s ease;
    background-color: #104fad; 
}

.webshop-button:hover {
    transition: background-color 0.3s ease;
    background-color: #104fad; 
}


/* -----Slideshow Navbar----- */
.slideshow-nav {
    display: flex;
    gap: 10px;
    max-width: 50vw;
    justify-content: center;
    width: 100%;
    margin: 2em auto 2em auto;
}

.slideshow-nav-item {
    cursor: pointer;
    flex-basis: 280px;
    height: 5em;
    position: relative;
    transition: flex-basis 0.5s;
    z-index: 1;
}

.slideshow-nav-item img {
    border-radius: 10px;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.slideshow-nav-item::before,
.slideshow-nav-item::after {
    border-radius: 10px;
    content: "";
    left: 0%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

.slideshow-nav-item.tns-nav-active {
    flex-basis: 400px;
}

.slideshow-nav-item.tns-nav-active::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    border: 0 solid ;
    border-radius: 15px;
    animation: borderThumbnails 10.05s linear forwards;
    animation-play-state: running;
    z-index: -6;
    background: linear-gradient(135deg, white 50%, transparent 50%);
    background-size: 200% 200%;
}

@keyframes borderThumbnails {
    0% {
        border-color: #1464dc;
        background-position: 100% 100%;
    }

    100% {
        border-color: #1464dc;
        background-position: 0 0;
    }
}

/* -----Responsive----- */
@media (max-width: 720px) {
    .slideshow-container {
        height: 40vh;
    }
    .slideshow-nav {
        margin: 2em auto 8vw auto;
        max-width: 80vw;
    }
}

@media (min-width: 720px) {
    .slideshow-nav-item {
        height: 120px;
    }

    .slideshow-nav {
        gap: 2em;
    }
}

@media only screen and (max-width: 768px) {
    .slideshow-nav-item {
        flex-basis: 15em; 
        height: 3em;
    }
}

@media only screen and (max-width: 1024px) {
    .slideshow-nav-item {
        flex-basis: 20em; 
        height: 4em;
    }
}
