/* onScreen Rule MUST be on TOP */
.onScreen{
    transition: none !important;
    border: 5px solid green;
    box-shadow: 0 0 20px #00ff0080;
}

@media screen and (max-width: 500px) {
    .onScreen{
        border: none;
        box-shadow: none;
    }
}
button {cursor: pointer;}
.popup.show{display: block;}
.popup{
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
    padding: 30px 7%;
    background-color: white;
    color: #131a29;
    box-shadow: 0px 5px 13px 0px #0000008c;
    border-radius: 10px;
    font-size: 17px;
    font-weight: normal;
    z-index: 99;
}
.popupContent.center{
    text-align: center;
}
.popupContent{
    z-index: 3;
}
.popup h2{
    font-family: ZainBold;
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 15px;
}
.popup button{
    border-radius: 5px;
    padding: 5px 25px;
    background: #ffdcae;
    border: 1px solid #adada3;
    cursor: pointer;
    font-family: Zain;
    font-size: 20px;
}
.closePopupBtn.show{display: block;}
.closePopupBtn{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #00000046;
    z-index: 18;
}
.popupDelBtn{
    background-color: #df5b5b !important;
    color: white;
    float: right;
}
#popup3 img{
    width: 200px;
    height: 300px;
    display: block;
    margin: auto;
    margin-bottom: 25px;
    object-fit: cover;
}
#sidebar{
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    background-color: white;
    overflow: clip;
    z-index: 10;
}
#sidebar ::-webkit-scrollbar{width: 7px;}
#sidebar ::-webkit-scrollbar-thumb{background-color: #3e3e71;}

#sidebarBtns{
    background-color: white;
    width: 80px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    text-align: center;
}
#sidebarBtns>hr{margin-top: 40px; border: 1px solid #00000026;}
.closeSideBtn:hover{background-color: #00000046;}
.closeSideBtn>img{width: 37px;}
.closeSideBtn{
    position: absolute;
    top: 10px;
    right: 15px;
    padding: 3px 0;
    width: 50px;
    background: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

.sideBtn:focus-visible{outline: none;}
.sideBtn:hover>.btnIcon{background-color: #F4F4F4;}
.sideBtn.open>.btnIcon{
    background-color: #E2E2FF;
}
.sideBtn:first-child{margin-top: 20px;}
.sideBtn{
    background: white;
    border: none;
    text-wrap-mode: nowrap;
    margin-top: 40px;
    font-family: Zain;
    cursor: pointer;
}
.sideBtn>.btnIcon{
    width: 55px;
    height: 55px;
    margin: auto;
    align-content: center;
    border-radius: 5px;
}
.sideBtn>h4 {
    margin-top: 10px;
}
#editor.open, #uploader.open{display: block;}
#editor, #uploader{
    display: none;
    font-family: Zain;
    position: relative;
    top: 0;
    max-width: 400px;
    width: calc(100vw - 80px);
    height: calc(100vh - 40px);
    padding: 20px;
    margin-left: 80px;
    text-align: center;
    background-color: #E2E2FF;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    overflow: clip;
    overflow-y: auto;
}
#editorBackground>div>input:nth-child(2){
    width: 106px;
    height: auto;
}

#editor *, #uploader *{
    font-family: Zain;
    font-size: 14px;
    margin: auto;
}
#editor h2, #uploader h2{
    width: calc(100% + 40px);
    margin-left: -20px;
    padding-bottom: 15px;
    font-size: 25px;
    font-weight: 400;
    border-bottom: 1px solid #00000033;
}
#editor h3, #uploader h3{
    width: fit-content;
    font-family: ZainBold;
    font-weight: 700;
    font-size: 19px;
    margin: auto;
    margin-bottom: 10px;
    margin-top: 15px;
    border-bottom: 1px solid #00000033;
    padding: 0 20px;
}
#editor select:focus-visible{outline: none;}
#editor select{
    border-radius: 7px;
    width: 40%;
    height: 40px;
    padding: 3px 5px;
    margin-right: 10px;
    text-align: center;
    border: none;
    background: white;
    box-shadow: 10px 0px white;
}
#changeThemeBtn{
    width: 60% !important;
}
#editor button.red, #uploaderAll>button{
    border: none;
    border-radius: 5px;
    color: white;
    padding: 5px 22px;
    background: #CA4F35;
    cursor: pointer;
    margin: 20px 10px;
}
#editor .saveBtn{
    display: block;
    border: none;
    border-radius: 5px;
    color: white;
    padding: 5px 22px;
    background: #0066FF;
    cursor: pointer;  
}
#editor .sideBtn{
    background: none;
    margin: 0 10%;
    padding: 10px 0px;
    width: 50px;
    height: 40px;
}
#editor .sideBtn>h4{
    font-weight: normal;
    margin-top: 5px;
}
#editor .colorContainer{
    border-radius: 7px;
    width: 50%;
    padding: 5px 10px;
    padding-right: 20px;
    display: flex;
    margin-bottom: 15px;
}
#editor input[type="color"]{
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100px;
    height: 35px;
    border: none;
    background-color: white;
    cursor: pointer;
}

#editor input[type="color"]::-webkit-color-swatch{
    border-radius: 5px;
}

#editorFont select{
    margin: 5px auto;
    width: 46%;
}
.selectionBtn:last-child{padding-left: 15px !important;}
.selectionBtn:hover {
    background-color: white;
    border-radius: 6px;
}
.selectionBtn{
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    vertical-align: middle;
}
.colorContainer label{width: 50px;}
.colorContainer{
    background-color: white;
}
#editorWarna{margin-bottom: 25px;}
#editorWarna>div{
    display: flex;
    gap: 15px;
    margin: 0;
    margin-bottom: 5px;
    justify-content: center;
}
#editorWarna>div>select{
    margin: 0;
}
#editorWarna .colorContainer{
    margin: 0;
    width: unset;
    height: 40px;
    padding: 0px 10px;
}
#editorPart>label{
    margin-top: 20px;
    display: block;
}
#editorPart .sideBtn>h4{transform: translateX(-16%);}
#editorPart .sideBtn{
    padding: 7px 0;
    margin-top: 5px;
}
#editorPart button>img{
    vertical-align: middle;
}

#uploader>button:hover:not(.closeSideBtn){
    background-color: #71291a;
}
#uploader>button:not(.closeSideBtn){
    padding: 0 20px;
    margin-top: 10px;
    margin-bottom: 20px;
    height: 40px;
    border: white;
    border-radius: 7px;
    background-color: #0066FF;
    color: white;
    cursor: pointer;
    font-weight: 800;
    letter-spacing: 1px;
}
/* uploader preview */
.previewPhoto{
    position: relative;
}
.previewPhoto .overlayBtn:hover{ 
    background-color: #71291a;
}
.previewPhoto .overlayBtn{
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 40px;
    border: white;
    border-radius: 7px;
    background-color: #CA4F35;
    color: white;
    cursor: pointer;
    font-weight: 800;
    letter-spacing: 1px;
}
#galleryPreview .overlayBtn:last-child, #parts_bgPreview .overlayBtn:last-child{
    /* overlay Btn for gallery and pars_bgPreview */
    width: max-content;
    padding: 0 15px;
}
.previewPhoto .delBtn{
    position: absolute;
    top: 3px;
    right: 3px;
    width: 25px;
    height: 25px;
    border: none !important;
    background: none;
    padding: 0;
    cursor: pointer;
}
.previewPhoto .delBtn:hover{
    background-color: #7e3a3a;
}
.previewPhoto .delBtn>img{
    width: 24px !important;
    height: 24px !important;
    border: none;
    border-radius: 5px;
    filter: drop-shadow(2px 4px 6px black);
}
.previewPhoto img{
    width: 50%;
    height: 180px;
    max-width: 160px;
    object-fit: cover;
    border-radius: 8px;
    filter: brightness(0.7);
}
.previewPhoto.multiple{
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    flex-direction: row;
    overflow-x: scroll;
}
.previewPhoto.multiple>div{
    position: relative;
}
.previewPhoto.multiple img{width: 150px;}
.previewPhoto.multiple::-webkit-scrollbar{
    height: 8px;
}
.previewPhoto .blank{
    width: 160px;
    height: 185px;
    margin-bottom: 7px !important;
    background-color: #b8b8b8;
}

#popupUpload{
    width: 40%;
    min-width: 300px;
}

/* drag and drop */
.drag-drop{
    border: 2px dashed #cccccc;
    position: relative;
    font-family: 'futura-light';
    padding: 20px;
    width: auto;
    cursor: pointer;
}
.drag-drop:hover, .drag-drop.drag-over{
    background-color: #eeeeee;
}
.drag-drop>.material-icons-outlined{
    font-size: 70px;
    position: unset !important;
    float: left;
    margin-top: 5px;
    margin-right: 20px;
    color: #cccccc;
}
.drag-drop>h2{
    font-size:20px;
    font-family: 'futura-light';
    font-weight: normal;
}
.drag-drop>h3{
    font-size:15px;
    font-family: 'futura-light';
    font-weight: normal;
    margin-top: -20px;
}
.drag-drop>.plus-sign{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 8%;
    font-size: 40px;
    font-family: 'futura-light';
    color: #cccccc;
}
.hidden-file{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    display:block;
}
.upload-teks{display: none;}
.upload-teks>.material-icons-outlined, .upload-teks>.material-icons{
    position: unset;
    padding: unset;
    margin-top: -3px;
    float: left;
    margin-right: 10px;
}
.upload-teks.empty{ display: block; }
.upload-teks.error{color: #ec1b2f }

/* form upload ketika file berhasil diupload */
.material-icons-outlined.filled{display: none;}
.filled label>.drag-drop{ border-color: #0079f7; }
.filled label>.drag-drop>.material-icons-outlined.filled{ display:block; color: #0079f7; }
.filled label>.drag-drop>.material-icons-outlined.empty{ display: none;}
.filled label>.drag-drop>.plus-sign{display: none; }
.filled label>.drag-drop>h2{ margin-top:29px;}
.filled label>.drag-drop>h3{ display:none;}
.filled p.filled{ display:block;}
.filled p.empty{ display:none;}

/* form upload ketika file gagal upload */
.material-icons-outlined.error{display: none;}
.error label>.drag-drop{ border-color: #ec1b2f; }
.error label>.drag-drop>.material-icons-outlined.filled{ display:block; color: #ec1b2f; }
.error label>.drag-drop>.material-icons-outlined.empty{ display: none;}
.error label>.drag-drop>h2{ margin-top:29px;}
.error label>.drag-drop>h3{ display:none;}
.error p.error{ display:block;}
.error p.empty{ display:none;}

.invitation>div:nth-last-child(-n+2), .invitation>div:not(.full){
    scroll-snap-align: center !important;
}
.invitation {
    scale: 99%;
    height: 100vh;
    scroll-snap-type: y mandatory;
}
#showOnScreenMark {
    vertical-align: -2px;
}
body{
    padding-right: 0;
}
@media screen and (max-width: 650px) {
    body{padding-bottom: 0 !important; height: 100vh;}
    .invitation {
        top: -12vh;
        scale: 77%;
        width: 102vw;
        left: -2vw;
        overflow-y: scroll;
        overflow-x: clip;
        aspect-ratio: 9/16;
        padding-bottom: 50px;
        transition: all 0.2s;
    }
    .invitation.open {
        top: -18vh;
        scale: 66%;
    }
    #sidebar{background: none;}
    #editor, #uploader{
        position: fixed;
        width: 90vw;
        height: 20vh;
        margin: 0;
        top: unset;
        bottom: 120px;
        border-radius: 10px 10px 0 0;
        background-color: #e2e2ffd3;
    }
    #sidebarBtns{
        bottom: 70px;
        left: 0;
        top: unset;
        right: unset;
        width: 100vw;
        height: 50px;
        z-index: 11;
    }
    #sidebarBtns>hr{border: none;}
    .sideBtn>h4{
        margin-top: 0px !important;
        font-size: 13px;
    }
    .sideBtn>.btnIcon{
        width: 30px;
        height: 30px;
    }
    .sideBtn{
        margin-top: 3px !important;
        height: 30px;
        padding: 0;
        margin: 0 15px;
    }
    .btnIcon>img {width: 18px;}
    .closeSideBtn{
        top: 0;
        right: 15px;
        left: unset;
    }
    #editor .colorContainer {
        height: 30px;
        margin-bottom: 0;
    }
    #editor input[type="color"] {height: 30px;}
    #editor *, #uploader *{font-size: 13px;}
    #editor select{height: 30px;}
    #editor h2, #uploader h2{
        font-size: 18px;
        padding-bottom: 5px;
        margin-top: -10px;
    }
    #editor h3{
        font-size: 15px;
        margin: 3px auto;
    }
    #editorPart>label {
        margin-top: 5px;
    }
    #editor button.red, #uploaderAll>button {
        height: 30px;
        margin: 3px;
    }
    .previewPhoto .overlayBtn{font-weight: 400;}
    .popup{font-size: 13px;}
    .popup img{width: 40px; vertical-align: 13px; margin-right: -10px;}
    .drag-drop>h2 {font-size: 16px;}
    .drag-drop{padding-right: 50px;}
    .previewPhoto img, .previewPhoto .blank{
        width: 100px !important;
        height: 140px;
    }
    div#divScreenMark {display: none;}
}