#mascotte {
    animation: float 3s ease-in-out infinite;
}

.cerchi {
    margin: 0 auto;
    display: grid;
    grid-template-areas:
        "bubble1 bubble1 bubble1 bubble1 . ."
        "bubble1 bubble1 bubble1 bubble1 . ."
        "bubble1 bubble1 bubble1 bubble1 bubble2 bubble2"
        "bubble1 bubble1 bubble1 bubble1 bubble2 bubble2"
        "bubble3 bubble3 . bubble4 bubble4 bubble4"
        "bubble3 bubble3 . bubble4 bubble4 bubble4"
        ". bubble5 bubble5 bubble4 bubble4 bubble4"
        ". bubble5 bubble5 . . ."
        ". bubble5 bubble5 . . .";
    grid-template-columns: repeat(6, 2fr);
    grid-template-rows: repeat(8, 2fr);
    max-width: 45dvh;
    max-height: 55vh;
    width: 100%;
    aspect-ratio: 6 / 8;
    font-weight: bold;
}

.bubble {
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
    position: relative;
    text-decoration: none;
    transform: scale(0);
    animation: bubbleIn 0.5s ease-out forwards;
    font-weight: bold;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    /* Garantisce cerchi perfetti */
}


#bubble1 {
    grid-area: bubble1;
    background: linear-gradient(135deg, rgb(255, 122, 217), #87aafa);
    color: white;
    box-shadow: inset 0 0 25px 8px #fff;
}

#bubble2 {
    grid-area: bubble2;
    background: linear-gradient(135deg, #75c1f0, #295a9f);
    color: white;
    box-shadow: inset 0 0 25px 8px #a4c6f5;
}

#bubble3 {
    grid-area: bubble3;
    background: linear-gradient(135deg, #f1538a, #fea0c4);
    color: white;
    box-shadow: inset 0 0 25px 8px #ffb8d3;
}

#bubble4 {
    grid-area: bubble4;
    background: linear-gradient(135deg, #fece93, #dd5280);
    color: white;
    box-shadow: inset 0 0 25px 8px #ffdcb1;
}

#bubble5 {
    grid-area: bubble5;
    background: linear-gradient(225deg, #F1E5CC 10.34%, rgba(250, 176, 66, 0.8) 79.46%);
    color: white;
    box-shadow: inset 0 0 25px 8px rgba(213, 149, 19, 1);
}

#warningModal .modal-content {
    border-radius: 50px;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    border: none;
}

#warningModal .modal-title {
    font-weight: bold;
}

#warningModal .modal-body {
    padding: 1rem 1.5rem;
}

.btn-close-circle {
    position: absolute;
    top: -20px;
    right: -40px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #BAD7F8;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1051;
}

@media (max-width: 576px) {

    .cerchi {
        max-width: 40dvh !important;
    }

    .custom-heading {
        font-size: 1.2rem !important;
    }

    .custom-subheading {
        font-size: 1.1rem !important;
    }

    #mascotteModal {
        display: none !important;
    }

    .btn-close-circle {
        width: 60px;
        height: 60px;
        top: -10px;
        right: -30px;
    }

    #modalText {
        margin-top: 0.75rem;
    }
}

@media (max-width: 320px) {
    .cerchi {
        max-width: 34dvh !important;
    }

    .custom-heading {
        font-size: 1.0rem !important;
    }

    .custom-subheading {
        font-size: 0.8rem !important;
    }
}

@media(min-aspect-ratio: 1/1) {
    .cerchi {
        margin: 0 auto;
        display: grid;
        grid-template-areas:
            "bubble5 bubble5 . . . . . bubble4 bubble4 ."
            "bubble5 bubble5 . . bubble2 bubble2 bubble2 bubble4 bubble4 ."
            ". bubble1 bubble1 bubble1 bubble2 bubble2 bubble2 . bubble3 bubble3"
            ". bubble1 bubble1 bubble1 bubble2 bubble2 bubble2 . bubble3 bubble3"
            ". bubble1 bubble1 bubble1 . . . . . .";
        grid-template-columns: repeat(10, 2fr);
        grid-template-rows: repeat(5, 2fr);
        max-width: 70vw;
        width: 100%;
        aspect-ratio: 10 / 5;
        font-weight: bold;
    }
}