/*
Elden Ring css
Pedro Tévar Martínez
*/


body {
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: large;
    background-image: url("rannifondo.png");
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
}

#contenedor {
    width: 60%;
    margin: 1em auto;
    background: #739fff98;
    padding: 1.5em;
    border-radius: 0.2em;
    border: 1px solid #eef2f7a8;
}

#titulo{
    text-align: center;
}

#titulo h1{
    font-size: 3em;
}

#titulo h2{
    font-style: italic;
    padding-bottom: 5px;
    border-bottom: 2px solid #003366;
}

/* Intro: layout claro y sin solapamientos */
#intro{
    grid-column: 2;
    display: grid;
    grid-template-areas: "title title" "summary comment";
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    padding: 0.8rem;
}

#titulo { 
    grid-area: title; 
}
#resumen, #objetivos, #contenidos, #profesores{ 
    
    grid-area: summary; 
}
#resumen .p1{
    font-size: larger;
}
.ul1, .ul2{
    font-style: italic;
    list-style-image: url("minidarkmoonlist.png");
}
#comentario { 
    background-color: #0033666c;
    text-align: justify;
    grid-area: comment; 
}

a {
    color: #00adfd;
    text-decoration: none;
    padding: 0.4rem 0.6rem;
}

#resumen, #comentario{
    padding: 0.4rem 0.2rem;
    margin: 0;
}

#resumen, #objetivos, #contenidos, #profesores{
    text-align: justify;
    border-bottom: 2px solid #003366;
}

#profesores{
    background: rgba(0,0,0,0.18);
    padding: 1rem;
    border-radius: 0.4rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    margin-bottom: 1rem;
}
#profesores h3{ 
    margin-top: 0; 
    color: #fff; 
    font-size: 1.1rem; 
}
#profesores dt{ 
    color: #00adfd; 
    font-weight: 700; 
    margin-top: 0.6rem; 
}
#profesores dd{ 
    margin: 0 0 0.6rem 1rem; 
    color: #e6f7ff; 
}

#bibliografia{
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    padding: 0.9rem 1rem;
    border-left: 4px solid rgba(0,173,253,0.5);
    border-radius: 0.3rem;
    margin-bottom: 1rem;
}
#bibliografia h3{ 
    margin-top: 0; 
    color: #fff; 
}
#bibliografia dt{ 
    font-weight: 700; 
    color: #fff; 
    margin-top: 0.5rem; 
}
#bibliografia dd{ 
    margin-left: 1rem; 
    color: #dfefff; 
    font-size: 0.95rem; 
}

#contenidos{
    background: rgba(255,255,255,0.02);
    padding: 0.9rem 1rem;
    border-radius: 0.3rem;
    margin-bottom: 1rem;
    border-left: 3px solid rgba(0,173,253,0.25);
}
#contenidos h3{ 
    margin-top: 0; 
    color: #ffffff; 
    font-size: 1.05rem; 
}
#contenidos ul{ 
    margin-left: 1rem; 
    color: #e6f7ff; 
}
#contenidos li{ 
    margin: 0.35rem 0; 
}

/*==================COLUMNA DE LA IZQUIERDA==================*/

#enlaces{
    font-size: medium;
    position: fixed;
    left: 0;
    top: 0;
    margin: 1em;
    height: 100vh;
    width: 15%;
    background: rgba(199, 196, 196, 0.329);
    padding: 5.5rem 0.6rem 1rem;
    overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,0.06);
    border-radius: 0.2em;
}
#enlaces h3{
    font-size: larger;
    padding-bottom: 5px;
    border-bottom: 1px solid #00fdf07a;
}

#enlaces ul{
    list-style-image: url();
    padding: 0;
    margin: 0;
    display:inline
}

#enlaces li{
    background-color:rgba(127, 255, 212, 0.164);
    border-right: 1px solid rgba(255,255,255,0.06);
    border-radius: 0.2em;
    margin: 0.25rem 0;
    text-align: center;
}

#enlaces a{
    display: block;
    border-radius: 4px;
}


#enlaces a:hover{
    background: rgba(255,255,255,0.04);
}

#lselecciona{
    background-color: rgba(0, 0, 0, 0.233);
}

#lselecciona .a1{
    font-size: large;
    color: #00adfd;
    font-style: italic;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
    display:inline;
    border-radius: 4px;
}

#extraDiv1{
    position: fixed;
    left: 1rem;
    top: 1rem;
    width: 15%;
    height: 100px;
    background-image: url("eldenringranni.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1100;
    border-radius: 6px;
}

/*==================COLUMNA DE LA DERECHA==================*/
#enlacesversiones{
    position: fixed;
    top:1rem;
    right: 1rem; /* coincide con #enlaces */
    width: 15%;
    height: 150px;
    background: rgba(199, 196, 196, 0.12);
    padding: 0.6rem;
    border-radius: 0.2em;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}

#enlacesversiones h3{
    font-size: 1rem; 
    margin: 0 0 0.4rem 0;
}
#enlacesversiones ul{
    list-style:none; 
    padding:0; 
    margin:0;
}
#enlacesversiones li{
    margin:0.25rem 0;
}
#enlacesversiones a{
    color:#00adfd; 
    text-decoration:none; 
    display:block; 
    padding:0.2rem 0;
}

#enlacesintra{
    position: fixed;
    top:12rem;
    right: 1rem;
    width: 15%;
    height: 150px;
    bottom: 0rem;
    background: rgba(199, 196, 196, 0.12);
    padding: 0.6rem;
    border-radius: 0.2em;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}

#enlacesintra h3{
    font-size: 1rem; 
    margin: 0 0 0.4rem 0;
}
#enlacesintra ul{
    list-style:none; 
    padding:0; 
    margin:0;
}
#enlacesintra li{
    margin:0.25rem 0;
}
#enlacesintra a{
    color:#00adfd; 
    text-decoration:none; 
    display:block; 
    padding:0.2rem 0;
}

/*==================RESPONSIVE==================*/

@media (max-width: 1200px){
    #intro{
         grid-template-areas: "title" "summary" "comment";
         grid-template-columns: 1fr;
    }

    #resumen, #comentario{
        padding: 0;
    }

    /* hacer que las columnas laterales pasen al flujo normal y ocupen el ancho */
    #enlaces, #enlacesversiones, #enlacesintra{
        position: relative;
        float: none;
        width: 100%;
        height: auto;
        top: auto;
        left: auto;
        right: auto;
        margin: 0 0 1rem 0;
        border-right: none;
        background: transparent;
        box-shadow: none;
        background: rgba(199, 196, 196, 0.06);
        padding: 0.5rem;
        border-radius: 0.2rem;
    }

    #contenedor{
        width: auto;
        max-width: 100%;
        margin: 0.8rem 1rem;
        padding: 1rem;
    }

    #enlacesversiones{
        align-items: center;
    }

    #enlacesintra{
        background: rgba(199, 196, 196, 0.06);
        padding: 0.5rem;
        border-radius: 0.2rem;
    }

    #extraDiv1{
        position: absolute;
        left: 0.8rem;
        top: 1rem;
        width: 15%;
        height: 95px;
        background-image: url("eldenringranni.png");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        z-index: 1100;
        margin-bottom: 0.6rem;
    }

    #enlacesversiones{
        text-align: center;
    }
    #enlacesversiones ul{
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
        margin: 0;
    }
    #enlacesversiones li{
        display: block;
        width: auto;
        margin: 0.2rem 0;
    }
    #enlacesversiones a{
        display: inline-block;
        margin: 0;
        text-align: center;
    }
}