@import url(/_assets/tmp/layout.css);

/*-------------------------------------------------- Hero */

#section-hero {
    min-height: 100dvh;
    margin-top: -5.5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}

#section-hero .background-cover {
    background: rgba(0,0,0,.5);
}

#container-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: fit-content;
    color: white;
    gap: 3rem;
}

.welcome {
    font-size: 1.6rem;
}

.hero-title {
    font-size: 2.6rem;
}

#hero-text hr {
    margin: 1rem 0;
}

.hero-link {
    border: 2px solid white;
    color: white;
    display: block;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-family: monospace;
    margin-top: 1rem;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    transition: all .3s ease-in-out;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -ms-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
}

.hero-link:hover {
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: white;
}

#hero-images {
    display: flex;
    gap: 1%;
    flex-direction: row;
    justify-content: space-evenly;
}

#hero-images img {
    width: 30%;
    box-shadow: 4px 4px 4px rgba(0,0,0,.5);
    object-fit: cover;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}

@media (max-width: 975px){
    #container-hero {
        grid-template-columns: 1fr;
    }

    #hero-text {
        padding-top: 5.5rem;
        text-align: center;
    }

    #hero-images {
        flex-direction: column;
        gap: 1rem;
    }

    #hero-images img {
        width: 100%;
        aspect-ratio: 5/2;
    }
}

/* ------------------------------------------ About*/

#section-about {
    padding: 3rem 0;
}

.carousel-frame {
    position: relative;
    scroll-behavior: smooth;
    margin-bottom: 2rem;
}

.carousel-container {
    display: flex;
    width: 100%;
    flex-direction: row;
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    gap: 1.25%;
    flex-wrap: nowrap;
    margin-top: 1rem;
    position: relative;
    scroll-behavior: smooth;
    padding: .5rem 0;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.left-carousel-button, .right-carousel-button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: absolute;
    height: 3rem;
    aspect-ratio: 1;
    padding: .5rem;
    border: 3px solid white;
    top: 43%;
    cursor: pointer;
    background-color: rgba(0,0,0,.4);
    color: white;
    font-weight: 900;
    font-size: 1.5rem;
    z-index: 2;
}

.left-carousel-button {
    left: 0;
}

.right-carousel-button {
    right: 0;
}

.carousel-item {
    flex: 0 0 19%;
    font-family: monospace;
    scroll-snap-align: start;
    display: block;
    cursor: pointer;
    padding-bottom: 2rem;
    transition: all .2s ease-in-out;
    -webkit-transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    -ms-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
}

.carousel-item img {
    object-fit: cover;
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: .5rem;
    border-radius: 7px;
    -webkit-border-radius: 7px;
    -moz-border-radius: 7px;
    -ms-border-radius: 7px;
    -o-border-radius: 7px;
}

.carousel-item .name {
    margin-bottom: .5rem;
    height: 3.5rem;
    padding: 0 .5rem;
}

.price {
    padding: 0 .5rem;
}

.carousel-item:hover {
    box-shadow: 0px 0px 10px rgba(0,0,0,.5);
    border-radius: 7px;
    -webkit-border-radius: 7px;
    -moz-border-radius: 7px;
    -ms-border-radius: 7px;
    -o-border-radius: 7px;
}

.carousel-item:hover > .name {
    color: var(--primary-color);
    text-decoration: underline;
}

.button-link {
    border: 1px solid black;
    display: block;
    padding: 10px 25px;
    text-align: center;
    border-radius: 7px;
    -webkit-border-radius: 7px;
    -moz-border-radius: 7px;
    -ms-border-radius: 7px;
    -o-border-radius: 7px;
    transition: all .3s ease-in-out;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -ms-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
}

.button-link:hover {
    background-color: black;
    color: white;
}

@media (max-width: 800px){
    .main-title {
        font-size: 1.5rem;
    }
    
    .carousel-item {
        flex: 0 0 32%;
    }
}

@media (max-width: 600px){
    .carousel-item {
        flex: 0 0 95%;
    }
}



