@import url('https://fonts.googleapis.com/css2?family=Faculty+Glyphic&family=Indie+Flower&family=Playpen+Sans:wght@100..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Asimovian&display=swap');

html,
body,
.container {
    /*height: 900px;
        width: 1600px;
        aspect-ratio:21/13;*/
    margin: 0px;
    /*overflow: hidden;*/
}
h2{
    margin-top:20px;
}

.menu-toggle{
    display: none;
}

.side-menu{
    display: none;
}

.side-menu a {
    display: block;
    color: darkorange;
    font-family: "Asimovian";
    text-decoration: solid;
;
}
#menu-toggle:checked ~ .side-menu{
    display: block;
}

.menu-button{
    cursor: pointer;
}

#menu-toggle:checked ~ .menu-button {
    display: none;
}

.menu-button-opened{
    display: none;
}

#menu-toggle:checked ~ .menu-button-opened {
    display: inline;
    cursor: pointer;
}

h1{
    text-align: center;
    font-family: "Asimovian";
    font-size: 4cqw;
    color: darkorange;
    ;
}

body{
    background-image: url("fondo_nuevo_2.png");
}

@media screen and (max-aspect-ratio:1/1) {
    .container {
        display: grid;
        grid-template-rows: 1fr 3fr 3fr 1fr;
        background-image: url("fondo_nuevo_2.png");
        container-type: inline-size;
    }
    .indice {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: flex-start;
        font-family: "Faculty Glyphic", sans-serif;
        font-size: 2pt + 2cqw;
        padding-left: 1ex;
        padding-top: 1ex;
        padding-right: 1ex;

        a {
            color: blanchedalmond;
            text-decoration: solid;
            text-shadow: black 2px 1px;
            display: block;
            margin-bottom: 1ex;
        }
    }
    .indice a {
        color: blanchedalmond;
        text-decoration: solid;
        text-shadow: black 2px 1px;
        display: block;
        margin-bottom: 1ex;
    }
}

@media screen and (min-aspect-ratio:5/4) {
    .container {
        display: grid;
        grid-template-columns: 1fr 2fr 2fr 1fr;
        background-image: url("fondo_nuevo_2.png");
        background-size: 1600px 2000px;
        container-type: inline-size;
    }
    .indice {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: space-evenly;
        font-family: "Faculty Glyphic", sans-serif;
        font-size: 1.5cqw;
        padding-left: 1ex;
        padding-top: 1ex;
        padding-right: 1ex;

        a {
            color: darkorange;
            text-decoration: solid;
            text-shadow: black 2px 1px;
            display: block;
            margin-bottom: 3ex;
        }
    }

    .indice a {
        color: darkorange;
        text-decoration: solid;
        text-shadow: black 2px 1px;
        display: block;
        margin-bottom: 3ex;
    }
}

.page-content {
    font-family: "Playpen Sans";
    font-size: clamp(10px, 2vw, 20px);
    background-position: center top;
    display: grid;
    grid-template-areas:
        "superior"
        "inferior";
}

.page-content-wide {
    font-size: calc(2pt + (11cqw + 2cqh) / 9);
}

.page-content>.portada {
    grid-row-start: span 3
                    display: flex;
    align-items: center;
}

.page-content>.superior {
    grid-area: superior;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 2em;
    text-align: justify;
    padding-top: 2em;
    padding-bottom: 0.5em;
}

.page-content>.inferior {
    grid-area: inferior;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 2em;
    padding-top: 1em;
    text-align: justify;

}

.my-page img {
    aspect-ratio: 3/4;
    max-width: 100%;
    margin: auto;
    padding-top: 2em;
    padding-bottom: 2em;
    display: block;
}

img.frontpage {
    /*opacity: 50%;*/
    max-width: 100%;
}

.social {
    align-items: start;
    padding-left: 5em;
    padding-top: 1.5em;

    a {
        color: darkorange;
        text-decoration: none;
        display: block;
        margin-bottom: 1ex;
    }
}

.social h2{
    text-align: center;
    font-family: "Asimovian";
    font-size: 2.5cqw;
    color: darkorange;
}

.social a {
    color: darkorange;
    text-decoration: none;
    display: block;
    margin-bottom: 1ex;
}

.linkMosaic {
    display: grid;
    align-content: center;
    grid-template-columns: 1fr 1fr;
    width:100%;
    .linkContainer{
        display: flex;
        flex-wrap:wrap;
        align-content:center;
        flex-direction: column;
        a{
            background-repeat: no-repeat;
            background-size: contain;
            min-width: 13.5ex;
            min-height: 18ex;;
        }
    }
}

.linkMosaic .linkContainer{
    display: flex;
    flex-wrap:wrap;
    align-content:center;
    flex-direction: column;
}
.linkMosaic .linkContainer a{
    background-repeat: no-repeat;
    background-size: contain;
    min-width: 20.25ex;
    min-height: 27ex;
    font-size: 32px;
}


#book {
    margin-right: 1em;
}

.shimmer {
    display: inline-block;
    mask: linear-gradient(-60deg, #cfab9d 0%, #0000, #cfab9d 100%) right/300% 100%;
    animation: shimmer 6.0s infinite;
}

@keyframes shimmer {
    0% {
        mask-position: 100%;
    }
    50% {
        mask-position: 0%;
    }
    100% {
        mask-position: 100%;
    }
}
