        /*GENERAL SECTION*/


html {
    scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

p {
    font-size: 18px;
    margin-top: 0px;
}

a {
    text-decoration: none;
}


        /*MAIN SECTION*/


#product-main {
    display: flex;
    flex-direction: row;
    position: relative;
}

#page-title {
    font-size: 30px;
    border-bottom: 2px solid gray;
}

#product-content {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-bottom: 60px;
    scroll-margin-top: 100px;

    padding-left: 15%;
    padding-right: 40px;
    max-width: 100%;
    box-sizing: border-box;
}

#product-content-pics-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding-bottom: 25px;
    border-bottom: 2px solid gray;
}


        /*INDEXLIST SECTION*/

        
#product-indexlist {
    position: fixed;
    left: 0px;
    width: 10%;
    padding-left: 40px;
    padding-top: 60px;
    z-index: 10;
}

#product-indexlist-heading {
    margin-top: 0px; 
    border-bottom: 2px solid gray;
    font-size: 20px;
}  

h3 { 
    /*only in product-indexlist*/
    color: rgb(1,128,200);
    font-size: 15.5px;
}


        /*IMAGES SECTION*/


#product-content-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#product-content-thumbnails img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
}

#product-images {
    display: flex; 
    flex-direction: row;
}

.product-content-main-image {
    padding-right: 10px;
}

#mainImage {
    width: 415px;
    height: 415px;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
}


        /*BUTTONS SECTION*/


#all-btn-content {
    display: flex; 
    flex-direction: column; 
    padding-left: 50px; 
    text-align: center; 
    align-items: center; 
    justify-content: center;
    gap: 20px;
}

.standard-btn {
    display: inline-block;
    padding: 15px 25px;
    background-color: rgb(1,128,200);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 300;  /*modificato rispetto altre pagine*/
    font-size: 20px;
  
    transition: 0.2s;

}

.standard-btn:hover {
    background-color: rgb(75,73,108);
    color: grey;
}

#product-content-shop-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}


        /*DOCUMENTATION CSS*/


li {
    font-size: 18px;
    margin-bottom: 10px;
}

ul {
    margin-top: 0px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
} 

th, td {
    border: 1px solid #ccc;
    padding: 12px;
    text-align: left;
}
th {
    /*background-color: #f4f4f4;*/
    font-weight: bold;
}


        /*SCROLL BOX CSS*/


#scroll-box {
    height: 415px;
    width: 90px;
    overflow-y: scroll;
}

#scroll-box::-webkit-scrollbar {
  display: none;
}

/* Per Firefox */
#scroll-box {
  scrollbar-width: none;
}

/* Per altri browser: fallback */
#scroll-box {
  -ms-overflow-style: none; /* IE e Edge legacy */
}


        /* PHONE RESPONSIVE CAROUSEL */


.carousel {
    width: 100vw;
    height: 500px;
    overflow: hidden;
    position: relative;
}
.slides {
    display: flex;
    transition: transform 0.3s ease;
    height: 100%;
}
.slide {
    min-width: 100vw;
    height: 100%;
    background-size: cover;
    background-position: center;
}
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    user-select: none;
}
.arrow.left {
    left: 10px;
}
.arrow.right {
    right: 10px;
}


        /* RESPONSIVE CSS */


@media (max-width: 1150px) {
    #product-indexlist {
        display: none;
    }

    #product-content {
        padding-left: 40px;
    }
}

@media (max-width: 1000px) {
    #product-content-pics-btn {
        flex-direction: column;
    }
}

@media (max-width: 440px) {
    #product-content-btn {
        flex-direction: column;
    }

}

@media (min-width: 590px) {
    .carousel {
        display: none;
    }
}


@media (max-width: 590px) {
    #product-images {
        display: none;
    }

    #page-title {
        border: none;
    }

    #all-btn-content {
        padding-left: 0px;
    } 
}