PREVIEW{
    display: block;
    position: relative;
    float: left; overflow: hidden;
    width: calc(100% - 260px);
    min-height: 1px;
}
buildercontent PAGE{
    display: block;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 500px;
    max-width: 900px;
    margin: 50px;
    border: 2px solid black;
    border-radius: 10px;
    padding: 5px;
    box-shadow:
        0 0 8px rgba(120, 200, 255, 0.35),
        0 0 12px rgba(120, 200, 255, 0.45),
        0 0 18px rgba(120, 200, 255, 0.25);
    border: 2px solid #e3e3e3;
}
TOOLBOX{
    position: relative;
    float: left;
    width: 260px;
    height: 100%;
    background-color: white;
}
buildercontent heading{
    display: block;
    width: 100%;
    height: 25px;
    line-height: 25px;
    text-align: center;
    background-color: rgb(97, 46, 97);
    color: white;
    font-weight: bold;
}
buildercontent cont{
    display: flex;
    width: 100%;
    overflow-y: auto;
    height: 100%;
    user-select: none;
    align-items: center;
    justify-content: center;
    align-content: flex-start;
    flex-wrap: wrap;
}
buildercontent cont ebtn{
    position: relative;
    display: flex;
    width: 90%;
    height: 36px;
    border: 2px solid #e3e3e3;
    border-radius: 5px;
    color: #e3e3e3;
    align-items: center;
    margin: 3px;
    justify-content: center;
    align-content: center;
    font-weight: bold;
}
buildercontain{
    min-height: 100%;
    overflow: hidden;
    display: block;
    float: left;
}
buildercontain.properties, buildercontain.toolbox{
    width: 350px;
}
buildercontain.preview{
    width: calc(100% - 700px);
}
buildercontent.toolbox, buildercontent.properties{
    position: fixed;
    background-color: #121212;
    color: #e3e3e3;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    height: calc(100vh - 20px);
    width: 330px;
    margin: 10;
    box-sizing: border-box;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.35), 0 0 8px rgba(244, 223, 255, 0.45), 0 0 16px rgba(228, 250, 249, 0.25);
    border: 2px solid #ffffff5e;
}
buildercontent.preview{
    overflow: hidden;
}

.toolbox .head, .q_properties .head{
    width: 100%; height: 35px;
    line-height: 35px; position: relative;
    float: left; background-color: #57b3dd; color: white; text-align: center;
    border-radius: 10px 10px 0px 0px;
}

.toolbox spacerbar, .q_properties spacerbar{
    width: 100%; height: 15px; display: block;
    position: relative; float: left;
}
buildercontent{
    display: flex; position: relative; float: left;
    justify-content: center; align-items: center;
    font-size: 20px; box-sizing: border-box; height: 100%; width: 100%;
}
gbtn{
    display: flex;
    width: 180px;
    height: 36px;
    border: 2px solid black;
    border-radius: 5px;
    margin: 3px;
    font-size: 13px;
    color: black;
    align-items: center;
    justify-content: center;
    align-content: center;
    text-align: center;
    font-weight: bold;
    z-index: 2890; opacity: 0.9; display: none; position: fixed; pointer-events: none;
}

.varcont input[type=color]{
    width: 95%;
    background-color: #121212;
    border: 0;
    height: 35px;
}
input[type=text],input[type=number],textarea, input[type=range]{
    width: 95%;
    background-color: #121212;
    border: 2px solid #e3e3e3;
    color: #e3e3e3;
    border-radius: 3px;
    height: 30px;
    font-size: 13px;
    font-weight: bold;
    margin: 2px;
    padding: 8px;
    box-sizing: border-box;
}

.prop-nav-btn {
    width: 95%;
    padding: 9px 12px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 6px;
    cursor: pointer;
    transition: background .2s, border-color .2s;
    text-align: left;
    letter-spacing: .3px;
}

.prop-nav-btn:hover {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .3);
}

.properties_btm_safety{
    position: relative;
    float: left;
    width: 100%;
    height: 125px;
}
.propbtncontainer{
    width: 100%;
    height: 115px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    position: absolute;
    bottom: 0;
    left: 0;
}

.propbtncontainer btn{
    width: 70px;
    height: 70px;
    border: 2px solid #e3e3e34b;
    border-radius: 15px;
    align-items: center;
    display: flex;
    box-sizing: border-box;
    justify-content: center;
    align-content: center;
    font-weight: bold;
    cursor: pointer;
    background-color: #57b3dd;
}

.propbtncontainer btn.red{
    background-color: rgb(255, 86, 86) !important;
}

.propbtncontainer btn img{
    height: 80%;
    width: 80%;
    display: block;
}

.divihover{
    border: 2px solid pink !important;
    background: radial-gradient(rgba(255, 200, 200, 0) 50%, rgba(255, 200, 200, 0.2));
}

.builder-outline {
    border: 2px solid gray;
}

.upload-window {
    width: 75%;
    max-width: 850px;
    height: 80%;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Image gallery section */
.upload-window .gallery {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-evenly;
    align-content: flex-start;
    gap: 10px;
    padding: 20px;
    overflow-y: auto;
}

.upload-window .title{
    border-bottom: 3px solid #bbbbbb;
    background-color: #EEEEFF;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-size: 26px;
    color: black;
    position: relative;
}

.gallery img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.08);

}

/* Upload section */
.upload-section {
    border-top: 2px solid #f0f0f0;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 20px;
}

.upload-bar {
    font-size: 24px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease-in-out;
}

.upload-bar:hover {
    background-color: #e0e0e0;
    border-radius: 5px;
    padding: 10px;
}

/* Drag and drop area highlight */
.drag-over {
    border: 2px dashed #009688;
}

.page-list{
    width: 420px;
    background-color: #121212;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #e3e3e3;
        box-shadow:
        0 0 8px rgba(120, 200, 255, 0.35),
        0 0 24px rgba(120, 200, 255, 0.45),
        0 0 48px rgba(120, 200, 255, 0.25);
    border: 2px solid #e3e3e3;
}

.page-list .head{
    border-bottom: 3px solid #bbbbbb;
    background-color: #121212;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    font-size: 22px;
    color: #e3e3e3;
    position: relative;
}

.page-list .contain{
    width: 100%;
    height: 350px;
    overflow: auto;
    position: relative;
}

.page-list .contain .entry{
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    overflow: auto;
    position: relative;
    border-bottom: 1px solid #bbbbbb;
    cursor: pointer;
}

.page-list .contain .selectedentry{
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    overflow: auto;
    position: relative;
    border-bottom: 1px solid #bbbbbb;
    background-color: rgba(30, 129, 187, 0.151);
}

.page-list .newbtnbox{
    position: relative;
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 2px solid #777779;
}

.new-page-pop{
    width: 450px;
    background-color: #121212;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #e3e3e3;
        box-shadow:
        0 0 8px rgba(120, 200, 255, 0.35),
        0 0 24px rgba(120, 200, 255, 0.45),
        0 0 48px rgba(120, 200, 255, 0.25);
    border: 2px solid #e3e3e3;
}

.new-page-pop .head{
    border-bottom: 3px solid #bbbbbb;
    background-color: #121212;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    font-size: 22px;
    color: #e3e3e3;
    position: relative;
}

.header-settings{
    width: 580px;
    background-color: #121212;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #e3e3e3;
    box-shadow:
        0 0 8px rgba(120, 200, 255, 0.35),
        0 0 24px rgba(120, 200, 255, 0.45),
        0 0 48px rgba(120, 200, 255, 0.25);
    border: 2px solid #e3e3e3;
}

.header-settings .head{
    border-bottom: 3px solid #bbbbbb;
    background-color: #121212;
    color: #e3e3e3;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    font-size: 22px;
    position: relative;
}

.header-clr-pop {
    width: 420px;
    background-color: #121212;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #e3e3e3;
    border: 1px solid rgba(200, 220, 255, 0.4);
    box-shadow:
        0 0 8px rgba(120, 200, 255, 0.25),
        0 0 20px rgba(120, 200, 255, 0.35),
        0 0 40px rgba(120, 200, 255, 0.2);
}
.header-clr-pop .body {
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
}

.clr-preset {
    height: 42px;
    width: 42%;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    padding: 8px;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.clr-preset:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 14px rgba(120,200,255,0.5);
}

.header-clr-pop .head {
    border-bottom: 3px solid #bbbbbb;
    background-color: #121212;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    font-size: 22px;
    color: #e3e3e3;
    position: relative;
}

.header-clr-pop .body {
    padding: 18px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    height: 500px;
    overflow-y: auto;
}

.header-clr-pop .clr-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.header-clr-pop label {
    font-size: 15px;
    opacity: 0.9;
}

.header-clr-pop input[type="color"] {
    width: 48px;
    height: 32px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.header-clr-pop .preview {
    margin-top: 16px;
    height: 44px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.4);
}


.header-settings .vardiv{
    position: relative;
    float: left;
    text-align: center;
    margin-top: 5px;
    width: 100%;
    font-weight: bold;
}

.header-settings .varcont{
    position: relative;
    float: left;
    text-align: center;
    width: 100%;
}

@keyframes jump {
    0% {
        transform: translateY(0) scale(1);
    }

    20% {
        transform: translateY(0) scale(1);
    }

    45% {
        transform: translateY(-6px) scale(1.04);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

.jump {
    animation: jump 0.45s cubic-bezier(.25,.9,.3,1);
}

.overlay-empty-message {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: flex; 
    justify-content: center; 
    align-items: center; 

    opacity: 0.5; 
    pointer-events: none; 
    font-size: 1.8rem; 
    text-align: center; 
    z-index: 10; 
}

.row-icon {
    display: none;
    position: fixed;
    width: 40px;
    height: 120px;

    z-index: 5000;

    align-items: center;
    justify-content: center;

    cursor: pointer;

    background-color: #57b3dd;
    border-radius: 5px;
    border: 1px solid white;
}

.row-icon img{
    width: 40px;
    height: 40px;
}

.row-icon img:hover{
    background-color: #3f8aad;
}

.row-icon img.del{
    background-color: red;
}

.row-icon img.del:hover{
    background-color: darkred;
}

ebtn img{
    display: block;
    width: 36px;
    height: 36px;
    position: absolute;
    top: 2px;
}

ebtn img.left{
    left: 2px;
}
ebtn img.right{
    right: 2px;
}