/* ===== GLOBALS CSS ===== */

:root {
    --font-default: "Montserrat", sans-serif;
    --light-white-color: #ffffffe6;
    --light-gray: #d2cfcf;
    --dark-background: #091011;
    --dark-background-0-6: rgba(9, 16, 17, 0.685);
    --yellow-emphasis: #FFFF00;
    --red-btn: #FF0000;
    --blue-btn: #193840;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-default);
}

body {
    background-color: var(--dark-background);
    color: var(--light-white-color);
}

h2 {
    padding-bottom: 24px;
    text-transform: uppercase;
    font-weight: 600;
    width: fit-content;
    border-bottom: 5px solid white;
    font-size: clamp(40px, 2.5vw, 5rem);
}

h3 {
    font-weight: 600;
    font-size: clamp(20px, 1.7vw, 4rem);
    text-transform: uppercase;
}

p {
    font-size: clamp(16px, 1.3vw, 3rem);
}

.video-responsivo {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}

.icon {
    width: 56px;
    height: 56px;
    filter: brightness(1) invert(90%);
    transition: all .3s ease;
}

.icon:hover {
    transform: scale(1.1);
    filter: brightness(1) invert(70%) ;
    box-shadow: 1px 1px 3px #5b454543;
    border-radius: 10px;
    padding: 4px;
}

/* ===== PRELOADER CSS ===== */

#preloader-container {
    position: fixed;
    z-index: 999;
    top: 0;
    min-height: 100vh;
    display: flex;
    width: 100%;
    background-color: black;
    overflow: hidden;
}

#rem-preloader-logo {
    position: fixed;
    height: 40%;
    width: clamp(200px, 50vw, 300px) !important;
    display: flex;
    justify-content: center;
    background-color: black;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    z-index: 999;
    opacity: 1;
    justify-content: center;
}

#preloader-video {
    position: fixed;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media only screen and (min-width: 600px) {
    .rick-and-morty-logo img {
        width: clamp(200px, 65vw, 100vw);
    }
}

/* ===== EXPLORAR TEMPORADAS ===== */


.explorar-temporadas {
    position: relative;
    display: flex;
    flex-flow: column nowrap;
    background-color: #090e11;
    gap: 48px;
    padding: clamp(60px, 5vw, 160px);
    color: white;
}

.explorar-temporadas h2 {
    display: inline-block;
}

.title-select {
    display: flex;
    flex-flow: column nowrap;
    gap: 16px;
}

.select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: fit-content;
}

.select-wrapper select {
    max-width: fit-content;
    padding: 10px 35px 10px 12px;
    background-color: var(--blue-btn);
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    cursor: pointer;
    text-align: start;
    appearance:  none;
    border-radius: 4px;
    font-size: clamp(14px, 1.2vh, 50px);
    transition: all .1s ease-in-out;
}

.select-wrapper select:hover {
    background-color: #234f5a;
}

.select-wrapper img {
    width: clamp(14px, 1.2vh, 50px);
    height: auto;
    filter: invert(80%);
    position: absolute;
    right: 8px;
    pointer-events: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cards {
    display: flex;
    flex-flow: column nowrap;
    gap: 6vh;
}

.card {
    display: flex;
    flex-flow: column nowrap;
    gap: 1.7vh;
    align-items: center;
    justify-content: start;
}

.card .desc {
    width: 100%;
    align-self: flex-start;
    color: rgba(255, 255, 255, 0.608);
}

.card .desc p {
    font-size: clamp(14px, 1.1vw, 64vw);
}

.thumb-info {
    display: flex;
    gap: 3vw;
    width: 100%;
    height: 100%;
}

.thumb {
    width: clamp(180px, 20vw, 1000px);
    height: auto;
    aspect-ratio: 16 / 9;
    background-color: rgb(0, 32, 32)
}

.info {
    display: flex;
    flex-flow: column nowrap;
    gap: 1.1vw;
    flex: 1;
    min-width: 0;
}

.info h3,
.info p {
    word-break: break-word;
}

.info h3 {
    font-size: clamp(14px, 2vw, 4rem);
}

.info p {
    color: rgb(210, 210, 210);
    font-size: clamp(10px, 1vw, 100vw);
}

.info a {
    align-self: flex-start;
    text-decoration: none;
    width: fit-content;
    padding: 1vh 2vw;
    border-radius: 50px;
    border: none;
    font-size: clamp(12px, 1.2vw, 100vw);
    background-color: var(--red-btn);
    color: var(--yellow-emphasis);
    cursor: pointer;
    transition: all .3s ease-in-out;
}

.info a:hover {
    transform: scale(1.1);
    background-color: #ff0000ca;
    color: rgba(255, 255, 0, 0.856);
}

/* ===== FOOTER CSS ===== */

footer {
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
    min-height: 100vh;
    padding: 160px clamp(30px, 6vw, 160px) 90px; 
    overflow: hidden;
    background-position: center;
    background-size: cover;
    z-index: -100;
}

footer:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image:
        radial-gradient(circle at 70% 50%, rgba(9, 14, 17, 0.2) 31%, 41%, #090e1185 100%),
        linear-gradient(to bottom, #090e11 0%, #090e1100 22%);
}

#footer-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

#footer-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 64px;
    width: clamp(300px, 90vw, 1400px); 
    align-self: flex-start;
}

#rick-and-morty-footer-logo {
    display: flex;
    width: 100%;
    justify-content: center;
}

#rick-and-morty-footer-logo img {
    width: clamp(200px, 40vw, 1200px);
    height: auto;
}

.footer-temp-colab-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.footer-group {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-group h3 {
    color: #fff;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

#footer-lista-temporadas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
}

#footer-lista-temporadas a {
    display: block;
    padding: 14px;
    border-radius: 50px;
    background-color: #1e414a;
    color: #fff;
    text-decoration: none;
    transition: 0.3s ease;
    font-size: clamp(14px, 1.1vw, 18px);
}

#footer-lista-temporadas a:hover {
    background-color: #14757c;
    transform: scale(1.05);
}

.footer-colaboradores {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

footer .icon {
    width: clamp(40px, 5vw, 55px);
    height: clamp(40px, 5vw, 55px);
}

@media screen and (min-width: 600px) {
    #rick-and-morty-footer-logo {
        justify-content: flex-start !important;
    }
}

@media screen and (min-width: 768px) {
    .footer-colaboradores {
        flex-direction: row;
        gap: clamp(40px, 10vw, 150px);
    }
}

@media screen and (min-width: 1200px) {
    #footer-lista-temporadas {
        grid-template-columns: repeat(4, 1fr); 
        max-width: 900px;
    }
}