/*
Estilo gótico
Jorge Vidues Cova
*/
:root {
    --negro: #0a0a0a;
    --rojo: #ca0909;
    --dorado: #B8860B;
    --gris: #2d2d2d;
    --texto: #d8c8b8;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--negro);
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--texto);
}

h1 {
    font-family: 'Times New Roman', serif;
    font-size: 45px;
    color: var(--rojo);
    text-align: center;
    margin: 10px 0;
}

h2 {
    font-family: 'Times New Roman', serif;
    font-size: 30px;
    color: var(--dorado);
    text-align: center;
    margin: 10px 0;
}

h3 {
    font-family: 'Times New Roman', serif;
    font-size: 22px;
    color: var(--dorado);
    border-bottom: 2px solid var(--rojo);
    padding-bottom: 5px;
}

p {
    font-size: 18px;
    line-height: 1.5;
    margin: 10px 0;
}

a {
    color: var(--dorado);
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    color: #FFD700;
    text-decoration: underline;
}

ul {
    list-style-type: none;
    padding-left: 20px;
}

li {
    margin: 8px 0;
    padding-left: 25px;
    position: relative;
}

li:before {
    content: "†";
    color: var(--rojo);
    position: absolute;
    left: 0;
    font-weight: bold;
}


#contenedor {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

#titulo, #resumen, #comentario, 
#enlacesintra, #objetivos, #contenidos, 
#profesores, #bibliografia, #lselecciona, 
#lhistorico, #lrecursos, #enlacesversiones {
    border: 3px double var(--rojo);
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
    background-color: rgba(30, 30, 30, 0.7);
}

#titulo {
    background-color: rgba(139, 0, 0, 0.2);
    text-align: center;
}

#resumen, #comentario, #enlacesintra, #enlaces, #enlacesversiones {
    background-color: rgba(184, 134, 11, 0.1);
}

#objetivos, #contenidos, #profesores, #bibliografia {
    background-color: rgba(45, 45, 45, 0.8);
}


#apartados {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

#contenidos {
    grid-column: 1 / -1;
}


#enlaces {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#enlacesversiones ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0;
}

#enlacesversiones li {
    padding-left: 0;
}

#enlacesversiones li:before {
    display: none;
}

#enlacesversiones a {
    background-color: var(--rojo);
    color: white;
    padding: 8px 15px;
    border-radius: 3px;
    display: inline-block;
}

#enlacesversiones a:hover {
    background-color: var(--dorado);
    text-decoration: none;
}

#bibliografia dt {
    color: var(--dorado);
    font-weight: bold;
    margin-top: 15px;
}

#bibliografia dd {
    margin-left: 20px;
    padding-left: 15px;
    border-left: 2px solid var(--rojo);
}


#extraDiv1 {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 100px;
    height: 100px;
    opacity: 0.3;
    z-index: -1;
}

#extraDiv2 span {
    display: block;
    width: 100%;
    height: 100%;
    background-image: url('gargola.png.png');
    background-size: contain;
    background-repeat: no-repeat;
    filter: brightness(5);
    transform: scaleX(-1);
    
}
    #extraDiv2 {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    opacity: 0.3;
    z-index: -1;
}

#extraDiv1 span {
    display: block;
    width: 100%;
    height: 100%;
    background-image: url('gargola.png.png');
    background-size: contain;
    background-repeat: no-repeat;
    filter: brightness(5);
    
}

 #extraDiv3, #extraDiv4, #extraDiv5, #extraDiv6 {
    display: none;
}


@media (max-width: 768px) {
    #apartados {
        grid-template-columns: 1fr;
    }
    
    #enlacesversiones ul {
        flex-direction: column;
        align-items: center;
    }
    
    h1 {
        font-size: 35px;
    }
    
    h2 {
        font-size: 25px;
    }
}


@keyframes titulo-parpadeo {
    0%, 100% { 
        opacity: 1;
        text-shadow: 0 0 10px var(--rojo);
    }
    50% { 
        opacity: 0.4;
        text-shadow: 0 0 20px var(--rojo);
    }
}


#titulo h1 {
    animation: titulo-parpadeo 3s infinite;
}