:root {
    --color-bg-bg: #1e1e1e;
    --color-bg: #32353E;
    --color-bg-alt: #3b3f4a;
    --color-text: #FAFAFA;
    --color-text-alt: #7B83A1;
    --color-text-alt-lighter: #b1bbe1;
    --color-highlight: #01D5FF;

    --value-avatar-length: 7rem;
    --value-side-width: 9rem;
    --value-container-max-width: 1280px;
}

* {
    z-index: 1;
    text-underline-offset: 3px;
}

*, *::before, *::after {
    outline: none;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

*::before, *::after {
    pointer-events: none;
}

html, body {
    position: relative;
    height: 100vh;
    width: 100vw; 
    font-family: Arial, Helvetica, monospace, serif, sans-serif;
    /* font-family: Arial, Verdana, Helvetica, Tahoma, Trebuchet MS, Times New Roman, Georgia, Garamond, Courier New, Brush Script MT, monospace, cursive, serif, sans-serif; */
    font-size: 16px;
    color: var(--color-text);
    background: var(--color-bg-bg);
    line-height: 1.2;
}

.container {
    position: relative;
    width: 100%;
    height: auto;
    /* max-width: var(--value-container-max-width); */
    margin: 0 auto;
    color: var(--color-text);
    background: var(--color-bg-bg);
    font-size: 1rem;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
    gap: 0;
}

@media screen and (max-width: 700px) {
    .container {
        font-size: .8rem;
    }
}

*,
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

*::-webkit-scrollbar,
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* ------------------ */

.a4 {
    /* width: 794px;
    height: 1123px; */
    width: 44rem;
    height: 70.2rem;
} 

.pages {
    position: relative;
    width: 100%;
    height: auto;
    /* max-width: var(--value-container-max-width); */
    margin: 0 auto;
    color: var(--color-text);
    background: var(--color-bg-bg);
    font-size: inherit;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    overflow: scroll;
}

.page {
    position: relative;
    /* width: 100%;
    height: auto; */
    margin: 0 auto;
    color: var(--color-text);
    background: var(--color-bg);
    font-size: inherit;
    display: flex;
    flex-flow: row nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
}

.page .caption {
    position: relative;
    height: 100%;
    width: var(--value-side-width);
    color: var(--color-highlight);
    display: flex;
    flex-flow: column nowrap;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 0;
    overflow: hidden;
}

.page .caption span {
    position: relative;
    writing-mode: vertical-lr;
    text-orientation: sideways;
    transform: scale(-1);
    font-size: var(--value-side-width);
    font-weight: bold;
}

.page .caption span.highlight {
    color: var(--color-text);
}

.page .section {
    position: relative;
    width: calc(100% - var(--value-side-width) - 2rem);
    height: 100%;
    display: flex;
    flex-flow: column nowrap;
    align-items: flex-start;
    justify-content: stretch;
    gap: 0;
    overflow: hidden;
}

.section .header {
    position: relative;
    width: 100%;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    padding: 2rem 0 1rem 0;
}

.header .position {
    position: relative;
}

.header .avatar,
.header .avatar-holder {
    border-radius: 999999px;
    width: var(--value-avatar-length);
    aspect-ratio: 1/1;
}

.header .avatar {
    position: absolute;
    top: 2rem;
    left: calc(50% - var(--value-avatar-length) * 0.5);
    background: var(--color-text-alt);
    border: 4px solid var(--color-text);
    overflow: hidden;
    z-index: 999;
}

.header .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header .avatar-holder {
    position: relative;
}

.header .salary {
    position: relative;
}

.header .position,
.header .salary {
    display: flex;
    flex-flow: row nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.5rem;
}

.header .position img,
.header .salary img {
    display: inline-block;
    width: 1.2rem;
    height: 1.2rem;
    object-fit: contain;
}

.section .content {
    position: relative;
    width: 100%;
    display: flex;
    flex-flow: row nowrap;
    align-items: stretch;
    justify-content: space-between;
    flex-grow: 2;
    gap: 2rem;
    padding: 0 0 2rem 0;
    overflow: hidden;
}

.content .content-column {
    position: relative;
    width: calc(50% - 1rem);
    flex-grow: 2;
    display: flex;
    flex-flow: column nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1rem;
    /* overflow: visible hidden; */
}

.content .content-column.page-1 {
    gap: 1rem;
}

.content-section-title {
    position: relative;
    width: 100%;
    display: flex;
    flex-flow: row nowrap;
}

.content-section-title span {
    position: relative;
    display: block;
    color: var(--color-highlight);
    background: var(--color-bg);
    font-weight: bold;
    font-size: 1.2rem;
    width: fit-content;
    z-index: 3;
}

.content-section-title::after {
    position: absolute;
    content: '';
    top: calc(50% - 1px);
    width: calc(100% + 1rem - 2px);
    height: 2px;
    background: var(--color-text);
}

.content .content-left .content-section-title {
    justify-content: flex-start;
}

.content .content-left .content-section-title::after {
    left: 2px;
}

.content .content-left .content-section-title span {
    padding-right: 0.5rem;
}

.content .content-right .content-section-title {
    justify-content: flex-end;
}

.content .content-right .content-section-title span {
    padding-left: 0.5rem;
}

.content .content-right .content-section-title::after {
    right: 2px;
}

.content-section-title.empty span {
    background: none;
}

.experience {
    position: relative;
    display: flex;
    flex-flow: column nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    background: var(--color-bg-alt);
    padding: 1rem;
    border-radius: 6px;
}

.experience-title {
    position: relative;
    font-weight: bold;
}

/* .experience-title::before {
    position: absolute;
    content: '';
    top: 0.4rem;
    left: -1rem;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 0.2rem;
    background: var(--color-text);
    z-index: 4;
} */

.experience-subtitle {
    color: var(--color-text-alt);
    font-size: 0.6rem;
    margin-left: 6px;
}

.experience-position {
    position: relative;
    display: flex;
    flex-flow: row wrap;
    align-items: flex-start;
    justify-content: flex-start;
    /* gap: 6px; */
    font-size: 0.6rem;
}

.experience-position span {
    font-size: inherit;
    /* padding: 2px 8px;
    background: var(--color-text);
    color: var(--color-text-alt); */
}

.experience-description {
    color: var(--color-text-alt-lighter);
    font-size: 0.6rem;
}

.content .content-right {

}

.contact {
    position: relative;
    display: flex;
    flex-flow: column nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
}

.contact-name {
    font-weight: bold;
}

.contact-name .contact-gender {
    color: var(--color-text-alt);
    padding-left: 6px;
}

.contact-link {
    color: var(--color-text-alt-lighter);
    font-size: 0.8rem;
}

.contact-link a {
    color: inherit;
    padding-left: 6px;
    text-decoration: none;
}

.contact-link a:hover {
    color: var(--color-text);
}

.education {
    position: relative;
    display: flex;
    flex-flow: column nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    /* background: var(--color-bg-alt);
    padding: 1rem;
    border-radius: 6px; */
}

.education-title {
    position: relative;
    font-weight: bold;
}

.education-subtitle {
    color: var(--color-text-alt);
    font-size: 0.8rem;
    margin-left: 6px;
}

.education-time {
    color: var(--color-text-alt-lighter);
    font-size: 0.8rem;
}

.education-description {
    color: var(--color-text-alt-lighter);
    font-size: 0.9rem;
}

.skill {
    position: relative;
    display: flex;
    flex-flow: column nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
}

.skill-title {
    width: 100%;
    text-align: right;
}

.skill-level {
    position: relative;
    width: 100%;
    height: 0.5rem;
    border-radius: 0.25rem;
    background: var(--color-text-alt);
}

.skill-level span {
    position: absolute;
    content: '';
    display: block;
    left: 0;
    top: 0;
    border-radius: 0.25rem;
    height: 100%;
    background: var(--color-highlight);
}

.project {
    position: relative;
    display: flex;
    flex-flow: column nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    background: var(--color-bg-alt);
    padding: 1rem;
    border-radius: 6px;
}

.project-title {
    position: relative;
    font-weight: bold;
}

.project-subtitle {
    color: var(--color-text-alt);
    font-size: 0.8rem;
    margin-left: 6px;
}

.project-position {
    position: relative;
    display: flex;
    flex-flow: row wrap;
    align-items: flex-start;
    justify-content: flex-start;
    /* gap: 6px; */
    font-size: 0.6rem;
}

.project-position span {
    font-size: inherit;
    /* background: var(--color-text);
    color: var(--color-text-alt);
    padding: 2px 8px; */
}

.project-description {
    color: var(--color-text-alt-lighter);
    font-size: 0.6rem;
}

.project-image {
    position: relative;
    width: 100%;
    /* aspect-ratio: 16/9; */
    aspect-ratio: 5/3;
    border-radius: 6px;
    background: var(--color-text-alt);
    overflow: hidden;
    margin-top: 6px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project .bookmarker {
    position: absolute;
    top: 0;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

.header .header-line,
.content .content-line {
    position: absolute;
    background: var(--color-text);
}

.header .header-line.header-line-v {
    width: 2px;
    top: 50%;
    height: 50%;
    left: calc(50% - 1px);
}

.content .content-line.content-line-v {
    width: 2px;
    top: 0;
    height: 100%;
    left: calc(50% - 1px);
}

.content .content-line.content-line-h {
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
}

@media print {
    .pages {
        gap: 0;
        padding: 0;
    }
    .a4 {
        width: 100vw;
        height: 100vh;
    }
    .experience,
    .contact,
    .education,
    .project {
        gap: 6px;
    }
}