@import url('https://fonts.googleapis.com/css?family=Montserrat|Roboto');

:root {
	--primario : #ddd;
	--secundario: #111;
	--terciario: skyblue;
	--cuaternario: rgba(250,250,250,.92);

	
	--primario : #f4fce8;
	--secundario: #1b325f;
	--terciario: #f26c4f;
	--cuaternario: rgba(0,180,255,.92);

	--primario : #111;
	--secundario: #ddd;
	--terciario: orange;
	--cuaternario: rgba(50,50,50,.92);
	
}

/* GENERAL */
html, body {
   
    
    /* Ocultar en Firefox */
    scrollbar-width: none;
    
    /* Ocultar en IE y Edge antiguo */
    -ms-overflow-style: none;
}

/* Ocultar en Chrome, Safari y Edge moderno */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
    width: 0 !important;
    height: 0 !important;
}

html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body {
	margin: 0;
	height: 100%;
	background-color: var(--primario);
	font-family: 'Roboto', sans-serif;
	color: var(--secundario);
	font-size: 18px;
}
header {
	width: 100%;
	margin-bottom: 20px;
}

main {
   height: auto !important;
}


h1, h2 {
	font-family: 'Montserrat', sans-serif;
	font-size: 26px;
}
ul {
	margin: 0;
	padding: 0;
}
li { display: inline-block; }
a {
	text-decoration: none;
	color: var(--secundario);
}
a:hover {
	color: var(--terciario);
	border-bottom: 1px solid var(--terciario);
}

/* MENÚ DE NAVEGACIÓN */ 

nav {
	width: 100%;
	background-color: var(--primario);
	box-shadow: 0 10px 25px 30px var(--cuaternario)
}
nav li {
	padding: 8px 20px;
	text-transform: uppercase;
}
#letras>li {
	padding: .2%;
}

/* CONTENIDO */

.item {
	float: left;
	animation-name: aparecer;
	animation-duration: 4s;
}
.contenido {
	width: 100%;
	padding: 5px;
}

.contenido h1 {
	width: 80%;
	margin: 0 auto;
	padding-left: 5px;
	border-bottom: 2px solid var(--terciario);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.contenido p {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 10px;
	border-bottom: 1px solid var(--terciario);
	border-radius: 5px;
	background-color: var(--cuaternario);
	color: var(--secundario);
	transform: translateY(100%);
	overflow: auto;

	transition-property: transform;
	transition-duration: .3s;
	transition-timing-function: ease-in;
	transition-delay: .5s;
}
.imagen {
	width: 95%;
	height: 250px;
	background-size: cover;
	margin: 5px;
	border:  1px solid gray;
	border-radius: 5px;
	overflow: hidden;
}
.genero span {
	display: inline-block;
	width: 18%;
	color: var(--terciario);
	margin-left: 5px;
	padding: 0 5px;
	border-radius: 2px;
	background-color: var(--cuaternario);
	font-size: 75%;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	opacity: 0;

	transition-property: opacity;
	transition-duration: 1.5s;
}

/* TRANSICIONES - ITEM */
.contenido:hover {
	border-bottom: 0;
}
.contenido:hover p {
	transform: translateY(0);
}
.contenido:hover span {
	opacity: 1;
}

/* ANIMACIONES - ITEM */

@keyframes aparecer {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* SCROLL - ITEM */ 

.contenido p::-webkit-scrollbar {
	width: 10px;
}
.contenido p::-webkit-scrollbar-thumb {
	background-color: white;
	border-radius: 10px;
}
.contenido p::-webkit-scrollbar-thumb:hover {
	background-color: var(--secundario);
}

/* PAGINACIÓN */

#paginacion {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
    clear: both;
}

#paginacion a {
    background-color: var(--cuaternario);
    color: var(--secundario);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

#paginacion a:hover {
    background-color: var(--terciario);
    color: var(--primario);
}

#paginacion span {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    color: var(--secundario);
}



/* MEDIA QUERIES */

/* Teléfonos móviles */
[class*="col-"] {
	width: 100%;
}

/* Tablets */
@media only screen and (min-width: 600px) {
	.col-2 { width: 50%; }
	#letras>li { padding: .4%; }
	main { height: 1900px; }
}

/* Ordenadores de escritorio */
@media only screen and (min-width: 768px) {
	.col-3 { width: 33.33%; }
	#letras>li { padding: .75%; }
	main { height: 1200px; }
}
@media only screen and (min-width: 1366px) {
	.col-4 { width: 33%; }
	#letras>li { padding: 1%; }
	main { height: 1200px; }
}


/* PIE DE PÁGINA */

footer ul, footer p {
	width: 480px;
	padding: 10px 0;
	text-align: center;
	margin: auto;
}
/* PIE DE PÁGINA */

footer ul, footer p {
	width: 480px;
	padding: 10px 0;
	text-align: center;
	margin: auto;
}
footer {
    background-color:#2C2C2C;
    padding: 40px 20px;
    margin-top: 100px;
	height: 300px;
    text-align: center;
    clear: both; /* Evita que los floats de arriba lo tapen */
}

footer ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    margin-bottom: 20px;
    padding: 0;

}
footer p,
footer a {
    color: white;
	font-weight: bold;
    text-decoration: none;
}

