﻿body {
    font-family: "Segoe UI", Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    background-color: #f0f0f0;
}

@media screen {
    .container {
        width: 210mm;
        height: fit-content;
        margin: 0;
        padding: 0;
    }

        .container .page {
            background-color: #fff;
            box-sizing: border-box;
            width: 210mm;
            height: fit-content;
            padding-inline: 10mm;
            padding-block: 0;
            z-index: 10;
            overflow: visible;
            box-shadow: 0px -20px 0px #ffffff, 0px 20px 0px #ffffff, 10px 0px 10px #bbb, -10px 0px 10px #eee;
        }

            .container .page:first-of-type {
                padding-top: 10mm !important;
            }

            .container .page:last-of-type {
                padding-bottom: 100mm !important;
                margin-bottom: 100mm !important;
            }

            .container .page h2:first-of-type {
                margin-top: 0 !important;
            }

    footer {
        position: fixed;
        box-sizing: border-box;
        left: 0;
        right: 0;
        bottom: 0;
        color: #666;
        background-color: #fff;
        text-align: center;
        font-size: 8pt;
    }
}


@media print {
    body {
        background-color: unset;
    }

    .container {
        width: 190mm;
        height: fit-content;
        margin: 0;
        padding: 0;
    }

    .page {
        display: inline-block;
        box-sizing: border-box;
        background-color: #fff;
        width: 188mm !important;
        height: 270mm !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    footer {
        position: fixed;
        box-sizing: border-box;
        bottom: 0;
        color: #666;
        background-color: #fff;
        text-align: center;
        font-size: 8pt;
        width: 188mm !important;
    }
}

h1 {
    text-align: center;
    margin-block: 1mm;
    padding-block: 1mm;
    border-bottom: solid 1px #000;
}

h2 {
    text-align: center;
    margin-block: 1mm;
    padding-block: 1mm;
}

h3 {
    margin-block: 1mm;
    padding-block: 1mm;
}

h4 {
    text-align: center;
    margin-block: 1mm;
    padding-block: 1mm;
}

hr {
    height: 0px !important;
    border-top: solid 1px #000 !important;
}

a {
    color: #0f0f45;
}

    a:visited {
        color: #0f0f45;
    }


.summ {
    float: right;
    width: calc(100% - 60mm);
    margin-left: 10mm;
}

.totheright {
    float: right;
}

.totheleft {
    float: left;
}

.ulw3 {
    width: 27%;
    text-align:left;
}

.ulw2 {
    width: 42%;
    text-align: left;
}

.ulw1 {
    margin-inline: 28%;
    width: 42%;
    text-align: left;
}

.uline {
    border-bottom: solid 1px #000;
}

.surname {
    font-weight: bolder;
}



.subline {
    text-align: center;
    font-size: 10pt;
}



.content {
    margin-top: 1mm;
    font-size: 11pt;
    text-align: justify;
}

    .content .exp {
        padding: 2.5mm;
    }

        .content .exp:nth-child(2n+1) {
            background-color: #fff;
        }

        .content .exp:nth-child(2n) {
            background-color: #eee;
        }

        .content .exp .head {
            margin-top: 2.5mm;
            padding-top: 2.5mm;
        }

            .content .exp .head div:last-child {
                float: right;
                width: 25%;
                height: 10mm;
            }

            .content .exp .head div:first-child {
                float: right;
                width: 25%;
                height: 10mm;
            }

            .content .exp .head div {
                float: right;
                width: 50%;
                height: 9mm;
            }

            .content .exp .head .timeline {
            }

            .content .exp .head .position {
                text-align: center;
                font-size: larger;
                font-weight: bold;
            }

            .content .exp .head .employer {
                text-align: right;
                font-style: italic;
                font-weight: bold;
            }


ul {
    margin-block: 0mm;
    padding-top: 0mm;
}

    ul li {
        list-style-type: none;
    }

        ul li:before {
            content: '✓ ';
        }

    ul.no-tick {
        list-style-type: none;
        margin-left: 0px;
        padding-left: 0px;
        font-size: larger;
    }

        ul.no-tick li {
            margin-bottom: 5mm;
        }

    ul.no-tick li:before {
        content: '  ';
    }

    ul.no-tick li ul li:before {
        content: '✓ ';
    }

            ul.no-tick li ul li {
                text-align: left;
                font-size: initial;
                margin-bottom: 0mm;
            }

    ul.no-tick li ul li strong {
        display: inline-block;
        width: 50px;
    }

.lang {
    margin: 2.5mm;
}

.edu-range {
    margin-top: 5mm;
    height: 5mm;
    float: left;
    width: 15%;
}

.edu-subject {
    margin-top: 5mm;
    height: 5mm;
    float: right;
    width: 85%;
}

.pub-moment {
    margin-top: 5mm;
    height: 5mm;
    float: left;
    width: 15%;
}

.pub-subject {
    margin-top: 5mm;
    height: 5mm;
    float: right;
    width: 85%;
}

.fade-out {
    transition: opacity .6s ease-out !important;
    opacity: 0;
}


@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;
    }
}

br.clr {
    clear: both;
}

p.links {
    text-align: center;
}

.imgintxt {
    margin-bottom: 3mm;
    margin-left: 3mm;
}



#c8kie-c0nsent-banner {
    position: fixed;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 265px;
    width: 400px;
    bottom: 30px !important;
    transition: all 3s;
    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%);
    }

    .content .exp .body {
        margin-top: -5mm;
    }
}

@media (max-width: 956px) {
    #c8kie-c0nsent-banner {
        animation: 2s ease-out 1 ccbm;
        transform: translateX(0);
        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;
}

.lang-label {
    display: inline-block;
    font-weight: bolder;
    width: 100px;
}

.lang-val {
    display: inline-block;
    font-weight: bolder;
}

.skills-content {
    column-count: 3;
    column-gap: 0.5rem;
}

.skills {
    font-size: smaller;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}

.when-screen {
    display: unset;
}

.when-print {
    display: none;
}

.no-show{
    visibility:hidden;
}

@media print {

    .when-screen {
        display: none !important;
    }

    .when-print {
        display: inline-block !important;
    }

        .when-print.block {
            display: block !important;
        }

    .content .exp:nth-child(2n+1) {
        background-color: transparent !important;
    }

    .content .exp:nth-child(2n) {
        background-color: transparent !important;
        border-block: 1px solid #333 !important;
    }

    .page .content .exp:last-child {
        border-bottom: 0px white !important;
    }

    .prevent-break {
        break-inside: avoid;
    }
}

/* Kontener o stałych wymiarach, by zapobiec miganiu 
       (większy GIF nie rozepchnie obszaru i nie przerwie hovera). */
.img-container {
    position: relative;
    top: -265px;
    width: 190px;
    height: 264px;
}

/* Obrazek (zarówno headshot, jak i później GIF) wypełnia kontener */
#headshot {
    width: 100%;
    height: 100%;
    object-fit: cover; /* lub 'contain' zależnie od potrzeb */
    display: block; /* usuwa niewielki odstęp od dolnej krawędzi w trybie inline-block */
}

/* Półprzezroczysta warstwa z kręcącym się kółkiem */
#loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5); /* półprzezroczysty overlay */
    z-index: 2;
}
    /* Domyślnie ukryty (HTML5 hidden) */
    #loader[hidden] {
        display: none;
    }

/* Spinner w formie pustego diva – stylujemy go w CSS */
.spinner {
    width: 40px;
    height: 40px;
    border: 5px solid #999; /* szara obwódka */
    border-top-color: #333; /* ciemniejsza u góry */
    border-radius: 50%; /* okrąg */
    animation: spin 1s linear infinite; /* kręcenie */
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}