:root{
    --onyx:#2B2A28;
    --graphite:#5F5B58;
    --graphitewash:#5f5b58d2;
    --ashwood:#BCB7B3;
    --ashwoodwash:#e4e2e0;
    --teal:#2C9199;
    --tealwash:#72c2c8;
    /* ----------(min size, pref scaling, max size) */
    --title-size: clamp(16px, 1.5vw, 24px);
    --subtitle-size: clamp(12px, 1.2vw, 16px);
    --section-size: clamp(14px, 1.2vw, 20px);
    --body-size: clamp(10px, 0.9vw, 15px);
    --small-size: clamp(8px, 0.8vw, 14px);
    --button-size: clamp(8px, 0.8vw, 16px);
    --price-size: clamp(14px, 1.3vw, 22px);
}
/* =================================Fonts========================== */
@font-face {
  font-family: "Gotham";
  src: url("Fonts/Gotham/Gotham-Thin.otf") format("opentype");
  font-weight: 100;
  font-style: normal;
}
@font-face {
  font-family: "Gotham";
  src: url("Fonts/Gotham/Gotham-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: "Gotham";
  src: url("Fonts/Gotham/Gotham-Book.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Gotham";
  src: url("Fonts/Gotham/Gotham-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "Gotham";
  src: url("Fonts/Gotham/Gotham-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "Gotham";
  src: url("Fonts/Gotham/Gotham-Black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
}


@font-face {
  font-family: "LibreBaskerville";
  src: url("Fonts/LibreBaskerville/LibreBaskerville-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "LibreBaskerville";
  src: url("Fonts/LibreBaskerville/LibreBaskerville-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "LibreBaskerville";
  src: url("Fonts/LibreBaskerville/LibreBaskerville-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
}
/* ======================================================= */
#ServexContainer{
    position: relative;
    width: 72vw;
    height: 74vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    user-select: none;
    box-shadow: rgba(50, 50, 105, 0.15) 0px 2px 5px 0px, rgba(0, 0, 0, 0.05) 0px 1px 1px 0px;
    /* box-shadow: rgba(0, 0, 0, 0.08) 0px 4px 12px; */
    /* box-shadow: rgba(0, 0, 0, 0.1) -4px 9px 25px -6px; */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 5%;
    margin-top: 5%;
}
#bodyContainer{
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 86%;
}
#canvasContainer{
    position: relative;
    left: 0%;
    width: 60%;
    height: 100%;
}
.corner {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;              
    height: 40px;             
    border-top: 2px solid var(--graphite);    
    border-left: 2px solid var(--graphite);  
}
#clearCanvas {
    width: 100%;
    height: 100%;
}
#clearCanvas:focus{
    outline: none;
}
#LoadingScreen{
    position: absolute;
    top: 0%;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-color: white;
}
#Loading-Logo{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
#Loading-Logo img{
    position: relative;
    right: 3%;
    bottom: 3%;
    width: 24%;
}
#Loading-Bar{
    position: relative;
    right: 3%;
    bottom: 35%;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 25%;
    justify-content: center;
    align-items: center;
}
#LoadingScreen div.progress-bar{
    position: relative;
    width: 60%;
    height: 5%;
    background: linear-gradient(0deg, rgba(205, 215, 210, 1) 0%, rgba(255, 255, 255, 0.9332107843137255) 100%);
    border: 1px solid #cfcfcf;
    border-radius: 5px;
    margin-top: 1%;
    display: flex;
    justify-content: flex-start;
}
#LoadingScreen div.progress-bar div.progress{
    width: 0%;
    height: 100%;
    border-radius: 4px;
    background-color: var(--teal) ;
    display: flex;
    transition: all 0.1s ease-in;
}

#featureContainer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    top: 0%;
    right: 0%;
    width: 40%;
    height: 100%;
    background: #FFFFFF;
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}

.header-bar {
    width: 100%;
    position: relative;
    background-color: var(--ashwoodwash); 
    /* height: 90px; */
    height: 14%;
    display: flex;
    align-items: center;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-family: "Gotham";
}
/* .header-bar::before{
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    background: linear-gradient(
        to left,
        rgba(255,255,255,0.95) 0%,
        rgba(255,255,255,0.0) 70%
    );

    mask-image: url("assets/invpattern.png");
    mask-repeat: no-repeat;
    mask-position: right 54%;
    mask-size: 90%;
    mask-mode: luminance;
} */
.header-accent {
    position: absolute;
    left: 0;
    top: 0;
    width: 12px;
    height: 100%;
    background-color: var(--onyx); 
}
.header-bar-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-left {
    display: flex;
    align-items: baseline;
    gap: 16px;
}
.header-name {
    font-size: var(--title-size);
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--onyx); 
    position: relative;
}
.header-name::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 60%;
    height: 3px;
    background-color: var(--teal); 
}
.divider {
    color: var(--graphite); 
    font-weight: 300;
}
.header-sub {
    font-size: var(--subtitle-size);
    color: var(--graphite); 
    letter-spacing: 1px;
}
.header-right{
    height: 100%;
    display: flex;
    position: absolute;
    right: 3%;
    align-items: center;
}
.header-right img {
    height: 81%;
    opacity: 0.9;
    visibility: hidden;
}
#optionsCol {
    height: 68%;
    position: relative;
}
#optionsMenu{
    height: 100%;
}
#conf-title{
    position: relative;
    align-items: center;
}
#intro{
    /* width: 65%; */
    width: 95%;
    text-align: left;
    color: var(--graphite);
    font-weight: 300;
    font-size: var(--section-size);
    padding: 3% 30px;
    line-height: 1;
    margin-top: 1.5%;
    font-family: "Gotham";
}
/* #price{
    width: 35%;
    text-align: left;
    color: var(--graphite);
    font-weight: 300;
    font-size: var(--body-size);
    padding: 3% 30px;
    line-height: 1;
    margin-top: 1.5%;
    font-family: "Gotham";
}
#price .title{
    position: relative;
    right: 8%;
    bottom: 2px;
}
#price .text{
    position: relative;
    top: 2px;
    left: 12%;
    font-size:var(--body-size);
} */
#price{
    position: absolute;
    left: 5%;
    bottom: -10%;
    width: 93%;
    height: 8%;
    display: flex;
    flex-direction: row;
    color: var(--onyx);
    font-weight: 400;
    font-size: var(--section-size);
    margin-top: 1.5%;
    font-family: "Gotham";
    padding: .75rem 1.25rem;
}
#price div{
    display: flex;
    align-items: anchor-center;
    /* padding: 0% 5%; */
}
#price .title{
    width: 65%;
}
#price .text{
    width: 40%;
    justify-content: flex-start;
    font-weight: 500;
    font-size:var(--price-size);
    padding-left: 4%;
}
#clearAccordion {
    width: 100%;
    height: 100%;
    margin-bottom: 5%;
    scroll-snap-type: y mandatory;
    font-family: "Gotham";
    overflow-y: auto;
}
#clearAccordion > .card:last-child > .collapse.show{
    scroll-snap-align: start;
}
.card {
    background: white;
    min-height: 15%;
    border: 0;
    border-bottom: 1px solid rgba(0,0,0,0.09);
    color: var(--graphite);
    overflow: inherit;
    transition: all 0.2s ease;
}
.card-body {
    padding: 0px 5%;
    padding-bottom: 8px;
}
.accordion > .card {
    overflow: inherit;
}

/* -----------feature------------ */
.btn-link {
    width: 100%;
    text-align: left;
    color: var(--onyx);
    font-weight: 500;
    font-size: var(--section-size);
    padding: 1.5% 30px;
    line-height: 2.5;
}
.btn-link:hover {
    color: var(--teal);
    text-decoration: none;
}

.list-group {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    width: 100%;
    text-align: left;
    font-size: var(--section-size);
}

.list-group-item {
    position: relative;
    display: inline-flex;
    padding: .75rem 1.25rem;
    background-color: #fff;
    border: none;
    text-align: left;
    color: var(--graphite);
}
.list-group-item:active {
    top: 3px;
    box-shadow: none;
}
.list-group-item.active {
    z-index: 2;
    color: var(--teal);
    background-color: #fff;
    border: none;
    font-weight: 500;
}

.list-group-item:hover {
    z-index: 1;
    color: white;
    text-decoration: none;
    background-color: var(--teal);
    font-weight: 500;
    transform: scale(1.01);
    border: none;
}
.list-half{
    width: 50%;
    flex-direction: row;
    visibility: hidden;
    pointer-events: none;
}
.list-half.active{
    visibility: visible;
    pointer-events: auto;
}

.optionNameTag {
    margin: 0;
    width: 65%;
    font-weight: 400;
}
.optionPriceTag {
    margin: 0;
    width: 30%;
    border-left: 1px solid black;
    padding-left: 4%;
    font-weight: 400;
}
div.text{
    font-size: var(--small-size);
    text-align: center;
}
.material-item {
    max-height: 90px;
    width: 24%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0.5% 0.5%;
    border-radius: 5px;
    color: var(--graphite);
    font-family: "Gotham";
}
.list-half .material-item {
    width: 33%;
}
.material-item.active .mat-act{
    border-bottom:2px solid var(--tealwash);
}
.material-item .finish-box {
    vertical-align: middle;
    aspect-ratio: 4 / 3;
    border-style: none;
    width: 70%;
    height: 52%;
    border-radius: 10px;
    margin-top: 10%;
    margin-bottom: 5px;
    cursor: pointer;
}
.material-item .mat-act{
    width: 80%;
}
.list-half .material-item .finish-box{
    width: 54%;
    min-height: 32px;
    margin-top: 5%;
    margin-bottom: 4%;
}
.material-item:hover{
    color: #fff;
    background-color: var(--teal);
}
div.list-double{
    flex-direction: row;
}


#clearAccordion div.radio-item{
    width: 54%;
    padding: 0rem 1.25rem;
    display:flex; 
    align-items: anchor-center; 
    justify-content: flex-start;
}
#clearAccordion .toggle-switch {
    position: relative;
    left: 10%;
    display: inline-block;
    width: 56px;
    height: 26px;
    margin-bottom: 0;
    margin-top: 0.1rem;
}
#clearAccordion div.radio-item .text{
    align-self: center; 
    padding-left: 15px; 
    font-size: var(--section-size); 
    width: auto; 
    margin:0; 
    line-height: 15px;
}
#clearAccordion .radio-text{
    position: absolute;
    font-size: 14px;
    color: #fff;
    top: 8%;
}
#clearAccordion .toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
#clearAccordion .slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 24px;
}
#clearAccordion .slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}
#clearAccordion .toggle-switch input:checked + .slider {
    background-color: var(--teal);
}
#clearAccordion .toggle-switch input:checked + .slider::before {
    transform: translateX(32px);
}

#utilitiesRow{
    display: flex;
    justify-content: start;
    align-items: center;
    height: 16%;
    position: absolute;
    bottom: 0%;
    font-family: "Gotham";
}
#utilitiesRow::before{
    content: "";
    position: absolute;
    inset: 0;
    /* background: linear-gradient(
        to left,
        var(--ashwood) 0%,
        var(--ashwoodwash) 75%
    ); */
    background: linear-gradient(
        to bottom,
        var(--ashwoodwash) 30%,
        var(--ashwood) 100%
    );
}
#buttonsRow{
    width: 100%;
    height: 100%;
}
.buttonsCol{
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.utilitiesButton{
    height: 50%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-color: var(--tealwash);
    border-radius: 3px;
    color: #fff;
    font-weight: 500;
    border: none;
    cursor: pointer;
}
.utilitiesButton:hover{
    background-color: #ffffffde;
    color: var(--tealwash);
    outline: 2px solid var(--tealwash)
}
.utilitiesButton div{
    margin: 10px 6px;
}
.buttonText{
    font-size: var(--button-size);
}

/* ========================================== PDF =============================== */
#pdfContainer{
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
}
#pdfContainer div.text{
    color: var(--graphite);
}
#pdf-body{
    width: 100%;
    height: 95%;
    position: absolute;
    top: 10px;
    display: flex;
    flex-direction: column;
}
#pdf-header{
    position: relative;
    top: 5%;
    margin: 0px auto;
    width: 72%;
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid var(--teal);
    font-family: "Gotham";
}
#pdf-header div.section{
    width: 50%;
    display: flex;
}
#pdf-header div.title{
    display: flex;
    justify-content: start;
    align-items: end;
    font-size: 42px;
    font-weight: 900;
    color: var(--teal);
}

#pdfCanvas{
    position: relative;
    top: 2%;
    display: flex;
    width: 80%;
    height: 30%;
    justify-content: center;
    margin: auto;
}
#pdfCanvas .screenshot img{
    width: 400px;
}
#pdf-price{
    position: relative;
    bottom: 10%;
    width: 90%;
    display: flex;
    flex-direction: column;
    margin: 2% auto;
    font-family: "Gotham";
}
#pdf-price div.section{
    width: 90%;
    display: flex;
    justify-content: end;
    align-items: baseline;
    color: var(--graphite);
}
#pdf-price div.text{
    font-size: 14px;
}
#pdf-price div.price{
    color: var(--onyx);
    font-size: 24px;
    font-weight: 500;
    margin-left: 10px;
}
#clear-currency{
    position: relative;
    left: 1px;
    bottom: 1px;
}

#pdfContainer .pdf-line {
    display: flex;
    align-items: flex-start;
    margin-bottom: 6px;
    font-family: 'Gotham';
}
.pdf-line span{
    letter-spacing: 0.2px;
}
#pdfContainer .dot {
    position: relative;
    right: 8px;
    top: 8px;
    display: inline-block;
}

#pdf-product{
    display: flex;
    flex-direction: row;
    position: relative;
    bottom: 10%;
    width: 73%;
    height: 40%;
    margin: 0px auto;
    font-family: "Gotham";
}
#pdf-product div.column-d{
    width: 50%;
    padding-right: 15px;
    padding-left: 15px;
}
#pdf-product div.subtitle{
    font-size: 22px;
    font-weight: 700;
    border-bottom: 1px solid var(--graphite);
    padding: 5px 0px;
    color: var(--graphite);
    text-align: start;
}
#pdf-product div.text.section{
    font-size: 14px;
    margin-top: 5%;
    text-align: justify;
    color: var(--graphite);
}
#pdf-table{
    display: table;
    font-family: "Gotham";
}
#pdf-table .line{
    display: table-row;
    align-items: flex-start;
    border-bottom: 1px solid var(--graphitewash);
    font-size: 12px;
}
#pdf-table .header.line{
    font-size: 14px;
}
.line > div{
    display: table-cell;
    padding: 5px 0;
    line-height: 1.5 !important;
}
.line .line-sel{
    position: relative;
    vertical-align: top;
    white-space: normal;
    word-break: break-word;
    height: auto !important;
    min-height: 18px;
    overflow: visible !important;
    letter-spacing: 0.2px;
    width: 65%;
    text-align: start;
    padding-right: 5px;
}
.line .line-sel span{
    display: block;
    line-height: 1.5 !important;
}
.line .line-pn{
    width: 15%;
    text-align: center;
    vertical-align: middle;
}
.line .line-qty{
    width: 5%;
    text-align: center;
    vertical-align: middle;
}
.line .line-price{
    width: 15%;
    text-align: end;
    vertical-align: middle;
    padding-right: 8px;
}

#pdf-footer{
    position: relative;
    bottom: 2%;
    width: 70%;
    display: flex;
    flex-direction: row;
    margin: 0px auto;
}
#pdf-footer div.section{
    width: 50%;
    display: flex;
    color: var(--graphite);
}
#link{
    display: flex;
    flex-direction: column;
}
#link div.text{
    text-align: justify;
    font-size: 16px;
}
#pdf-date div.text{
    font-size: 16px;
}
/* .pdf-col-6 {
  -webkit-box-flex: 0;
  -ms-flex: 0 0 50%;
  flex: 0 0 50%;
  max-width: 50%;
} */

@media screen and (max-width: 1650px) and (orientation: landscape) {
    .material-item img, .material-item div.fade-img {
        margin-top: 5%;
        min-height: 34px;
    }
}@media screen and (orientation: portrait) {
    #ServexContainer {
        box-shadow: none;
    }
    .header-bar {
        height: 8%;
    }
    #bodyContainer{
        flex-direction: column;
    }
    #canvasContainer{
        width: 100%;
        height: 55%;
    }
    #featureContainer{
        width: 100%;
        height: 45%;
    }
    .btn-link {
        font-size: var(--title-size);
    }
    .material-item {
        max-height: 100px;
        width: 20%;
    }
    div.text {
        font-size: var(--subtitle-size);
    }
    .utilitiesButton {
        padding: 14px;
    }
    .buttonText {
        font-size: var(--title-size);
    }
}