:root {
    /** COLOR PALETTE **/
    --black: #000000;
    --white: #FFFFFF;
    --red: #DB0000;
    --medium: #564D4D;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.ff-krona {
    font-family: 'Krona One', sans-serif;
    font-weight: 400;
}

.ff-roboto {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    color: var(--white);
}

body{
    background-color: var(--black);
    display: grid;
    min-height: 100vh;
    grid-template-rows: auto 1fr auto;
}

a{
    text-decoration: none;
}

/* HEADER */

.content-logo{
    display: inline-flex;
    flex-direction: row;
    align-items: center;
}

.name-logo{
    font-size: 38px;
    color: var(--red);
    margin-left: 10px;
}

.background-header{
    background-color: var(--medium);
    padding: 15px 10px;
}

/* SEARCH BAR */

main .group-search{
    /* display: flex;
    justify-content: center;
    align-items: center; */
    margin: 50px 0;
    display: grid;
    place-content: center;
}

.container-search {
    /* margin: 50px 100px; */
    position: relative;
    width: 800px;
    height: 45px;
}

.container-search input {
    border: 0;
    outline: 0;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    padding: 10px 50px;
    color: var(--white);
    background-color: var(--medium);
}

.input::placeholder {
    color: var(--white);
    font-size: 15px;
}

input:focus{
    outline: 2px solid var(--white);
}

.container-search button {
    position: absolute;
    border: none;
    display: block;
    width: 40px;
    height: 80%;
    border-radius: 10%;
    top: 0;
    bottom: 0;
    margin: auto;
    outline: none;
    cursor: pointer;
}

.btn-search {
    right: 5px;
    border-radius: 5px;
    padding-top: 4px;
    padding-right: 4px;
    background: rgba(219, 0, 0, 0.9);
    color: var(--white);
    transition: all 0.4s ease;
}
.btn-search:hover {
    background: rgba(219, 0, 0, 1);
}

.btn-options {
    left: 5px;
    color: var(--white);
    padding: 2px 4px;
    background-color: var(--medium);
    border-radius: 5px;
}

/* CARD */

/* group-card > container-card > cover-show > info > h2 > small*/
/* container - card - img - intro - h1 - p*/

/* .container article{
    margin: 30px 50px;
} */

.group-card {
    /* display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 10px; */
    margin-bottom: 50px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    /* min-height: 100vh; */
}

section .container-card{
    /* display: flex;
    align-items: center;
    align-content: center;
    justify-content: center; */
    position: relative;
    width: 250px;
    height: 310px;
    margin: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
}

.container-card img{
    max-width: 210px;
    height: auto;
    border-radius: 20px;
}

.container-card{
    /* height: auto; */
    overflow: hidden;
    cursor: pointer;
}

.title-show{
    color: var(--white);
    margin: 10px;
}

.info{
    /* position: absolute;
    width: 280px;
    background: rgb(27, 27, 27, .5);
    bottom: 137px; */
    border-radius: 20px;
    position: absolute;
    padding: 10px 0;
    width: 210px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    bottom: 7px;
}

.average-star{
    margin: 10px;
    font-size: 20px;
    display: flex;
    align-items: center;
}

.average-star svg{
    width: 24px;
    margin-right: 5px;
}

.criteria{
    background-color: var(--red);
    padding: 1px;
}

/* SHOW */

.main-show{
    display: grid;
    align-items: center;
}

main .container-show{
    margin: 60px 80px;
}

.info-show{
    display: flex;
    flex-direction: column;
}

.container-show figure {
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-items: center;
    align-content: center;
    justify-content: center;
}

.container-show{
    display: grid;
    /* grid-template-columns: repeat(2, 1fr); */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 32px;
}

.name-show{
    color: var(--white);
    font-size: 32px;
}

.text-w{
    color: var(--white);
}

span svg{
    width: 24px;
    margin-right: 5px;
}

.content-prem-rat{
    margin: 12px 0;
    display: flex;
    align-items: center;
}

.separator{
    margin: 0 6px;
    font-size: 30px;
}

.content-genres{
    margin-top: 22px;
    margin-bottom: 30px;
}
.content-genres span:nth-of-type(2){
    margin: 0 5px;
}

.content-genres span{
    background-color: var(--medium);
    border-radius: 4px;
    padding: 10px 22px;
}

.summary-space {
    white-space: pre-wrap;
    font-size: 19px;
}

.figure-show img{
    max-width: 390px;
    height: auto;
    border-radius: 20px;
}

.test img{
    max-width: 390px;
    height: auto;
    border-radius: 20px;
}

.container-loadmore{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
}
.btn-load{
    border-radius: 10px;
    background: rgba(219, 0, 0, 0.9);
    color: var(--white);
    font-size: 16px;
    padding: 10px 60px;
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
}
.btn-load:hover{
    /* background: rgba(219, 0, 0, 0.7); */
    background: rgba(219, 0, 0, 1);
}

/* SHOW RESPONSIVE */

@media screen and (min-width: 809px) {
    .test img{
        display: none;
    }
}
@media screen and (max-width: 810px) {
    main .container-show {
        margin: 30px 20px;
    }
    .figure-show img{
        display: none;
    }
    .name-show{
        text-align: center;
    }
    .test img{
        margin-top: 20px;
    }
    .content-prem-rat{
        justify-content: center;
        align-items: center;
    }
    .content-genres{
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 0;
        margin-bottom: 20px;
    }
    .summary-space{
        text-align: justify;
    }
}
/* @media screen and (max-width: 600px) {
    .element:nth-child(1) {
        order: 3;
    }
} */

/* FOOTER */

footer{
    background-color: var(--medium);
    padding: 24px 10px;
}

footer section{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.footer-logo{
    font-size: 30px;
    color: var(--red);
    margin-left: 10px;
}

.content-logo-footer img{
    width: 35px;
    height: auto;
}

.social{
    display: flex;
    align-items: center;
}

.social img{
    width: 34px;
    height: auto;
}

.social img{
    margin: 0 10px;
}

/* LOADER */

.loader {
    background: rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
}

.lds-loading {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-loading div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 8px solid var(--red);
    border-radius: 50%;
    animation: lds-loading 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: var(--red) transparent transparent transparent;
}

.lds-loading div:nth-child(1) {
    animation-delay: -0.45s;
}

.lds-loading div:nth-child(2) {
    animation-delay: -0.3s;
}

.lds-loading div:nth-child(3) {
    animation-delay: -0.15s;
}

@keyframes lds-loading {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* GENERAL RESPONSIVE */

/* si la ventana del navegador es 768px o menos se ejecutara esto */
@media screen and (max-width: 768px) {
    .container-search {
        width: 582px;
    }
}

/* si la ventana del navegador es 600px o menos se ejecutara esto */
@media screen and (max-width: 610px) {
    .container-search {
        width: 420px;
    }
    footer section {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
    }
    footer .social{
        margin-top: 30px;
    }
}

@media screen and (max-width: 415px) {
    .container-search {
        width: 350px;
    }
}