/* === TRANSITION === */
@keyframes transitionIn {
    from {
        opacity: .5;
        filter: blur(20px);
    }
    to {
        opacity: 1;
        filter: none;
    }
}

/* === GLOBAL === */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@700&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: 'Roboto Condensed', sans-serif;
    box-sizing: border-box;
}

body {
    background-image: url(../img/background.png);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding-top: 200px;
    animation: transitionIn 0.75s;
    min-width: 300px;
    min-height: 100vh;

}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

i {
    display: none;
}

/* === NAVBAR === */
nav {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 5px 1%;
    background-color: rgba(19, 26, 39, 0.596);
    position: fixed;
    top: 0;
    backdrop-filter: blur(3px);
    box-shadow: 0 20px 30px rgba(3, 3, 3, 0.418);
    z-index: 10;
}

.logo img {
    width: clamp(150px, 25vw, 300px);
    height: auto;
}

.nav-links {
    flex: 1;
    text-align: right;
}

.nav-links ul li {
    display: inline-block;
    padding: 8px 5px;
}

.nav-links ul li a {
    color: white;
    font-size: 1.25rem;
    display: block;
}

.nav-links ul li a.active,
.nav-links ul li a:hover {
    background-color: white;
    color: black;
    transition: 0.5s;
    font-weight: 400;
}

.headerEpisode i {
    display: none;
}

/* === SMALL SCREENS === */
@media (max-width: 850px) {
    .nav-links {
        position: fixed;
        height: 100vh;
        width: 100%;
        top: 0;
        right: -100%;
        text-align: center;
        z-index: 2;
        background-color: black;
        transition: right 0.5s ease-in-out;
        padding-top: 80px;
    }
    .nav-links ul li {
        display: block;
        padding: 20px;
    }
    .nav-links ul li a {
        font-size: 2rem;
    }
    .headerEpisode i {
        display: block;
        color: white;
        margin: 10px;
        cursor: pointer;
        font-size: 2.5rem;
    }
    #menu {
        position: absolute;
        right: 20px;
    }
}

/* === EPISODE GRID === */


@media (min-width: 1024px) {
    .containerEps {
        display: flex;
        flex-wrap: wrap;
        gap: 40px;
        justify-content: center;
        max-width: 900px;
        margin: 0 auto;
        height: 100vh;   
        overflow-y: auto; 
        padding-bottom: 100px; 
    }
    .eps-content {
        flex: 0 1 calc(20% - 40px);
    }
}

@media (max-width: 1023px) and (min-width: 600px) {
    .containerEps {
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
        justify-content: center;
    }
    .eps-content {
        flex: 0 1 calc(50% - 30px);
    }
}


@media (max-width: 599px) {
    .containerEps {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }
    .eps-content {
        flex: 0 1 100%;
    }
}

/* === EPISODES === */
.epsBody h1 {
    color: aliceblue;
    font-size: clamp(32px, 5vw, 62px);
    text-align: center;
    padding-bottom: 10px;
}

.eps-box {
    display: grid;
    place-items: center;
    margin: auto;
}

.containerEps {
    width: 95%;
    height: auto;
}

.leftTabs {
    display: flex;
    flex-wrap: nowrap;       
    overflow-x: auto;       
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; 
    border-bottom: 2px solid rgba(238, 9, 9, 0.678);
    background-color: black;
    padding: 5px 0;
    gap: 5px;

}

.leftTabs h3 {
    flex: 0 0 auto;         
    padding: 10px 15px;
    color: white;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.3s ease;
    border-radius: 4px 4px 0 0;
}

.leftTabs h3:hover {
    background-color: white;
    color: black;
}

.leftTabs h3.active {
    background-color: white;
    color: black;
}


.leftTabs::-webkit-scrollbar {
    height: 6px;
}
.leftTabs::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}


@media (max-width: 768px) {
    .leftTabs {
        max-width: 100%;
    }

    .leftTabs h3 {
        min-width: 100px; 
    }
}

.eps-content > div {
    display: none;
}

.eps-content > div.active {
    display: block;
}


.eps-content img {
    max-width: 100%;
    height: auto;
    padding: 2%;
    border: 3px solid rgba(226, 0, 0, 0.514);
}

.eps-content h4 {
    font-size: clamp(20px, 2vw, 30px);
    margin-bottom: 0.5em;
    text-align: center;
    font-weight: 600;
    color: white;
    padding-top: 20px; 
}

.eps-content p {
    text-align: justify;
    line-height: 1.9;
    letter-spacing: 0.4px;
    color: black;
    background-color: white;
    padding: 5px;
}

/* === FOOTER === */
.container-footer {
    width: 100%;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

footer {
    background-color: rgba(19, 26, 39, 0.596);
    padding: 30px 0;
    text-align: center;
    margin-top: 40px; 
}

footer img {
    width: clamp(150px, 25vw, 300px);
}

footer h3 {
    font-weight: 300;
    margin-bottom: 10px;
    letter-spacing: 1px;
    color: aliceblue;
}

.col .social-links a {
    display: inline-block;
    height: 40px;
    width: 40px;
    background-color: rgba(255, 255, 255, 0.637);
    margin: 0 10px 10px 0;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    color: black;
    transition: all 0.5s ease;
}

.col .social-links a:hover {
    color: rgba(255, 0, 0, 0.932);
    background-color: azure;
}

.credits a {
    color: white;
}
