﻿#configurator {
    display: flex;
    align-items: center;
    height: 100%;
}

#preview {
    position: relative;
    width: 100%;
    height: 90vh;
}

#preview-images {
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
}

#preview-images img {
    min-height: 100%;
    width: 100%;
    max-width: 700px;
    object-fit: contain;
    position: absolute;
}

#texture {
    position: relative;
    padding: 1rem;
    min-width: 150px;
}

#texture-images {
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#texture-images .image {
    border-radius: 50%;
    width: 65px;
    height: 65px;
    background-size: cover;
    background-position: center;
    border: 1px #be797245 solid;
}

.scale {
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    -ms-transition: all 0.2s ease-in-out;
}

.scale:hover {
    -webkit-transform: scale(3);
    transform: scale(3);
    -ms-transform: scale(3); /* IE 9 */
    -webkit-transform: scale(3); /* Safari and Chrome */
}

#sideNav {
    width: 100%;
    overflow-y: auto;
    padding: 0 1rem;
    z-index: 1;
}

#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: #343434;
    margin-bottom: 10px;
}

#sideNav .fields .field .selection-label {
    font-weight: bold;
    color: #be7972;
}

#sideNav .fields .field .options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    max-height: 260px;
    overflow: scroll;
}

#sideNav .fields .field .options .option {
    cursor: pointer;
}

#sideNav .fields .field.text .options .option {
    flex: 1;
    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 #be7972;
    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 #be7972;
    padding-bottom: 5px;
}

#sideNav .fields .field .options .option .color {
    border-radius: 50%;
    width: 45px;
    height: 45px;
    border: 1px #be797245 solid;
}

#sideNav .fields .field.image .options .option {
    padding-bottom: 8px;
}

#sideNav .fields .field.image .options .option.active {
    border-bottom: 3px solid #be7972;
    padding-bottom: 5px;
}

#sideNav .fields .field .options .option .image {
    border-radius: 50%;
    width: 45px;
    height: 45px;
    background-size: contain;
    border: 1px #be797245 solid;
}

@media only screen and (min-width: 1200px) {
    #preview {
        min-height: 65vw;
    }
}

@media only screen and (min-width: 992px) {
    #sideNav {
        max-width: 500px;
    }
}

@media only screen and (max-width: 991px) {
    #texture-images {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    #configurator {
        display: block;
    }
}

@media only screen and (max-width: 575px) {
    #sideNav .fields {
        margin: 0;
    }
}

/*!----------  SPINNER LOADER ----------*/
.lds-ring {
    display: inline-block;
    position: relative;
    left: 50%;
    top: 50%;
    margin: -40px 0 0 -40px;
    width: 80px;
    height: 80px;
}

.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 8px solid #c79288;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #c79288 transparent transparent transparent;
}

.lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}

@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
