html, body {
    overflow-x: hidden;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background-color: #E9E9EB;
    color: #333;
    font-family: 'Univers', 'Univers LT Std', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-kerning: normal;
    /* Hide scrollbar for Firefox */
    scrollbar-width: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

/* Hide scrollbar for IE, Edge */
body {
    -ms-overflow-style: none;
}

body {
    background-color: #E9E9EB;
    font-family: 'Univers', 'Univers LT Std', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    padding-bottom: 60px;
  }

/* Analog Highlighter Text Selection */
::selection {
    background-color: #CCFF00;
    color: #000000;
}
/* Firefox */
::-moz-selection {
    background-color: #CCFF00;
    color: #000000;
}

/* Permanent Highlighter - Zero Footprint */
.permanent-highlight {
    background-color: #CCFF00;
    color: #000000;
    padding: 0;
    margin: 0;
    border: none;
    line-height: inherit;
    letter-spacing: inherit;
    border-radius: 0;
}

/* Action Link Styling */
.action-link {
    color: inherit;
    text-decoration: none;
    font-family: monospace;
    transition: background-color 0.2s ease-out, color 0.2s ease-out;
    padding: 0 2px;
}

.action-link:hover {
    background-color: #000000;
    color: #CCFF00;
}



h1 {
    font-family: 'Univers', 'Univers LT Std', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    color: black;
    font-size: 16px;    
}

h2 {
    font-family: 'Univers', 'Univers LT Std', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    color: #797673;
    font-size: 16px;    
}

a {
    font-family: 'Univers', 'Univers LT Std', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #797673;
    text-decoration: none;
}

a:hover {
    font-family: 'Univers', 'Univers LT Std', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #B4B4B4;
    text-decoration: none;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #E9E9EB;
    padding: 10px 40px;
    color: #E9E9EB;
    position: relative;
    box-sizing: border-box;
    max-width: 100%;
}

.navbar-left, .navbar-center, .navbar-right {
    display: flex;
    align-items: center;
    font-family: 'Univers', 'Univers LT Std', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    color: black;
    height: 100%;
    line-height: 1;
}

.navbar-right {
    margin-left: auto;
}

.navbar-center {
    flex-grow: 1;
    justify-content: center;
    font-family: 'Univers', 'Univers LT Std', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    color: black;
    left: 50%; 
    transform: translateX(-50%);
    position: absolute;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: #E9E9EB;
    color: black;
    border: none;
    cursor: pointer;
    font-family: 'Univers', 'Univers LT Std', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    padding: 10px;
    line-height: 1;
    display: flex;
    align-items: center;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #E9E9EB;
    min-width: 160px;
    z-index: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform, opacity;
}

.dropdown-content a {
    color: #797673;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform, opacity;
}

.dropdown-content a:hover {
    background-color: #E9E9EB;
    color: #B4B4B4;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: #E9E9EB;
}

.title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 0px;
    text-align: center;
}

.title-work {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 175px;
    margin-bottom: 10px;
    text-align: center;
    font-weight: bold;
}

strong, b {
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.5px;
    color: inherit;
}

.skill {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    text-align: center;
}

.skill > div {
    background-color: #E9E9EB;
    padding: 10px;
    text-align: center;
    flex: 1;
    max-width: 200px;
}

.skillbtn {
    background-color: #E9E9EB;
    color: black;
    border: none;
    cursor: pointer;
    font-family: 'Univers', 'Univers LT Std', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    margin-top: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-text {
    text-align: justify;
    margin-top: 15px;
    color: #797673;
    font-family: 'Univers', 'Univers LT Std', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    max-width: 600px;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    word-break: break-word;
    text-align-last: left;
}

.skillbtn a:hover {
    background-color: #E9E9EB;
    color: #B4B4B4;
}

.more {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: px;
    margin-bottom: 10px;
}

.portfolio {
    background-color: #E9E9EB;
    margin: 20px auto;
    margin-top: 50px;
    margin-bottom: 10px;
    width: 25%;
    text-align: left;
    font-size: 16px;
    line-height: 1.6;
    color: #797673;
}

.more2 {
    background-color: #E9E9EB;
    color: #797673;
    border: none;
    cursor: pointer;
    font-family: 'Univers', 'Univers LT Std', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    margin-top: 15px;
}

.documents {
    display: none;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.documents a {
    margin: 5px 0;
    font-size: 16px;
    color: #797673;
    text-decoration: none;
}

.resume {
    font-family: 'Univers', 'Univers LT Std', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: black;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 0px;
    text-align: center;
}

.portrait {

    height: 200px;
    width: 200px;
}

.documents-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}


#datetime {
    font-family: 'Univers', 'Univers LT Std', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    color: black;
    line-height: 1;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
}

.content-blocks {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 40px 20px;
    width: 100%;
    box-sizing: border-box;
}

.block-headline {
    width: 100%;
    text-align: left;
}

.content-block {
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.4s ease, margin-top 0.4s ease;
    box-sizing: border-box;
}

.block-headline {
    font-family: 'Univers', 'Univers LT Std', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: black;
    margin-bottom: 15px;
    text-align: center;
    user-select: none;
    width: 100%;
}

.block-headline.clickable-block {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.block-headline.clickable-block:hover {
    opacity: 0.7;
}

.block-text {
    font-family: 'Univers', 'Univers LT Std', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    color: #797673;
    text-align: justify;
    line-height: 1.6;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    word-break: break-word;
    text-align-last: left;
    margin: 0;
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform, opacity;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.5s ease 0.1s, 
                margin-top 0.5s ease;
}

.block-text.expanded {
    max-height: 5000px;
    opacity: 1;
    margin-top: 15px;
}

.content-block.expanded {
    transform: translateY(-30px);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.block-text strong, .block-text b {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: inherit;
}

.cv-link-wrapper {
    display: block;
    text-align: right;
    width: 100%;
    margin-top: 10px;
}

.cv-link {
    color: #797673;
    text-decoration: none;
    font-family: 'Univers', 'Univers LT Std', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
}

.cv-link:hover {
    color: #B4B4B4;
    text-decoration: none;
}

/* Session Receipt - Matches Legal Box */
.copyright-trigger {
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    font-family: 'Univers', 'Univers LT Std', 'Helvetica Neue', Arial, sans-serif;
    font-size: 10px;
}

.receipt-container {
    position: absolute;
    bottom: 100%;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
    width: max-content;
    min-width: 200px;
    max-width: 300px;
    background-color: #E9E9EB;
    border: 1px solid #000;
    padding: 10px 15px;
}

.footer-left:hover .receipt-container {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.receipt {
    font-family: 'Univers', 'Univers LT Std', 'Helvetica Neue', Arial, sans-serif;
    font-size: 10px;
    color: #000;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.receipt p {
    margin: 5px 0;
    padding: 0;
    line-height: 1.6;
    font-size: 10px;
}

.receipt p:last-child {
    margin-bottom: 0;
}

.receipt strong {
    font-weight: 600;
    color: #000;
}

.receipt span {
    color: #797673;
}

/* Telemetry HUD */
#telemetry-hud {
    position: fixed;
    top: 60px;
    left: 40px;
    z-index: 9999;
    font-family: 'Univers', 'Univers LT Std', 'Helvetica Neue', Arial, sans-serif;
    font-size: 10px;
    color: #797673;
    background-color: #E9E9EB;
    padding: 10px 15px;
    pointer-events: none;
    display: none;
    line-height: 1.6;
    border: 1px solid #000;
    white-space: pre;
    min-width: 200px;
    max-width: 300px;
}

#telemetry-hud p {
    margin: 5px 0;
    padding: 0;
}

#telemetry-hud strong {
    color: #000;
    font-weight: 600;
}

#footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #E9E9EB;
    padding: 10px 20px;
    z-index: 100;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    font-family: 'Univers', 'Univers LT Std', 'Helvetica Neue', Arial, sans-serif;
    font-size: 10px;
    color: #797673;
}

.footer-left,
.footer-center,
.footer-right {
    flex: 1;
    text-align: center;
}

.footer-left {
    text-align: left;
}

.footer-right {
    text-align: right;
    position: relative;
}

.footer-left span,
.footer-center span {
    user-select: text;
    cursor: pointer;
}

.footer-center .location {
    cursor: pointer;
    transition: none;
    user-select: text;
}

.footer-center .location.show-coordinates {
    font-family: monospace;
    letter-spacing: 0.5px;
}

.location-space {
    display: inline-block;
    width: 4em; /* Creates a consistent space equivalent to about 4 'M' characters */
}

.legal-trigger {
    cursor: pointer;
    transition: opacity 0.2s ease;
    user-select: none;
}

.legal-trigger:hover {
    opacity: 0.7;
}

.legal-popup {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 10px;
    background-color: #E9E9EB;
    border: 1px solid #000;
    padding: 10px 15px;
    width: max-content;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 101;
    border-radius: 0;
}

.footer-right:hover .legal-popup {
    opacity: 1;
    visibility: visible;
}

.legal-info {
    font-family: 'Univers', 'Univers LT Std', 'Helvetica Neue', Arial, sans-serif;
    font-size: 10px;
    color: #797673;
    line-height: 1.6;
    cursor: text;
    user-select: text;
    text-align: left;
}

.legal-info p {
    margin: 5px 0;
}

.legal-info strong {
    color: black;
    font-weight: 400;
}