/* Reglas genéricas para la portada y el resto de páginas */
@font-face { 
    font-family: Eurostile; 
    src: url('../fonts/Eurostile.TTF'); 
}

* {
    margin: 0;
    padding: 0px;
    font-family: Eurostile; /*Verdana;*/
}

body {
    padding: 5px 40px;
    background-color: rgba(180,190,200,0.5);
    width: 90%;
    margin: auto;
}

a {
    color: inherit;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    background-color: #B0B0B0;
    color: black;
    box-shadow: 2px 2px 4px rgba(100,100,100,0.8);
}

header, nav, section, article, aside {
    margin: 10px auto;
    background-color: rgba(180,190,200,0.5);
    box-shadow: 2px 2px 4px rgba(100,100,100,0.7);
}

figure{
    background-color: rgba(180,190,200,0.5);
    box-shadow: 2px 2px 4px rgba(100,100,100,0.7);
}

h2, p{
    margin: 20px 20px;
}

header {
    width: 100%;
    height: 200px;
    display: flex;
    background-color: rgba(180,190,200,0.5);
    box-shadow: 2px 2px 4px rgba(100,100,100,0.7);
    margin: 5px auto;
}

header figure {
    height: 100%;
}

header img {
    width: 200px;;
    height: 200px;
}

header a {
    box-shadow: none;
}

header div {
    background-image: url('../img/portada.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    flex: 1;
}

header h1 {
    font-family: Eurostile;
    font-style: italic;
    font-weight: 900;
    font-size: 50px;
    background-color: initial;
}

nav {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    background-color: rgba(180,190,200,0.5);
    box-shadow: 2px 2px 4px rgba(100,100,100,0.7);
    margin: 5px auto;
    padding: 0 0 2px 0;
}

nav ul {
    list-style: none;
    width: 120px;
}

nav ul li {
    display: inline-block;
}

li a {
    background-color: initial;
    box-shadow: initial;
}

#navenlaces {
    margin: auto 20px;
}

#footenlaces {
    margin: auto;
    display: flex;
    justify-content: center;
    background-color: rgba(180,190,200,0.5);
    box-shadow: 2px 2px 4px rgba(100,100,100,0.7);
}

#navenlaces a, #footenlaces a  {
    margin: 0px 5px;
    padding: 5px 25px;
    display: inline-block;
    transition: 0.3s;
}

#footenlaces a {
    margin: 10px auto;
}

#navenlaces a:hover, #footenlaces a:hover {
	border: solid 1px black;
	background-color: grey;
    color: whitesmoke;
	transform: rotate(0deg) scale(1.2);
}

form input{
    padding: 2px 5px 2px 5px;
    border-radius: 5px;
}

#formbuscar * {
    height: 25px;
    width: 100px;
}

input[type="submit"] {
    background-color: #B0B0B0;
    
}
#formbuscar input[type="submit"]{
    padding: 5px 10px 20px 10px;
}

#formlogin {
    width: 210px;
}

#formlogin * {
    font-size: 10px;
}

#formlogin label{
    font-size: 10px;
    display: inline-block;
    width: 50px;
    text-align: right;
}

#formlogin input[type="submit"]{
    padding: 4px 10px 4px 10px;
    position: relative;
    top: 10px;
}

main {
    display: flex;
    background-color: rgba(180,190,200,0.5);
    box-shadow: 2px 2px 4px rgba(100,100,100,0.7);
}

.imgaleatorias {
    flex: 1.5;
    margin: 5px 10px;
    background-color: rgba(0,0,0,0);
    box-shadow: none;
}

.imgaleatorias figure {
    margin: 5px auto;
    max-width: 220px;
}

.imgaleatorias img {
    width: 95%;
}

.cuerpo {
    flex: 5;
    display: flex;
    flex-flow: column;
}

#titulo {
    margin: 15px auto;
    font-size: 30px;
    font-style: italic;
    font-weight: bolder;
    text-decoration: underline;
}