/* CSS by Pedro Kineipe */

/* Home page */

#home-page{
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    color: var(--text);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}

/* Landing-page */

#landing-page{
    height: 100vh;
    position: relative;
    padding: 95px 30px 40px 30px;
    display: grid;
    grid-template-rows: 7fr 3fr;
    grid-template-columns: auto;
    grid-template-areas: 'landing-logo'
                         'landing-btns';
}
.landing-background{
    opacity: 0;
    min-width: 100%;
    height: 100%;
    position: absolute;
    z-index: -1;
    transition: .35s ease-in-out;
}
.landing-background.shown{
    opacity: .2;
}
#landing-logo{
    grid-area: landing-logo;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}
#landing-logo img{
    width: 45%;
    height: auto;
    margin-bottom: 30px;
}
#landing-btns{
    grid-area: landing-btns;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
#landing-btns nav{
    display: flex;
    flex-direction: row;
    gap: 20px;
}
.classic-btn{
    border-radius: 2.5px;
    padding: 7px 20px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: .15s ease-in-out;
}
.classic-btn-1{
    border: 3px solid var(--main);
    background-color: transparent;
    color: var(--text);
}
.classic-btn-1:hover{
    background-color: var(--main);
}
.classic-btn-2{
    background-color: var(--main);
    color: var(--text);
}
.classic-btn-2:hover{
    background-color: var(--main-dark);
}

/* Carousel */

#carousel-container{
    min-height: 70vh;
    padding: 60px 90px;
    background-color: var(--background);
}
.carousel{
    width: 100%;
    height: 220px;
    margin: 50px 0;
    position: relative;
    display: grid;
    grid-template-rows: 100%;
    grid-template-columns: 100%;
}
.carousel-scroll{
    position: absolute;
    top: 5px;
    bottom: 5px;
    font-size: 3.7rem;
    color: var(--text);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: .3s ease-in-out;
}
.carousel-scroll:hover{
    color: var(--main);
}
.hidden-scroll-btn{
    visibility: hidden;
    opacity: 0;
}
.shown-scroll-btn{
    visibility: visible;
    opacity: 1;
}
#left-scroll{
    left: -60px;
}
#right-scroll{
    right: -60px;
}
#categories-boxes{
    width: auto;
    height: 230px;
    padding-left: 5px;
    padding-right: 6px;
    overflow-x: scroll;
    display: grid;
    grid-auto-flow: column;
    place-items: center start;
}
#categories-boxes::-webkit-scrollbar{
    display: none;
}
.box{
    opacity: 0.9;
    width: 160px;
    height: 204px;
    margin: 5px;
    border: 3px solid #000;
    border-radius: 5px;
    padding: 20px 15px;
    background-color: var(--background);
    display: grid;
    grid-template-rows: 57% auto;
    grid-template-columns: auto;
    grid-template-areas: 'categorie-img'
                         'categorie-info';
    cursor: pointer;
    transition: border .15s ease-in-out, transform .25s ease-in-out;
}
.box:hover{
    opacity: 1;
    transform: scale(1.13);
    border: 4px solid var(--main);
}
.box:hover .box-image{
    opacity: 1;
}
.box-figure{
    grid-area: categorie-img;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.box-image{
    opacity: 0.6;
    width: auto;
    height: 100%;
    transition: .15s ease-in-out;
}
.box-figure .bi-plus{
    font-size: 4rem;
}
.category-info{
    grid-area: categorie-info;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: start;
}
.category-info p{
    margin: 6px 0px;
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    font-weight: bold;
}
.category-info small{
    position: relative;
    z-index: 1;
    font-size: .7rem;
    display: flex;
    flex-direction: row;
}
.box-price{
    margin-left: 4px;
    transition: .5s ease-in-out;
}
.waiting{
    width: 45px;
    height: 12px;
    border-radius: 2px;
    background-color: var(--background-bright);
    display: flex;
}

/* Cards */

#cards-container{
    overflow: hidden;
    padding: 80px 200px;
    background-color: var(--background-bright);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4%;
    justify-content: space-between;
}
.card{
    width: 20%;
    border: 3px solid transparent;
    border-radius: 4px;
    padding: 18px;
    display: grid;
    place-items: center;
    grid-template-rows: 20% 70% 10%;
    grid-template-columns: auto;
    grid-template-areas: 'card-img'
                         'card-info'
                         'see-more';
    cursor: pointer;
    transition: .1s ease-in-out;
}
.card:hover{
    border: 3px solid var(--background);
}
.card-img{
    grid-area: card-img;
    width: 80px;
    height: 80px;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    background-color: var(--main);
    display: flex;
    justify-content: center;
    align-items: center;
}
.c1{
    width: auto;
    height: 70%;
}
.c2{
    width: 57%;
    height: 55%;
}
.card-info{
    grid-area: card-info;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.card-title{
    margin: 20px 0;
    font-size: 1.2rem;
    font-weight: bold;
}
.card-content{
    margin-bottom: 12px;
    font-size: .9rem;
    font-weight: lighter;
    text-align: justify;
    display: flex;
    align-items: center;
}
.see-more{
    grid-area: see-more;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.see-more button{
    width: 100%;
    height: 100%;
    border-radius: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: .15s ease-in-out;
}
.card:hover button{
    background-color: var(--main);
}