html {
    font-family: 'Calibri', sans-serif;
    background: url("fondo.webp");
    background-size: cover;
    width: 100%;
    height: 100%;
    color: #2d2d2d;
}

html.dark {
    background: url("fondo_noche.webp");
    background-size: cover;
    color: white;
}

html.flash {
    background: white;
}

html.flash *{
    visibility: hidden;
    pointer-events: none;
}

html.flash #linterna,
html.flash #linterna * {
    visibility: visible !important;
    pointer-events: auto !important;
}

* {
    cursor: url("cursor_wii/Normal Select.cur"), auto;
}

*:active {
    cursor: url("cursor_wii/Link Select.cur"), auto;
}


body {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

main {
    margin: 20px;
}

#welcome {
    float: right;
    text-decoration: none;
}

#welcome>pre {
    color: white;
    font-size: 1.1vw;
    font-family: Arial;
    margin: 60px;
    text-shadow: 0 0 20px black;
}

#titulo {
    color: white;
    font-size: 1.2ex;
    margin: 0 0 20px 150px;
    text-shadow: 0 0 20px black;
}

.mii {
    pointer-events: none;
    z-index: 999;
}

#mii_home {
    width: 20ex;
    margin-bottom: -35px;
    margin-right: 30px;
}

#mii_about-me {
    width: 80ex;
    margin-bottom: -48ex;
    margin-right: -20ex;
}

#mii_marcelo-the-goblin {
    position: fixed;
    width: 55ex;
    left: 10ex;
    bottom: -10ex;
}


#mii_movies {
    position: fixed;
    width: 55ex;
    left: 10ex;
    bottom: -15ex;
    transform: scaleX(-1);
}

#titulo_marcelo {
    display: flex;
    padding: 0 20ex;
    border-top-right-radius: 24px;
    align-items: center;
    margin: auto;
    background: #ffffff80;
}

#titulo_marcelo>img {
    width: 100%;
    margin-top: -10ex;
}

#marcelo_asomao {
    width: 30ex;
    position: fixed;
    top: 30ex;
    right: -30ex;
}

#marcelo_asomao2 {
    width: 30ex;
    margin-right: 5ex;
}

main>header {
    display: flex;
    align-items: end;
    justify-content: space-between;
}

#contraste_aboutme {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: calc(100% - 12ex);
    border-radius: 0 0 24px 24px;
    background: #ffffff80;
    z-index: -10;
}

#contraste_marcelo {
    display: none;
    position: fixed;
    left: 36ex;
    top: 0;
    width: calc(100% - 36ex);
    height: 16ex;
    border-radius: 0 24px 0 0;
    background: rgba(255, 255, 255, 0.5);
    z-index: -10;
}

#sombra_marcelo {
    display: none;
    position: fixed;
    left: 36ex;
    width: calc(100% - 36ex);
    height: 85.5ex;
    border-radius: 24px 24px 24px 24px;
    background: #2b2b2b80;
    z-index: -11;
}

#nube {
    background: url("nubes.png");
    background-size: cover;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    pointer-events: none;
}

#contenido {
    border-radius: 24px;
    padding: 24px;
    max-width: 150ex;
    max-height: 60vh;
    display: flex;
    gap: 24px;
    background: rgba(255, 255, 255, 0.2);
}

#contenido>nav {
    background: #ffffff80;
    border-radius: 14px;
    flex-grow: 0;
    flex-shrink: 1;
}

#contenido>nav>menu {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#contenido>nav>menu>li>menu {
    list-style-type: none;
    padding-left: 5ex;
}

#contenido>nav>menu>li.selected>a {
    background: #3e98dd;
    font-weight: bold;
}

#contenido>nav>menu>li:hover>a {
    transform: scale(120%);
    transition: transform 0.1s ease-out;
}

#contenido>nav>menu>li>a {
    color: white;
    text-decoration: none;
    padding: 1ex 2ex;
    background: #142b32;
    /*font-weight: bold;*/
    border-radius: 8px;
    margin: 2ex 2ex 1ex;
    display: block;
}

#contenido>nav>menu>li>menu>li>a {
    color: #142b32;
    text-decoration: none;
    display: block;
    padding: 0.2ex 2ex;
    margin: 0 2ex;
}

#contenido>section {
    flex: 1;
    overflow: auto;
}

#contenido>section>footer {
    border-radius: 14px;
    padding: 12px;
    background: rgba(20, 43, 50, 0.18);
    clear: both;

}

#circulos {
    padding: 1ex;
    word-spacing: 0.25ex;
}

#circulos>* {
    width: 2ex;
    height: 2ex;
    border-radius: 1ex;
    display: inline-block;
}

#fotos_marcelo {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2ex;
    overflow-y: auto;
}

#fotos_marcelo>* {
    width: 100%;
    border-radius: 8px;
    aspect-ratio: 1;
    object-fit: cover;
}

.button {
    background: rgba(255, 255, 255, 0.5);
    padding: 1ex;
    border-radius: 14px;
    text-decoration: none;
    display: inline-block;
    position: fixed;
    bottom: 24px;
    right: 24px;
}

.button>img {
    width: 4ex;
    display: block;
}

#stamps {
    max-height: 140px;
    overflow-y: auto;
    margin: auto;
}

.posters {
    display: flex;
    height: 25ex;
    list-style-type: none; 
    gap: 1.5ex;
    overflow-x: auto;
    padding-left: 0;
}

.posters>li>img {
    height: 80%;
    border-radius: 8px;
    aspect-ratio: 2/3;    
    object-fit: cover;
}

.posters>li>img.selected {
    transform: scale(1.5);
    position: relative;
    z-index: 100;
}

.glass {
    /* robada masiva de https://css.glass */
    box-shadow: 0 4px 30px #0000001a;
    backdrop-filter: blur(5px) brightness(0.9);
    /* backdrop-filter: blur(5px) brightness(0.9) url("glass.svg#displacementFilter"); */
    border: 1px solid rgba(255, 255, 255, 0.3);

}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
}

h1 {
    margin-bottom: 3ex;
}

@media (max-aspect-ratio: 1/1) {
    #titulo {
        margin-left: auto;
        margin-right: auto;
    }

    #contenido {
        flex-direction: column;
    }

    #contenido>nav {
        width: fit-content;
    }

    #contenido>nav>menu {
        text-align: center;
    }

    #contenido>nav>menu>li {
        text-align: left;
        width: 10em;
    }
}

/* copiada masiva encima de algo generado por ia no se puede caer mas bajo */
.calendar {
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 14px;
    box-shadow: 0 0.8rem 1.6rem rgba(35, 131, 157, 0.2);
    padding: 1ex;
    width: fit-content;
    font-size: small;
    display: flex;
    flex-direction: column;
    aspect-ratio: 1;
    justify-content: space-around;
}

.calendar__header {
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    letter-spacing: 0.2rem;
    font-size: larger;
    padding: 0 0.4rem 1rem;
    text-transform: uppercase;
}

.calendar__day-numbers {
    display: flex;
    flex-direction: column;
    padding: 1ex 1.5ex;
}

.calendar__day-numbers-row {
    display: flex;
    gap: 0.8rem;
    padding: 0.3rem 0;
}

.calendar__day-numbers-row:first-child {
    justify-content: flex-end;
}

.calendar__day-number {
    align-content: center;
    justify-content: center;
    aspect-ratio: 1;
    color: #000;
    display: flex;
    line-height: 2ex;
    width: 2ex;
    text-align: center;
}

.calendar__day-number--current {
    background-color: #142b32;
    border: solid 1ex #142b32;
    border-radius: 50%;
    color: #FFF;
    box-sizing: content-box;
    margin: -1ex;
}