﻿.banner-image {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
}
.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.navbar-forward {
    width: 100%;
    position: absolute;
    z-index: 1000;
}
.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")
}
.navbar-light .navbar-toggler {
    border: 1px solid white;
}
.navbar-light .navbar-toggler:focus{
    box-shadow: none;
}
.text-box {
    border: 2px solid;
    border-color: #EE6D32;
    border-radius: 15px;
    background-color: rgba(238, 109, 50, 0.35);
}
.card-number {
    border: 2px solid #24334C;
    border-radius: 10px;
    background-color: rgba(224, 221, 219, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    box-shadow: 0 0 10px rgba(0, 123, 255, 0); 
}
    .card-number:hover {
        transform: scale(1.05); 
        box-shadow: 0 0 20px rgba(0, 123, 255, 0.3);
    }
.chemical-class-item {
    transition: transform 0.5s ease;
}
    .chemical-class-item:hover { 
        transform: scale(1.05); 
        font-weight: bold;
    }
.chemical-class-a:hover {
    color: #EE6D32 !important;
}
.custom-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z" fill="%23767676"/></svg>');
    background-repeat: no-repeat;
    background-position-x: calc(100% - 0.5rem);
    background-position-y: center;
    background-size: 1.5em;
}
    .custom-select::-ms-expand {
        display: none;
    }
.pagination > li > a:hover {
    background: var(--bs-primary);
    background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(var(--bs-primary)), to(transparent)) !important;
    background: -moz-linear-gradient(0% 0% 270deg,#FEFEFE, #f0f0f0) !important;
    border: none;
    z-index: 200;
}
.page-link {
    transition: transform 0.5s ease;
}
    .page-link:focus {
        box-shadow: none !important;
        background: none !important;
    }
    .page-link:hover {
        transform: scale(1.1);
        z-index: 100;
    }
    .page-link.active, .active > .page-link {
        background-color: white !important;
        color: #24334C !important;
        z-index: 20;
    }
.page-item > a:focus {
    color: #24334C !important;
    background: white !important;
}
.compound-name {
    color: #24334C;
    transition: transform 0.5s ease;
}
    .compound-name:hover {
        color: #EE6D32;
        transform: scale(1.05);
    }
.compound-name-a:hover {
    color: #EE6D32;
}
.species-name {
    color: #24334C;
    transition: transform 0.5s ease;
}
    .species-name:hover {
        color: #EE6D32;
        transform: scale(1.05);
    }
.img-slide-up {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

    .img-slide-up.visible {
        opacity: 1;
        transform: translateY(0);
    }
.fieldset-slide-up {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

    .fieldset-slide-up.visible {
        opacity: 1;
        transform: translateY(0);
    }

.fieldset-slide-up {
    position: relative;
    padding-top: 20px; /* spazio extra per il legend */
}

    .fieldset-slide-up legend {
        position: absolute;
        top: -15px; /* posiziona il legend sopra il bordo */
        left: 55%;
        transform: translateX(-50%);
        padding: 0 10px; /* padding per il testo */
        font-weight: bold; 
        font-size: medium;
        color: #EE6D32; 
        white-space: nowrap; 
    }
        .fieldset-slide-up legend span {
            background-color: white; /* fondo bianco per coprire il bordo */
            padding-left: 10px;
            padding-right: 10px;
        }
.even-row {
    background: #E0DDDB;
}
.card {
    position: relative;
    transition: transform 0.5s ease, box-shadow 0.3s ease;
}
    .card:hover {
        transform: scale(1.05); /* Ingrandisce la card */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Aggiunge un'ombra */
    }
.card-img-top {
    width: 100%;
    height: auto;
}
.card-slide-up {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
    .card-slide-up.visible {
        opacity: 1;
        transform: translateY(0);
    }
/* Contenitore della piramide */
.pyramid {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

    /* Riga della piramide */
    .pyramid .row {
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: rgba(36, 51, 76, 0.65); /* Colore di sfondo della riga */
        color: #ffffff; /* Colore del testo */
        margin: 5px 0; /* Margine tra le righe */
        padding: 10px; /* Padding interno delle righe */
        border-radius: 15px; /* Arrotonda i bordi delle righe */
        cursor: pointer; /* Cambia il cursore al passaggio del mouse */
    }

        /* Dimensioni decrescenti delle righe */
        .pyramid .row:nth-child(2n-1) {
            width: 100%;
        }

        .pyramid .row:nth-child(4n-1) {
            width: 90%;
        }

        .pyramid .row:nth-child(6n-1) {
            width: 80%;
        }

        .pyramid .row:nth-child(8n-1) {
            width: 70%;
        }

        .pyramid .row:nth-child(10n-1) {
            width: 60%;
        }

        .pyramid .row:nth-child(12n-1) {
            width: 50%;
        }

        .pyramid .row:nth-child(14n-1) {
            width: 40%;
        }

        .pyramid .row:nth-child(16n-1) {
            width: 30%;
        }

        .pyramid .row:nth-child(18n-1) {
            width: 20%;
        }

/* Riga nascosta */
.extra-row {
    display: none;
    justify-content: center;
    align-items: center;
    color: #000000;
    margin: 5px 0;
    padding: 10px;
    border-radius: 5px;
    width: 100%; /* Larghezza delle righe extra */
}

    /* Riga visibile */
    .extra-row.visible {
        display: flex;
    }

/* Effetto hover per le card */
.pyramid .row:hover {
    background-color: #EE6D32; /* Colore di sfondo al passaggio del mouse */
    transform: scale(1.05); /* Leggero ingrandimento al passaggio del mouse */
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.svg-overlay {
    position: absolute;
    bottom: 0; /* Posiziona l'SVG sul bordo inferiore dell'immagine */
    left: 0;
    width: 100%;
    top: 30px;
    height: 200px; /* Altezza dell'SVG */
    pointer-events: none; /* Permette di cliccare attraverso l'SVG */
    z-index: 1; /* Porta l'SVG sopra l'immagine */
}
.fieldset-extraction {
    position: relative;
    padding-top: 20px; /* spazio extra per il legend */
}

    .fieldset-extraction legend {
        position: absolute;
        top: -15px; /* posiziona il legend sopra il bordo */
        left: 5%;
        padding: 0 10px; /* padding per il testo */
        font-weight: bold;
        font-size: medium;
        color: #EE6D32;
        white-space: nowrap;
    }

        .fieldset-extraction legend span {
            background-color: white; /* fondo bianco per coprire il bordo */
            padding-left: 10px;
            padding-right: 10px;
        }

#fountainG {
    position: relative;
    width: 234px;
    height: 28px;
    margin: auto;
}

.fountainG {
    position: absolute;
    top: 0;
    background-color: #46ad41;
    width: 28px;
    height: 28px;
    animation-name: bounce_fountainG;
    -o-animation-name: bounce_fountainG;
    -ms-animation-name: bounce_fountainG;
    -webkit-animation-name: bounce_fountainG;
    -moz-animation-name: bounce_fountainG;
    animation-duration: 1.5s;
    -o-animation-duration: 1.5s;
    -ms-animation-duration: 1.5s;
    -webkit-animation-duration: 1.5s;
    -moz-animation-duration: 1.5s;
    animation-iteration-count: infinite;
    -o-animation-iteration-count: infinite;
    -ms-animation-iteration-count: infinite;
    -webkit-animation-iteration-count: infinite;
    -moz-animation-iteration-count: infinite;
    animation-direction: normal;
    -o-animation-direction: normal;
    -ms-animation-direction: normal;
    -webkit-animation-direction: normal;
    -moz-animation-direction: normal;
    transform: scale(0.3);
    -o-transform: scale(0.3);
    -ms-transform: scale(0.3);
    -webkit-transform: scale(0.3);
    -moz-transform: scale(0.3);
    border-radius: 19px;
    -o-border-radius: 19px;
    -ms-border-radius: 19px;
    -webkit-border-radius: 19px;
    -moz-border-radius: 19px;
}

#fountainG_1 {
    left: 0;
    animation-delay: 0.6s;
    -o-animation-delay: 0.6s;
    -ms-animation-delay: 0.6s;
    -webkit-animation-delay: 0.6s;
    -moz-animation-delay: 0.6s;
}

#fountainG_2 {
    left: 29px;
    animation-delay: 0.75s;
    -o-animation-delay: 0.75s;
    -ms-animation-delay: 0.75s;
    -webkit-animation-delay: 0.75s;
    -moz-animation-delay: 0.75s;
}

#fountainG_3 {
    left: 58px;
    animation-delay: 0.9s;
    -o-animation-delay: 0.9s;
    -ms-animation-delay: 0.9s;
    -webkit-animation-delay: 0.9s;
    -moz-animation-delay: 0.9s;
}

#fountainG_4 {
    left: 88px;
    animation-delay: 1.05s;
    -o-animation-delay: 1.05s;
    -ms-animation-delay: 1.05s;
    -webkit-animation-delay: 1.05s;
    -moz-animation-delay: 1.05s;
}

#fountainG_5 {
    left: 117px;
    animation-delay: 1.2s;
    -o-animation-delay: 1.2s;
    -ms-animation-delay: 1.2s;
    -webkit-animation-delay: 1.2s;
    -moz-animation-delay: 1.2s;
}

#fountainG_6 {
    left: 146px;
    animation-delay: 1.35s;
    -o-animation-delay: 1.35s;
    -ms-animation-delay: 1.35s;
    -webkit-animation-delay: 1.35s;
    -moz-animation-delay: 1.35s;
}

#fountainG_7 {
    left: 175px;
    animation-delay: 1.5s;
    -o-animation-delay: 1.5s;
    -ms-animation-delay: 1.5s;
    -webkit-animation-delay: 1.5s;
    -moz-animation-delay: 1.5s;
}

#fountainG_8 {
    left: 205px;
    animation-delay: 1.64s;
    -o-animation-delay: 1.64s;
    -ms-animation-delay: 1.64s;
    -webkit-animation-delay: 1.64s;
    -moz-animation-delay: 1.64s;
}
.superscript {
    vertical-align: super;
    font-size: smaller;
}