/* @font-face {
    font-family: "DancingScript";
    src: url('http://testing.archvm.inplico.uk/fonts/Dancing_Script/DancingScript-VariableFont_wght.woff2') format('woff2');
}

@font-face {
    font-family: "frijole";
    src: url('http://testing.archvm.inplico.uk/fonts/Frijole/Frijole-Regular.woff2') format('woff2');
} */
:root {
    --main-theme-color: #00001a;
    --theme-text: #80d4ff;
    --min-width-for-desktop: 993;
    --label-background: #1a1a1a;
    --label-text: grey;
    --field-text: #fff;
    --table-border: #404040;
    --background: black;
    --sidebar-background: #00001a;
    --sidebar-label-text: #80d4ff;
    --hover-background: #80d4ff;
    --hover-foreground: black;
    --button-text: #80d4ff;
    --radio-selected: #2196F3;
    --sliderImageWidth: 170;
    --sliderImageHeight: 240;
    --carouselRadius: 300;
    --animationTime: 500;
    --tileWidth: 200;
    --tileHeight: 350;
    --tileGap: 20;
    --checkoutBtnWidth: 150;
    --first-indent: 30;
}

/******************************************************************************/
/*  COMMON                                                                    */
/******************************************************************************/
* {
    margin: 0;
    padding: 0;
}

html,
body {
    touch-action: none;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Liberation Mono', ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Monaco, 'Courier New', monospace;
    background: var(--background);
    color: var(--label-text);
    font-variation-settings: 'wght' 900;
    position: fixed;
    overflow: hidden;
    line-height: 1.2;
}

.container {
    display: grid;
    margin: 0;
    grid-template-rows: 60px 1fr 70px 40px;
    grid-template-columns: 200px 1fr;
    grid-template-areas:
        "header   header"
        "content  content"
        "progbar  progbar"
        "footer   footer";
    height: 100vh;
    width: 100vw;
}

content {
    grid-area: content;
    display: flex;
    overflow-y: auto;
}

p {
    margin-top: 25px;
}

ul {
    margin-left: calc((var(--first-indent) + 12) * 1px);
    /* padding: 8px calc(var(--first-indent) *1px) 8px 1px; */
}

li {
    margin-top: 8px;
    padding-left: 12px;
}

h1, h2, h3 {
    margin-top: 30px;
}

h3 {
    margin-left: calc(var(--first-indent) *1px);
}

h3.product-header {
    margin: 0;
padding-bottom: 8px;
    text-align: center;
    color: var(--theme-text);
}

/******************************************************************************/
/*  HEADING                                                                   */
/******************************************************************************/
header {
    grid-area: header;
    display: -webkit-box;
    display: -ms-felxbox;
    display: flex;
    width: 100%;
    height: 100%;
    background-color: var(--main-theme-color);
    justify-content: space-between;
}

header img {
    padding: 0;
    margin-left: 8px;
    margin-right: 8px;
    height: 60px;
}

heading {
    display: flex;
    height: 100%;
    align-items: center;
    font-size: 32px;
    padding-left: 16px;
    color: var(--theme-text);
}

.main-content {
    display: -webkit-box;
    display: -ms-felxbox;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    /* background-image: url("../../images/logo.avif"); */
    -webkit-perspective: 1000px;
    perspective: 1000px;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    padding-left: 216px;
    padding-right: 16px;
    transition: padding-left calc(var(--animationTime) *1ms);
    overflow-y: auto;
}

.banner-frame {
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    opacity: 1;
    transition: opacity calc(var(--animationTime) * 1ms) ease;
    -webkit-animation: opacity calc(var(--animationTime) * 2ms) ease;
    border-radius: 5px;
    box-shadow: 0px 0px 14px var(--theme-text);
    border: thin solid var(--theme-text);
    padding: 8px;
    height: calc(var(--tileHeight)*1px);
}

.banner-frame img {
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    object-fit: contain;
    /* maintains aspect ratio */
}

footer {
    overflow: hidden;
    grid-area: footer;
    display: flex;
    height: 100%;
    align-items: center;
    bottom: 0;
    background-color: var(--main-theme-color);
    z-index: 1;
    padding-left: 16px;
    color: var(--theme-text);
    font-size: 25px;
    font-family: "Liberation Serif";
}

/******************************************************************************/
/*  SIDEBAR                                                                   */
/******************************************************************************/
button[menu-button] {
    font-size: 40px;
    height: 60px;
    margin: 0;
    padding: 0;
    font-weight: normal;
    float: left;
    width: 60px;
    border: none;
    display: block;
    color: var(--button-text);
    background-color: var(--main-theme-color);
    outline: 0;
    transition: background-color calc(var(--animationTime) *1ms);
    -webkit-transition: background-color calc(var(--animationTime) *1ms);
}

.cart-button {
    fill: var(--button-text);
    height: 60px;
    display: flex;
    background-color: var(--main-theme-color);
    padding: 0px 8px 0px 8px;
    transition: background-color calc(var(--animationTime) *1ms);
    -webkit-transition: background-color calc(var(--animationTime) *1ms);
}

.cart-button:hover {
    background-color: var(--button-text);
    fill: var(--main-theme-color);
}

#cart {
    display: flex;
    justify-content: center;
    align-items: center;
}

#qty-in-cart {
    margin: 0px 8px 0px 4px;
    display: flex;
    width: 30px;
    height: 30px;
    -webkit-border-radius: 15px;
    border-radius: 15px;
    font-family: Verdana;
    font-size: 16px;
    justify-content: center;
    align-items: center;
    color: var(--main-theme-color);
    background: var(--button-text);
}

nav[left] {
    position: relative;
    gap: 5px;
    display: block;
    display: list-item;
    width: 200px;
    height: 100%;
    background-color: var(--sidebar-background);
    opacity: .9;
    position: fixed !important;
    z-index: 2;
    overflow: auto;
    animation: animateleft .4s;
    border-right: 1px solid var(--theme-text);
}

nav.animateleft {
    animation: animateleft calc(var(--animationTime) * 1ms);
}

nav.animateright {
    animation: animateright calc(var(--animationTime) * 1ms);
}

@keyframes animateleft {
    from {
        left: -200px;
        opacity: 0;
    }

    to {
        left: 0px;
        opacity: 1;
    }
}

@keyframes animateright {
    from {
        left: 0px;
        opacity: 1;
    }

    to {
        left: -200px;
        opacity: 0;
    }
}

button {
    color: var(--button-text);
    background-color: var(--main-theme-color);
    border: none;
    margin-top: 16px;
    margin-bottom: 16px;
    font-weight: bold;
    cursor: pointer;
}

button[sidebar] {
    margin-top: 0px;
    margin-bottom: 0px;
    width: 100%;
    display: block;
    padding: 8px 16px;
    text-align: left !important;
    border: none;
    white-space: normal;
    float: none;
    outline: 0;
    background-color: var(--sidebar-background);
    font-weight: normal;
    font-size: 16px;
    color: var(--sidebar-label-text);
    transition: background-color calc(var(--animationTime) *1ms);
    -webkit-transition: background-color calc(var(--animationTime) *1ms);
}

button[sidebar]:last-of-type {
    position: absolute;
    margin-bottom: 60px;
    bottom: 60px;
}

.help {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--background);
    background: var(--theme-text);
    /* transform: translateY(1px); */
}

#block-nav {
    z-index: 999;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

/******************************************************************************/
/*  BUTTONS                                                                   */
/******************************************************************************/
@media (hover: hover) {
    button:hover {
        background-color: var(--hover-background) !important;
        color: var(--hover-foreground) !important;
    }

    table:hover[is-button] {
        background-color: var(--hover-background);
        color: var(--hover-foreground) !important;
        cursor: pointer;
        opacity: 0.5;

        td.field {
            color: inherit !important;
        }

        td.sublabel {
            background: inherit;
        }
    }

    tr:hover[row-button] {
        background-color: var(--hover-background);
        color: var(--hover-foreground) !important;
        cursor: pointer;
        opacity: 0.5;

        td {
            color: inherit;
        }
    }

    radiobutton.hover:hover {
        background-color: var(--hover-background);
        color: var(--hover-foreground) !important;
    }
}

/******************************************************************************/
/*  CONTEXT HELP AND OVERLAYS                                                 */
/******************************************************************************/
.selectedoverlay {
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #31C21D;
    z-index: 2;
    cursor: pointer;
}

.overlay,
#instruction {
    position: fixed;
    /* display: none; WANT VISIBLE FOR DEVELOPING
    opacity: 0; */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
    cursor: pointer;
}

@keyframes reveal {
    from {
        opacity: 0;
        display: none;
    }

    to {
        opacity: 1;
        display: block;
    }
}

@keyframes hide {
    from {
        opacity: 1;
        display: block;
    }

    to {
        opacity: 0;
        display: none;
    }
}

/******************************************************************************/
/*  PRODUCT LIST                                                              */
/******************************************************************************/
.test-img-content {
    max-height: calc(100vh - 200px);
    /* padding-bottom: 200px; */
}

.product-frame {
    display: flex;
    flex-direction: row;
}

.single-product-frame {
    margin: 10px;
    padding: 10px;
    /* width: 85%; */
    max-height: calc(100vh - 120px);
    border: thin solid var(--theme-text);
    box-shadow: 0px 0px 14px var(--theme-text);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.product {}

img.single-product {
    max-width: 100%;
    max-height: calc(100vh - 400px);
    display: flex;
    flex-direction: column;
    width: auto;
    object-fit: contain;
    align-items: center;
}

.single-product-price {
    font-family: Verdana;
    color: var(--theme-text);
    font-size: 2em;
    font-weight: bold;
    padding-left: 16px;
}

.single-product-overlay {
    background-color: rgba(0, 0, 0, 0.9) !important;
}

/******************************************************************************/
/*  CHECKOUT                                                                  */
/******************************************************************************/
.checkout-frame {
    display: grid;
    position: relative;
    margin: 0;
    grid-template-rows: 40px 4px 1fr 100px;
    grid-template-columns: 40px 60px 1fr 130px 90px 90px;
    grid-template-areas:
        "product-header    product-header      product-header      quantity-header     price-header    total-header"
        "separator         separator           separator           separator           separator       separator"
        "product-list      product-list        product-list        product-list        product-list    product-list "
        "cart-summary      cart-summary        cart-summary        cart-summary        cart-summary    cart-summary";
    width: 85%;
    height: 85%;
    justify-content: space-around;
    max-height: calc(100vh - 120px);
    border: thin solid var(--theme-text);
    box-shadow: 0px 0px 14px var(--theme-text);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: Verdana;
    background: black;
}

.center {
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.checkout-frame .left {
    padding-left: 8px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    /* border: solid thin yellow; */
}

.checkout-frame .right {
    display: flex;
    width: calc(100% - 8px);
    padding-right: 8px;
    margin-left: auto;
    justify-content: flex-end;
    align-items: center;
    text-align: right;
    /* border: solid thin yellow; */
}

.product-row {
    display: grid;
    margin: 0;
    width: 100%;
    height: 90px;
    grid-template-columns: 50px 60px 1fr 130px 90px 90px;
    grid-template-areas:
        "remove-product    product-image   product-detail      quantity     price    total";
    /* border: solid thin yellow; */
    /* max-height: 60px; */
    border-bottom: thin solid var(--theme-text);
}

.checkout-separator {
    grid-area: separator;
    border-bottom: 4px solid var(--theme-text);
}

.product-count {
    font-family: Verdana;
    font-weight: bolder;
    font-size: 25px;
    padding-left: 4px;
    padding-right: 4px;
}

.product-list {
    display: block;
    overflow: hidden;
    width: 100%;
    height: 100%;
    /* border: thin solid red; */
    z-index: -1;
    overflow-y: auto;
}

.swipe-checkout-frame {
    display: grid;
    position: relative;
    margin: 0;
    grid-template-rows: 40px 4px 1fr 100px;
    grid-template-columns: 1fr;
    width: 95%;
    height: 95%;
    justify-content: space-around;
    max-height: calc(100vh - 120px);
    border: thin solid var(--theme-text);
    box-shadow: 0px 0px 14px var(--theme-text);
    /* position: absolute; */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: Verdana;
    background: black;
}

.swipe-container {
    display: block;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--theme-text);
    touch-action: pan-y;
}

.swipe-header {
    display: flex;
    position: relative;
    align-items: center;
}

.swipe-indicator {
    margin: 0px 6px 0px 6px;
    display: flex;
    width: 30px;
    height: 30px;
    font-size: 28px;
    justify-content: center;
    align-items: center;
    line-height: 1;
    border-radius: 50%;
    color: var(--background);
    background: var(--label-text);
}

.swipe-help-line-arrows {
    vertical-align: middle;
    font-size: 30px;
    padding: 0px 6px 0px 6px;
    line-height: 1;
    transform: translateY(-2px);
}

.swipe-help-line {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    line-height: 1;
    color: var(--label-text);
}

.cart-help-overlay-round-button {
    background: var(--label-text) !important;
}

.swipe-trash-can {
    position: absolute;
    right: 60px;
}

.swipe-help-button {
    position: absolute;
    right: 100px;
    background: var(--label-text) !important;
}

.swipe-indicator-left {
    position: absolute;
    left: 0;
}

.swipe-indicator-right {
    position: absolute;
    right: 0;
}

.swipe-content {
    display: grid;
    grid-template-columns: 50px 1fr;
    grid-template-rows: 50px 20px;
    height: 100%;
    background: black;
    height: 70px;
    padding: 6px 15px 6px 15px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    font-weight: normal;
    font-size: 14px;
    font-family: 'Verdana', sans-serif;
    color: var(--theme-text);
}

.swipe-image {
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    object-fit: contain;
    /* maintains aspect ratio */
}

.swipe-description {
    padding-left: 6px;
}

.swipe-price {
    position: absolute;
    bottom: 6px;
    right: 15px;
    /* height: 30px; */
    font-size: 18px;
}

.swipe-grand-total {
    display: flex;
    width: auto;
    padding: 15px;
    justify-content: right;
    color: var(--theme-text);
    font-size: 28px;
    border-top: 4px solid var(--theme-text);
    border-bottom: 4px solid var(--theme-text);
}

.action {
    position: absolute;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.slider-right-btn {
    width: calc(var(--checkoutBtnWidth) * 1px);
    background: #e74c3c;
    right: 0;
}

.slider-left-btn {
    width: calc(var(--checkoutBtnWidth) * 1px);
    background: #3498db;
    left: 0;
}

.slider-sub-button {
    display: flex;
    width: 75px;
    height: 82px;
    background: none;
    border-left: solid thin var(--theme-text) !important;
    border-right: solid thin var(--theme-text) !important;
    font-weight: bold;
    font-size: 60px;
    justify-content: center;
    align-items: center;
    color: var(--theme-text);
}

.slider-sub-button:active,
.slider-right-btn:active {
    background: var(--hover-foreground);
    color: var(--hover-background);
}

.swiped-left {
    transform: translateX(-100px);
}

.swiped-right {
    transform: translateX(100px);
}

/******************************************************************************/
/*  NUMBER SPINNER                                                            */
/******************************************************************************/
.spinner {
    /* margin: 0px 8px 0px 4px; */
    display: flex;
    width: 85px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

.spinnerbtn {
    width: 30px;
    height: 30px;
    background: var(--theme-text);
    font-weight: bold;
    font-size: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
    -webkit-border-radius: 15px;
}

.spinnerbtn.remove {
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    height: 100%;
    margin-left: 8px;
    background: red;
    font-size: 28px;
}

.spinnerbtn.remove:hover {
    background: var(--hover-foreground);
    color: red;
    border: solid thin red;
}

.increment {
    border: none;
}

.spinnerbtn.increment:hover {
    border: solid thin var(--hover-background);
    background: var(--hover-foreground) !important;
    color: var(--hover-background) !important;
}

.disabled {
    border: none;
    color: grey !important;
    background: lightgrey;
}

.spinval {
    max-width: 60px;
    width: 50px;
    height: 40px;
    font-weight: bold;
    font-size: 30px;
}

.spinval:disabled {
    color: black;
}

@media screen and (orientation:landscape) {
    /* Needs a lanscape mode setting up */
}

/******************************************************************************/
/*  OVERRIDES FOR MOBILES AND TABLETS                                         */
/******************************************************************************/
@media (max-width: 992px) {
    nav[left] {
        display: none;
    }

    .single-product-frame {
        max-height: calc(100vh - 120px);
        display: flex;
        flex-direction: column;
        width: auto;
    }

    /* img.single-product {
max-height: calc(100vh - 200px);
display: flex;
flex-direction: column;
width: auto;
object-fit: contain;
align-items: center;
} */
    .product-frame {
        padding: 20px;
    }

    .product-frame img {
        width: 80%;
        padding: 1px;
        margin-left: auto;
        margin-right: auto;
        border-radius: 5px;
        box-shadow: 0px 0px 14px var(--theme-text);
        border: thin solid var(--theme-text);
    }

    heading {
        font-size: 24px !important;
        padding-right: 16px;
    }

    .submit-area {
        margin-left: 10px;
    }

    .submit-area-nosidebar button {
        height: 40px;
        font-size: 18px;
        margin-right: 10px;
        margin-left: 10px;
    }

    #overlay-content {
        position: absolute;
        top: 10%;
        left: 5%;
        right: 5%;
        font-family: sans-serif;
        font-size: 22px;
        color: white;
    }

    .context-help {
        position: absolute;
        top: 10%;
        left: 5%;
        right: 5%;
        font-size: 22px !important;
        color: white;
    }

    .main-content {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .single-product-frame {
        width: 85%;
        margin: 0px;
    }
}

/******************************************************************************/
/*  OVERRIDES FOR DESKTOP                                                     */
/******************************************************************************/
/* if width is changed here it should be matched in closeSidebar() function */
@media (min-width: 993px) {
    .submit-area {
        margin-left: 210px;
    }

    button[menu-button] {
        display: none !important;
    }

    nav[left] {
        display: block !important;
    }

    progbar {
        margin-left: 200px;
    }

    #overlay-content,
    #instruction {
        position: absolute;
        top: 50%;
        left: 50%;
        font-size: 30px;
        font-family: sans-serif;
        color: white;
        transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
        z-index: 999;
    }

    .context-help {
        position: absolute;
        top: 50%;
        left: 50%;
        font-family: sans-serif;
        font-size: 30px !important;
        color: white;
        transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
        z-index: 999;
    }

    .test-img-content {
        display: flex;
        flex-wrap: wrap;
        /* margin: 20px 0px 20px 0px; */
        justify-content: center;
        gap: calc(var(--tileGap)*1px);
    }

    .product-frame {
        display: flex;
        flex-direction: column;
        /* justify-content: center;
        align-items: center; */
        box-sizing: border-box;
        /* opacity: 0; */
        transition: opacity calc(var(--animationTime) * 1ms) ease;
        -webkit-animation: opacity calc(var(--animationTime) * 2ms) ease;
        border-radius: 12px;
        /* margin-top: 20px; */
        box-shadow: 0px 0px 14px var(--theme-text);
        border: thin solid var(--theme-text);
        padding: 8px 8px 8px 8px;
        height: calc(var(--tileHeight)*1px);
        width: calc(var(--tileWidth)*1px);
    }

    .product-frame img {
        max-width: 100%;
        max-height: 100%;
        margin: auto;
        object-fit: contain;
        /* maintains aspect ratio */
    }

    .product-frame.visible {
        opacity: 1;
    }

    img.preview-test {
        transition: reveal 2s ease;
        -webkit-animation: reveal 2s ease;
    }
}

.notification-box {
    font-family: sans-serif;
    display: none;
    background: var(--background);
    width: auto;
    height: auto;
    position: absolute;
    padding: 10px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    border-radius: 10px;
    border: outset;
    border-width: thin;
    border-color: lightgrey;
    z-index: 999;
}

form.upload-form {
    padding: 10px 0px 10px 0px;
}

/* Submit buttons without sidebar */
.notification-button {
    /* -webkit-padding-after: 100px; */
    /* padding-bottom: 80px; */
    /* margin-left: 10px;
    margin-right: 10px; */
    /* bottom: 80px; */
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.notification-button[login=on] {
    padding-bottom: 0px;
    margin-left: -10px;
    margin-right: -10px;
}

.notification-button button {
    flex: auto;
    height: 60px;
    font-size: 25px;
    margin-right: 10px;
    margin-left: 10px;
}

/******************************************************************************/
/*  DROP DOWN LIST                                                            */
/******************************************************************************/
.ddl {
    width: 100%;
    height: 35px;
    font-weight: bold;
    font-size: 18px;
}

input.field {
    width: 100%;
    height: 35px;
    font-weight: bold;
    font-size: 18px;
}

/* Progress bar */
/******************************************************************************/
/*  PROGRESS BAR                                                              */
/******************************************************************************/
progbar {
    grid-area: progbar;
    padding: 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* align-items: left; */
}

.progress-bar {
    height: 6px;
    width: 100%;
    border: solid darkblue 2px;
    border-radius: 6px;
    /* margin-top: 16px;
margin-bottom: 16px; */
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: lightblue;
    display: flex;
    align-items: center;
    border-radius: 6px;
    transition: width 0.25s;
}

.progress-bar-text {
    padding: 5px 0px 5px 2px;
    font-family: sans-serif;
    color: var(--themetext);
}

/******************************************************************************/
/*  SVG CONTAINER                                                             */
/******************************************************************************/
svgbox {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    /* flex-direction: column; */
    z-index: -1;
    /* margin: auto;
  padding: auto;
  position: absolute; */
    transform: translate(-50%, -50%);
}

svgbox text {
    /* width: 100%;
  height: 100%;
  margin: auto;
  position: absolute;
  display: flex; */
    font-family: frijole;
    /* font-weight: bolder; */
    font-size: 18px !important;
    fill: #c68c53;
}

@supports (-webkit-touch-callout: none) {
    /* CSS specific to iOS devices svgbox */
    /* svgbox textPath {
    letter-spacing: 2px;
  } */
}

/* --- CSS PAGE GENERATOR --- */
.css-gen-frame {
    margin: 10px;
    padding: 10px;
    /* width: 85%; */
    max-height: calc(100vh);
    border: thin solid var(--theme-text);
    box-shadow: 0px 0px 14px var(--theme-text);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.css-result-frame {
    width: 500px;
    height: 800px;
    background: var(--label-text);
}

.pxtopt-form,
.css-gen-form {
    display: grid;
    grid-template-columns: 130px 1fr 40px;
    width: max-content;
    overflow: none;
    background: var(--theme-text);
    row-gap: 8px;
}

.pxtopt-form {
    grid-template-columns: 110px 80px 170px;
    padding: 10px;
}

.pxtopt-form-header,
.css-gen-form-header {
    display: flex;
    align-items: center;
    height: 40px;
    font-size: 18px;
    letter-spacing: 1px;
    font-weight: bold;
    font-family: "Liberation Sans";
    grid-column: span 3;
    color: var(--main-theme-color);
    background: var(--theme-text);
    padding-left: 8px;
    overflow: none;
}

.pxtopt-form-label,
.css-gen-form-label {
    border: 1px solid var(--theme-text);
    height: 40px;
    color: var(--main-theme-color);
    background: var(--theme-text);
    padding-left: 8px;
    overflow: none;
}

.pxtopt-form-label {
    font-size: 30px !important;
}

.css-gen-btm {
    display: flex;
    align-items: flex-end;
}

.css-gen-form-field {
    background: var(--main-theme-color);
    border: 1px solid var(--theme-text);
    color: white;
    font-size: 24px;
    height: 40px;
    overflow: none;
    border: none;
}

.css-gen-form-field:user-invalid+.error-star {
    display: inline;
    color: red;
}

.css-gen-form-field:user-invalid {
    outline: 2px solid red;
}

.error-star {
    visibility: hidden;
    color: red;
}

/*  --- CSS RESULTS --- */
/* 1. Interface Styling */
.code-container {
    background: #1e1e1e;
    /* VS Code dark theme */
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    max-height: 600px;
}

.code-header {
    background: #2d2d2d;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3c3c3c;
}

.dimensions {
    color: #aaa;
    font-size: 0.85rem;
}

.copy-button {
    background: #0078d4;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s;
}

.copy-button:hover {
    background: #005a9e;
}

/* 2. Syntax Highlighting Colors */
pre {
    margin: 0;
    padding: 15px;
    overflow-y: auto;
    /* Adds vertical scrollbar when content is too long */
    overflow-x: auto;
    /* Keeps horizontal scroll for long lines */
    flex-grow: 1;
}

code {
    color: #d4d4d4;
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.comment {
    color: #6a9955;
}

.selector {
    color: #d7ba7d;
}

.property {
    color: #9cdcfe;
}

.value {
    color: #ce9178;
}

.keyword {
    color: #569cd6;
}
