:root {
    --color-bg: #0a0a0a;
    --color-bg-alt: #2d2d2d;
    --color-bg-fg: #1a1a1a;
    --color-text: #fdfdfd;
    --color-text-alt: #e1e1e1;
    --color-highlight: #ed2448;
    --color-highlight-alt: #ffd43b;

    --value-nav-width: 5rem;
    --value-footer-height: 4rem;
    --value-hero-width: 12rem;

    --value-max-page-width: 1280px;
}

@media screen and (max-width: 1024px) {
    :root {
        --value-hero-width: 10rem;
    }
}

@media screen and (max-width: 800px) {
    :root {
        --value-hero-width: 8rem;
    }
}

* {
    z-index: 2;
}

*, *::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);
    line-height: 1.2;
}

.container {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    color: var(--color-text);
    background: var(--color-bg);
    font-size: 1rem;
    display: flex;
    flex-flow: row nowrap;
    align-items: flex-start;
    justify-content: flex-start;
}

@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;
}

.page-bg {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    filter: blur(25px);
    z-index: 1;
}

@media screen and (min-width: 1280px) {
    .page-bg {
        width: calc(100% - var(--value-max-page-width));
    }
}

.navigation {
    position: fixed;
    display: flex;
    flex-flow: column nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2rem;
    height: 100%;
    width: var(--value-nav-width);
    border: 1px #2d2d2d solid;
    padding: 2rem 1rem;
    background: var(--color-bg);
}

.logo {
    display: block;
    width: 100%;
    height: 3rem;
    position: relative;
    transition: all 250ms ease-in-out;
}

.logo:hover {
    transform: scale(0.9);
}

.logo img {
    width: 100%;
    height: 100%;
}

.navigation-items {
    width: 100%;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
}

.navigation-item {
    position: relative;
    width: auto;
    height: auto;
    font-size: 1.1rem;
    text-align: center;
    color: var(--color-text);
    text-decoration: none;
    text-underline-offset: 6px;
    writing-mode: vertical-lr;
    text-orientation: sideways;
    transform: scale(-1);
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: center;
}

.navigation-item.enabled {
    font-weight: bold;
    font-size: 1.5rem;
    border-left: 2px solid var(--color-highlight);
}

.navigation-item.enabled .capital {
    font-weight: inherit;
    font-size: inherit;
    color: inherit;
    display: inline;
}

.navigation-item.enabled:hover .capital {
    color: var(--color-highlight);
}

.navigation-item.enabled .noncapital {
    font-weight: inherit;
    font-size: inherit;
    color: inherit;
    display: inline;
}

.navigation-item:hover {
    border-left: 2px solid var(--color-text);
}

.navigation-item.enabled:hover {
    border-left: 2px solid var(--color-highlight);
}

.content {
    overflow: hidden scroll;
    width: 100%;
    max-width: var(--value-max-page-width);
    height: auto;
    min-height: 100%;
    background: var(--color-bg);
    display: flex;
    flex-flow: column wrap;
    align-items: flex-start;
    justify-content: flex-start;
    padding-left: var(--value-nav-width);
    z-index: 1;
}

.content-header {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    border: 1px #2d2d2d solid;
    border-left: none;
    background-image: url("/static/images/resume/portfolio/parttern.jpg");
    background-size: cover;
}

.content-header .hero {
    width: calc(2 * var(--value-hero-width));
    height: 100%;
    min-width: calc(2 * var(--value-hero-width));
    max-width: calc(2 * var(--value-hero-width));
    position: relative;
    overflow: hidden;
}

.content-header .hero img {
    position: absolute;
    top: 2rem;
    left: 2rem;
    width: calc(100% - 2rem);
    height: calc(100% - 4rem);
    background: var(--color-bg);
    object-fit: cover;
    z-index: 3;
    border: 1px solid var(--color-highlight);
    transition: all 250ms ease-in-out;
}

.content-header .hero img:hover {
    transform: scale(0.99);
}

.content-header .hero::after {
    content: '';
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: calc(100% - 2rem);
    height: calc(100% - 4rem);
    background: var(--color-highlight);
}

.content-header .caption {
    width: auto;
    height: 100%;
    display: flex;
    flex-flow: column nowrap;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 1rem 1rem 0;
}

.content-header .caption-label {
    max-width: 100%;
    background: var(--color-highlight);
    color: var(--color-text);
    padding: 0.5rem 1rem;
}

.content-header .caption-title {
    max-width: 100%;
    color: var(--color-text);
    font-weight: bold;
    font-size: 3rem;
}

.content-header .caption-description {
    max-width: 100%;
    color: var(--color-text-alt);
    font-size: 0.8rem;
}

.button {
    font-size: 1.1rem;
    color: var(--color-text);
    border: 1px solid var(--color-text);
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: all 250ms ease-in-out;
}

.button:hover {
    color: var(--color-highlight);
    border: 1px solid var(--color-highlight);
    padding: 0.5rem 1rem;
    text-decoration: none;
}

.content-header .caption .buttons {
    margin-top: 4rem;
    display: flex;
    flex-flow: row wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1rem;
}

@media screen and (max-width: 700px) {
    .content-header {
        flex-flow: column nowrap;
        gap: 1rem;
    }

    .content-header .hero {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        height: calc((100% - 1rem) * 0.6);
    }
    .content-header .hero img,
    .content-header .hero::after {
        width: calc(100% - 2rem - 1rem);
        height: calc(100% - 4rem - 1rem);
    }
    .content-header .hero img {
        object-position: 0% 25%;
    }
    .content-header .caption {
        height: calc((100% - 1rem) * 0.6);
        padding: 0 1rem 1rem 1rem;
        justify-content: flex-start;
    }
}

.content-grid {
    overflow-x: hidden;
    overflow-y: scroll;
    border: 1px #2d2d2d solid;
    border-left: none;
    border-top: none;
    padding: 1rem;
    width: 100%;
    height: auto;
    display: flex;
    flex-flow: row wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1rem;
}

.content-grid .grid-item {
    position: relative;
    width: calc(0.333 * (100% - 1rem * 2));
    min-height: 20rem;
    height: auto;
    background: var(--color-bg-fg);
    display: flex;
    flex-flow: column nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1rem;
    transition: all 250ms ease-in-out;
}

.content-grid .grid-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid var(--color-bg-alt);
    z-index: 999;
}

.content-grid .grid-item:hover::after {
    border: 1px solid var(--color-highlight);
}

.content-grid .grid-item:hover {
    /* background: var(--color-highlight); */
    /* transform: scale(0.95); */
}

@media screen and (max-width: 1024px) {
    .content-grid .grid-item {
        width: calc(0.5 * (100% - 1rem));
    }
}

@media screen and (max-width: 700px) {
    .content-grid .grid-item {
        width: 100%;
    }
}

.grid-item .grid-item-cover {
    width: 100%;
    height: 18rem;
    background: var(--color-text);
    overflow: hidden;
    z-index: 99;
}

.grid-item .grid-item-cover img {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: 50% 0%;
    background: var(--color-bg-alt);
}

@media screen and (max-width: 700px) {
    .grid-item .grid-item-cover {
        height: 18rem;
    }
}
.grid-item .grid-item-images-hidden {
    opacity: 0;
    width: 0;
    height: 0;
    overflow: hidden;
}

.grid-item .grid-item-text {
    width: 100%;
    height: auto;
    display: flex;
    flex-flow: column nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.4rem;
    padding: 0 1rem 1rem 1rem;
}

.grid-item .grid-item-title {
    width: 100%;
    height: auto;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-text);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-decoration: none;
}

.grid-item .labels {
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.5rem;
}

.labels .label {
    font-size: 0.8rem;
    background: var(--color-text);
    color: var(--color-highlight);
    padding: 0.25rem 0.5rem;
}

.labels .label.inverted {
    font-size: 0.8rem;
    color: var(--color-text);
    background: var(--color-highlight);
    padding: 0.25rem 0.5rem;
}

.grid-item .grid-item-description {
    width: 100%;
    height: auto;
    font-size: 0.8rem;
    color: var(--color-text-alt);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-decoration: none;
}

.content .content-footer {
    width: 100%;
    height: var(--value-footer-height);
    border: 1px #2d2d2d solid;
    border-left: none;
    border-top: none;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: flex-end;
    padding: 0 1rem;
}

.content-footer .copyright {
    position: relative;
    color: var(--color-text);
    font-size: 0.8rem;
    text-align: right;
    text-transform: uppercase;
}

.content-footer .copyright span {
    color: var(--color-highlight);
}

.content-footer .copyright::before {
    position: absolute;
    content: '';
    background: var(--color-text);
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 0.2rem;
    top: 0.3rem;
    left: -0.8rem;
}

@media screen and (max-width: 700px) {
    .content .content-footer {
        justify-content: center;
    }

    .content-footer .copyright {
        text-align: center;
    }
    
    .content-footer .copyright::before {
        display: none
    }
}

@media print {
    :root {
        --value-hero-width: 120px;
    }
    html, body {
        /* width: 21cm;
        height: 29.7cm; */
        width: 100vw;
        height: 100vh;
        margin: 0;
        padding: 0;
    }
    .container {
        width: 100vw;
        height: 100%;
    }

    .navigation {
        position: absolute;
        height: 100%;
    }

    .content {
        min-width: 100vw;
    height: fit-content;
    }

    .caption {
        padding: 1rem 1rem 1rem 0;
    }

    .content-grid {
        height: max-content;
        min-height: calc(100vh - var(--value-footer-height));
        padding-bottom: 1rem;
        gap: 2rem;
    }

    .content-grid .grid-item {
    height: calc(100vh - 2rem);
        /*width: calc(0.5 * (100% - 1rem))*/;
        width: 100%;
        break-inside: avoid;
        /*break-after: avoid*/;
        /*break-before: avoid*/;
    }

    .content-grid .grid-item .grid-item-cover {
    height: calc(100% - 8rem);
    }
    .content-grid .grid-item:last-child {
    height: calc(100vh - 2rem - var(--value-footer-height));
    }

    .page-bg {
        position: absolute;
    }
}

/* PORTFOLIO RESUME */

.portfolio-resume {
    width: 100%;
    height: auto;
    min-height: 100%;
    display: flex;
    flex-flow: column nowrap;
    align-items: stretch;
    justify-content: flex-start;
    position: relative;
    gap: 2rem;
    padding: 2rem;
    overflow: hidden scroll;
}

.portfolio-resume .pr-info {
    width: 100%;
    display: flex;
    flex-flow: column nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1rem;
}

.pr-info .pr-title {
    width: 100%;
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
}

.pr-info .pr-label {
    font-size: 0.8rem;
    max-width: 100%;
    background: var(--color-highlight);
    color: var(--color-text);
    padding: 0.2rem 0.5rem;
}

.pr-info .pr-salary {
    font-style: italic;
    color: var(--color-text-alt);
}

.pr-info .pr-contacts {
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.5rem;
}

.pr-contacts .pr-contact {
    font-size: 1.1rem;
    color: var(--color-text);
    border: 1px solid var(--color-text);
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: all 250ms ease-in-out;
}

@media screen and (max-width: 700px) {
    .pr-contacts .pr-contact span {
        display: none;
    }
}

.pr-contacts .pr-contact:hover {
    color: var(--color-highlight);
    border: 1px solid var(--color-highlight);
    padding: 0.5rem 1rem;
    text-decoration: none;
}

.portfolio-resume .pr-content {
    width: 100%;
    height: auto;
    display: flex;
    flex-flow: row nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2rem;
    flex-grow: 2;
}

@media screen and (max-width: 700px) {
    .portfolio-resume .pr-content {
        flex-flow: column nowrap;
    }
}

.portfolio-resume .pr-list {
    position: relative;
    width: calc((100% - 1rem) * 0.5);
    height: auto;
    display: flex;
    flex-flow: column nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    flex-grow: 1;
    gap: 2rem;
    padding-left: 1rem;
}

@media screen and (max-width: 700px) {
    .portfolio-resume .pr-list {
        width: 100%;
    }
}

.portfolio-resume .pr-list::before {
    content: '';
    position: absolute;
    background: var(--color-text-alt);
    top: 0;
    left: 0.175rem;
    width: 0.15rem;
    height: 100%;
    min-height: 100%;
}

.pr-list .pr-list-title {
    font-size: 1.5rem;
    position: relative;
}

.pr-list .pr-list-title::before {
    position: absolute;
    content: '';
    background: var(--color-highlight);
    width: 0.5rem;
    height: 100%;
    top: 0;
    left: -1rem;
}

.portfolio-resume .pr-list-item {
    position: relative;
    width: 100%;
    display: flex;
    flex-flow: column nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1rem;
    padding-left: 1rem;
    break-inside: avoid;
}

.portfolio-resume .pr-list-item::before {
    content: '';
    position: absolute;
    background: var(--color-text-alt);
    top: 0.5rem;
    left: 0;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 0.25rem;
}

.pr-list-item .pr-list-item-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.pr-list-item .pr-list-item-subtitle {
    font-style: italic;
    color: var(--color-text-alt);
}

.pr-list-item .pr-list-item-description {
    font-style: italic;
    color: var(--color-text-alt);
    text-underline-offset: 4px;
}

/* Experience */

.pr-more-dots {
    position: absolute;
    width: auto;
    height: auto;
    left: 2rem;
    bottom: 0;
}
/* 
.pr-more-dots {
    position: absolute;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 0.25rem;
    background: var(--color-text-alt);
    left: calc(50% - 0.25rem);
    bottom: 0;
}

.pr-more-dots::before {
    position: absolute;
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 0.25rem;
    background: var(--color-text-alt);
    top: 0;
    left: -1rem;
}

.pr-more-dots::after {
    position: absolute;
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 0.25rem;
    background: var(--color-text-alt);
    top: 0;
    right: -1rem;
} */