* {
    box-sizing: border-box;
}

:root {
    --color-fondo: #69a8fa;
    --color-fondo-gris: #132531;
}

html {
    scroll-behavior: smooth;
}

button {
    background-color: #0a1624cc;
    font-size: large;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 10px;
    border: #0088FF;
    box-shadow: 3px 2px 10px #0088FF;
    color: white;

    background-color: #01aee2;
    box-shadow: 6px 6px 2px #000000;
    transition: transform .3s;
}

h1 {
    font-size: 3.5em;
}

h2 {
    font-size: 2.7em;
}

h3 {
    font-size: 2em;
}

ul {
    list-style: none;
}

li {
    font-size: 1em;
}

button:hover {
    background-color: #01aee2;
    transform: scale(1.1);
}

.container {
    max-width: 1400px;
    margin: auto;
}

header {
    position: fixed;
    z-index: 10;
    width: 100%;

    background-color: rgb(255, 255, 255);

    /*  background-image: linear-gradient(
        rgb(231, 21, 6),rgb(250, 36, 8)
    ); */
    /*  background-image: url(/media/backgroundweb.webp); */
    background-size: contain;
    border-bottom: 4px solid #00228f;
}

header span {
    display: none;
}

header .logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: rgb(255, 255, 255);
    font-weight: bold;
    font-size: 1.7em;
    align-items: center;
    padding-bottom: 15px;
    text-shadow: 6px 3px 2px #000000;
}

#mslogo {
    width: 40%;
    margin-bottom: -4%;

}

header .container {
    display: flex;
    flex-direction: column;
    align-items: center;


}

header nav {
    display: flex;
    flex-direction: row;
    text-align: center;
    margin-top: 0px;
    padding-top: 0px;
    padding-bottom: 10px;
}



header a {
    padding: 5px 12px;
    text-decoration: none;
    font-weight: bold;
    color: rgb(255, 255, 255);
    color: #01aee2;
    transition: .1s;
    font-size: 1.3em;
    /* text-shadow: 0px 3px 2px #818a08; */

}

header .logo {
    margin-top: 0;
    margin-bottom: 0;

    /* filter:drop-shadow(5px 5px 0px rgba(0, 0, 0, 0.3));  */
}

/* header a:hover{
    text-decoration: underline;
    transform: scale(1.1);
    
} */

/* Todo el diseño de  la cabecera */


/* una prueba del carrusel tipo netflix para las categorias */

#categories {

    background-color: #ffffff;
    /*   background-image :radial-gradient(
         #b4b7f8 50%,#5c7fffa1
    ); */
    padding: 5px;
    padding-top: 180px;
    padding-bottom: 20px;
    z-index: 0;
}

#categories h3 {
    color: #1B57AF;
    margin-bottom: 0px;
    margin-top: 10px;
    font-size: 1.4em;
}

::-webkit-scrollbar {
    display: none;
}

.carrusel-container {
    display: flex;
    width: 100%;
}

.carrusel-container .flechas {
    display: none;

    margin-top: 5px;
    margin-bottom: 5px;
    width: 30px;
    text-align: center;
    padding: 0px;
    position: relative;
    opacity: 0.6;
    box-shadow: 5px 5px 5px rgb(2, 127, 165);

}

.carrusel-container .flechas img {
    width: 25px;

}

.carrusel-imagenes {
    margin-left: auto;
    margin-right: auto;

    padding-top: 10px;
    padding-bottom: 5px;
    width: 100%;
    display: flex;
    flex-direction: row;

    scrollbar-color: black;
    scrollbar-width: none;
    scroll-behavior: smooth;
    overflow-x: scroll;
    gap: 5px;

    position: relative;
}

.carrusel-imagenes .imagen-categoria {
    min-width: 55%;
    max-width: 50%;
    margin-left: 2px;
    margin-right: 2px;
    border-radius:5px;

}

/* Contenedor de cada categoria y sus elementos */
.carrusel-imagenes .categoria-container {
    background-color: white;
    min-width: 55%;
    max-width: 50%;
    margin-left: 2px;
    margin-right: 2px;
    border-radius: 5px;
    display: grid;
    grid-template-rows: 70% 30%;
    border-color: white;
    stroke-width: 5px;
    stroke: white;
}

/* Parte superior */

.categoria-container .superior-container {
    padding: 10px;
    height: 100%;
    display: grid;
    visibility: hidden;
    grid-template-rows: 3fr 2fr;
}

.superior-container .unidad-medida-label {
    position: absolute;
    transform: translate(10px, -2px);
    color: #006fcf;
    font-size: 0.78em;
    font-weight: bold;
}

.categoria-container .superior .cuantificadores {
    display: grid;
    grid-template-columns: 1fr 3fr;
    z-index: 1;
}

.cuantificadores .modificadores {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background-color: #01aee2;
    border-radius: 5px;

}

.botones-unidades {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 2fr;
    padding-top: 5px;
    gap: 2px;
    z-index: 2;
}

/* Parte inferior */
.categoria-container .inferior {
    display: grid;
    grid-template-columns: 1fr 5fr;
    background-color: #060714a2;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
    border-top-left-radius: 5px;
    z-index: 2;
}

.categoria-container button,
.categoria-container input {
    width: 100%;
    height: 100%;
    margin: 0px;
    text-align: center;
    box-shadow: none;
    color: white;
    padding: 1px;
    padding-left: 0px;
    font-size: 0.9em;
}

.categoria-container input {
    color: #006fcf;
    font-size: 1.5em;
    text-align: center;
    font-weight: bold;
}

.categoria-container p {

    font-size: 0.9em;
    text-align: center;
    font-weight: bold;

    border-bottom-right-radius: 5px;
    color: white;
    margin: 0px;
    padding-top: 7.8px;
    padding-bottom: 7.8px;
}

.categoria-container img {
    width: 70%;

}

.categoria-container .imagen-categorizacion {
    position: absolute;
    width: 56%;
    border-radius: 15px;
    z-index: 0;
    border: 2px solid white;
    
    box-shadow: 0px 0px 10px #0000008b;
}

/* Todas las categorias cargadas del firebase */


/* aqui comienza el footer */
footer {
    height: auto;
    margin-top: 0px;
    padding-top: 0px;
    padding-bottom: 0px;
    background-color: #ffffff;
    background-image: linear-gradient(rgba(2, 67, 165, 0.288), rgba(0, 0, 0, 0));
    color: #002cbb;
    justify-content: center;
    display: grid;
    grid-template-rows: repeat(4, 0.2fr);
    justify-items: center;
}

footer .logo-footer {
    padding-top: 10px;
    width: 40%;
}

footer p {
    font-size: small;
    margin-top: 4px;
    margin-bottom: 4px;
}

#redes {
    justify-items: center;
    font-size: 1.2em;
    padding-left: 0;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 0.5fr);
}

#redes li {
    font-size: small;
    padding: 5px;
}

#redes span {
    color: rgb(255, 255, 255);
    vertical-align: top;
    font-size: medium;
}

/* La parte responsive si la pantalla llega a mas de 720 pixeles de ancho */
@media (min-width: 720px) {

    header {
        position: fixed;
        width: 100%;
        z-index: 10;

    }

    header .container {
        height: 90px;
        flex-direction: row;
        justify-content: space-between;


    }

    header .logo {
        flex-direction: row;
        padding-bottom: 25px;
    }

    #mslogo {
        width: 130px;
        margin-left: 30px;
        margin-top: 10px;
    }

    header nav {
        flex-direction: row;
        padding-bottom: 0;
        padding-right: 30px;
    }

    header a {
        font-size: 1.5em;
    }


    /* La parte que es tipo carrusel de netflix */

    .carrusel-imagenes {
        width: 95%;
    }

    .carrusel-container .flechas {
        display: block;

    }

    .carrusel-imagenes .imagen-categoria {
        width: 20%;
    }

    .carrusel-imagenes .imagen-categorizacion {
        width: 20%;
    }

    .carrusel-imagenes .categoria-container {
        min-width: 20%;
        max-width: 20%;
    }

    .superior-container .unidad-medida-label {
        font-size: 0.96em;
        transform: translate(12px, -2px);
    }

    .categoria-container p {
        font-size: 1em;
        padding-top: 11px;
        padding-bottom: 11px;
        margin-bottom: 0px;
    }

    /* Aqui empiezan todas las categorias que se listan desde el firebase */

    /*  */

    footer {
        height: auto;
    }

    footer .logo-footer {
        width: 10%;
    }

    footer p {
        font-size: large;
        font-weight: bold;
    }

    #redes {
        padding: 0px;
        display: flex;
        flex-direction: row;
    }

    #redes li {
        padding: 10px;
        align-items: center;
        font-size: larger;
    }

    #redes img {
        vertical-align: top;
    }

    #redes span {
        font-size: 1em;
    }

}


body {

    font-family: sans-serif;
    margin: auto;

}