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

body {
	font-family: sans-serif;
	background-color: #ffffff;

}

ul,
li {
	padding: 0;
	margin: 0;
	list-style: none;
}

a {
	text-decoration: none;
}

img {
	display: block;
}

/****************************************************/

/* ESTILOS PARA EL FONDO DE PANTALLA */
.background-container {
	background-image: url(../img/background.jpg);
	background-attachment: fixed;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	min-height: 100vh;
	position: relative;
}


/* ESTILOS PARA EL h1 */
#main-head {
	color: #ffffff;
	text-align: center;
	margin-top: 4em;
	padding: 0;
	font-size: 1em;

	&:after {
		content: "";
		display: block;
		height: 3px;
		width: 100%;
		background-color: #dc143c;
		margin: 10px auto;
		max-width: 300px;
	}
}

/* ESTILOS PARA EL MENÚ LATERAL DESPLEGABLE */
.menu ul {
	position: fixed;
	top: 30px;
	right: 0;
	z-index: 100;
	width: 100%;
	height: 100%;
	background-color: #ffffff;
	transform: translateX(100%);
	transition: 0.8s;
	max-width: 800px;

	& li {
		margin: 1.5em 0;

		&:first-of-type a {
			text-transform: uppercase;
			color: black;
		}
	}

	&.mostrar {
		transform: translateX(0);
	}

	& .info {
		display: block;
		color: #000000;
		text-align: center;
	}

	& .info .fas, .menu .info .far{
		margin-right: 0.5em;
	}
	& .fa-times {
		position: absolute;
		top: 0.5em;
		left: 0.5em;
		cursor: pointer;
	}

	& .fa-times:hover {
		color: #dc143c;
		transform: rotate(90deg);
		transition: all 0.5s;
	}

	& #gestion {

		& li {
			margin: 0.5em 0;
			text-align: center;
		}

		& p {
			color: #4682b4;
			text-align: center;
			border-bottom: 1px solid #000000;
		}
	}

}

/* ESTILOS ICONO DEL LOS TRES PUNTOS */
.fa-ellipsis-v {
	position: absolute;
	right: 0;
	top: 5px;
	font-size: 1.2em;
	cursor: pointer;
	margin: 0 10px;
	color: #ffffff;
}


/* ESTILOS CONTENEDOR PRINCIPAL DEL INDEX */
.main-container {
	display: flex;
	flex-direction: column;
    justify-content: center;
    align-items: center;
	margin: 0;
	padding: 0;
	font-size: 1.2em;


	& .index-container {
		width: 90%;
		max-width: 320px;
		padding: 20px;
		background-color: #ffffff;
		border-radius: 8px;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
		text-align: center;

		& .wrap-container{
			position: relative;
			width: 100%;
			margin-bottom: 15px;


			& select {
			width: 100%;
			padding: 12px 40px 12px 15px;
			font-size: 16px;
			line-height: 1.5;
			border: 1px solid #ccc;
			border-radius: 6px;
			background-color: #ffffff;
			-webkit-appearance: none;
			-moz-appearance: none;
			appearance: none;
			cursor: pointer;
			transition: border-color 0.3s, box-shadow 0.3s;
			position: relative;
			z-index: 1;

				&:focus {
					outline: none;
					border-color: #007bff;
					box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
				}
			}

			&::after {
				content: '\25BE';
				position: absolute;
				top: 50%;
				right: 10px;
				transform: translateY(-50%);
				font-size: 2em;
				color: #777777;
				font-weight: 700;
				pointer-events: none;
				z-index: 2;
				transition: transform 0.3s ease;
				line-height: 1.5;
			}
		}

		& .btn-submit {
			width: 100%;
			padding: 12px;
			margin-top: 12px;
			font-size: 16px;
			font-weight: bold;
			color: white;
			background-color: #dc3545;
			border: none;
			border-radius: 6px;
			cursor: pointer;
			transition: background-color 0.3s;

			&:hover {
				background-color: #c82333;
			}
		}

	}
}

/* ESTILOS PARA EL CONTENEDOR Y EL CONTENIDO DEL BUSCADOR */
#lupa {
	margin: 0.5em;
	color: #ffffff;
	cursor: pointer;
}

.search-container {
	position: fixed;
    top: 20px;
	left: 0;
	transform: translateX(-100%);
	transition: 0.5s;
	width: 100%;
	margin: 0.5em;
	overflow: hidden;

	& #completar {
		padding: 0.4em;
		margin-right: 0.5em;
    	width: 75vw;
	}

	&.mostrar {
		transform: translateX(0);
		z-index: 2;
	}

	& label{
		position: relative;
	}

	& .fa-caret-square-right{
		display: block;
		position: absolute;
		top: -5px;
		left: -6px;
		color: #f5f5f5;
		font-size: 31px;
		cursor: pointer;
	}
	& #btn-submit{
		display: none;
	}

}

.difuso {
     filter: blur(20px);
	 pointer-events: none;
}

/* BOTÓN DE VUELTA AL INDEX */
.btn-home {
	position: fixed;
	top: 2px;
	left: 5px;
	z-index: 100;
	display: inline-block;
	background-color: rgba(120, 161, 195, 0.59);
	padding: 10px;
	border: 1px solid #fff;
	border-radius: 20px;
	color: #ffffff;
	font-weight: bold;
}

/*ESTILOS PARA LA PÁGINA QUE MUESTRA TODOS LAS PELÍCULAS*/
.film-container {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	max-width: 800px;
	margin: 0 auto;
}

.film-container img {
	display: block;
	margin: 8px;
	border: 2px solid steelblue;
	border-radius: 10%;
	width: 20%;
	-o-object-fit: cover;
	object-fit: cover;
}

.film-container h3 {
	background-color: cornflowerblue;
	font-weight: normal;
}

#seleccion {
	position: sticky;
	left: 0;
	top: 0;
	display: block;
	margin-bottom: 10px;
	text-transform: uppercase;
	background-color: cadetblue;
	padding: 15px;
	text-align: center;
	color: #ffffff;
	max-width: 800px;
	margin: auto;
	font-size: 0.6em;
}

/*ESTILOS PÁGINA ACERCA DE...*/
.fa-arrow-left {
	font-size: 1.2em;
	cursor: pointer;
}

.page-version {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: #ffffff;
	padding: 2em;
	border-radius: 8px;

	& dt {
		font-weight: 500;
		font-size: 1.2em;
		color: #000000;
	}

	& dd {
		margin-bottom: 20px;
		font-size: 1.1em;
		font-weight: 300;
		color: #ff4500;
	}

	& #copy {
		color: #808080;
		font-family: 'Satisfy', cursive;
	}
}

/* ESTILOS PARA LOS MENSAJES DE ERROR DEL BUSCADOR */
#error {
	background-color: #dc143c;
	color: #ffffff;
	padding: 0.5em;
	position: fixed;
	width: 100%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	max-width: 800px;
	margin: auto;
	display: flex;
	justify-content: center;
	align-items: center;

	& i {
		margin-right: 0.5em;
		font-size: 1.5em;
	}
}
/* ESTILOS PÁGINA RESULTADOS POR ACTORES Y DIRECTORES */
table {
    border-collapse: collapse;
    background-color: #000000;
    color: #ffffff;
    width: 100%;
	margin-top: 4em;
}

table th,
table td {
    padding: 1em;
    text-align: center;
    box-shadow: 0 0 2px 1px #ffffff;
}

#ttitle {
    font-size: 1.3em;
    letter-spacing: 2px;
    color: #ffa07a;
	text-align: center;
}
.ttitle2 {
	background-color: rgba(220, 20, 60, 0.5);
}

table td a {
    color: #f5f5f5;
}
table td .fa-folder-open {
    color: #f5deb3;
}
table td span {
    color: #ffff00;
    font-size: 1.2em;
}
table th {
    background-color: #007bff;
}

table thead {
	border: none;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
}

table tr {
	display: block;
	margin-bottom: 0.8em;
	border: 1px solid #007bff;
	border-radius: 5px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

table td {
	display: block;
	text-align: left;
	border-bottom: 1px solid #1a1a1a;
	font-size: 0.9em;
}

table td:last-child {
	border-bottom: 0;
}





/* ESTILOS PARA DESKTOP Y TABLETS GRANDES */
@media (min-width: 768px) {

    .main-container {
        /* padding-top: 100px; */

		& .index-container {
			width: 100%;
			max-width: 500px;
			padding: 30px;
			border-radius: 10px;

			& select, .btn-submit {
        		padding: 14px 15px;
    		}
		}
    }

	.search-container {
		& #completar {
			width: 25vw;
		}
	}

	table{
		max-width: 600px;
		margin: 1em;
	}

	tbody td {
		padding: 1em;
		text-align: left;
		box-shadow: 0 0 2px 1px white;
	}

	#ttitle {
		font-size: 1.3em;
		letter-spacing: 2px;
		color: lightsalmon;
	}
	#edad{
		text-align: center;
	}

	td a {
		color: #f5f5f5;
	}
	td .fa-folder-open {
		color: #dc143c;
	}
	td span {
		color: #ffff00;
		font-size: 1.2em;
	}


}