@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

:root {
    --main-color: #fd5d0e;
    background-color: white;
}

body,
ul {
    margin: 0;
    padding: 0;
    font-family: "Roboto", sans-serif;
}

/* Scroll */
html {
    scroll-padding-top: 100px;
    scroll-behavior: smooth;
    text-transform: uppercase;
}

/* Components */
section {
    max-width: 1280px;
    margin: auto;
}

nav {
    display: grid;
    grid-template-areas: "logo list";
    position: fixed;
    float: inline-start;
    margin: auto auto 125px auto;
    padding: .5rem 3rem .5rem 3rem;
    width: 100%;
    height: 125px;
    /* max-width: 1280px; */
    top: 0;
    overflow: visible;
    left: 50%;
    transform: translate(-50%, 0%);
    box-sizing: border-box;
    justify-content: space-between;
    background-color: white;
    z-index: 1;
}

#nav-toggle-list {
    display: none;
    width: min-content;
    background-color: #fd5d0e;
    text-align: center;
    color: white;
    text-decoration-line: none;
    font-weight: bold;
    padding: .5rem;
    border-radius: .5rem;
    margin-top: auto;
    margin-bottom: auto;
}

#nav-toggle-list > svg {
    display: block;
    width: 1rem;
    height: 1rem;
}

.logo {
    grid-area: logo;
    width: 125px;
    height: 125px;
    display: block;
    background-image: url('/img/Botonera/Logo/Marca_logo.png');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.wrap-img > img {
    max-width: 100%;
    max-height: auto;
    aspect-ratio: auto;
}

#nav-list-wrapper,
#nav-list {
    grid-area: list;
    align-items: stretch;
    gap: 1rem;
}

.nav-item {
    list-style: none;
    flex: 1 1 0px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* height: 100%; */
    /* min-width: 2rem; */
    width: 40px;
    height: 55px;
    padding: 35px;
    aspect-ratio: 1 / 1;
    font-size: 10px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    text-wrap: nowrap;
    color: black;
}

.nav-item:after {
    content: "";
    /* height: 100%; */
    height: 0px;
    min-width: 0px;
    overflow: visible;
    background-image: url(/img/Botonera/circulo.png);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    /* transform: scale(0); */
    transition: all 500ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-item-active:after {
    height: 100%;
    min-width: 7rem;
    /* transform: scale(1); */
}

.button,
.button-circle {
    background-color: var(--main-color);
    padding: .65rem;
    border-radius: 1rem;
    font-size: 13.8px;
    font-weight: bold;
    text-decoration: none;
    color: black;
    transition: 200ms all ease-in-out;
}

.button:hover {
    background-color: color-mix(in srgb, var(--main-color) 90%, white);
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.button-circle {
    position: absolute;
    bottom: .25rem;
    right: .25rem;
    display: inline-flex;
    height: 5rem;
    width: fit-content;
    line-break: auto;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 100%;
    aspect-ratio: 1 / 1;
    padding: .75rem;
    font-size: small;
    font-weight: bold;
}

.actividad {
    background-image: url(/img/Actividades/Rayas/1.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    text-decoration: none;
    color: black;
    padding: 2rem;
    padding-left: 5rem;
    transition: all 1s ease;
}

.bg-macha-verde,
.bg-mancha-verde-on-desktop {
    background-image: url(/img/Uchis/background.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.bg-alejo,
.bg-amalia,
.bg-abuela,
.bg-abuelo,
.bg-ramamiga,
.bg-koradia,
.bg-anuk,
.bg-monuk,
.bg-renu,
.bg-pedruchi,
.bg-feluchi,
.bg-padum {
    background-size: cover;
}

.bg-alejo {
    background-image: url("/img/Personajes/Alejo.jpg");
}

.bg-amalia {
    background-image: url("/img/Personajes/Amalia.jpg");
}

.bg-abuela {
    background-image: url("/img/Personajes/Abuela.jpg");
}

.bg-abuelo {
    background-image: url("/img/Personajes/Abuelo.jpg");
}

.bg-ramamiga {
    background-image: url("/img/Uchis/Ramamiga.jpg");
}

.bg-koradia {
    background-image: url("/img/Uchis/Koradia.jpg");
}

.bg-anuk {
    background-image: url("/img/Uchis/Anuk.jpeg");
}

.bg-monuk {
    background-image: url("/img/Uchis/Monuk.jpg");
}

.bg-renu {
    background-image: url("/img/Uchis/Renu.jpg");
}

.bg-pedruchi {
    background-image: url("/img/Uchis/Pedruchi.jpg");
}

.bg-feluchi {
    background-image: url("/img/Uchis/Feluchi.jpg");
}

.bg-padum {
    background-image: url("/img/Uchis/Padum.jpg");
}

/* Animated and Complex Components */



.flip-card {
    background-color: transparent;
    width: 300px;
    height: 300px;
    perspective: 1000px;
}

.flip-card-sm {
    width: 290px;
    height: 290px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.flip-card:hover .flip-card-inner,
.flip-card-sm:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    font-size: 16.4px !important;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1rem;
}

.flip-card-front {
    background-color: #bbb;
    color: black;
}

.flip-card-back {
    background-color: whitesmoke;
    transform: rotateY(180deg);
    overflow: auto;
}

.flip-card-front > img {
    width: 100%;
    aspect-ratio: 1/1;
}

.flip-card-back > div > p {
    margin: 0;
    text-align: left;
}

.flip-card-back::after {
    content: " ";
    display: block;
    width: 100%;
    height: 1rem;
    position: sticky;
    bottom: 0;
    background: rgb(0, 0, 0);
    background: linear-gradient(0deg,
            whitesmoke 0%,
            color-mix(in srgb, whitesmoke 80%, transparent) 50%,
            rgba(255, 255, 255, 0) 100%);
}


/* Background images */
.bg-spot-1,
.bg-spot-2,
.bg-spot-3,
.bg-spot-4,
.bg-spot-5,
.bg-spot-6,
.bg-spot-7 {
    background-image: url('/img/Botonera/Violeta.png');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.bg-spot-1 {
    background-image: url(/img/Botonera/Azul.png);
}

.bg-spot-2 {
    background-image: url(/img/Botonera/Amarillo.jpg);
}

.bg-spot-3 {
    background-image: url(/img/Botonera/Verde\ Claro.jpg);
}

.bg-spot-4 {
    background-image: url(/img/Botonera/Verde\ Oscuro.png);
}

.bg-spot-5 {
    background-image: url(/img/Botonera/Rosa.png);
}

.bg-spot-6 {
    background-image: url(/img/Botonera/Violeta.png);
}

.bg-spot-7 {
    background-image: url(/img/Botonera/Naranja.png);
}

/* Common Styles */
.block {
    display: block;
}

.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-column {
    flex-direction: column;
}

.flex-1 {
    flex: 1;
}

.flex-2 {
    flex: 2;
}

.flex-3 {
    flex: 3;
}

.gap-1 {
    gap: 1rem;
}

.gap-2 {
    gap: 2rem;
}

.radius-1 {
    border-radius: 1rem;
}

.space-between {
    justify-content: space-between;
}

.space-around {
    justify-content: space-around;
}

.center {
    justify-content: center;
    align-items: center;
}

.items-center {
    align-items: center;
}

.items-stretch {
    align-items: stretch;
}

.text-center {
    text-align: center;
}

.text-justify {
    text-align: justify;
}

.full-width {
    width: 100%;
}

.m-auto {
    margin: auto;
}

.m-0 {
    margin: 0;
}

.m-1 {
    margin: 1rem;
}

.m-t-2 {
    margin-top: 2rem;
}

.m-t-5 {
    margin-top: 5rem;
}

.p-1 {
    padding: 1rem;
}

.p-2 {
    padding: 2rem;
}

.p-vert-5 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.p-vert-2 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.p-vert-3 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.h-max {
    min-height: 100svh;
}

.color-main {
    color: var(--main-color);
}

.bg-color-main {
    background-color: var(--main-color);
}

.bold {
    font-weight: bold;
}

.font-xxl {
    font-size: 58px;
}

.font-xl {
    font-size: 36px;
}

.font-md {
    font-size: 22px;
}

.font-md-2 {
    font-size: 16px;
}

.font-sm {
    font-size: 14px;
}

.font-xsm {
    font-size: 11px;
}

.position-relative {
    position: relative;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

.z-index-1 {
    z-index: 1;
}

/* Conditional Common Styles */

/* On Portrait */
@media only screen and (orientation: portrait) {
    .flex-column-on-portrait {
        flex-direction: column;
    }

    .flex-wrap-on-portrait {
        flex-wrap: wrap;
    }

    #nav-toggle-list {
        display: block;
        justify-self: end;
    }

    nav {
        height: auto;
        grid-template-areas:
            "logo btn"
            "list list";
        padding: .5rem 1rem;
    }

    .nav-responsive-collapse {
        height: 0px;
        scale: 0.75;
        padding: 0px;
        opacity: 0;
        overflow: hidden;
    }

    .full-width-on-portrait {
        width: 100%;
    }

}

/* Mobile */
@media only screen and (max-width: 768px) {
    .flex-column-on-mobile {
        flex-direction: column;
    }

    .hide-on-mobile {
        display: none;
    }

    .actividad {
        background-size: contain;
        background-position: 0;

        padding: 1.25rem;
        padding-left: 4rem;
    }

    .bg-mancha-verde-on-desktop {
        background: none;
    }


    nav {
        height: auto;
        grid-template-areas:
            "logo btn"
            "list list";
    }
}