/* NOTE: Original style was taken from:
 https://cdn.jsdelivr.net/npm/shepherd.js@10.0.1/dist/css/shepherd.css 
 
*/

.shepherd-button {
    background: #ed8921;
    border: 0;
    border-radius: 3px;
    color: hsla(0, 0%, 100%, 1);
    cursor: pointer;
    margin-right: 0.5rem;
    padding: 0.5rem 1.5rem;
    transition: all 0.5s ease;
}

.shepherd-button:not(:disabled):not([data-shepherd-step-id^="welcome"]):hover {
    background: #fc890d;
    color: hsla(0, 0%, 100%, 0.75);
}

.shepherd-button.shepherd-button-secondary {
    background: #f1f2f3;
    color: rgba(0, 0, 0, 0.75);
}

.shepherd-button.shepherd-button-secondary:not(:disabled):hover {
    background: #d6d9db;
    color: rgba(0, 0, 0, 0.75);
}

.shepherd-button:disabled {
    cursor: not-allowed;
}

.shepherd-footer {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    display: flex;
    justify-content: flex-end;
    padding: 0 0.75rem 0.75rem;
}

.shepherd-footer .shepherd-button:last-child {
    margin-right: 0;
}

.shepherd-cancel-icon {
    background: transparent;
    border: none;
    color: hsla(0, 0%, 50%, 0.75);
    cursor: pointer;
    font-size: 2em;
    font-weight: 400;
    margin-top: 15px;
    padding: 0;
    transition: color 0.5s ease;
}

.shepherd-cancel-icon:hover {
    color: rgba(0, 0, 0, 0.75);
}

.shepherd-has-title .shepherd-content .shepherd-cancel-icon {
    color: hsla(0, 0%, 50%, 0.75);
}

.shepherd-has-title .shepherd-content .shepherd-cancel-icon:hover {
    color: rgba(0, 0, 0, 0.75);
}

.shepherd-title {
    color: rgba(255, 255, 255, 1);
    display: flex;
    flex: 1 0 auto;
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
    padding: 0;
}

.shepherd-header {
    align-items: center;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    display: flex;
    justify-content: flex-end;
    line-height: 2em;
    padding: 0.75rem 0.75rem 0;
    color: white;
}

.shepherd-has-title .shepherd-content .shepherd-header {
    background: #ed8921d1;
    padding: 1em;
}

.shepherd-text {
    color: rgba(0, 0, 0, 0.75);
    font-size: 1rem;
    line-height: 1.3em;
    padding: 0.75em;
}

.shepherd-text p {
    margin-top: 0;
}

.shepherd-text p:last-child {
    margin-bottom: 0;
}

.shepherd-content {
    border-radius: 5px;
    outline: none;
    padding: 0;
    max-height: 100vh;
    overflow: auto;
}

.shepherd-element {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    max-width: 1000px;
    opacity: 0;
    outline: none;
    transition: opacity 0.3s, visibility 0.3s;
    visibility: hidden;
    width: 100%;
    z-index: 9999;
}

.shepherd-enabled.shepherd-element {
    opacity: 1;
    visibility: visible;
}

.shepherd-element[data-popper-reference-hidden]:not(.shepherd-centered) {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.shepherd-element,
.shepherd-element *,
.shepherd-element :after,
.shepherd-element :before {
    box-sizing: border-box;
}

.shepherd-arrow,
.shepherd-arrow:before {
    height: 16px;
    position: absolute;
    width: 16px;
    z-index: -1;
}

.shepherd-arrow:before {
    background: #ed8921;
    content: "";
    transform: rotate(45deg);
}

.shepherd-element[data-popper-placement="right"] .shepherd-arrow:after {
    height: 28px;
    position: absolute;
    width: 13px;
    z-index: -1;
    transform: translateY(-25%) translateX(50%);
}

.shepherd-element[data-popper-placement="left"] .shepherd-arrow:after {
    height: 28px;
    position: absolute;
    width: 13px;
    z-index: -1;
    transform: translateY(-25%) translateX(-50%);
}

.shepherd-element[data-popper-placement="right"] .shepherd-arrow:after {
    background: white;
    content: "";
}

.shepherd-arrow:after {
    background: white;
    content: "";
}

.shepherd-element[data-popper-placement^="top"] > .shepherd-arrow {
    bottom: -8px;
}

.shepherd-element[data-popper-placement^="bottom"] > .shepherd-arrow {
    top: -8px;
}

.shepherd-element[data-popper-placement^="left"] > .shepherd-arrow {
    right: -8px;
}

.shepherd-element[data-popper-placement^="right"] > .shepherd-arrow {
    left: -8px;
}

.shepherd-element.shepherd-centered > .shepherd-arrow {
    opacity: 0;
}

.shepherd-element.shepherd-has-title[data-popper-placement^="bottom"]
    > .shepherd-arrow:before {
    background-color: #e6e6e6;
}

.shepherd-target-click-disabled.shepherd-enabled.shepherd-target,
.shepherd-target-click-disabled.shepherd-enabled.shepherd-target * {
    pointer-events: none;
}

.shepherd-modal-overlay-container {
    height: 0;
    left: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    position: fixed;
    top: 0;
    transition: all 0.3s ease-out, height 0ms 0.3s, opacity 0.3s 0ms;
    width: 100vw;
    z-index: 9997;
}

.shepherd-modal-overlay-container.shepherd-modal-is-visible {
    height: 100vh;
    opacity: 0.5;
    transform: translateZ(0);
    transition: all 0.3s ease-out, height 0s 0s, opacity 0.3s 0s;
}

.shepherd-modal-overlay-container.shepherd-modal-is-visible path {
    pointer-events: all;
}

.shepherd-element table,
.shepherd-element th,
.shepherd-element td {
    border: 1px solid black;
    border-collapse: collapse;
    padding: 5px;
    border-radius: 2px;
}

.shepherd-element table {
    width: 100%;
}

/* WELCOME - FIRST STEP */
/* WELCOME - FIRST STEP */
/* WELCOME - FIRST STEP */
/* WELCOME - FIRST STEP */
/* WELCOME - FIRST STEP */

/* Show buttones one below the other */
.shepherd-element[data-shepherd-step-id^="welcome"] .shepherd-footer {
    display: flex;
    flex-direction: column-reverse;
    align-content: center;
}

/* Update exit button design */
.shepherd-element[data-shepherd-step-id^="welcome"]
    .shepherd-footer
    button.button-jump-to-configurator {
    margin-top: 20px;
    background-color: white;
    font-style: italic;
    font-size: 0.9rem;
    color: black;
    letter-spacing: 1.02px;
    margin-bottom: 5px;
}
/* fixes margin on phone*/
@media only screen and (max-width: 500px) {
    .shepherd-element[data-shepherd-step-id^="welcome"]
        .shepherd-footer
        button.button-jump-to-configurator {
        margin-top: 20px;
        background-color: white;
        font-style: italic;
        font-size: 0.9rem;
        color: black;
        letter-spacing: 1.02px;
        margin-bottom: 50px;
    }
}

/* Update upload button image design */
.shepherd-element[data-shepherd-step-id^="welcome"]
    .shepherd-footer
    button.button-upload-image {
    background-color: #ed8921;
    background-image: url(../images/upload.png);
    background-repeat: no-repeat;
    background-position: 50% 79%;
    background-size: 24px;
    padding-top: 0.5rem;
    padding-bottom: 2rem;
    font-size: 1.2rem;
    margin-left: 7rem;
    margin-right: 7rem;
}

/* Update upload button image design on hover */
.shepherd-element[data-shepherd-step-id^="welcome"]
    .shepherd-footer
    button.button-upload-image:hover {
    background-position: 50% 70%;
    margin-left: 7.5rem;
    margin-right: 7.5rem;
}

/* Design the introduction "before image". */
.shepherd-element[data-shepherd-step-id^="welcome"] .welcome-image-before {
    border: 2px solid rgb(144, 144, 144);
    border-radius: 5px;
}

/* Design the introduction "after image". */
.shepherd-element[data-shepherd-step-id^="welcome"] .welcome-image-after {
    border: 2px solid #ed8921;
    border-radius: 5px;
}

/* POSITIONING - SECOND STEP */
/* POSITIONING - SECOND STEP */
/* POSITIONING - SECOND STEP */
/* POSITIONING - SECOND STEP */
/* POSITIONING - SECOND STEP */

/* Set the guide width to be the same as is the rigth side */
.shepherd-element[data-shepherd-step-id^="positioning"] {
    max-width: 25vw;
}

/* Set image animation for moving left/right */
.shepherd-element[data-shepherd-step-id^="positioning"]
    tr:hover
    img.should-animate {
    animation-name: move-left-to-right;
    animation-duration: 1s;
    animation-iteration-count: infinite;
}

@keyframes move-left-to-right {
    0% {
        margin-left: 0px;
    }

    10% {
        margin-left: 2px;
    }

    20% {
        margin-left: 4px;
    }

    30% {
        margin-left: 7px;
    }

    40% {
        margin-left: 4px;
    }

    50% {
        margin-left: 2px;
    }

    60% {
        margin-left: 0px;
    }

    70% {
        margin-left: 0px;
    }

    80% {
        margin-left: 0px;
    }

    90% {
        margin-left: 0px;
    }

    100% {
        margin-left: 0px;
    }
}

/* Make table from the second guide fixed (prevously it moved on animation) */
.shepherd-element[data-shepherd-step-id^="positioning"] table.fixed {
    table-layout: fixed;
}

/* Make table td from the second guide fixed (prevously it moved on animation) */
.shepherd-element[data-shepherd-step-id^="positioning"] table.fixed td {
    overflow: hidden;
}

/* CONFIGURATION - THIRD STEP */
/* CONFIGURATION - THIRD STEP */
/* CONFIGURATION - THIRD STEP */
/* CONFIGURATION - THIRD STEP */
/* CONFIGURATION - THIRD STEP */

/* Set the guide the guide widht to 40vw of screen */
.shepherd-element[data-shepherd-step-id^="creating"] {
    max-width: 40vw;
}

/* Add some padding to table data */
.shepherd-element[data-shepherd-step-id^="creating"] table td {
    padding: 5px;
}

/* Center image to the center of <td> tag. */
.shepherd-element[data-shepherd-step-id^="creating"] table td:nth-child(1) {
    text-align: center;
}

/* GOODBYE - FOURTH STEP */
/* GOODBYE - FOURTH STEP */
/* GOODBYE - FOURTH STEP */
/* GOODBYE - FOURTH STEP */
/* GOODBYE - FOURTH STEP */
/* Set the guide the guide width to 400px */
.shepherd-element[data-shepherd-step-id^="goodbye"] {
    max-width: 400px;
}
