﻿html, body {
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    font-family: "Roboto", "Helvetica", "Arial", sans-serif;
    font-size: 16px;
    height: 100%;
}

#configurator {
    display: flex;
    height: 100%;
}

#preview {
    flex: 2;
    height: 100%;
    position: relative;
}

model-viewer {
    height: 100%;
    width: 100%;
}

#sideNav {
    height: 100%;
    flex: 1;
    flex-direction: column;
    display: flex;
    overflow-y: auto;
}

    #sideNav .fields {
        flex: 1;
        margin: 50px 50px 0 0;
    }

        #sideNav .fields .field {
            margin-bottom: 20px;
            border-top: 2px solid #e8e3e3;
            padding-top: 20px;
        }

            #sideNav .fields .field .field-header {
                cursor: pointer;
                margin-bottom: 20px;
            }

            #sideNav .fields .field .field-label {
                font-size: 20px;
                color: rgb(65, 65, 65);
                margin-bottom: 10px;
            }

            #sideNav .fields .field .selection-label {
                font-weight: bold;
                color: #388659;
            }

            #sideNav .fields .field .options {
                display: flex;
                flex-wrap: wrap;
                gap: 15px;
            }

                #sideNav .fields .field .options .option {
                    cursor: pointer;
                }

            #sideNav .fields .field.text .options .option {
                padding: 10px;
                background-color: rgb(246, 246, 246);
                border: 2px solid rgb(246, 246, 246);
                border-radius: 10px;
            }

                #sideNav .fields .field.text .options .option.active {
                    border: 2px solid #388659;
                    background-color: #f3f8f5;
                }

                #sideNav .fields .field.text .options .option .label {
                    text-align: center;
                }

            #sideNav .fields .field.color .options .option {
                padding-bottom: 8px;
            }

                #sideNav .fields .field.color .options .option.active {
                    border-bottom: 3px solid #388659;
                    padding-bottom: 5px;
                }

            #sideNav .fields .field .options .option .color {
                border-radius: 50%;
                width: 45px;
                height: 45px;
            }

            #sideNav .fields .field.image .options .option {
                padding-bottom: 8px;
            }

                #sideNav .fields .field.image .options .option.active {
                    border-bottom: 3px solid #388659;
                    padding-bottom: 5px;
                }

            #sideNav .fields .field .options .option .image {
                border-radius: 50%;
                width: 45px;
                height: 45px;
                background-size: contain;
            }

@media only screen and (min-width: 992px) {
    #sideNav {
        max-width: 500px;
    }
}

@media only screen and (max-width: 991px) {
    #preview, #sideNav {
        height: 50%;
    }

    #configurator {
        display: block;
    }

    #sideNav .fields {
        margin: 0 50px 15px 50px;
    }
}

@media only screen and (max-width: 575px) {
    #sideNav .fields {
        margin: 0 25px 15px 25px;
    }
}


.progress-bar {
    z-index: 1000;
    display: block;
    width: 33%;
    height: 1.1rem;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate3d(-50%, -50%, 0);
    border-radius: 25px;
    box-shadow: 0px 3px 10px 3px rgba(0, 0, 0, 0.5), 0px 0px 5px 1px rgba(0, 0, 0, 0.6);
    border: 2px solid #388659;
    background-color: rgb(242, 242, 242);
}

    .progress-bar.hide {
        visibility: hidden;
        transition: visibility 0.3s;
    }

.update-bar {
    background-color: #388659;
    width: 0%;
    height: 100%;
    border-radius: 25px;
    float: left;
    transition: width 0.3s;
}