/* General Styles */

/* Textbox style */
.my-textbox {
    font-size: 1.2rem;
    /* Dimensione del testo */
    padding: 1rem 1.5rem;
    /* Spazio interno */
    border-radius: 1.5rem;
    /* Angoli arrotondati */
    border: 2px solid #ccc;
    /* Bordo */
    text-align: center;
    /* Testo centrato */
    outline: none;

    /* Ombre interne per effetto 3D */
    box-shadow:
        inset 3px 3px 8px rgba(0, 0, 0, 0.20),
        inset -3px -3px 8px rgba(255, 255, 255, 0.5);
    transition: box-shadow 0.2s ease;
}

/* Effetto focus */
.my-textbox:focus {
    box-shadow:
        inset 3px 3px 8px rgba(0, 0, 0, 0.1),
        inset -3px -3px 8px rgba(255, 255, 255, 0.6),
        /* alone focus esterno */
}


/* ANIMATIONS */

/* Mascot Animation - Gentle floating effect */
.mascot-image {
    animation: float 3s ease-in-out infinite;
}

/* Input text animation on focus */
.my-textbox:focus {
    box-shadow:
        inset 3px 3px 8px rgba(0, 0, 0, 0.1),
        inset -3px -3px 8px rgba(255, 255, 255, 0.6),
        0 0 8px rgba(177, 157, 70, 0.6);
    /* Added focus glow */
    animation: pulse 0.5s ease-in-out;
}

/* Button animation */
#cercaTitolo {
    transition: all 0.3s ease;
}

#cercaTitolo:hover {
    transform: translateY(-3px);
    box-shadow: 0px 14px 12px 0px rgba(51, 51, 51, 0.5);
}

#cercaTitolo:active {
    transform: translateY(1px);
    box-shadow: 0px 8px 8px 0px rgba(51, 51, 51, 0.5);
}

.element-to-animate {
    animation: fadeInUp 0.8s ease-out;
}

/* List group dropdown */
.book-dropdown {
    width: 100%;
    overflow-y: auto;
    background: linear-gradient(129.02deg, #FFFFFF 11.4%, #F1E5CC 134.22%);
    border-radius: 23px;
    margin-top: 10px;
    display: none;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    max-height: 60vh;
}

.book-list-item {
    padding: 15px 20px;
    font-family: 'Urbanist', sans-serif;
    font-size: 20px;
    cursor: pointer;
    color: rgba(51, 51, 51, 0.8);
}

.book-list-item:hover {
    background: rgba(250, 176, 66, 0.6);
}

.book-list-item.active {
    background: rgba(250, 176, 66, 0.6);
    position: relative;
}


/* Responsive Design */
@media (max-width: 900px) {

    /* Reduce the mascot's size */
    .mascot-image {
        width: 7rem !important;
        /* equivalent to 80px if base is 16px */
        height: auto;
    }

    .book-dropdown {
        max-height: 35vh;
        /* Adjust height for smaller screens */
    }

    .book-list-item {
        padding: 12px 15px;
        font-size: 16px;
    }
}

@media (max-width: 600px) {

    #titolo-pagina {
        font-size: 1.7rem !important;
        /* Smaller font size for smaller screens */
    }

    /* Adjust the TEXT size for smaller screens */
    .my-textbox {
        font-size: 1rem;
        /* Smaller font size */
        padding: 0.5rem 1rem;
        /* Adjust padding for smaller screens */
    }

    /* Reduce the mascot's size */
    .mascot-image {
        width: 4rem !important;
        /* equivalent to 80px if base is 16px */
        height: auto;
    }

    .book-dropdown {
        max-height: 25vh;
        /* Full width on smaller screens */
    }
}

@media (max-width: 400px) {

    #titolo-pagina {
        font-size: 1.2rem !important;
        /* Smaller font size for smaller screens */
    }

    /* Adjust the TEXT size for smaller screens */
    .my-textbox {
        font-size: 1rem;
        /* Smaller font size */
        padding: 0.5rem 1rem;
        /* Adjust padding for smaller screens */
    }

    /* Reduce the mascot's size */
    .mascot-image {
        width: 3rem !important;
        /* equivalent to 80px if base is 16px */
        height: auto;
    }

    .book-dropdown {
        max-height: 20vh;
        /* Full width on smaller screens */
    }
}
@media (min-aspect-ratio: 1/1){
    .mascot-image{
        max-height: 12vh !important;
    }
    .custom-select-container{
        width: 60% !important;
    }
    .book-dropdown {
        max-height: 20vh !important;
        /* Full width on smaller screens */
    }
    #titolo-pagina {
        font-size: 1.5rem !important;
        /* Smaller font size for smaller screens */
    }
    .testo-pagina {
        font-size: 1rem !important;
        /* Smaller font size for smaller screens */
    }
    .logo-risposte {
        max-height: 15vh !important;
    }

    .mascotte-container {
        text-align: center !important;
    }
}