:root {
    --rainbow: linear-gradient(90deg,
        rgb(255, 226, 59) 0%,
        rgb(203, 57, 240) 50%,
        rgb(45, 183, 218) 100%);
    --rainbow-two: linear-gradient(90deg,
        rgb(203, 57, 240) 0%,
        rgb(255, 226, 59) 100%);
}

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


html, body {
    height: 100%;
    width: 100%;
}

#container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200vh; /* Full viewport height */
    width: 100vw; /* Full viewport width */
    background: #f0f0f0; /* Example background color */
}

#content {
    width: 70.7vh; /* Set width based on the aspect ratio 1:1.414 */
    height: 100%; /* Full height of the container */
    background: #fff; /* Example background color for content */
    padding: 0rem; /* Padding inside the content box */
    overflow: auto; /* Allows scrolling if content overflows */
    position: relative;
}

@font-face {
    font-family: Montserrat;
    src: url(Montserrat-Bold.ttf);
}

@font-face {
    font-family: RobotoSlab;
    src: url(RobotoSlab_Variable.ttf);
    font-weight: 500;
}

body {
    background: /* #101010 */ white;
    
    color: /* #eee */ black;
    overflow-x: hidden;
    margin: 0;
}

header {
    margin: 1mm 10mm 0 10mm;
    display: flex;
    flex-direction: column;
    align-items: center;
}
section {
    margin: 0 10mm;
}
header h1 {
    font-family: Montserrat;
    font-size: 7.5mm;
    /* color: transparent;
    background: var(--rainbow-two);
    background-clip: text;
    -webkit-background-clip: text; */
    color: black;
}

header h2 {
    margin: -5mm 0 0 0;
    font-family: Montserrat;
    font-size: 3mm;
    color: /* #aaa */ #777;
}
header h2 b {
    color: /* #eee */ #333;
}

header div {
    display: flex;
    flex-direction: row;
}

#main-sep {
    display: block;
    width: 100%;
    height: 1px;
    background: #ccc;
    margin-top: 5mm;
}

figure.qr {
    margin: 5mm 5mm 0 0;
    display: inline-block;
    width: fit-content;
}
figure.qr figcaption {
    font-family: Montserrat;
    font-size: 2.5mm;
    color: /* #eee */ #333;
    text-align: center;
}
figure.qr img {
    width: 20mm;
    height: 20mm;
    image-rendering: pixelated;
    /* filter: brightness(0%); */
}

#corner {
    width: 10mm;
    height: 10mm;
    position: absolute;
    top: 0;
    right: 0;
}

#technologies {
    padding: 0;
    margin: 0;
}

section > h1 {
    font-family: Montserrat;
    font-size: 5mm;
    margin: 5mm 0 0 0;
    position: relative;
    width: fit-content;
}
section > h1::before {
    content: "";
    display: block;
    z-index: -1;
    width: calc(100% - 1mm);
    height: 60%;
    position: absolute;
    left: -1mm;
    top: 0.25mm;
    background: #ddd;
}
section h2 {
    font-family: Montserrat;
    font-size: 3mm;
    margin: 2mm 0 5mm 0;
}
section p {
    font-family: RobotoSlab;
    font-size: 3mm;
    font-weight: 400;
}

.tech-group {
    position: relative;
    left: -10mm;
    padding: 1mm 30% 1mm 12mm;
    width: 70.9vh;
    background: #fff;
    border-bottom: 1px solid var(--color);
    --color: hsl(var(--tone), var(--sat), calc(var(--vel) - var(--decay) * var(--pos)));
    box-shadow: inset 0px 0px 4px #00000020;
}

.tech-group:nth-child(1) {
    border-top: 1px solid var(--color);
}
.tech-group.job { --tone: 288; --sat: 80%; --vel: 80%; --decay: 5%; }
.tech-group.extra-exp { --tone: 230; --sat: 90%; --vel: 80%; --decay: 8%; }
.tech-group h1, .tech-group h2 {
    font-family: Montserrat;
    margin: 0;
    font-size: 3mm;
}
.tech-group h2 {
    font-size: 2.5mm;
}
.tech-group .date {
    display: flex;
    position: absolute;
    top: 1mm;
    right: 2mm;
    align-items: center;
}
.tech-group .date img {
    width: 1em !important;
    height: 1em !important;
    margin-right: 1mm;
}

.tech-group ul {
    padding-left: 1mm;
}
.tech-group ul li {
    position: relative;
    list-style: none;
    font-family: RobotoSlab;
    font-size: 2.6mm;
    margin: 1mm 0;
    max-width: 60vw;
    padding-left: calc(1em + 1mm);
}
.tech-group ul li::before {
    content: "";
    position: absolute;
    left: 0.5mm;
    top: 0.2mm;
    width: 1em;
    height: 1em;
    background-image: url(icons/corner-down-right.svg);
    background-size: contain;
    background-repeat: no-repeat;
}

.keyword {
    font-family: RobotoSlab;
    font-size: 2.6mm;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color);
    border-radius: 1000px;
    padding: 0.1em 0.5em;
    box-shadow: inset 0px 0px 2px #00000020,
                      0px 0px 2px #00000020;
}

.tech-group ul img,
.keyword img {
    width: 0.8em;
    height: 0.8em;
    display: inline-block;
    margin: 0 0.2em 0 0.08em;
}

.brhidden {
    display: none;
}

@media print {
    /* Adjust styles for printing */
    #container {
        display: block;
        width: 100%;
        height: auto;
        background: none;
    }

    #content {
        width: 100%;
        height: auto;
        padding: 0;
        background: none;
    }
}

@media (max-width: 877px) {
    #container {
        display: block;
        width: 100%;
        height: auto;
        background: none;
        padding: 0;
    }

    #content {
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
    }

    .tech-group {
        width: 100vw;
        left: -1vw;
        padding-left:0mm;
    }

    .tech-group .date {
        top: 10mm;
        right: 5vw;
    }

    #corner {
        display: none;
    }


    header, section {
        margin: 10px;
    }
}
@media (max-width: 440px) {
    .tech-group .date {
        width: 90px;
    }
    .date {
        white-space: pre-wrap;
    }
    
    .date::after {
        content: '\A';
        white-space: pre;
    }

    .brhidden {
        display: inline;
    }
}