/*
Rally
Sergio Martínez Tomás
*/
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

#extraDiv1{
    position: absolute;
    top: 0;
    left: 0;
    margin-left: 5%;
    margin-top: 25px;
    width: 90%;
    height: 350px;
    background-image: url(lanciastratos.jpg);

    background-size: contain;
	background-repeat: no-repeat;
	background-position: center center;
}

body#pi {
	font-family: "Segoe UI", Arial, sans-serif;
	/*background: #1F7A5A;*/
    background-image: url("rally.JPG");
    background-repeat: no-repeat;
    background-attachment: fixed;
	color: #2B2B2B;
	line-height: 1.6;
}


#contenedor {
	width: 90%;
	max-width: 1100px;
	margin: 2rem auto;
    margin-top: 400px;
	background: #F5F5F2;
	background-image: url(tire11.png);
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.25);
	padding: 2rem;
}


#intro {
	border-bottom: 4px solid #C8102E;
	padding-bottom: 1.5rem;
	margin-bottom: 2rem;
}

#titulo h1 {
	font-size: 2.5rem;
	color: #1F7A5A;
	margin-bottom: .5rem;
}

#titulo h2 {
	font-size: 1.3rem;
	color: #C8102E;
	font-weight: normal;
}


p {
	margin-bottom: 1rem;
}

ul {
	margin: 1rem 0 1rem 2rem;
}

li {
	margin-bottom: .4rem;
}


a {
	color: #1F7A5A;
	text-decoration: none;
	border-bottom: 1px dotted #1F7A5A;
}

a:hover {
	color: #C8102E;
	border-bottom-color: #C8102E;
}


#resumen,
#comentario,
#apartados > div,
#enlaces > div,
#enlacesversiones {
	margin-bottom: 2rem;
	padding: 1.5rem;
	background: #ffffff;
	border-left: 6px solid #1F7A5A;
	border-radius: 4px;
}


h3 {
	font-size: 1.4rem;
	color: #1F7A5A;
	margin-bottom: 1rem;
	border-bottom: 2px solid #C8102E;
	padding-bottom: .3rem;
}


#enlaces ul,
#enlacesintra ul,
#enlacesversiones ul {
	list-style: none;
	margin-left: 0;
}

#enlaces li,
#enlacesintra li,
#enlacesversiones li {
	padding: .3rem 0;
}


#enlacesintra {
	background: #1F7A5A;
	padding: 1.5rem;
	border-radius: 6px;
	margin-bottom: 2rem;
}

#enlacesintra h3 {
	color: #F5F5F2;
	border-color: #F5F5F2;
}

#enlacesintra a {
	color: #F5F5F2;
	border-bottom-color: rgba(255,255,255,0.5);
}

#enlacesintra a:hover {
	color: #C8102E;
	border-bottom-color: #C8102E;
}


dl {
	margin-left: 1rem;
}

dt {
	font-weight: bold;
	color: #1F7A5A;
	margin-top: 1rem;
}

dd {
	margin-left: 1rem;
	margin-bottom: .5rem;
}


#enlacesversiones {
	background: #2B2B2B;
	color: #F5F5F2;
	border-left-color: #C8102E;
}

#enlacesversiones h3 {
	color: #F5F5F2;
	border-color: #C8102E;
}

#enlacesversiones a {
	color: #F5F5F2;
	border-bottom-color: rgba(255,255,255,0.4);
}

#enlacesversiones a:hover {
	color: #C8102E;
	border-bottom-color: #C8102E;
}


@media (min-width: 1024px) {

    #contenedor{
        position: relative;
    }

	
	#enlaces {
		position: absolute;
        top: 0;
        left: 0;
		width: 260px;
		background: #F5F5F2;
		padding: 1.5rem 1rem;
		margin-right: 2rem;
		border-radius: 6px;
	}


	#enlaces h3 {
		color: #1F7A5A;
		border-bottom: 2px solid #C8102E;
		font-size: 1.2rem;
		margin-bottom: 1rem;
	}

	#enlaces li {
		color: #2B2B2B;
		margin-bottom: .6rem;
		font-size: 0.95rem;
	}

	#enlaces a {
		color: #1F7A5A;
		border-bottom-color: rgba(255,255,255,0.4);
	}

	#enlaces a:hover {
		color: #C8102E;
		border-bottom-color: #C8102E;
	}


	#intro,
	#enlacesintra,
	#enlacerversiones {
		margin-left: 300px; 
	}

    #apartados {
		margin-left: 0;
        
	}

    #objetivos{
        margin-top: 100px;
    }

}
