/* noto serif, serif typeface*/
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif&display=swap');
/* roboto, sans serif typeface*/
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* tools logo colors */

    --logo-color-nest: #E0234E;
    --logo-color-js: #F0DB4F;
    --logo-color-ts: #3178C6;
    --logo-color-html: #E34C26;
    --logo-color-css: #264DE4;
    --logo-color-nodejs: #3C873A;
    --logo-color-express: #291E0A;
    --logo-color-postgres: #008BB9;
    --logo-color-golang: #29BEB0;
    --logo-color-gogin: #86D4DE;
    --logo-color-docker: #1D63ED;
    --logo-color-k8s: ;
    --logo-color-mongodb: #4DB33D;
    /*vagy #3FA037*/
    --logo-color-redis: #D82C20;
    --logo-color-react: #61DBFB;

    /* light mode palette, old: #f8f8f8 */
    --grey: #fdfdef;
    /*#0d2518*/
    --dark-green: #1f3832;
    --red: #c25c5f;
    /* TODO: decide if visited links need another color */
    --dark-red: #c25c5f;
    /* dark mode palette */
    --dm-grey: #c8b9b9;
    --dm-dark-green: #12231e;
    --dm-darker-green: #0e1917;



    --color-accent: var(--red);
    --color-accent-dark: var(--dark-red);
    --color-button: var(--red);


    & body[data-color-scheme=""],
    & body[data-color-scheme="light"] {
        --color-primary: var(--dark-green);
        --color-secondary: var(--grey);
        --color-portrait-background: var(--dark-green);
        --color-footer-bg: var(--dm-darker-green);
        --color-footer-text: var(--color-secondary);
        --color-color-mode-icon: var(--dark-green);
    }

    & body[data-color-scheme="dark"] {
        --color-primary: var(--dm-grey);
        --color-secondary: var(--dm-dark-green);
        --color-portrait-background: var(--dm-grey);
        --color-footer-bg: var(--dm-darker-green);
        --color-footer-text: var(--color-primary);
        --color-color-mode-icon: var(--dm-grey);
    }

    /*2.986rem*/
    --font-size-h1: 2.906rem;
    /*2.328*/
    --font-size-h2: 2.128rem;
    --font-size-h3: 1.880rem;
    /*
    --font-size-h4: 1.728rem;
    --font-size-h5: 1.44rem;
    --font-size-h6: 1.2rem;
    */
    --font-size-a: 1rem;
    --font-size-button: 1.2rem;

    /*1rem*/
    --font-size-p: 1.44rem;
    /*0.833rem*/
    --font-size-small: 0.833rem;
    /*0.694rem*/
    --font-size-very-small: 0.694rem;

}

html {
    position: relative;
}

body {

    overflow-x: hidden !important;
    margin: 0;
    padding: 0;


    background-color: var(--color-secondary);
    color: var(--color-primary);
    margin-inline: auto;
    width: fit-content;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: color .1s ease-in-out, background-color .1s ease-in-out;


    /*temp: doesn't work??*/
    text-shadow: 2px 3px 0 rgba(0, 0, 0, 0);
}

h1 {
    font-size: var(--font-size-h1);
    /*temp: doesn't work??*/
    text-shadow: 2px 3px 0 rgba(0, 0, 0, 0);
}

h2 {
    font-size: var(--font-size-h2);
    margin-bottom: 28px;
}

h3 {
    font-size: var(--font-size-h3);
}

p {
    font-size: var(--font-size-p);
}

a {
    font-size: var(--font-size-a);
}

button {
    font-size: var(--font-size-button);
    cursor: pointer;
}

.button--standard {
    padding: 8px 8px;
    background-color: var(--color-button);
    color: var(--color-secondary);
    border: none;
    /*old value: 5px*/
    border-radius: 0px;
}

.button--icon {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    opacity: .5;
    transition: opacity .1s linear;
}

.button--icon:hover {
    opacity: 1;
}

small {
    font-size: var(--font-size-small);
}

h1,
h2,
h3,
a,
button {
    font-family: "Noto Serif", serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
}

p,
span,
li {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
}

a {
    color: var(--color-accent);
    font-weight: bold;
}

a:visited {
    color: var(--color-accent-dark);
}

section {
    flex: auto;
    /*margin-bottom was 50px previously*/
    margin-bottom: 36px;
}

section:first-of-type,
footer {
    /*TODO: check if this is needed!!!*/
    /*flex: 1;*/
}

section,
footer {
    padding-inline: 10px;
}

::selection {
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

/* background ascii stuff */
.backbround__ascii__wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    z-index: -10;
    pointer-events: none;
    transform-origin: top left;
    white-space: pre;
    box-sizing: border-box;
}

.backbround__ascii {
    position: absolute;
    transform-origin: top left;

    display: block;
    unicode-bidi: isolate;
    margin: 0;
    padding: 0;
    white-space: pre;
    pointer-events: none;
    user-select: none;
    /*font-family: 'Courier New', Courier, monospace;*/
    font-family: monospace;

}

.ascii__HW {
    line-height: 3.5px;
    inset: 0;
    font-size: 3.5px;
    /*12px*/

    transform: translateX(-50%);
}

.ascii__LAWRENCE {
    line-height: 2.4px;
    top: 650px;
    left: 0;
    transform: rotateZ(3deg);
    font-size: 2px;

}

.ascii__ALN {
    top: 1280px;
    right: -70px;
    transform: rotateZ(-2deg);
    font-size: 2px;
}

@media screen and (width >=500px) {
    .ascii__HW {
        transform: translateX(0);
    }

    .ascii__LAWRENCE {
        font-size: 2px;
    }

    .ascii__ALN {
        top: 1180px;
    }
}

@media screen and (width>=600px) {}

@media screen and (width>=700px) {}

@media screen and (width >=1200px) {}

body[data-color-scheme="dark"] .backbround__ascii {
    opacity: 0.2;

    &.ascii__HW {
        opacity: 0.4;
    }

    &.ascii__LAWRENCE {
        opacity: 0.4;
    }

    &.ascii__ALN {
        opacity: 0.4;
    }
}


body[data-color-scheme="light"] .backbround__ascii,
body[data-color-scheme=""] .backbround__ascii {
    opacity: 0.2;

    &.ascii__HW {
        opacity: 0.5;
    }

    &.ascii__LAWRENCE {
        opacity: 0.5;
    }

    &.ascii__ALN {
        opacity: 0.5;
    }
}

#hero {
    position: relative;
    /* old value 20px */
    margin-top: 8px;
}

#page-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#page-controls-lang {}

#page-controls-lang>* {
    padding: 4px;
}

#color-mode-button {}

#color-mode-button-light,
#color-mode-button-dark {}

body[data-color-scheme="dark"] #color-mode-button-light {
    display: none;
}

body[data-color-scheme=""] #color-mode-button-dark,
body[data-color-scheme="light"] #color-mode-button-dark {
    display: none;
}

#hero>h1,
#hero>h2 {
    text-align: center;
}

.name--observed {
    text-shadow: 2px 3px 0 var(--color-secondary);
    transition: text-shadow 200ms linear 500ms;
}

.name--observed.show {
    text-shadow: 2px 3px 0 var(--color-accent);
}

#about {}

#about__title {
    grid-area: title;
    margin-bottom: 0px;
    align-self: baseline;
}

#about_content {
    display: grid;
    gap: 16px;
    grid-template-areas:
        "image"
        "contact"
        "title"
        "content";
    margin-bottom: 28px;
}

#about-image-wrapper {
    grid-area: image;
    width: 300px;
    height: 400px;
    position: relative;
    overflow: hidden;
    margin-inline: auto;
    margin-bottom: 16px;
    border-top-left-radius: 100% 70%;
    border-top-right-radius: 100% 70%;
    border-bottom-right-radius: 10%;
    border-bottom-left-radius: 10%;

    border-bottom: 3px solid var(--color-accent);
    border-top: 2px solid var(--color-accent);

    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.163);
}

#about__image {
    display: block;
    background-color: var(--color-portrait-background);
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

#about__contact {
    grid-area: contact;
    margin-inline: auto;
    margin-bottom: 16px;
}

.contact__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-block: 4px;
}

.contact__item button {
    color: var(--color-accent);
}

#email__address {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

a:has(.dummy__cursor) {
    position: relative;
}

.dummy__cursor {
    position: absolute;
    z-index: 999;
}

.dummy__cursor--contact {
    /* props implemented in JS*/
}

.dummy__cursor--cta {
    /* props implemented in JS*/
}

@keyframes moveCursor {
    100% {
        offset-distance: 100%;
    }
}

body[data-color-scheme="dark"] .dummy__cursor {
    fill: white;
}

body[data-color-scheme=""] .dummy__cursor,
body[data-color-scheme="light"] .dummy__cursor {
    fill: black;
}

#about__body {
    /* TODO: rethink this flex container*/
    grid-area: content;
    display: flex;
    flex-direction: column;

}

#about__body>p {
    text-align: left;
    text-wrap-style: balance;
    margin-bottom: 26px;
    letter-spacing: .2px;
}

#about__body>p:last-child {
    /*TODO: arrange this better*/
}

#about__body_content p {
    padding-block: .6rem;
    max-width: 450px;
}

.about__body__paragraph {}

#technologies {
    position: relative;
}

#technologies__title {

    align-self: baseline;
}

#toolsAndLanguages__list {
    /* már nem létezik */
    list-style: none;
    margin-bottom: 38px;
    justify-self: center;
    justify-items: center;
    /*
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-content: center;
    column-gap: .8rem;
    row-gap: 1.3rem;
    */
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    justify-content: center;
}


#technologies__lists {
    list-style: none;
    display: flex;
    flex-direction: column;
    /*flex-start*/
    justify-content: space-between;
    /*column-gap: 36px;*/
    margin-bottom: 38px;
}

#technologies__lists>.technologie__list:first-child>.technologie__item__title {
    margin-block: 0px 20px;
}

#technologies__lists>* {
    text-align: left;
}

.technologie__list__divider {
    border-top: none;
    border-left: none;
    border-right: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    border-radius: 50%;
    opacity: .1;
}

.technologie__list {
    display: flex;
    flex-direction: column;
}

.technologie__item__title {
    margin-block: 24px 20px;
}

.technologie__item__list {
    justify-content: flex-start;
    margin-bottom: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    height: 100%;
    column-gap: 16px;
    row-gap: 16px;
}

.about__item {
    pointer-events: none;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 8px;

    padding: 6px 8px;
    /*border: 1px solid var(--color-primary);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.107);    
    backdrop-filter: blur(1px);
    border-radius: 2px;
    border-bottom-width: 3px;
    */
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 200ms linear, transform 100ms ease-in-out 100ms;
}

.about__item__name {
    font-size: var(--font-size-a);
}

.about__item__logo {
    display: flex;
    height: 30px;
    align-content: center;
}

.about__item__logo>svg {
    width: 30px;
}

.projectcard__tool_jsLogo {
    border-color: yellow;
    background-color: rgb(166, 166, 0);
}

#project__cards-warpper {
    display: flex;
    flex-wrap: wrap;
    /*old values, still experimenting: space-around, space-between*/
    justify-content: left;
    column-gap: 20px;
    row-gap: 15px;
}

.project__card {
    position: relative;
    padding: 10px 10px 6px 10px;
    border: 3px dashed var(--color-primary);
    border-radius: 12px;
    transition: background-color .1s ease-in, transform 100ms ease-in-out;
    backdrop-filter: blur(3px);
    width: 340px;
    flex: 0 1 340px;
    display: flex;
    flex-direction: column;
}

.project__card>*:last-child {
    flex: 1;
    align-items: flex-end;
}

.project__card>* {}

.project__card::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,<svg id='patternId' width='100%' height='100%' xmlns='http://www.w3.org/2000/svg'><defs><pattern id='a' patternUnits='userSpaceOnUse' width='10' height='10' patternTransform='scale(1.8) rotate(0)'><rect x='0' y='0' width='100%' height='100%' fill='%23ffffff00'/><path d='M 10,-2.55e-7 V 20 Z M -1.1677362e-8,10 H 20 Z'  stroke-width='0.5' stroke='%230d301dff' fill='none'/></pattern></defs><rect width='800%' height='800%' transform='translate(0,0)' fill='url(%23a)'/></svg>");
    opacity: 0.07;
    z-index: -1;
    transition: opacity .4s;
}

.project__card:hover {
    background-color: #1f383217;
    transform: translateY(-6px);
}

.project__card:hover::after {
    opacity: .15;
}

.project__demo__gif {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 10px;
}

.project-card-title-wrapper-anchor {}

.project-card-title {
    margin-bottom: 0px;
}

.project-card-project-type {
    font-size: var(--font-size-a);
    margin-bottom: 10px;
}

.project-card-description {
    margin-top: 8px;
    margin-bottom: 16px;
    text-wrap-mode: wrap;
    text-wrap-style: balance;
}

.project__card__tools__wrapper {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.card__item {
    background-color: var(--color-secondary);
    font-size: var(--font-size-a);
    padding: 4px 7px;
    border: 2px solid var(--color-primary);
    border-radius: 20px;
    width: fit-content;
    cursor: default;
    opacity: 0;
}

.project__card__links {
    display: flex;
    justify-content: space-between;
}

.link--inactive {
    pointer-events: none;
    opacity: .4;
}

#contact__cta__btn {
    border-radius: 10px;
    width: fit-content;
    display: block;
    margin-inline: auto;
    position: relative;
    transition: background-color 200ms ease-in-out, color 200ms ease-in-out;
}

#contact__cta__btn:hover {
    background-color: var(--color-footer-bg);
    color: var(--color-accent);
}

footer {
    position: relative;
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
}

#footer-top {
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#footer-top>div {
    display: flex;
    align-items: baseline;
    gap: 14px;
}

#footer-top>div>div>a {
    padding: 4px;
}

#footer-top>button {
    height: fit-content;
}

footer>p {
    text-align: center;
    font-size: var(--font-size-small);
}

#back__to__top__button {
    width: 40px;
    height: 40px;
}

#footer__c {
    opacity: .2;
    transition: opacity 100ms ease-in-out;
}

#footer__c:hover {
    opacity: .5;
}

body[data-color-scheme="dark"] {
    & .project__card::after {
        background-image: url("data:image/svg+xml,<svg id='patternId' width='100%' height='100%' xmlns='http://www.w3.org/2000/svg'><defs><pattern id='a' patternUnits='userSpaceOnUse' width='10' height='10' patternTransform='scale(1.8) rotate(0)'><rect x='0' y='0' width='100%' height='100%' fill='%2311221800'/><path d='M 10,-2.55e-7 V 20 Z M -1.1677362e-8,10 H 20 Z'  stroke-width='0.5' stroke='%23c2c2c2ff' fill='none'/></pattern></defs><rect width='800%' height='800%' transform='translate(0,0)' fill='url(%23a)'/></svg>");

    }
}

@media screen and (width >=500px) {

    #hero,
    #about,
    #projects,
    #contact {
        max-width: 800px;
        justify-self: center;
    }

    #hero>h1,
    #hero>h2 {
        text-align: left;
    }

    #about__contact {
        margin-bottom: 0px;
    }

    #about__body {
        /*rethink this flex direction*/
        /*flex-direction: row;*/
    }

    #about__body>* {
        flex: 1;
    }

}

@media screen and (width>=600px) {
    #technologies__lists {
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .technologie__item__list {
        flex-direction: column;
        row-gap: 16px;
    }

    .technologie__item__title {
        text-align: center;
        margin-block: 0px 20px;
    }

    .about__item {
        margin-inline: auto;
    }

    .about__item--pLang,
    .about__item--be,
    .about__item--fe,
    .about__item--dops {
        width: auto;
    }

}

@media screen and (width>=700px) {
    section {
        margin-bottom: 40px;
    }

    #about_content {
        grid-template-areas:
            "title image"
            "content image"
            "content contact";
        margin-bottom: 58px;

    }

    #about-image-wrapper {
        flex: none;
        margin-bottom: 0px;
        box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.163);
    }

    #about__body {
        margin-right: 24px;
    }

    #toolsAndLanguages__list {
        max-width: 600px;
    }
}

@media screen and (width >=1100px) {

    #hero,
    #about,
    #projects,
    #contact {
        max-width: 900px;
        justify-self: center;
    }

    .project__card {
        flex: 0 1 400px;
    }

    .ascii__HW {
        font-size: 5px;
        line-height: 5px;
    }
}

@media screen and (width >=1200px) {
    body {
        max-width: 1200px;
    }


}