
:root {
    --title-font:
        "Vollkorn",
        /* "Lora", */
        /* "Podkova",  */
        /* "Domine", */
        /* "Young Serif", */
        sans-serif;

    --title-size: 3rem;
    --title-weight: 400;
    --body-weight: 500;

    --body-font:
        "Vollkorn",
        "Miriam Libre",
        "Cutive",
        "Domine",
        sans-serif;

    --col-darkest: #2d2d2d;
    --col-darkest: #74665e;
    --col-muted-white: #f5f5f5;
    --col-bright-white: #fafafb;
    background-color: var(--col-muted-white);
    --col-vile-yellow: #dfe4c5;
    --col-title: var(--col-darkest);
    --col-button-links: var(--col-darkest);
    --col-base-text: var(--col-darkest);
    --col-button-bg: var(--col-vile-yellow);
    --col-button-border: rgb(231, 241, 232);
    --border-a: 4px solid var(--col-darkest);
    --border-thickness: 4px;
    --col-links:#cfb13a;
    --col-links-active:black;
    --col-bg: #fafafb;

    --shadow-a:1px 1px 1px #ccc3;
    --html-padding: 2rem;
    user-select: none;
    /* padding:.5rem; */
    /* margin:2rem 1rem; */
}
*::selection,
*::-moz-selection,
*::-webkit-selection {
  background: #d7cec7;
  color: var(--col-darkest);
  
}

a {
    color:var(--col-links);
}
a:hover{
    color:var(--col-links-active);
}

html {
    padding: var(--html-padding) calc(var(--html-padding));
    min-height: 100vh;
    box-sizing: border-box;
}

body {
    box-sizing: border-box;
    font-family: var(--body-font), system-ui, -apple-system, sans-serif;
    font-weight: var(--body-weight);
    line-height: 1.6;
    color: var(--col-base-text);
    display: flex;
    flex-direction: column;
    background-color: var(--col-bright-white);
    width: 100%;
    margin: 0;
    min-height: calc(100vh - calc(var(--html-padding) * 2));
    box-shadow: var(--shadow-a)
}

.h-flex {
    display: flex;
    flex-direction: row;
}

.v-flex {
    display: flex;
    flex-direction: column;
}


.gap-a {
    gap: 1rem;
}

.bottom {
    align-self: end;
}

.w-fill {
    width: 100%;
}

.flex-grow {
    flex: 1;
}

.end {
    justify-self: end;
}

@keyframes dash-offset {
    0% {
        background: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23dfe4c5' stroke-width='4' stroke-dasharray='8,8' stroke-dashoffset='0'/%3e%3c/svg%3e");
    }

    25% {
        background: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23dfe4c5' stroke-width='3' stroke-dasharray='8,8' stroke-dashoffset='4'/%3e%3c/svg%3e");
    }

    50% {
        background: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23dfe4c5' stroke-width='2' stroke-dasharray='8,8' stroke-dashoffset='8'/%3e%3c/svg%3e");
    }

    75% {
        background: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23dfe4c5' stroke-width='3' stroke-dasharray='8,8' stroke-dashoffset='12'/%3e%3c/svg%3e");
    }

    100% {
        background: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23dfe4c5' stroke-width='4' stroke-dasharray='8,8' stroke-dashoffset='16'/%3e%3c/svg%3e");
    }
}

button {
    /* background: transparent; */
    /* background: var(--col-darkest); */
    /* color: var(--col-base-text); */
    /* color: var(--col-bg); */
    color: var(--col-button-links);
    font-weight: 600;
    height: fit-content;
    padding: 1rem;
    border: none;
    /* border: var(--border-a); */
    padding: 8px 16px;
    border-radius: 0;
    cursor: pointer;
    margin: 4px;
    position: relative;
    font-family: var(--body-font);
    background: transparent;

    /* width: fit-content; */
    &>* {}

    /* border-top:2px solid var(--col-button-border);
    border-bottom:2px solid var(--col-button-border); */
}

button:hover {
    box-shadow: 0 2px 0 0 var(--col-darkest);
    /* background: transparent; */
    /* border: none; */
    color: var(--col-darkest);
    font-weight: 600;
    box-sizing: border-box;

}

/* button:hover::before {
    content: '';
    position: absolute;
    top: calc(-1 * var(--border-thickness));
    left: calc(-1 * var(--border-thickness));
    right: calc(-1 * var(--border-thickness));
    bottom: calc(-1 * var(--border-thickness));
    animation: dash-offset 0.8s linear infinite;
    pointer-events: none;
    } */
.content {
    margin: 0 2rem;
    padding: 0rem 4rem 1rem 4rem;
    display: flex;
}

& #header-nav {
    justify-content: space-between;
    gap: 1vw;
    padding: 1rem 2rem 2rem 2rem;

    #title-text {
        box-sizing: border-box;
        /* padding: clamp(0.5rem, 1vw, 1.5rem) clamp(1rem, 2vw, 3rem); */
        /* padding:2rem; */
        /* border:2px solid var(--col-darkest); */
        user-select: none;
        /* background-color: var(--col-vile-yellow); */
        /* width:15rem; */
        height: fit-content;
        padding: 1rem .5rem 0 0;

        &>* {
            /* padding:1vw; */
            width: fit-content;
            white-space: nowrap;
        }
    }

    & .title {
        width: fit-content;
        /* color:var(--col-title); */
        font-size: clamp(2rem, 4vw, 3rem);
        font-size:3rem;
        line-height: clamp(2rem, 4vw, 3rem);

        /* font-family: "Young Serif", serif; */
        /* font-family: "Texturina", serif; */
        /* font-family: "Gelasio", serif; */
        /* font-family: "Podkova", serif; */
        font-family: var(--title-font);
        font-weight: var(--title-weight, 700);
        font-style: normal;
    }

    & #header-buttons {
        flex-wrap: wrap;
        gap: 8px;
        max-width: 50vw;

        & button {

            font-size: 1.8rem;
            /* flex: 1 1 auto;
                min-width: max-content; */
            white-space: nowrap;
            padding: 0;
            font-weight: 400;
        }
    }

    /* margin-top:2rem;
        margin:2rem 2rem 0 2rem */
}

#header-nav,
.content {

    box-sizing: border-box;
    /* background-color: var(--col-bright-white); */

}




marquee-scroller {
    border-top: solid 2px var(--col-darkest);
}

#marquee-buttons {
    height: fit-content;
    padding-bottom: 1rem;
    padding-top: 1rem;

    /* gap:1rem; */
    & button {
        margin: 0;
        padding: 0;
        width: fit-content;
        font-size: 1.6rem;
        white-space: nowrap;
    }
}



html.mobile {
    padding: 0.5rem;

    & #header-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.75rem 1rem 1rem 1rem;

        & #title-text {
            padding: 0.5rem 0 0 0;

            & .title {
                font-size: 2rem;
                line-height: 2rem;
            }
        }

        & #header-buttons {
            align-self: stretch;
            justify-content: flex-start;
            max-width: 100%;
            gap: 4px;

            & button {
                font-size: 1.2rem;
                padding: 0;
            }
        }
    }

    & #tab-content {
        padding: 0 0.5rem 0.5rem 0.5rem;
    }

    & .content {
        margin: 0 0.5rem;
        padding: 0 0.5rem 0.5rem 0.5rem;
    }

    & #marquee-buttons {
        padding: 0.5rem;

        & button {
            font-size: 1.2rem;
        }
    }
}

#tab-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    height: 100%;
    flex: 1;
    min-height: 0;
    padding: 2rem;
    box-sizing: border-box;
    overflow: hidden;
    &:has(home-component){
        padding: 0;
    }
}



input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 4px;
}

textarea {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 4px;
    width: 300px;
    height: 80px;
    resize: vertical;
}

.success {
    color: green;
}

.loading {
    opacity: 0.6;
}

.hidden {
    display: none;
}



/* Gap utilities */
.gap-0 {
    gap: 0;
}

.gap-1 {
    gap: 1rem;
}

.gap-2 {
    gap: 2rem;
}

.gap-3 {
    gap: 3rem;
}

.gap-4 {
    gap: 4rem;
}

.gap-5 {
    gap: 5rem;
}

.gap-6 {
    gap: 6rem;
}

.gap-8 {
    gap: 8rem;
}

.gap-10 {
    gap: 2.5rem;
}

.gap-12 {
    gap: 3rem;
}

.podkova-heavy {
    font-family: "Podkova", serif;
    font-optical-sizing: auto;
    font-weight: 900;
    font-style: normal;
}




.content {
    flex: 1 0 auto;
}

#marquee-footer {
    flex-shrink: 0;
    overflow: hidden;
}

marquee-scroller:not(:defined) {
    visibility: hidden;
}

marquee-scroller {
    display: block;
    overflow: hidden;
    width: 100%;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
}

.marquee-offset {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.marquee-faded {
    opacity: 0.2;
}

.marquee-centered {
    opacity: 1;
}

.marquee-disabled {
    color: var(--col-gray, #888);
    cursor: default;
    pointer-events: none;
}

.marquee-container {
    display: flex;
    animation: marquee 20s linear infinite;
}

.marquee-content {
    flex-shrink: 0;
    white-space: nowrap;
}

@keyframes marquee {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

iframe {
    width: 80vh;
    height: 60vh;

    resize: vertical;
    overflow: hidden;
}

.test-big-el {
    height: 200vh;
    background: linear-gradient(to bottom, red, blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

/* Layout for web components */
html, body {
    height: 100%;
    overflow: hidden;
}

body {
    display: flex;
    flex-direction: column;
}

.content {
    padding: 0;
    margin: 0;
    display: flex;
    flex: 1;
    min-height: 0;
}

canvas {
    width: 100%;
    flex: 1;
    min-height: 0;
    border: 2px solid var(--col-muted-white);
    display: block;
}

/* CAD Demo Styles */
.cad-demo-layout {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    flex: 1 1 0;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.cad-demo-viewer {
    flex: 1;
    min-width: 0;
    min-height: 0;
    border: 1px solid #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.cad-status-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    font-size: 0.85rem;
    color: #333;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.cad-status-overlay .status-main {
    font-weight: 500;
}

.cad-status-overlay .status-detail {
    color: #666;
    font-style: italic;
}

.cad-demo-controls {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(235, 235, 235, 0.39);
    padding: 1rem;
    border-radius: 6px;
    box-sizing: border-box;
}

.cad-demo-description {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.cad-demo-description p {
    margin: 0 0 0.75rem 0;
}

.cad-demo-description p:last-child {
    margin-bottom: 0;
}

.cad-demo-controls label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.drill-specs-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 24px;
    gap: 4px;
    font-size: 0.7rem;
    opacity: 0.6;
    padding: 0 2px;
}

.drill-specs-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.drill-specs-list::-webkit-scrollbar {
    width: 6px;
}

.drill-specs-list::-webkit-scrollbar-track {
    background: transparent;
}

.drill-specs-list::-webkit-scrollbar-thumb {
    background: rgba(128, 128, 128, 0.4);
    border-radius: 3px;
}

.drill-specs-list::-webkit-scrollbar-thumb:hover {
    background: rgba(128, 128, 128, 0.6);
}

.drill-spec-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 24px;
    gap: 4px;
    align-items: center;
}

.drill-spec-row input {
    width: 100%;
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #f5f5f5;
    color: #333;
    font-size: 0.8rem;
    box-sizing: border-box;
}

.drill-spec-row input:focus {
    outline: none;
    border-color: #666;
}

.drill-spec-row button {
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    border-radius: 3px;
    background: transparent;
    color: #888;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.drill-spec-row button:hover {
    background: #3c3c3c;
    color: #ff6b6b;
}

.add-drill-btn {
    padding: 6px;
    border: 1px dashed var(--col-darkest, #444);
    border-radius: 4px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 0.75rem;
    opacity: 0.7;
}

.add-drill-btn:hover {
    opacity: 1;
    border-color: #0e639c;
}

.cad-demo-actions {
    display: flex;
    gap: 0.5rem;
}

.cad-demo-actions button {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    font-family: inherit;
    line-height: 1.2;
}

.cad-demo-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#cad-generate-btn {
    background: #0e639c;
    color: #ffffff;
}

#cad-generate-btn:hover:not(:disabled) {
    background: #1177bb;
}

#cad-download-btn {
    background: #3c3c3c;
    color: #d4d4d4;
}

#cad-download-btn:hover:not(:disabled) {
    background: #4c4c4c;
}

.cad-demo-status {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border-radius: 2px;
    margin-top: 0.5rem;
    color: #333;
}

.cad-demo-status .status-label {
    font-style: italic;
    color: #888;
}

.cad-demo-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: #0e639c;
    border-radius: 50%;
    animation: cad-spin 0.8s linear infinite;
}

@keyframes cad-spin {
    to { transform: rotate(360deg); }
}

/* CAD Demo Mobile Styles */
html.mobile .cad-demo-layout {
    flex-direction: column;
    gap: 0.5rem;
}

html.mobile .cad-demo-viewer {
    flex: 0 0 auto;
    height: 50vh;
    min-height: 200px;
    order: -1; /* Viewer on top */
}

html.mobile .cad-demo-controls {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0.75rem;
}

.cad-controls-mobile {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    min-height: 0;
    flex: 1;
}

.cad-controls-mobile .cad-demo-description {
    flex: 1 1 50%;
    min-width: 0;
    margin-bottom: 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.cad-controls-mobile .cad-demo-description h2 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
}

.cad-controls-mobile .cad-demo-description p {
    margin: 0 0 0.5rem 0;
    font-size: 0.8rem;
}

.cad-controls-mobile .cad-demo-params {
    flex: 1 1 50%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cad-demo-params {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-height: 0;
}

.cad-demo-params .drill-specs-list {
    flex: 1;
    min-height: 0;
    max-height: 120px;
}


/* ========================================
   Resume Page - Landscape Layout
   ======================================== */
