#mcw-editor {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /*Rompe canvas responsive*/

    gap: 5vh;
}

.mcw-editor-container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.mcw-canvas-container {
    position: relative;
    box-shadow: 0 5px 5px 0 lightgray;
}

.mcw-canvas-wrapper {
    overflow: hidden;
}

.mcw-furniture-canvas-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

.mcw-editor-icons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.mcw-editor-icons-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    background: white;
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 2px 2px 2px lightgray;
}

.mcw-editor-icons-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 0 10px 0 rgb(226, 226, 226);
    box-sizing: border-box;
    
    z-index: 100;

    display: flex;
    justify-content: center;
    align-items: center;
}

.mcw-editor-icons-wrapper-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    padding: 20px 0;
    margin: 0 -20px;
    overflow-x: scroll;
    box-sizing: border-box;
    width: 90vw;
}

/* Webkit (Chrome, Safari) */
.mcw-editor-icons-wrapper-mobile::-webkit-scrollbar {
    height: 8px;
}

.mcw-editor-icons-wrapper-mobile::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.mcw-editor-icons-wrapper-mobile::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Firefox */
.mcw-editor-icons-wrapper-mobile {
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.mcw-editor-icon {
    width: 35px;
    height: 35px;
    padding: 5px;
    box-sizing: border-box;
}

.mcw-dropdown-item:active {
    transition: none !important;
    animation: none !important;
    background-color: lightgray !important;
    color: inherit;
}

.mcw-dropdown-item:hover {
    background-color: rgb(233, 233, 233);
    color: inherit;
}

.mcw-dropdown-item:focus {
    outline: none !important;
    box-shadow: none !important;
}

.mcw-editor-opacity {
    position: absolute;
    bottom: -30px;
    width: 135px !important;
}

.mcw-extendable-icon-transition {
    transition: 100ms ease-in-out;
}

.mcw-editor-ruler-x {
    position: absolute;
    
    width: 200%;
    height: 1px;
    z-index: 1500;

    /*background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='black' stroke-width='25' stroke-dasharray='2%2c 6' stroke-dashoffset='28' stroke-linecap='butt'/%3e%3c/svg%3e");*/
    background: gray;
    opacity: 0.75;

    pointer-events: none;

    transform: translate(-50%, -50%);
}

.mcw-editor-ruler-y {
    position: absolute;
    
    height: 200%;
    width: 1px;
    z-index: 1500;

    /*background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='black' stroke-width='25' stroke-dasharray='2%2c 6' stroke-dashoffset='28' stroke-linecap='butt'/%3e%3c/svg%3e");*/
    background: gray;
    opacity: 0.75;
    
    pointer-events: none;

    transform: translate(-50%, -50%);
}

.mcw-editor-ruler-x-text {
    position: absolute;
    right: -35px;
    transform: translateY(50%) rotate(90deg);
    pointer-events: none;
}

.mcw-editor-ruler-y-text {
    position: absolute;
    bottom: -30px;
    transform: translateX(-100%);
    pointer-events: none;
}

.mcw-ruler-selected {
    background: lightgray;
    color: white !important;
    border-radius: 10px;
    box-shadow: 0 2px 0 0 gray;
}

.mcw-ruler-selected:hover {
    color: rgb(240, 240, 240) !important;
}

.mcw-extendable-icon {
    color: white !important;
}

.mcw-extendable-icon:hover {
    color: rgb(230, 230, 230) !important;
}

.mcw-editor-popup-close-button {
    position: fixed;
    top: 50px;
    right: 50px;
    width: 35px;
    height: 35px;
    color: white;
    animation: fadein 300ms, scalein 300ms;

    z-index: 4000;
}

.mcw-editor-popup-close-button:hover {
    cursor: pointer;
    background: rgb(53, 53, 53);
}

.mcw-options {
    width: 100%;
    margin: 5%;
    animation: fadein 300ms, scalein 300ms;
}

.mcw-option-container {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.mcw-option-container > div:first-child {
    padding-top: 100%;
}

.mcw-option {
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

.mcw-option:hover {
    transition: 150ms;
}

.mcw-option:hover {
    cursor: pointer;
    transform: translate(-50%, -50%) scale(1.1);
}

.mcw-options-arrow {
    position: absolute;
    top: calc(50% - 17px);
    width: 35px;
    height: 35px;
    color: white;
    z-index: 1000;
    padding: 3px;
}

.mcw-options-arrow:hover {
    cursor: pointer;
    background: rgb(53, 53, 53);
}

.mcw-options-arrow-left {
    left: 40px;
}

.mcw-options-arrow-right {
    right: 40px;
}

.mcw-composition-name-popup {
    position: relative;

    background: white;
    padding: 40px;
    width: fit-content;

    display: flex;
    justify-content: flex-start;
    flex-direction: column;

    gap: 15px;
}

.mcw-composition-name-form {
    display: flex;
    justify-content: flex-start;
    align-items: center;

    gap: 30px;
}

.mcw-tutorial {
    position: relative;
    width: 70vw;
    max-width: 1000px;
    padding: 35px 35px 25px 35px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    gap: 1em;
}

.mcw-tutorial-header {
    display: flex;
    flex-direction: column;
    gap: .075em;
    margin-bottom: 0.5em;
}

.mcw-tutorial-media-container {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mcw-tutorial-media {
    max-height: 400px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.mcw-tutorial-previous,
.mcw-tutorial-next {
    background: #353535;
}
.mcw-tutorial-previous:hover,
.mcw-tutorial-next:hover {
    background: black;
    color: lightgray;
}

.mcw-tutorial-footer {
    display: grid;
    grid-template-columns: 20% auto 20%;

    width: 100%;
    width: 100%;
    gap: 10px;
    margin-top: 2em;
}

.mcw-tutorial-dots {
    gap: 10px;
}

.mcw-tutorial-dot {
    color: lightgray;
    transition: 250ms;
}

.mcw-tutorial-active-dot {
    color: darkgoldenrod;
    transform: scale(1.2);
}

.mcw-tutorial-dot:hover {
    cursor: pointer;
    transform: scale(1.2);
}

.mcw-editor-selector-wallpaper {
    position: relative;

    overflow: hidden;
    height: 100%;
    aspect-ratio: 2 / 1;

    box-shadow: 0 3px 2px 0 rgba(100, 100, 100, 0.8);
    transition: 250ms; 
}

.mcw-editor-selector-wallpaper:hover {
    cursor: pointer;
    box-shadow: 0 5px 7px 2px rgba(100, 100, 100, 0.8);
}

.mcw-editor-selector-wallpaper-selected {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.mcw-editor-selector-wallpaper > img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: bottom;
}

@media (orientation: portrait) {
    .mcw-tutorial {
        width: auto;
        max-width: 97vw;
        padding: 20px 20px 20px 20px;
    }

    .mcw-tutorial-footer {
        grid-template-columns: 35% auto 35%;
    }
}