/****************    FUENTES    ****************/
@font-face {
    src: url(../resources/fonts/Jaro-Regular-VariableFont_opsz.ttf);
    font-family: 'Jaro-Regular';
}
@font-face {
    src: url(../resources/fonts/Bangers-Regular.ttf);
    font-family: 'Bangers';
}

/*---------------    FUENTES    ---------------*/

html{
    font-size: 10px;
    font-family: Verdana, Arial;
    background-color: rgb(71, 4, 4);
}
a {
    text-decoration: none;
    color: inherit;
}
body {
    margin: 0;
    color: white;
}
body button {
    padding: 0;
    margin: 0;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    background-color: rgba(255, 0, 255, 0);
}
h1, h2, p {
    padding: 0;
    margin: 0;
    font-weight: normal;
    font-size: 1rem;
    margin-block-start: 0;
    margin-block-end: 0;
}
body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
body ul li {
    text-decoration: none;
}
body .icon{
    height: 25px;
    font-weight: 25px;
}

header {
    height: 100px;
    background-color: rgba(112, 3, 3, 0.678);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 999999999;
    overflow: visible;
}
header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height:15%; /* Altura del desvanecimiento del borde */
    background: linear-gradient(to bottom, rgba(240, 240, 240, 0), rgb(71, 4, 4)); /* Degradado desde transparente a color de fondo */
    transition: height 0.5s ease; /* Transición para suavizar el cambio de altura */
}
header:hover::after {
    height: 20%;
}
header #logo-marvel {
    height: 65px;
    border-radius: 10px;
    margin-left: 15px;
}
header h1 {
    margin: 0;
    font-size: 5rem;
    font-family: 'Bangers';
    letter-spacing: 2px;
}
header section {
    margin-right: 15px;
    display: flex;
}
header section .boton-header {
    padding: 8px 12px;
    background-color: rgb(134, 39, 39);
    border-radius: 10px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-right: 10px;
}
.boton-header-show {
    display: flex !important;
}
header section .boton-header .icon {
    height: 25px;
}
header section .boton-header p {
    font-size: 15px;
}

header section {
    position: relative;
}
header #menu-desplegable-perfil {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: auto;
    height: auto;
    background-color: rgb(110, 23, 23);
    border-radius: 12px;
    flex-direction: column;
    z-index: 99999;
    padding: 10px;
}
header #menu-desplegable-perfil.show {
    display: flex !important;
}
header #menu-desplegable-perfil .item-menu-perfil {
    border-radius: 10px;
    background-color: inherit;
    padding: 5px 10px;
    display: flex;
}
header #menu-desplegable-perfil .item-menu-perfil:hover {
    background-color: rgb(167, 42, 42);
}
header #menu-desplegable-perfil .item-menu-perfil .icon {
    height: 20px;
    margin-right: 10px;
}
header #menu-desplegable-perfil .item-menu-perfil p {
    font-size: 15px;
}
header #menu-desplegable-perfil .linea-separadora {
    width: 90%;
    height: 1px;
    background-color: rgb(58, 3, 3);
    align-self: center;
    margin: 2px 0;
}


main{
    margin: 50px auto;
    max-width: 1536px;
    display: flex;
}

nav {
    position: fixed;
    background-color: rgb(107, 23, 23);
    border-radius: 50px;
    width: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;   
    height: calc(100% - (125px*2));
}
nav ul {
    display: flex;
    flex-direction: column;
}
nav ul a {
    position: relative;
    height: 48px;
    width: 48px;
    background-color: rgb(71, 4, 4);
    border-radius: 17px;
    margin: 10px 0;
    color: black;
    text-decoration: none;
    transition: all .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}
nav ul a .icon {
    height: 28px;
}

nav ul .descripcion-pagina,
.body .filtering-stuff .boton .descripcion-boton {
    width: fit-content;
    display: none;
    position: absolute;
    top: -35px;
    font-size: 15px;
    color: white;
    background-color: rgb(58, 58, 58);
    padding: 5px 7px;
    border-radius: 10px;
    white-space: nowrap;
}
nav ul a:hover .descripcion-pagina, 
.body .filtering-stuff .boton:hover .descripcion-boton{
    display: block;
}

.body {
    display: flex;
    flex-direction: column;
    margin-left: 100px;
    width: 1320px;
}
.body .filtering-stuff {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    margin: 0 10px;
}
.body .filtering-stuff .search-bar {
    width: 60%;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background-color: rgb(107, 23, 23);
    display: flex;
    align-items: center;
}
.body .filtering-stuff .search-bar .icon {
    height: 20px;
    margin-left: 10px;
}
.body .filtering-stuff .search-bar #search-input {
    width: 100%;
    margin-left: 10px   ;
    border: none;
    background: none;
    outline: none;
    padding: 0;
    font: inherit;
    font-size: 2rem;
    color:rgb(252, 196, 196);
}
.body .filtering-stuff .search-bar #search-input::placeholder {
    color:rgb(252, 196, 196);
}

.body .filtering-stuff .filtering-tools {
    display: flex;
    position: relative;
}
.body .filtering-stuff .filtering-tools #boton-ordenamiento, 
.body .filtering-stuff .filtering-tools #boton-filtro-likes, 
.body .filtering-stuff .filtering-tools #boton-invertir-orden {
    transition: background-color 0.3s;
}
.body .filtering-stuff .filtering-tools #boton-ordenamiento:hover, 
.boton-criterio-ordenamiento-seleccionado, 
.boton-ordenamiento-seleccionado {
    background-color: rgb(90, 120, 253) !important;
}
.boton-filtro-likes-seleccionado {
    background-color: rgb(226, 64, 64) !important;
}
.body .filtering-stuff .filtering-tools #boton-filtro-likes:hover{
    background-color: rgb(226, 64, 64);
}
.body .filtering-stuff .filtering-tools #boton-invertir-orden:hover{
    background-color: rgb(54, 54, 54);
}
.body .filtering-stuff .filtering-tools .boton {
    height: 40px;
    width: 40px;
    background-color: rgb(99, 64, 64);
    border-radius: 50%;
    margin-left: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.body .filtering-stuff .filtering-tools .boton:hover {
    cursor: pointer;
}
.body .filtering-stuff .filtering-tools .boton .icon {
    height: 20px;
}
.body .filtering-stuff .filtering-tools .menu-desplegable {
    border-radius: 15px;
    background-color: rgb(99, 99, 99);
    position: absolute;
    top: calc(100% + 10px);
    left: -40px;

    display: none;
    flex-direction: column;
    padding: 10px;
}
.menu-desplegable-show {
    display: flex !important;
}
.body .filtering-stuff .filtering-tools .menu-desplegable .linea {
    width: 100%;
    height: 1px;
    background-color: white;
    margin: 4px 0;
}
.body .filtering-stuff .filtering-tools .menu-desplegable .tipo-filtro {
    width: 100%;
    align-items: baseline;
    border-radius: 20px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    padding: 5px;
    background-color: inherit;
}
.body .filtering-stuff .filtering-tools .menu-desplegable .tipo-filtro:hover{
    background-color: rgba(138, 138, 138, 0.8);
}
.body .filtering-stuff .filtering-tools .menu-desplegable .tipo-filtro .icon{
    height: 20px;
    margin-right: 10px;
}




.titulo-pagina {
    font-size: 32px;
    margin: 25px 0 0;
}

.linea-separadora-titulo {
    height: 2px;
    width: 95%;
    background-color: grey;
    border-radius: 15px;
    margin: 10px 0 0;
}

.body #media, /*index, etc*/
.body .media { /*sagas*/
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 200px));
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
    list-style-type: none;
}
.body #media .image,
.body #sagas .image{/*img*/
    width: 200px;
    border-radius: 10px;
}


#login-necesario {
    padding: 7px 9px;
    width: fit-content;
    background-color: rgb(117, 28, 28);
    color: #acacac;
    border-radius: 7px;
    border: 2px solid rgb(58, 14, 14);
    position: absolute;
    font-size: 15px;
    bottom: -50px;
    right: 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
    box-shadow: 0 0 5px 1px red inset;
    pointer-events: none;

    opacity: 0;
    transition: opacity 0.5s ease;
}
#login-necesario .icon {
    height: 20px !important;
    margin-right: 10px;
}
#login-necesario.show {
    opacity: 1;
}
#login-necesario.hidden {
    display: none;
}

.login-necesario-filtro {
    bottom: 50px !important;
    left: -150px;
}