/* Form Styles */
.formsubbox {
    display: grid;
    background-color: #e9edef;
    padding: 1.5em 0.5em 0.5em 0.5em;
    font-size: 0.85em;
    gap: 0.5em;
}

.pricesidetitle {
    size: 1em;
    margin: unset;
}

.pricecategorybox {
    background-color: #e9edef;
    padding: 0.5em;
}

.priceeco {
    display: flex;
    align-items: center;
}

.priceeco p.formtitle {
    flex: 1 0 6.5em;
}

/* Modal Button Styles */
.modalbtnone {
    display: table;
    position: relative;
    height: 2em;
    padding: 0 1.7em 0.5em 0.5em;
    margin-left: 0.5em;
    width: 100%;
}

.modalbt {
    display: table;
    position: relative;
    height: 2em;
    border: 0.1em solid #cccccc;
    padding: 0 1.7em 0.5em 0.5em;
    margin-left: 0.5em;
    width: 100%;
    background-color: #ffffff;
}

.modalbt::after {
    content: '';
    position: absolute;
    top: calc(50% + 5px);
    right: 8px;
    width: 0;
    height: 0;
    transform: translateY(-50%);
    border-bottom: 8px solid transparent;
    border-top: 8px solid #aaaaaa;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    pointer-events: none;
}

.modalbt:hover,
.modalbt:focus {
    border-color: #333333;
    background-color: rgb(231, 235, 255);
    cursor: pointer;
}

.modalbt:hover::after,
.modalbt:focus::after {
    border-top: 8px solid #333333;
}

.modalbt span {
    vertical-align: middle;
}

.modalbt img {
    height: 100%;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5em auto;
    border: 1px solid #888;
    width: 80%;
}

.modaltitle {
    padding: 0.75em 0.75em 0.75em 1.75em;
    font-weight: bold;
    font-size: 1.25em;
    text-align: center;
}

.modalbody {
    padding: 0.75em;
}

.close {
    color: #000000ff;
    float: right;
    font-size: 1.75em;
    cursor: pointer;
    padding: 0 0.25em;
    margin: 0.3em 0.25em;
}

.close:hover,
.close:focus {
    background: #000000ff;
    color: #ffffff;
    text-decoration: none;
    outline: 0;
}

.modalflex {
    display: flex;
    gap: 1em;
}

.modalsubbox {
    border: 1px dotted #000;
    padding: 1em;
}

.modalsubbox img {
    height: 3.5em;
}

.flexsetbox {
    display: block;
    width: 100%;
    padding: 0 0.5em;
}

.clickinfutstyle {
    vertical-align: sub;
    width: 20px;
    height: 20px;
}

.onofclickinfutstyle {
    vertical-align: sub;
    width: 20px;
    height: 20px;
}

.inputfix {
    flex: 1 1 auto;
    padding: 1em;
}

.inputfix input {
    vertical-align: sub;
    width: 20px;
    height: 20px;
}

.inputflexnone {
    flex: none;
    width: 18.5em;
}

.inputflexnonef {
    flex: none;
    width: 10em;
    border: 2px solid #3576f4;
	border-radius: 8px;
    /* border: 1px solid #a1a2a3; */
}

/* Sticky Menu Styles */
.stickymenubox {
    top: 4.5em;
    position: sticky;
    height: 100vh;
    overflow: hidden;
}

.stickymenu {
    overflow-y: auto;
    box-sizing: border-box;
    background: #f9f9f9;
}

.flexshowbox {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: 0.8em;
    word-break: keep-all;
    width: 100%;
    background-color: #ffffff;
    justify-content: center;
    flex-direction: column;
}

.fullbtbox {
    padding: 0 1em 0 1em;
}

.fullbtbox>div {
    width: 100%;
    margin-left: 0;
}

.fullbtbox>span {
    font-size: 0.8em;
    color: #333;
}

.sideinkcolors {
    display: inline-flex;
    align-items: center;
}

.messagedivbox {
    font-size: 0.75em;
}

.flexbuttonbox {
    text-align: right;
}

.inkcolorbox {
    width: 1em;
    height: 1em;
    border-radius: 50%;
    border: #a1a2a3 solid 0.1em;
    background: #ffffff;
}

.inkcolorboxin {
    width: 6em;
    height: 6em;
    border: #a1a2a3 solid 0.1em;
    background: #ffffff;
}

.modalbtnbox {
    display: flex;
    justify-content: center;
    gap: 2em;
    padding: 1em 0;
}

.modalbtn {
    padding: 0.5em 0;
    flex: 1 1 0;
    max-width: 20em;
    margin: 0 1em;
}

.modalbtn:hover,
.modalbtn:focus {
    filter: brightness(1.25);
}

.mcanclecl {
    border: 0.2em #3576f4 solid;
    background: #ffffff;
    color: #3576f4;
}

.mchecking {
    border: 0.2em #3576f4 solid;
    background: #3576f4;
    color: #ffffff;
}

.mcheckings {
    border: 0.2em #3576f4 solid;
    background: #3576f4;
    color: #ffffff;
}

.textfixer {
    word-break: auto-phrase;
}

.custommysuu {
    width: 100%;
    margin-top: 0.5em;
    padding: 0.25em;
    text-align: right;
}

.scroll-sidemenu {
    display: none;
}

.hrdaysmail {
    font-weight: normal;
    font-size: 0.95em;
}

/* Paper Size Variables */
:root {
    --a0wsize: calc(1189px/2.5);
    --a0hsize: calc(841px/2.5);
    --papersizezon: 1.414;
}

/* Button Container */
.button-container {
    margin-bottom: 20px;
}

.button-container button {
    padding: 10px 20px;
    margin: 0 5px;
    font-size: 16px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.button-container button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* A0 Container */
.a0-container {
    position: relative;
    height: calc(var(--a0wsize) + 4px);
    width: calc(var(--a0hsize) + 4px);
    border: 2px solid #333;
    background-color: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    overflow: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Paper Styles */
.paper {
    position: absolute;
    border: 4px solid #ccc;
    background-color: lightblue;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

.paperx {
    position: absolute;
    border: 4px solid #ccc;
    background-color: #bbb;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

.paper span {
    display: block;
}

.size-info {
    font-size: 10px;
    color: #555;
    margin-top: 5px;
    font-weight: normal;
}

/* Paper Sizes */


.a0,
.b0 {
    width: calc(var(--a0hsize));
    height: calc(var(--a0wsize));
    top: 0;
    left: 0;
    z-index:-1;
}

.a1,
.b1 {
    width: calc(var(--a0wsize) / var(--papersizezon));
    height: calc(var(--a0hsize) / var(--papersizezon));
    top: 0;
    left: 0;
}

.a2,
.b2 {
    height: calc(var(--a0hsize) / (var(--papersizezon)));
    width: calc(var(--a0wsize) / var(--papersizezon)/2);
    bottom: 0;
    left: 0;
}

.a3,
.b3 {
    width: calc(var(--a0wsize) / (var(--papersizezon)*2));
    height: calc(var(--a0hsize) / (var(--papersizezon)*2));
    top: 50%;
    left: 50%;
}

.a4,
.b4 {
    height: calc(var(--a0hsize) / (var(--papersizezon)*2));
    width: calc(var(--a0wsize) / (var(--papersizezon)*4));
    bottom: 0;
    left: 50%;
}

.a5,
.b5 {
    width: calc(var(--a0wsize) / (var(--papersizezon)*4));
    height: calc(var(--a0hsize) / (var(--papersizezon)*4));
    bottom: calc((var(--a0hsize) / (var(--papersizezon)*2)) / 2);
    right: 0;
}

.a6,
.b6 {
    height: calc(var(--a0hsize) / (var(--papersizezon)*4));
    width: calc(var(--a0wsize) / (var(--papersizezon)*8));
    bottom: 0;
    right: calc((var(--a0wsize) / (var(--papersizezon)*4)) / 2);
}

.a7,
.b7 {
    width: calc(var(--a0wsize) / (var(--papersizezon)*8));
    height: calc(var(--a0hsize) / (var(--papersizezon)*8));
    bottom: calc((var(--a0hsize) / (var(--papersizezon)*4)) / 2);
    right: 0;
}

.cdsize {
    width: 60px;
    height: 60px;
    top: 50%-30px;
    left: 50%-30px;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.clicked {
    background-color: #ff6347 !important;
    color: #ffffff !important;
}

.clicked>.size-info {
    color: #ffffff !important;
}

/* Container Dimension Display */
.container {
    width: 80px;
    height: 120px;
    border: 2px solid black;
    position: relative;
    background-color: #ff6347;
    margin: 2em;
    color: #ffffff;
}

.dimension-horizontal {
    box-sizing: border-box;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 14px;
    font-weight: bold;
    color: #007bff;
    padding-bottom: 14px;
}

.horizontalline {
    box-sizing: content-box;
    position: absolute;
    bottom: 100%;
    width: 100%;
    height: 6px;
    border-top: #666 1px dotted;
    border-left: #666 1px dotted;
    border-right: #666 1px dotted;
    margin-bottom: 5px;
}

.dimension-vertical {
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%) rotate(90deg);
    transform-origin: center center;
    white-space: nowrap;
    font-size: 14px;
    font-weight: bold;
    color: #007bff;
}

.verticalline {
    box-sizing: content-box;
    position: absolute;
    left: 100%;
    width: 6%;
    height: 100%;
    border-top: #666 1px dotted;
    border-bottom: #666 1px dotted;
    border-right: #666 1px dotted;
    margin-left: 5px;
}

.sizename {
    font-size: 1.5em;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Flex Layouts */
.newflexdiv {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1em;
}

.selectstyle {
    width: 100%;
    padding: 1em;
}

.paperboxflax {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sideselectstyle {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
}

.sideselectte {
    top: calc(50% + 5px);
    right: 8px;
    width: 0;
    height: 0;
    transform: translateY(-50%);
    border-bottom: 8px solid transparent;
    border-top: 8px solid #aaaaaa;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
}

.fixselectsize {
    width: 14em;
}

.texnumstyle{
    padding: 1em;
}

.boxflaxhp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
}

.scdsubbox {
    display: flex;
    justify-content: center;
    align-items: center;
}

.optionboxsingle {
    display: flex;
    align-items: center;
    padding: 1em;
    width: 25em;
}

.optionboxsingle>div {
    display: flex;
    flex-direction: column;
    margin-left: 1em;
    gap: 1em;
}

.optionboxsingle>div>select {
    padding: 1em;
    width: 14em;
}

.optionmdbox {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1em;
}

.colorbtflex {
    display: flex;
    justify-content: space-between;
    max-width: 20em;
}

/* #inkcolor01,
#onofbox01{
    border: 2px solid #3576f4;
	border-radius: 8px;
} */

.hrstyle {
    border: 0;
    height: 1px;
    background: #cccccc;
}

.nooption {
    margin: 0 1em;
}

.onofbdb{
    padding: 1em;
}

.custombox{
    display: none;
    flex-direction: column;
}

.recustombox{
    display: flex;
    flex-direction: column;
}

.customselect{
    flex-direction: column;
}

/* Responsive Styles */
@media screen and (max-width: 1050px) {
    .scroll-sidemenu {
        position: fixed;
        width: 70px;
        display: flex;
        left: 0;
        bottom: 0;
        height: 70px;
        font-size: 16px;
        text-align: center;
        line-height: auto;
        background: #73AF17;
        color: #fff;
        text-align: center;
        cursor: pointer;
        z-index: 10;
        transition: .5s;
        margin: 1em;
        border-radius: 5em;
        align-items: center;
        justify-content: center;
    }

    .stickymenu {
        max-height: none !important;
    }

    .stickymenubox {
        height: auto;
    }

    .paper {
        display: none;
    }

    .paperx {
        display: none;
    }

    .a0-container {
        display: none;
    }

    .boxflaxhp {
        display: block;
    }

    .scdsubbox {
        width: 100%;
    }

    .changeflexdt {
        flex-direction: column;
    }
}