@font-face {
    font-family: 'WorkSansExtraBold';
    src: url('/fonts/WorkSans-ExtraBold.ttf');
}
:root {
    --primaryColor: #ff582c;
    --colorWhite: #fff; 
    --fontPrimary: 'WorkSansExtraBold';
}

* {
    font-family: sans-serif;
    box-sizing: border-box;
}
body {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
#kehioSvgEditor {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
#kehioSvgEditor .wrapper {
    height: 100%;
    width: 100%;
    padding: 25px 15px;
}
#kehioSvgEditor .title {
    font-size: 20px;
    color: var(--primaryColor);
    font-weight: 800;
    text-align: center;
    font-weight: bolder;
}
.footer_copy{
    margin-bottom: 15px;
    position: relative;
    z-index: 9999;
    text-align: center;
    margin-top: 50px;
}
.footer_copy a{
    color: var(--primaryColor);
    text-decoration: none;
}
#kehioSvgEditor .btn-primary{

}
#kehioSvgEditor input {
    font-size: 14px;
    border: 1px solid transparent;
    border-radius: 3px;
}
#kehioSvgEditor .title img {
    max-height: 70px;
    margin-bottom: 20px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.is-visible #kehioSvgEditor .title img {
    opacity: 1;
}
#kehioSvgEditor .box-wrapper {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
    padding: 35px;
    width: 100%;
    background-color: #f5f5f5;
    min-height: 75vh;
    position: relative;
}
#kehioSvgEditor::before {
    content: "";
    /* background-image: url('./pointskehiobuilder.svg'); */
    background-image: url('./pointskehiobuildersvgeditor.svg');
    background-repeat: no-repeat;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    z-index: -1;
    left: 0;    
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.is-visible #kehioSvgEditor::before {
    opacity: 1;
}


#kehioSvgEditor .row {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}
#kehioSvgEditor .row .button-group {
    display: flex;
    gap: 30px;
}
#kehioSvgEditor .load_svg {
    display: flex;
    z-index: 2;
    gap: unset !important;
}
#kehioSvgEditor button {
    border: none;
    border-radius: 3px;
    padding: 1rem 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 17px;
    flex: 1;
    cursor: pointer;
}

#upload-svg {
    position: relative;
    font-size: 0;
    min-height: 52px;
    flex: 1;
    text-transform: uppercase;
}


#upload-svg::before {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    content: "Upload SVG";
    display: inline-block;
    border-radius: 3px;
    padding: 1rem 30px;
    outline: none;
    white-space: nowrap;
    -webkit-user-select: none;
    cursor: pointer;
    font-weight: 700;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    background: var(--primaryColor);
    transition: background 0.3s ease-in-out;
}
#upload-svg:hover::before {
    background: #ff653c;
}
#kehioSvgEditor .edit-zone {
    display: flex;
    margin: 30px 0;
    padding-top: 30px;
    gap: 30px;
}

#kehioSvgEditor .edit-zone-preview #svg-display {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    max-width: 100%;
}

#kehioSvgEditor .edit-zone-preview #svg-display svg {
    max-width: 500px;
    max-height: 500px;
}

#kehioSvgEditor .btn-primary {
    background: var(--primaryColor);
    color: #fff;
    transition: background .3s ease-in-out;
}

#kehioSvgEditor .btn-primary:hover {
    background: #ff653c;
    box-shadow: 0px 0px 0px #0000004b
}
#kehioSvgEditor .box-wrapper #drop-zone {
    padding: 26px 0;
    text-align: center;
    border: 2px dashed var(--primaryColor);
    border-radius: 3px;
    outline-offset: -10px;   
    outline-color: var(--primaryColor); 
}


#kehioSvgEditor .load_svg input {
    padding: 1rem 30px;
    outline: none;
    z-index: 1;
    background-color: #fff;
    border: 1px solid #fff;
}

#kehioSvgEditor .colors-wrapper {
    display: flex;
    flex-wrap: wrap;
}

#kehioSvgEditor .load_svg button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

#kehioSvgEditor .colors-wrapper input {
    padding: 1rem 30px;
    padding-right: 5px;
    background-color: #fff;    
}

#kehioSvgEditor .color_given input {
    background-color: #EBEBE4;
}

#kehioSvgEditor .colors_view > div {
    padding: 0 0px;
}
#kehioSvgEditor .colors_view h5 {
    font-size: 20px;
    background: none;
    line-height: normal;
    font-weight: 600;
    color: #4C4C4D;
    margin: 0;
    padding: 10px 0px;
}

#kehioSvgEditor .color_main {
    margin-bottom: 8px;
    display: flex;    
}

#kehioSvgEditor .original-color {
    width: 50.17px;
    height: 50.17px;
    display: inline-block;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

#kehioSvgEditor .color-original input {
    width: calc(100% - 50.17px);
}

#kehioSvgEditor .color_field {
    display: inline-block;
    position: relative;
    width: 100%;
}
#kehioSvgEditor #export {
    text-align: center;
    padding-top: 1.5rem;
    padding-top: 0.3rem;
}
#kehioSvgEditor #export button {
    width: 100%;
}
#kehioSvgEditor .color_field span {
    position: absolute;
    width: 50.17px;
    height: 50.17px;
    right: 0;
    top: 0;
    z-index: 1;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}
#kehioSvgEditor .color_field .color-input {
    position: absolute;
    width: 50.17px;
    height: 100%;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    border: 0;
    color: inherit;
    text-indent: -1000px;
    padding: 0 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
}

.enter_svg_popup.popup {
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    padding-top: 7%;
    background: rgba(0,0,0,.5);
    z-index: 999;
    position: fixed;
    display: none;
}
.enter_svg_popup.popup.active {
    display: block;
}
.enter_svg_popup.popup .popup-inner {
    max-width: 600px;
    width: 95%;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border: 0px solid;
    border-radius: 6px;
    position: relative;
    text-align: center;
}
.enter_svg_popup.popup h4 {
    font-size: 24px;
}
.enter_svg_popup.popup textarea {
    width: 100%;
    height: 350px;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
}
.enter_svg_popup.popup button {
    display: inline-block;
    padding: 11px 33px;
    font-size: 15px;
    font-weight: 500;
    height: unset;
    border-radius: 3px;
    border: none;
    cursor: pointer;
}
.enter_svg_popup.popup #close-svg-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}


/* Error Popup Design */
.error_svg_popup  {
    background: rgba(0,0,0,.4);
    position: fixed;
    z-index: 1060;
    inset: 0;
    box-sizing: border-box;
    height: 100%;
    padding: 0.625em;
    overflow-x: hidden;
    transition: background-color .1s;
    -webkit-overflow-scrolling: touch;
    display: none;
    align-items: center;
    justify-content: center;
}
.error_svg_popup.active {
    display: flex;
}
.error_popup_wrapper {
    grid-column: 2;
    grid-row: 2;
    place-self: center center;
    position: relative;
    box-sizing: border-box;
    grid-template-columns: minmax(0, 100%);
    width: 32em;
    max-width: 100%;
    padding: 0 0 1.25em;
    border: none;
    border-radius: 5px;
    background: #fff;
    color: #545454;
    font-family: inherit;
    font-size: 1rem;
    animation: errorPopupShow .3s;
    text-align: center;
}
.error-icon-show {
    display: flex;
    animation: animateError .5s;
    border-color: #f27474;
    color: #f27474;

    position: relative;
    box-sizing: content-box;
    justify-content: center;
    width: 5em;
    height: 5em;
    margin: 2.5em auto 0.6em;
    border: 0.25em solid #f27474;
    border-radius: 50%;
    font-family: inherit;
    border-color: #000;
    line-height: 5em;
    cursor: default;
    user-select: none;
}
.error-icon-show .error_icon_mark {
    position: relative;
    flex-grow: 1;
    height: 0;
    animation: animateErrorMark .5s;
}
.error_svg_popup .error-title {
    position: relative;
    max-width: 100%;
    margin: 0;
    padding: 0.8em 1em 0;
    font-size: 1.5em;
    font-weight: 600;
    text-align: center;
    text-transform: none;
    word-wrap: break-word;
    color: #545454;
}
.error-icon-show span {
    display: block;
    position: absolute;
    top: 50%;
    width: 2.9375em;
    height: 0.3125em;
    background-color: #f27474;
}
.error_svg_popup button {
    border: 0;
    border-radius: 0.25em;
    font-size: 1em;
    margin: 0.3125em;
    padding: 0.625em 1.1em;
    transition: box-shadow .1s;
    box-shadow: 0 0 0 3px rgba(0,0,0,0);
    font-weight: 500;
    margin-top: 20px;
    cursor: pointer;
}
.error-icon-show .error_icon_mark-line-left {
    left: 1.0625em;
    transform: rotate(45deg);
}
.error-icon-show .error_icon_mark-line-right {
    right: 1em;
    transform: rotate(-45deg);
}

@media screen and (max-width: 468px){
    #kehioSvgEditor .box-wrapper {
        padding: 15px;
    }
    #kehioSvgEditor .row {
        flex-direction: column;
    }   
    #kehioSvgEditor .row .button-group {
        flex-direction: column;
        width: 100%;
    } 
    #kehioSvgEditor .edit-zone {
        flex-direction: column;
    }
    #kehioSvgEditor .color_main {
        width: 100%;
    }
    #kehioSvgEditor .color_field {
        width: 100%;
    }
    #kehioSvgEditor .colors_view > div {
        display: flex;
        flex-direction: column;
    }
    #kehioSvgEditor .colors-wrapper {
        flex-direction: column;
    }
}
@media screen and (min-width: 768px){
    #kehioSvgEditor .box-wrapper {
        min-width: 750px;
    }
    #kehioSvgEditor .row .button-group {
        width: 55%;
    }
    #kehioSvgEditor .row .load_svg {
        width: 45%;
    }
    #kehioSvgEditor .edit-zone-preview {
        width: 55%;
    }
    #kehioSvgEditor .colors_view {
        flex: 0 0 50%;
        max-width: 50%;
    }
    #kehioSvgEditor .edit-zone-editor {
        width: 45%;
    }
    #kehioSvgEditor .color_given {
        margin-right: 5px;
    }
    
    #kehioSvgEditor .color_change {
        margin-left: 5px;
    }
}
@keyframes animateError {
    0%{
        transform: rotateX(100deg);
        opacity: 0;  
    }
    100% {
        transform: rotateX(0deg);
        opacity: 1;
    }
}

@keyframes animateErrorMark {
    0% {
        margin-top: 1.625em;
        transform: scale(0.4);
        opacity: 0;
    }
    50% {
        margin-top: 1.625em;
        transform: scale(0.4);
        opacity: 0;
    }
    80% {
        margin-top: -0.375em;
        transform: scale(1.15);
    }
    100% {
        margin-top: 0;
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes errorPopupShow {
    0% {
        transform: scale(0.7);
    }
    
    45% {
        transform: scale(1.05);
    }
    
    80% {
        transform: scale(0.95);
    }
    
    100% {
        transform: scale(1);
    }
}
/* Hide the default checkbox */
.checkbox-container input {
  opacity: 0;
  position: absolute;
}

/* Create a custom box for the checkbox */
.checkbox-container .checkmark {
  height: 18px;
  width: 18px;
  background-color: #fff;
  border: 2px solid #c4cdd5;
  border-radius: 4px;
  display: inline-block;
  position: relative;
  top: 0;
  left: 0;
  transition: background-color 0.1s, border-color 0.1s;
}

/* When the checkbox is checked */
.checkbox-container input:checked + .checkmark {
  background-color: #000000;
  border-color: #000000;
}

/* Create the checkmark/indicator */
.checkbox-container .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.checkbox-container input:checked + .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.checkbox-container .checkmark:after {
      left: 4px;
    top: 0px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg)
}

/* Add hover styles for the custom checkbox */
.checkbox-container:hover input ~ .checkmark {
/*  border-color: #b0b7c3;*/
}

/* Add focus styles for the custom checkbox */
.checkbox-container input:focus + .checkmark {
/*  border-color: #5c6ac4;
  box-shadow: 0 0 0 1px #5c6ac4;*/
}
#svg-size-options label{
    cursor: pointer;
}
#svg-size-options{
    text-align: center;
    margin-top: 10px;
}
.txt_lable {
    font-size: 0.81rem;
    color: #222222;
    display: inline-block;
    position: relative;
    bottom: 5px;
}
label.checkbox-container {
    margin-top: 5px;
}