@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    color: #fff;
    overflow-x: hidden;
}

#animation-demo {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 100;
    transition: transform 1s ease-out;
}

.lineContainer {
    pointer-events: none;
    display: block;
}

.line {
    stroke: #000000;
    stroke-width: 5;
    stroke-dasharray: 10;
}

/* #container {
    position: absolute;
    display: flex;
    justify-content: space-evenly;
    bottom: 8px;
    left: 8px;
    width: 100%;
} */

/* .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
} */

.container {
    position: relative;
    width: 100%;
    height: 100%
}

.Hotspot {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 10px;
    border: none;
    background-color: rgba(255, 255, 255, 0);
    box-sizing: border-box;
    pointer-events: none;
    --min-hotspot-opacity: 0;
}

.info-button {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem;
    cursor: pointer;
    text-align: left;
    font-family: 'Helvetica Neue', sans-serif;
    color: #111;
    max-width: 350px;
    background: #ffffff00;
    border-color: #ffffff00;
    /* background: rgba(255, 255, 255, 0.7);
    border-radius: 5px; */
}

.info-button .title {
    font-weight: bold;
    font-size: 1.5rem;
    color: #4C3D26;
}

.info-button .desc {
    font-size: 1.2rem;
    color: #4C3D26;
}

#gluten {
    position: absolute;
    top: 15%;
    left: 5%;
    width: 30%;
}

#fiber {
    position: absolute;
    top: 45%;
    left: 5%;
    width: 30%;
}

#glycemic {
    position: absolute;
    top: 75%;
    left: 5%;
    width: 30%;
}

/* Para los botones del lado derecho */
#allergen {
    position: absolute;
    top: 15%;
    right: 5%;
    width: 30%;
}

#starch {
    position: absolute;
    top: 45%;
    right: 5%;
    width: 30%;
}

#clean {
    position: absolute;
    top: 75%;
    right: 5%;
    width: 30%;
}

/* Media query para dispositivos móviles */
@media screen and (max-width: 932px) {
    .info-button {
        width: 45%;
        /* Botones más anchos en móviles */
    }

    .info-button .title {
        font-size: 0.35rem;
    }

    .info-button .desc {
        font-size: 0.34rem;
    }

    #gluten {
        position: absolute;
        top: 0%;
        left: 1%;
        width: 28%;
    }

    #fiber {
        position: absolute;
        top: 35%;
        left: 1%;
        width: 28%;
    }

    #glycemic {
        position: absolute;
        top: 60%;
        left: 1%;
        width: 28%;
    }

    /* Para los botones del lado derecho */
    #allergen {
        position: absolute;
        top: 35%;
        right: 1%;
        width: 30%;
    }

    #starch {
        position: absolute;
        top: 0%;
        right: 1%;
        width: 30%;
    }

    #clean {
        position: absolute;
        top: 60%;
        right: 1%;
        width: 30%;
    }
}