﻿:root {
    --gap: 1.3mm;
    --dur: 1s;
}

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 83%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    background-color: #f0f0f0;
}

.page-ribbon {
    position: fixed;
    top: 110px;
    left: -95px;
    z-index: 99999;
    background: #d32f2f;
    color: #fff;
    padding: 0.35rem 6.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    text-align: center;
    transform: rotate(-45deg) translateY(100%);
    transform-origin: 0 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    pointer-events: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


@media screen {
    .when-screen {
        display: unset;
    }

    .when-print {
        display: none !important;
    }
}

@media print {

    .when-screen {
        display: none !important;
    }

    .when-print {
        display: unset;
    }

    .page-ribbon {
        display: none;
    }

    main > section > details > article {
        color: #000 !important;
        background-color: #fff;
        opacity: 1;
    }
}

main {
    width: 210mm;
    height: fit-content;
    margin: 0;
    padding: 10mm 10mm 0 10mm;
    z-index: 10;
}

article:has(h1) .text {
    grid-row: 2;
    grid-column: 2;
    margin-left: calc(3 * var(--gap));
    margin-right: calc(2 * var(--gap));
}

.text {
    text-align: justify !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
article,
header,
aside {
    margin: 0;
    padding: 0;
}

h1,
h2 {
    text-align: center;
    font-weight: bolder;
    text-transform: uppercase;
}

main > article > header,
main section > header,
main > header {
    border-bottom: solid 0.3mm #000;
    margin-bottom: 1px;
}

h2 {
    margin: calc(2*var(--gap)) 0 var(--gap) 0;
}

    h2:has(+ p) {
        margin-bottom: 0;
    }

    h2 + p {
        text-align: center;
        font-weight: bolder;
        margin: 0 0 var(--gap) 0;
    }

main > section {
    display: flex;
    flex-direction: column-reverse;
}

main {
    counter-reset: vis var(--jobs-vsbl) ttl var(--jobs-msng);
}

    main > section > details[open] > article {
        counter-increment: vis 1 ttl 0;
    }

    main > section > details > article {
        counter-increment: vis 0 ttl 1;
    }

    main section > article {
        counter-increment: vis 1 ttl 1;
    }

    main hgroup > h2 + p span:first-child::after {
        content: counter(vis);
    }

    main hgroup > h2 + p > span:last-child::after {
        content: counter(ttl);
    }

h4:has(p:has(time:first-child:last-child)) {
    width: 80%;
}

article {
    padding: var(--gap);
}

    article > header:has(p > time) {
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
    }

    article > header > hgroup {
        display: flex;
        flex-direction: row-reverse;
        font-weight: normal;
        width: 75%;
    }

        article > header > hgroup > *:first-child {
            width: 33.3%;
            text-align: right;
        }

        article > header > hgroup > *:last-child {
            width: 66.6%;
            text-align: center;
        }

hgroup:has(h3) > p {
    font-weight: bolder;
    text-align: right;
    margin-block: 0;
}

header > p:has(time) {
    font-weight: bolder;
    text-align: left;
}

header > p:has(time:nth-child(1):last-child) {
    width: 15%;
    margin-block: 0;
}

header > p:has(time:nth-child(2):last-child),
header > p:has(time:first-child):has(span:last-child) {
    width: 25%;
    margin-block: 0;
}

p:has(time:first-child):has(span:nth-child(2):last-child) > span::before,
p:has(time:nth-child(2):last-child) > time:last-child::before {
    font-weight: bolder;
    content: ' - ';
}

aside > details {
    position: relative;
    display: inline-block;
}

    aside > details > summary {
        list-style: none;
        padding: 0;
        cursor: pointer;
    }

        aside > details > summary::-webkit-details-marker {
            display: none;
        }

    aside > details > .modal-content {
        display: none;
    }

    aside > details[open] > .modal-content {
        display: block;
        position: fixed;
        inset: 0;
        padding: 2vmin;
        background: rgba(0,0,0,0.6);
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
    }

    aside > details[open] summary picture {
        display: none;
    }

    aside > details > summary picture {
        display: block;
    }

    aside > details[open] .modal-content picture,
    aside > details[open] .modal-content img {
        max-width: min(95vw, 1400px);
        max-height: 90vh;
        width: auto;
        height: auto;
    }

    aside > details[open] > summary {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 10005;
    }

img.photo {
    background-repeat: no-repeat;
    background-image: var(--root-name-jpg);
}

    img.photo:hover {
        background-image: var(--root-name-gif);
    }

article:has(h1) {
    display: grid;
    grid-template-columns: 180px calc(100% - 180px);
    grid-template-rows: 85px 200px;
    gap: 0;
}

address {
    text-align: center;
    font-size: 10pt;
    font-style: normal;
}

article:has(h1) header {
    grid-row: 1;
    grid-column: 2;
    margin-left: calc(3 * var(--gap));
    margin-right: calc(2 * var(--gap));
    border-bottom: solid 0.3mm #000;
    padding-bottom: 2mm;
    margin-bottom: 3mm;
}

article:has(h1) .text {
    grid-row: 2;
    grid-column: 2;
    margin-left: calc(3 * var(--gap));
    margin-right: calc(2 * var(--gap));
}

article:has(h1) div:has(img) {
    grid-row: 1 / 3;
    grid-column: 1;
}

    article:has(h1) div:has(img) img {
        width: 100%;
        height: 100%;
    }

div.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(33%, 1fr));
}

div.masonry {
    column-count: 3;
    column-gap: var(--gap);
}

    div.masonry article {
        display: inline-block;
        width: 100%;
        margin: 0 0 var(--gap) 0;
    }

article ul,
article ul {
    margin: 0;
}

ul li::marker {
    content: '✓ ';
}

article > header > h4 {
    width: 85%;
    text-align: left;
}

main > section > details:hover > footer:hover,
main > section > details:hover > summary:hover {
    opacity: 0.80 !important;
}

main > section > details:hover > footer,
main > section > details:hover > summary {
    opacity: 0.45 !important;
    cursor: pointer;
}

main > section > details > footer,
main > section > details > summary {
    position: absolute;
    height: fit-content;
    width: 190mm;
    z-index: 1012;
    transform: translateY(-5.75mm);
    opacity: 0;
}

    main > section > details > footer::before,
    main > section > details > summary::before {
        content: '';
        display: block;
        position: absolute;
        background-color: #666;
        height: 2mm;
        width: 190mm;
        z-index: 1010;
        transform: translateY(4.5mm);
    }

    main > section > details > footer::after,
    main > section > details > summary::after {
        content: '0';
        display: block;
        position: relative;
        text-align: center;
        vertical-align: middle;
        top: 1mm;
        left: 12mm;
        width: 9mm;
        height: 9mm;
        font-weight: bolder;
        font-size: 6mm;
        border-radius: 50%;
        background-color: #444;
        color: #eee;
        z-index: 1011;
    }

main > section > details:hover > footer,
main > section > details:hover > summary {
    opacity: 0.8;
}

main > section > details[open] > footer::after,
main > section > details[open] > summary::after {
    display: block;
    content: url("data:image/svg+xml;utf8,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'><path%20d='M6%206L18%2018M18%206L6%2018'%20stroke='%23eee'%20stroke-width='2'%20stroke-linecap='round'/></svg>") !important;
    width: 9mm;
    height: 9mm;
    vertical-align: middle;
}

main > section > details:has(article:nth-of-type(1):last-of-type) > footer::after,
main > section > details:has(article:nth-of-type(1):last-of-type) > summary::after {
    content: '1';
}

main > section > details:has(article:nth-of-type(2):last-of-type) > footer::after,
main > section > details:has(article:nth-of-type(2):last-of-type) > summary::after {
    content: '2';
}

main > section > details:has(article:nth-of-type(3):last-of-type) > footer::after,
main > section > details:has(article:nth-of-type(3):last-of-type) > summary::after {
    content: '3';
}

main > section > details:has(article:nth-of-type(4):last-of-type) > footer::after,
main > section > details:has(article:nth-of-type(4):last-of-type) > summary::after {
    content: '4';
}

main > section > details:has(article:nth-of-type(5):last-of-type) > footer::after,
main > section > details:has(article:nth-of-type(5):last-of-type) > summary::after {
    content: '5';
}

main > section > details > article {
    filter: brightness(0.9);
}

article > header > h4 {
    font-weight: normal;
    text-decoration: none;
    color: black;
}

body > header {
    display: none;
}

main > section > details > article:nth-of-type(2n),
main > section > article:nth-of-type(2n) {
    background-color: #fff;
}

main > section > details > article:nth-of-type(2n+1),
main > section > article:nth-of-type(2n+1) {
    background-color: #eee;
}

body > footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    color: #666;
    background-color: #fff;
    text-align: center;
    font-size: 8pt;
    z-index: 20;
}

aside {
    width: 25%;
}

    aside picture {
        width: 100%;
        height: auto;
    }

article:has(aside) > div,
section[hidden] > article:has(aside) > div {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
}


a {
    color: #0f0f45;
}

    a:visited {
        color: #0f0f45;
    }

article header meter {
    width: 80%;
    appearance: none;
    -webkit-appearance: none;
    height: 1em;
    border: none;
    background: #bbb;
    border-radius: 0;
    box-shadow: none;
}

article header:has(meter) {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--gap);
}

article header meter,
section[hidden] > article header meter {
    flex: 1;
    height: 1em;
    border: none;
    background: #bbb;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    padding: 0;
}

article header img,
section[hidden] > article header img {
    flex: 1;
    height: 1em;
}

article header meter::-webkit-meter-bar,
section[hidden] > article header meter::-webkit-meter-bar {
    background: #bbb;
    border: none;
    height: 200%;
    border-radius: 0;
}

article header meter::-webkit-meter-optimum-value, section[hidden] > article header meter::-webkit-meter-optimum-value, article header meter::-webkit-meter-suboptimum-value, section[hidden] > article header meter::-webkit-meter-suboptimum-value, article header meter::-webkit-meter-even-less-good-value section[hidden] > article header meter::-webkit-meter-even-less-good-value {
    background: #777;
    border: none;
    border-radius: 0;
    height: 200%;
}

article header meter::-moz-meter-bar,
section[hidden] > article header meter::-moz-meter-bar {
    background: #333;
    height: 200%;
    border: none;
    border-radius: 0;
}

article header:has(meter) h4,
section[hidden] > article header:has(meter) h4 {
    width: 15%;
    font-weight: bolder;
    text-align: left;
}

article header:has(meter) p,
section[hidden] > article header:has(meter) p {
    width: 15%;
    font-weight: bolder;
    text-align: right;
}

.attached-row {
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .attached-row img {
        width: 80%;
        height: auto;
    }

@media screen {
    main {
        background-color: #fff;
        overflow: visible;
        box-shadow: 0px -20px 0px #ffffff, 0px 20px 0px #ffffff, 10px 0px 10px #bbb, -10px 0px 10px #eee, 10px 10px 10px #bbb, -10px 10px 10px #eee;
    }

        main > *:last-child {
            margin-bottom: 35mm !important;
        }
}

@media print {

    @page {
        size: A4;

        @top-center {
            content: "Printed from: privategonera.github.io/cv-mini";
            font-family: "Segoe UI", Arial, sans-serif;
        }

        background-color: transparent;
        margin-bottom: 0mm;
        padding-bottom: 10mm;
    }

    main > *:last-child {
        padding-bottom: 10mm !important;
    }

    main header,
    main header > h2,
    main header > hgroup > h2,
    main header > hgroup > p {
        page-break-after: avoid !important;
    }

    main article,
    main div,
    section[hidden] > article {
        page-break-inside: avoid !important;
    }

    main div,
    main article,
    section[hidden] > article,
    div.grid header,
    div.masonry header,
    div.grid article,
    div.masonry article {
        margin: 0 !important;
        padding: 0 !important;
    }


    body {
        background-color: unset;
    }

    main {
        display: inline-block;
        background-color: #fff;
        padding: 0;
        margin: 0;
        height: fit-content;
    }

    article:has(h1) .text {
        margin-left: calc(3 * var(--gap)) !important;
        margin-right: calc(2 * var(--gap)) !important;
        ;
    }

    main > header,
    main > section > header,
    main > section > article > header {
        margin-top: var(--gap);
        page-break-after: avoid;
    }

    main > article,
    main > section[hidden] article {
        page-break-inside: avoid;
    }

    body > footer {
        position: fixed;
        bottom: 0;
        height: fit-content;
        color: #666;
        background-color: unset;
        text-align: center;
        font-size: 8pt;
        width: 100%;
    }

    main article:has(hgroup) {
        margin-bottom: 2mm !important;
        padding-bottom: 2mm !important;
        border-bottom: 1px solid #333;
        color: #000 !important;
        background-color: white !important;
    }

    main > section > article:has(hgroup):first-child {
        border-bottom: 0px white !important;
    }

    article a,
    address a {
        text-decoration: none;
        color: black;
    }


    main > section > details > article {
        filter: none;
    }
}

@media (max-width: 188mm) {
    body {
        position: absolute;
        width: 100vw;
        overflow-x: hidden;
        background-color: #f0f0f0;
    }

    main {
        position: absolute;
        width: calc(100vw - 30px);
        top: 3vw !important;
        padding-inline: 3vw;
        overflow-x: hidden;
    }

    body > footer {
        width: 100vw;
    }

    article:has(aside) > div:has(ul) {
        display: block; 
    }

        article:has(aside) > div:has(ul) aside {
            float: right;
            width: 33%;
            shape-outside: inset(0);
            -webkit-shape-outside: inset(0);
            box-sizing: border-box;
        }

            article:has(aside) > div:has(ul) aside picture,
            article:has(aside) > div:has(ul) aside img {
                display: block;
                width: 100%;
                height: auto;
            }

        article:has(aside) > div:has(ul)::after {
            content: "";
            display: table;
            clear: both;
        }

    #c8kie-c0nsent-banner {
        position: fixed;
        width: calc(100vw - 20px);
        left: 10px !important;
    }

    article:has(h1) {
        display: grid;
        grid-template-columns: 50% 50%;
        grid-template-rows: 1fr auto;
        gap: var(--gap);
    }

        article:has(h1) > header {
            grid-column: 2;
            grid-row: 1;
            border-bottom: none;
            text-align: center;
            font-size: clamp(12pt, 4.20vw, 20pt);
        }

            article:has(h1) > header > address {
                display: flex;
                flex-direction: column;
                gap: var(--gap);
                margin-top: 1.5em;
                justify-content: space-between;
                height: 7.75em;
                font-size: clamp(10pt, 3vw, 36px);
            }

                article:has(h1) > header > address > span {
                    display: none;
                }

        article:has(h1) div.photo {
            grid-column: 1;
            grid-row: 1;
        }

        article:has(h1) img.photo {
            background-size: contain;
        }

        article:has(h1) .text {
            grid-column: 1 / 3;
            grid-row: 2;
            padding: 0;
            margin: 0;
        }

    .grid ul, .masonry ul {
        margin: 0;
        padding-left: 1em;
    }

    main article > header:has(hgroup) {
        display: flex;
        flex-direction: column-reverse;
    }

    main article > header > hgroup {
        position: relative;
        display: flex;
        flex-direction: column-reverse;
        align-items: end;
        width: 100%;
    }

        main article > header > hgroup > h3 {
            position: relative;
            width: 100% !important;
            font-size: larger;
        }

        main article > header > hgroup > p {
            width: 100%;
            text-align: right;
        }

    main article > header:has(hgroup) > p {
        position: absolute;
        height: 0 !important;
        width: 0 !important;
        margin-top: auto;
        transform: translateY(-1.3em);
        text-wrap: nowrap;
        overflow: visible;
    }

    main > section > details > footer::before,
    main > section > details > summary::before {
        width: calc(100vw - 40px - 2 * var(--gap)) !important;
    }
}

@media (pointer: coarse) {
    main > section > details > footer,
    main > section > details > summary {
        opacity: 0.3;
    }
}

#c8kie-c0nsent-banner {
    position: fixed;
    display: flex;
    flex-direction: column;
    height: 265px;
    width: 400px;
    bottom: 30px !important;
    transition: all var(--dur) ease-in-out;
    backdrop-filter: blur(10px);
    background-color: #e3e3e333;
    border: 1px solid #00000026;
    border-radius: 16px;
    flex-direction: column;
    font-size: .95rem;
    line-height: 1.4;
    box-shadow: 10px 10px 20px #b3b3b3, -10px -10px 20px #ffffff;
    z-index: 1000;
}

@media (min-width: 956px) {
    #c8kie-c0nsent-banner {
        animation: 2s ease-out 1 ccb;
        transform: translateX(65%);
    }
}

@media (max-width: 956px) {
    #c8kie-c0nsent-banner {
        animation: 2s ease-out 1 ccbm;
        transform: unset;
        right: 45px;
    }
}

#c8kie-c0ntent {
    grid-column-gap: .5rem;
    grid-row-gap: .5rem;
    flex-flow: column;
    display: flex;
    padding: 1.5rem 1.5rem 0.75rem 1.5rem;
}

#cookie-title {
    color: #0a0a0a;
    margin-bottom: 0.2em;
    font-size: 1.25rem;
    font-weight: 700;
    font-size: 1.2rem;
    font-weight: 500;
}

#cookie-desc {
    color: #0b0b0b;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
}

#cookie-actions {
    grid-column-gap: 0.5rem;
    grid-template-rows: auto;
    grid-template-columns: 1fr 1fr;
    display: grid;
    flex-wrap: wrap;
    padding: 0.75rem 1.5rem 1.5rem 1.5rem;
}

#accept-c8kie-c0nsent {
    background-color: #000;
    color: #fff;
    letter-spacing: 1px;
    border-radius: 10px;
    width: 100%;
    padding: .8rem 1.5rem .75rem;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    overflow: visible;
}

.accept-c8kie-c0nsent {
    color: #ffffff;
    position: absolute;
    text-align: center;
    letter-spacing: 0;
    font-weight: 500;
    line-height: 1.3em;
    position: relative;
    transform: translate3d(0px, 0%, 0px) scale3d(1, 1, 1) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-txt-container .accept-c8kie-c0nsent:nth-child(1) {
    transform: rotateX(-90deg) translateY(50%);
    opacity: 0;
    font-weight: 400;
}

.btn-txt-container:hover .accept-c8kie-c0nsent:nth-child(1) {
    transform: rotateX(0deg) translateY(50%);
    opacity: 1;
    font-weight: 700;
}

.btn-txt-container .accept-c8kie-c0nsent:nth-child(2) {
    transform: rotateX(0deg) translateY(-50%);
    opacity: 1;
    font-weight: 400;
}

.btn-txt-container:hover .accept-c8kie-c0nsent:nth-child(2) {
    transform: rotateX(-90deg) translateY(-50%);
    opacity: 0;
    font-weight: 700;
}

#deny-c8kie-c0nsent {
    display: flex;
    justify-content: center;
    color: #090909;
    text-align: center;
    font-size: .95rem;
    text-decoration: none;
    margin-left: 30%;
    width: 70%;
}

    #deny-c8kie-c0nsent .btn-txt-container {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
        width: 100%;
    }

.btn-txt-container .deny-c8kie-c0nsent {
    align-self: center;
    color: #666;
    font-weight: 400;
    font-size: 15px;
    transition: all 1.5s;
}

.btn-txt-container:hover .deny-c8kie-c0nsent {
    animation: 1.5s ease-out 1 ccd;
    transform-style: preserve-3d;
    color: #000;
}

@keyframes ccb {
    0% {
        transform: translateY(296px) translateX(65%);
    }

    60% {
        transform: translateY(296px) translateX(65%);
    }

    100% {
        transform: translateY(0) translateX(65%);
    }
}

@keyframes ccbm {
    0% {
        transform: translateY(296px) translateX(0);
        right: 45px;
    }

    60% {
        transform: translateY(296px) translateX(0);
        right: 45px;
    }

    100% {
        transform: translateY(0) translateX(0);
        right: 45px;
    }
}

@keyframes ccd {
    0% {
        transform: perspective(64px) rotateY(64deg);
        color: #666;
    }

    20% {
        transform: perspective(64px) rotateY(-48deg);
        color: #555;
    }

    40% {
        transform: perspective(64px) rotateY(32deg);
        color: #444;
    }

    60% {
        transform: perspective(64px) rotateY(-24deg);
        color: #333;
    }

    80% {
        transform: perspective(64px) rotateY(16deg);
        color: #222;
    }

    99% {
        transform: perspective(64px) rotateY(0);
        color: #111;
    }

    99% {
        transform: none;
        color: #000;
    }
}
