/* #####################################
  GENERAL STYLES
##################################### */

body {
    overflow-x: hidden;
    background-color: #F7F5F2;
}

html,
body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

footer {
    position: relative;
    margin-top: 6rem;
}

main {
    width: 100%;
    flex: 1;
}


/* #####################################
   BAR
##################################### */

.NavBarButtons li {
    display: inline-block;
    margin-right: 3.5rem;
}

.NavBarButtons {
    display: flex;
    gap: 2rem;
}


/* #####################################
   Title
##################################### */

h1 {
    font-family: "DM Sans", sans-serif;
    color: #434240;
    text-align: center;
    font: sans serif;
}


/* #####################################
   OBJECTS
##################################### */

.item span {
    font-family: "Libre Baskerville", serif;
}

.item {
    max-height: 11rem;
    font-family: "DM Sans", sans-serif;
    width: 12rem;
    min-height: 11rem;
    height: auto;
    background-color: white;
    padding: 1.8rem 1.6rem;
    text-align: center;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    justify-content: center;
}

.img-bg {
    width: 100%;
    padding: 1rem 5.4rem;
    background-color: #E7E7E7;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-bg img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.item img {
    width: 10rem;
    height: 10rem;
    object-fit: contain;
    transition: 0.3s;
}

.title,
.texto {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.title {
    font-weight: bold;
    margin-bottom: 0rem;
    font-size: clamp(0.5rem, 0.7vw, 0.8rem);
}

.texto {
    font-size: 0.7rem;
    margin-top: 0.1rem;
    max-height: 0
}

.item:hover .texto {
    max-height: 100px
}

.items {
    opacity: 1;
    transition: opacity 0.5s ease;
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 20vw));
    row-gap: 1rem;
    column-gap: 0.1vw;
    justify-content: center;
}

.item:hover {
    max-height: 30rem;
}

.item:hover .title,
.item:hover .texto {
    opacity: 1;
}


/*
#################
   MORE GENERAL STYLES
################
*/

h1 {
    font-family: "Libre Baskerville", serif;
}


/*###################
    Lines visibility
#####################*/

.LinesMenu {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.LinesMenu button {
    transition: transform 0.3s ease;
    ;
    background: none;
    color: #434240;
    border: none;
    font-family: "Libre Baskerville", serif;
}

.LinesMenu button:hover {
    transform: scale(1.05);
    color: #676766;
}

.NoDisponibleText {
    display: flex;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 6rem;
}

.invisible {
    opacity: 0;
    pointer-events: none;
}

.NoDisponibleText.visible {
    color: #434240;
    opacity: 1;
    font-weight: 100;
    font-family: "Libre Baskerville", serif;
}

@media (max-width: 768px) {
    .NoDisponibleText {
        font-size: clamp(1rem, 2rem, 3rem);
        ;
    }
    .title {
        font-weight: bold;
        margin-bottom: 0.5rem;
        font-size: clamp(0.5rem, 0.9vw, 1rem);
    }
    .NavBarButtons li {
        margin-right: 1rem;
    }
    .texto {
        font-size: 0.8rem;
        margin-top: 0.1rem;
        max-height: none;
    }
    main {
        align-items: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .item {
        max-height: none;
        min-height: 11rem;
        height: auto;
     }
    .title,
    .texto {
        opacity: 1;
        max-height: none;
    }
    .title {
        font-size: 1rem;
    }
    
    .items {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}
