* {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100%;
    touch-action: none;
}
body {
    background: repeating-linear-gradient(
        45deg,
        #686868,
        #ececec 5px,
        #e2e2e3 5px,
        #e2e2e3 10px
    );
    /* height: 99vh; */
}
.master-wrapper {
    position: absolute;
    left: 0px;
    top: 0px;
    height: 100%;
    width: 100vw;
    overflow: hidden;
}
h1 {
    color: #27532c;
}
#canvas3d {
    display: block;
    box-sizing: border-box;
    position: absolute;
    z-index: 0;
    left: 0;
    top: 0;
}
.all-ui-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    box-sizing: border-box;
    pointer-events: none;
}
.ui {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 210;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    box-sizing: border-box;
    pointer-events: none;
}
.mid {
    width: 75%;

    display: flex;
    justify-content: space-between;
    transform: translateY(80px);
    margin-bottom: 90px;
}
.mid button {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 99px;
    background-color: transparent;
    color: #f7992f;
    text-align: center;
    font-size: 26px;
    box-sizing: border-box;
    outline: none;
    pointer-events: all;
    cursor: pointer;
}
.mid button:hover {
    background-color: white;
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.032);
}
.main-panel {
    border: 1px rgba(0, 0, 0, 0.114) solid;
    display: flex;
    justify-content: space-between;
    width: 340px;
    align-items: center;
    height: 100px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0px 9px 20px 0px rgba(0, 0, 0, 0.048);
    margin-bottom: 40px;
    box-sizing: border-box;
    pointer-events: all;
    opacity: 1;
    transition: opacity 0.3s;
    position: relative;
}
.main-panel-closed {
    opacity: 0;
    pointer-events: none;
}
.add-to-cart-section {
    position: absolute;
    text-wrap: nowrap;
    /* border: 2px solid red; */
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1em;
    left: 50%;
    /* transform: translate(-50%, -150%); */
    transform: translate(-50%, -250%);
    display: none;
}
.add-to-cart-section p {
    text-align: center;
    color: #293792;
    margin-bottom: 8px;
    display: none;
}
.cover-type-btn {
    padding: 10px 18px;
    background-color: #e7e8fc;
    border-radius: 6px;
    border: none;
    margin-right: 4px;
    color: #4041a2;
    cursor: pointer;
    display: none;
    /* text-wrap: wrap;
    width: 70px; */
}
.cover-type-selected {
    border: 2px solid #4041a2;
    background-color: #a2a3f0;
    font-weight: bold;
}
#add-to-cart-btn {
    text-wrap: nowrap;
    border: none;
    background-color: #4041a2;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;

    cursor: pointer;
}
.main-panel > div {
    height: 90%;
    width: 50px;
    border-radius: 8px;
    border: none;
    display: flex;
    flex-direction: column;
    padding: 10px;
    align-items: center;
    color: #293792;
    font-weight: bold;
    cursor: pointer;
    background-color: transparent;
    user-select: none;
}
.main-panel > div:hover {
    background-color: rgb(246, 246, 246);
}
.main-panel > div > div {
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    height: 50%;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}
#cover-btn div {
    background-image: url(images/cover.png);
}

#pages-btn div {
    background-image: url(images/pages.png);
}
#size-btn div {
    background-image: url(images/size.png);
}

.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#upload-screen {
    position: absolute;
    z-index: 250;
    left: 0px;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #fbf9f9;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    pointer-events: all;
}
#upload-screen h2 {
    color: #b5a7ac;
    margin-top: 30px;
}

.custom-file-upload {
    background-color: #ffffff;
    border-radius: 999px;
    cursor: pointer;
    text-align: center;
    width: 170px;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;

    align-items: center;
    font-size: 90px;
    color: #f3a350;
    box-shadow: 0px 9px 20px 0px rgba(0, 0, 0, 0.123);
    position: relative;
    outline: none;
    border: none;
}
.add-photo-upload {
    background-color: #fbdec0;
    border-radius: 999px;
    cursor: pointer;
    text-align: center;
    width: 55px;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: #000000;
    position: relative;
    margin-left: 15px;
}
.hidden-panel {
    display: none !important;
}

#textureUpload {
    display: none;
}
#add-photo-input {
    display: none;
}

.assfsagas {
    background-color: #f9f8f8;
}
#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 99.99%;
    background-color: rgb(0, 0, 0);
    opacity: 0;
    display: block;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 255;
}
.overlay-visible {
    opacity: 0.5 !important;
    pointer-events: all !important;
}

.page-sorter-panel {
    position: absolute;
    bottom: 0;
    left: -600px;
    background-color: #f9f9fb;
    border: none;
    width: 550px;
    height: 99%;
    z-index: 333;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    padding: 40px;
    padding-top: 50px;
    padding-bottom: 100px;
    box-sizing: border-box;
    color: #293792;

    overflow-y: hidden;
    overflow-x: hidden;

    opacity: 0;

    transition: left 0.3s, opacity 0.3s, bottom 0.3s;
    pointer-events: all;
}
.page-sorter-panel-open {
    left: 0px !important;
    bottom: 0px !important;
    opacity: 1 !important;
}
.page-sorter-panel .inner {
    height: 100%;
    overflow-y: scroll;
    overflow-x: hidden;

    scrollbar-width: none;
    -ms-overflow-style: none;
}
.page-sorter-panel h2 {
    font-size: 2em;
    margin-bottom: 8px;
}
.page-sorter-panel .inner::-webkit-scrollbar {
    display: none;
}

#page-sorter-done-btn {
    position: absolute;
    width: 430px;
    bottom: 10px;
    margin-bottom: 30px;
    margin-left: 10px;
    color: white;
    background-color: #4041a2;
    border: none;
    border-radius: 8px;
    height: 50px;
    font-size: large;
    cursor: pointer;
    box-shadow: -20px 19px 20px 50px rgb(255, 255, 255);
}

#page-sorter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 5px;
    max-width: 800px;
    margin: 20px auto;
    max-height: 90%;
    align-items: start;
}

.grid-item {
    width: 90%;
    aspect-ratio: 1;
    text-align: center;
    background: #ffffff;
    border: none;
    align-self: start;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.066);
}

.item-locked {
    background: repeating-linear-gradient(
        45deg,
        #ececec,
        #ececec 5px,
        #e2e2e3 5px,
        #e2e2e3 10px
    );
}

.grid-item:nth-child(even) {
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}

.grid-item:nth-child(odd) {
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}

.grid-item:nth-child(4n + 1),
.grid-item:nth-child(4n + 3) {
    margin-left: -11px;
}

.grid-item:nth-child(4n + 2),
.grid-item:nth-child(4n + 4) {
    margin-right: -11px;
}

.grid-item:first-child {
    grid-column: 1 / 2;
    margin-left: 0px !important;
    border-top-left-radius: 15px !important;
    border-bottom-left-radius: 15px !important;
    width: 100% !important;
}

.grid-item:nth-child(2) {
    grid-column-start: 1;
}

.page-edit-panel {
    width: 100%;
    position: absolute;
    bottom: 10px;
    z-index: 555;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    padding-bottom: 50px;
}
.page-edit-panel-open {
    opacity: 1;
    pointer-events: all;
}
.page-edit-panel div {
    width: 350px;
}
.page-edit-panel div div {
    width: 100%;

    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    margin-bottom: 10px;
}
.page-edit-panel div div > * {
    width: 45%;
    display: block;
    background-color: #e4e4f3;
    padding: 10px;
    font-size: 1em;
    border: none;
    border-radius: 8px;
    text-align: center;
    text-wrap: nowrap;
    cursor: pointer;
    color: black;
    user-select: none;
}
#replace-input {
    display: none;
}
.page-edit-done-btn {
    width: 100%;
    padding: 10px;
    background-color: #4041a2;
    color: white;
    font-size: large;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
.slider-cont {
    width: 100%;
    display: flex;
    justify-content: center;
    bottom: 220px;
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.slider-cont-open {
    opacity: 1;
    pointer-events: all;
}
.slider-cont-open-for-cover {
    opacity: 1;
    pointer-events: all;
    bottom: 110px;
    margin-left: 250px;
}
.slider-cont div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #4041a2;
}
.slider-cont p {
    user-select: none;
    pointer-events: none;
}
.slider-cont input[type="range"] {
    -webkit-appearance: none;
    width: 120%;
    height: 3px;
    background: #4041a2;
    border-radius: 3px;
    outline: none;
}
.slider-cont input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #f7992f;
    border-radius: 50%;
    cursor: pointer;
}

.slider-cont input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #4caf50;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.title-wrapper {
    width: 1460px;
    height: 380px;
    pointer-events: none;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 11111;
    background: rgb(0, 0, 0);
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.322) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    backface-visibility: hidden !important;
    transform-style: preserve-3d !important;
    box-sizing: border-box;
}
#title-input {
    width: 100%;
    height: 100%;
    font-size: 100px;
    border: none;
    background-color: transparent;
    outline: none;
    color: white;
    text-align: center;
    margin-top: 50px;
    /* backface-visibility: hidden !important;
    transform-style: preserve-3d !important; */
}

.cover-edit-panel {
    position: absolute;
    bottom: 0;
    left: -600px;
    background-color: #f9f9fb;
    border: 1px solid rgba(72, 60, 73, 0.231);
    width: 550px;
    height: 99%;
    z-index: 333;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    padding: 40px;
    padding-top: 80px;

    box-sizing: border-box;
    color: #293792;

    overflow-y: hidden;
    overflow-x: hidden;

    transition: left 0.3s ease, bottom 0.3s ease, opacity 0.3s ease;
    user-select: none;

    opacity: 0;
}

.cover-edit-panel h3 {
    margin-bottom: 16px;
    margin-top: 32px;
}
.cover-edit-panel-open {
    left: 0px;
    bottom: 0px;
    opacity: 1;
}
.title-input-from-ui {
    padding: 10px 15px;
    border: 1px solid #4042a280;
    color: #4042a280;
    font-size: large;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    pointer-events: all;
}
.cover-done-btn {
    position: absolute;
    width: 430px;
    bottom: 10px;
    left: 0;
    margin-bottom: 30px;
    margin-left: 60px;
    color: white;
    background-color: #4041a2;
    border: none;
    border-radius: 8px;
    height: 50px;
    font-size: large;
    cursor: pointer;
    box-shadow: -20px 19px 20px 50px rgb(255, 255, 255);
    pointer-events: all;
}

.style-btn-cont {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    pointer-events: all;
    box-sizing: border-box;
}
.style-btn-cont button {
    padding: 5px 15px;
    border: 1px solid #4042a280;
    border-radius: 4px;
    background-color: white;
    font-size: min(calc(2vw + 1vh), 18px);

    color: #4041a2;
    width: 100%;
    cursor: pointer;
}
.bold {
    font-weight: bolder;
    text-transform: uppercase;
    font-family: "Oswald";
}
.classic {
    font-weight: normal;
    font-family: Times;
}
.minimalistic {
    font-family: Arial;
}
.handwriting {
    font-family: "Caveat";
    font-optical-sizing: auto;
    font-style: normal;
}
.cover-photo-grid {
    height: 370px;
    width: 100%;

    overflow-y: scroll;
    overflow-x: hidden;

    scrollbar-width: none;
    -ms-overflow-style: none;

    pointer-events: all;
}

.cover-photo-grid::-webkit-scrollbar {
    display: none;
}
.cover-image-item {
    display: inline-block;
    width: 100px;
    aspect-ratio: 1;
    margin-left: 5px;
    cursor: pointer;
    object-fit: cover;
    border-radius: 4px;
    overflow: hidden;
}
.cover-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.selected-cover-image {
    position: relative;
    border: 4px #f7992f solid;
    box-sizing: border-box;
}

.selected-cover-image::after {
    content: "✔";
    position: absolute;
    right: 0;
    bottom: 0;
    font-size: 16px;
    color: white;
    font-weight: bold;
    pointer-events: none;
    display: block;
    width: 20px;
    text-align: center;
    aspect-ratio: 1;
    background-color: #f7992f;
    border: none;
    border-radius: 0;
    border-top-left-radius: 4px;
}
.cover-edit-switch-cont {
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: all;
    display: none;
    background-color: #f7f5f6;
    box-shadow: 0 0 20px 20px #f7f5f6;
    position: absolute;
    top: 0;
    padding-top: 10px;
}
.cover-edit-switch-cont > div {
    background-color: #ebe7e7;
    padding: 8px 10px;
    border-radius: 99px;
    width: 150px;
    display: flex;
    justify-content: center;
    position: relative;
}
.cover-edit-switch-cont > div button {
    border: none;
    width: 50%;
    background-color: transparent;
    z-index: 1;
    color: black;
}
.switch-btn-bg {
    border-radius: 99px;
    width: 50%;
    box-sizing: border-box;
    height: 73%;
    background-color: white;
    position: absolute;
    top: 4px;
    z-index: 0;
    box-shadow: 0px 2px 5px 1px rgba(0, 0, 0, 0.05);
    transition: left 0.3s ease;
}
.switch-btn-bg-left {
    left: 4px;
}
.switch-btn-bg-right {
    left: calc(50% - 4px);
}

.size-edit-panel {
    width: 100%;
    height: 400px;
    position: absolute;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 300;
    bottom: -600px;
    transition: bottom 0.3s ease;
    color: #4041a2;
    box-sizing: border-box;
    pointer-events: all;
}
.size-edit-panel-open {
    bottom: 10px;
}
.size-edit-panel > div {
    background-color: #ffffff;
    width: 450px;
    max-width: 100%;
    height: 100%;
    border-radius: 8px;
    padding: 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}
.size-image-cont {
    box-sizing: border-box;
    width: 100%;
    height: 65%;
    overflow: hidden;
    border-radius: 16px;
    overflow: hidden;
}
.size-image-cont img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.size-btn-cont {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    height: 20%;
}
.size-btn-cont button {
    width: 33%;
    background-color: #e7e8fc;
    border: 1px solid #a8a9e9;
    border-radius: 8px;
    height: 100%;
    color: #4041a2;
    font-size: large;
    cursor: pointer;
}
.size-edit-done-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    color: #f7992f;
    cursor: pointer;
    font-size: large;
}
.selected-size {
    border: 2px solid #4041a2 !important;
    background-color: #a2a3f0 !important;
}
.submit-loading-screen {
    width: 100%;
    box-sizing: border-box;
    height: 150px;
    background-color: transparent;
    position: absolute;
    bottom: -300px;
    /* transition: bottom 0.3s ease; */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 400;
}
.submit-loading-screen-open {
    bottom: 60px;
}
.submit-loading-screen div {
    width: 350px;
    background-color: white;
    height: 100%;
    border-radius: 8px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    pointer-events: all;
    position: relative;
    overflow: hidden;
}
.upload-done-btn {
    padding: 10px 28px;
    background-color: #4041a2;
    color: white;
    display: none;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
}
.upload-done-btn-visible {
    display: block;
}
.more-options-btn {
    position: absolute;
    top: 40px;
    right: 30px;
    border-radius: 99px;
    padding: 10px;
    box-sizing: border-box;
    width: 40px;
    aspect-ratio: 1;
    cursor: pointer;
    border: 1px solid rgb(242, 233, 233);
    box-shadow: rgba(43, 5, 20, 0.02) 0px 4px 13px 0px,
    rgba(43, 5, 20, 0.04) 0px 3px 4px 0px;
    background-color: white;
    font-size: 1em;
    pointer-events: all;
    opacity: 1;
    transition: opacity 0.3s ease;
}
.more-options-btn-hidden {
    opacity: 0;
    pointer-events: none;
}
.more-options-screen {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    box-sizing: border-box;
    height: 99.9%;
    background-color: rgba(255, 255, 255, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 260;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}
.more-options-screen-open {
    pointer-events: all;
    opacity: 1;
}
.delete-all-photos-btn {
    padding: 10px 16px;
    background-color: transparent;
    font-size: large;
    border: none;
    cursor: pointer;
    border-radius: 8px;
}
.delete-all-photos-btn:hover {
    background-color: #ffffff4f;
}
.confirmation-screen {
    background-color: white;
    padding: 60px 100px;
    width: 500px;
    max-width: 99%;
    box-sizing: border-box;
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3 ease;
    border-radius: 16px;
    text-align: center;
}
.confirmation-screen-open {
    pointer-events: all;
    opacity: 1;
}
.keep-photos-btn {
    padding: 16px 32px;
    border: none;
    background-color: #4041a2;
    font-size: large;
    color: white;
    border-radius: 12px;
    cursor: pointer;
}
#clear-btn {
    background-color: transparent;
    border: none;
    font-weight: bold;
    text-decoration: underline;
    font-size: large;
    color: #4041a2;
    cursor: pointer;
}
.close-more-options-screen-btn {
    position: absolute;
    right: 30px;
    top: 30px;
    color: rgba(0, 0, 0, 0.516);
    font-size: 1em;
    border: none;
    background-color: transparent;
    cursor: pointer;
}
.hint-cont {
    width: 100%;

    justify-content: center;
    bottom: 30%;
    position: absolute;
    pointer-events: none;
    user-select: none;
    display: none;
}
.hint-cont > * {
    opacity: 0;
    position: absolute;
}
.hint-swipe {
    opacity: 1;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
.hint-swipe img {
    width: 60px;
    aspect-ratio: 1;
    object-fit: contain;
}
.hint-visible {
    opacity: 1;
}
.hint-hidden {
    opacity: 0 !important;
}
.upload-loading-screen {
    width: 100%;
    height: 99.99%;
    background-color: #fbf9f9;
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 24px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.03s ease;
    z-index: 600;
}
.upload-loading-screen-visible {
    pointer-events: all;
    opacity: 1;
}
.upload-loading-screen img {
    width: 200px;
}
.upload-loading-screen p {
    color: #f3a350;
    font-size: 1em;
}
.upload-progress {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    text-outline: 0 0 #000;
    height: 5px;
    border: none;
    background-color: #4041a2;
}
.upload-progress::-webkit-progress-bar,
.submit-progress::-webkit-progress-bar {
    background-color: #a2a3f0;
}
.upload-progress::-webkit-progress-value,
.submit-progress::-webkit-progress-value {
    background-color: #4041a2;
}

.site-loading-screen {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 99.99%;
    background-color: #fbf9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: large;
    color: #4041a2;
    z-index: 777;
}
#status-message {
    text-align: center;
    color: #4041a2;
    /* color: #1e00ff; */
}

.upload-message-screen {
    width: 100%;
    height: 50%;
    background-color: transparent;
    position: absolute;
    left: 0;
    bottom: -100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    pointer-events: none;

    transition: bottom 0.03s ease;
    z-index: 1100;
    pointer-events: all;
}
.upload-message-screen p {
    padding-top: 20px;
    font-weight: normal;
    color: #4041a2;
    font-size: 0.8em;
    text-align: center;
}
.upload-message-screen > div {
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 30px;
    border-radius: 16px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding: 40px;
    text-align: center;
}
.upload-message-screen-open {
    bottom: 0px;
}
.upload-message-btn {
    background-color: #4041a2;
    color: white;
    padding: 16px 40px;
    border: none;
    border-radius: 8px;
    font-size: large;
    cursor: pointer;
}
.low-res-review-btn-cont {
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
    width: 100%;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f2e9e9;
    display: none;
}
.low-res-review-btn {
    border: none;
    outline: none;
    background-color: transparent;
    text-decoration: underline;
    color: black;
    font-size: 1em;
    cursor: pointer;
    pointer-events: all;
}
.low-res-review-panel {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 270;
    text-align: center;
}
.low-res-review-panel-open {
    pointer-events: all;
    opacity: 1;
}
.low-res-review-panel > div {
    background-color: white;
    border-radius: 16px;
    padding: 50px;
    padding-bottom: 25px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    max-height: 80%;
    max-width: 650px;
    gap: 20px;
}
.low-res-review-panel p {
    width: 70%;
}
.approve-low-res-btn {
    background-color: #4041a2;
    color: white;
    padding: 16px 40px;
    border: none;
    border-radius: 12px;
    font-size: large;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    margin-top: 30px;
}
.low-res-review-photo-grid {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
    max-height: 90%;
    justify-content: baseline;
    align-items: center;
    overflow-y: scroll;
    overflow-x: hidden;
    max-height: 350px;
    gap: 16px;
}
.low-res-review-photo-grid::-webkit-scrollbar {
    display: none;
}
.low-res-review-photo-grid > div {
    width: 31%;
    aspect-ratio: 1;
    text-align: center;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.066);
}

.low-res-review-photo-grid > div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.low-res-delete-btn {
    position: absolute;
    font-size: large;
    color: black;
    right: 4px;
    top: 4px;
    width: 32px;
    aspect-ratio: 1;
    border: none;
    background-color: white;
    border-radius: 99px;
    cursor: pointer;
}
.low-res-delete-btn:hover {
    background-color: rgb(222, 74, 74);
    color: white;
}
#submit-progress {
    width: 80%;
    text-outline: 0 0 #000;
    height: 5px;
    border: none;
    background-color: #4041a2;
}
.outside-size-label-cont {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: end;
    /* position: absolute;
    left: 0;
    top: 0; */
    height: 15%;
    box-sizing: border-box;
}
.outside-size-label {
    border: none;
    background-color: white;
    border-radius: 20px;
    padding: 4px 8px;
}
#upload-loading-screen-title {
    max-width: 300px;
    text-align: center;
}
@media only screen and (max-width: 1300px) {
    .mid {
        width: 95%;
    }
}
@media only screen and (max-width: 700px) {
    .cover-edit-switch-cont {
        display: flex;
    }
    .slider-cont {
        display: none;
    }

    .mid button {
        display: none;
    }
    .main-panel {
        width: 100%;
        border: none;
        margin-bottom: 0;
        height: 60px;
    }
    .main-panel > div {
        flex-direction: row;
        width: 100px;
        justify-content: center;
        align-items: center;
    }
    .main-panel > div > div {
        margin-bottom: 0;
        height: 24px;
        width: 40px;
    }
    .main-panel > div > p {
    }
    .add-photo-upload {
        position: absolute;
        right: 15px;
        bottom: 70px;
    }
    .page-sorter-panel {
        height: 99.9%;
        width: 100%;
        padding: 20px;
        padding-top: 10px;
        padding-bottom: 75px;
        border-radius: 0;
        bottom: -1000px;
        left: 0;
        opacity: 0;
    }
    #page-sorter-done-btn {
        margin: 0;
        width: 90%;
    }
    .page-edit-panel {
        padding-bottom: 10px;
    }
    .page-edit-panel div {
        width: 90%;
    }
    .cover-edit-panel {
        width: 100%;
        border: none;
        border-radius: 0;
        padding: 10px;
        padding-bottom: 0;
        background-color: transparent;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        pointer-events: none;
    }
    .cover-edit-panel h3 {
        display: none;
    }
    .cover-edit-panel h2 {
        display: none;
    }
    .cover-done-btn {
        color: #4041a2;
        background-color: transparent;
        width: 70px;
        height: 30px;
        font-weight: bold;
        box-shadow: none;
        position: absolute;
        top: 10px;
        right: 0px;
        left: auto;
        margin: 0;
    }
    .title-input-from-ui {
        display: none;
    }
    .cover-photo-grid {
        position: absolute;
        height: 180px;
        bottom: 0px;
        background-color: white;
        padding: 10px;
        border-radius: 8px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        box-sizing: border-box;
        width: 100%;
        transition: bottom 0.3s ease;
        bottom: 0px;
    }
    .cover-photo-grid-off {
        bottom: -299px;
    }
    .cover-image-item {
        width: 80px;
    }
    .style-btn-cont {
        margin-bottom: -100px;
        transition: margin-bottom 0.3s ease;
        /* border: 1px solid red; */
        background-color: #f7f5f6;
    }

    .style-btn-cont-on {
        margin-bottom: 30px;
    }
    .style-btn-cont-on-with-keyboard {
        margin-bottom: 50% !important;
    }
    .style-btn-cont button {
        height: 50px;
        font-size: calc(1.3vw + 1vh);
    }

    .more-options-btn {
        top: 10px;
        right: 10px;
    }
    .hint-cont {
        display: flex;
    }
    .upload-loading-screen p {
        position: absolute;
        bottom: 25%;
    }
    .upload-progress {
        top: auto;
        bottom: 0;
    }
    .low-res-review-panel > div {
        position: absolute;
        bottom: 0;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        padding-left: 20px;
        padding-right: 20px;
    }
    .low-res-review-panel p {
        width: 90%;
    }
    .low-res-review-photo-grid {
        justify-content: center;
    }
    .low-res-review-photo-grid > div {
        width: 40%;
    }
    .add-to-cart-section {
        /* transform: translate(-50%, -230%); */
        transform: translate(-50%, -300%);
    }
}

#custom-console {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    color: red;
    font-size: medium;
    z-index: 999999;
    padding: 23px;
    display: none;
    user-select: none;
    pointer-events: none;
}
