@import "themes/themes.css";
@import url('https://fonts.cdnfonts.com/css/black-chancery');
@import url('https://fonts.cdnfonts.com/css/nunito');
@import url('https://fonts.cdnfonts.com/css/recoleta');

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

@font-face {
    font-family: 'Newake';
    src: url('Newake.otf');
}

/* Recoleta Regular Variants */
@font-face {
    font-family: 'Recoleta';
    src: url('Recoleta/Recoleta Thin.woff2') format('woff2'),
         url('Recoleta/Recoleta Thin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Recoleta';
    src: url('Recoleta/Recoleta Light.woff2') format('woff2'),
         url('Recoleta/Recoleta Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Recoleta';
    src: url('Recoleta/Recoleta Regular.woff2') format('woff2'),
         url('Recoleta/Recoleta Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Recoleta';
    src: url('Recoleta/Recoleta Medium.woff2') format('woff2'),
         url('Recoleta/Recoleta Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Recoleta';
    src: url('Recoleta/Recoleta SemiBold.woff2') format('woff2'),
         url('Recoleta/Recoleta SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Recoleta';
    src: url('Recoleta/Recoleta Bold.woff2') format('woff2'),
         url('Recoleta/Recoleta Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Recoleta';
    src: url('Recoleta/Recoleta Black.woff2') format('woff2'),
         url('Recoleta/Recoleta Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

body {
    width: 100vw;
    height: 100vh;
    background-color: var(--bgcolor);
}

#body-wrapper {
    width: max(75%, 970px);
    margin: 0 auto;
    max-width: 1400px;
    /* margin-left: 15%; */
    /* overflow: auto; */
}

#body-wrapper, #body-wrapper *:not(.theme-text) {
    transition: all 0.5s;
    transition-property: stroke, fill, color, background-color, width;
}

#pic-wrapper {
    width: 20rem;
    height: 20rem;
}

a.img-link {
    width: 20rem;
    max-width: 100%;
    /* height: 20rem; */
    max-height: 100%;
    /* height: 34.75rem; */
    object-fit: cover;
    user-select: none;
    align-self: flex-start;
    /* -webkit-filter: grayscale(30%); */
    /* filter: grayscale(30%); */
    /* opacity: 0.8; */
    /* border-radius: 42% 56% 72% 28% / 42% 42% 56% 48%; */
    /* animation: blob 3.7s linear infinite; */
    flex-shrink: 0; 
}

img#pic-profile {
    width: 100%;
}

@keyframes blob {
    0%, 100% {
        border-radius:
            42% 56% 72% 28% / 42% 42% 56% 48%;
    }

    33% {
        border-radius:
            42% 28% 48% 48% / 28% 28% 72% 72%;
    }

    66% {
        border-radius:
            100% 56% 56% 100% / 100% 100% 56% 56%;
    }
}

.nav-text-link, p {
    font-size: 1.15rem;
    font-family: 'Recoleta', sans-serif;
}

.nav-text-link {
    color: var(--accentcolor);
    font-weight: 500;
    /* width: fit-content; */
    width: 100%;
    margin-right: 2rem;
    cursor: pointer;
    user-select: none;

    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    text-decoration: none;
}
.nav-text-link:last-child {
    margin-bottom: 0;
}

.nav-text-link[selected] {
    color: var(--maincolor);
}

p {
    color: var(--textcolor);
    font-weight: 400;
    line-height: 1.7rem;
}

.text-primary {
    color: var(--accentcolor);
    font-weight: 400;
    display: flex;
    align-items:  center;
}
#projects .text-primary {
    font-size: 1rem;
}

.link {
    display: flex;
    align-items: center;
    color: var(--accentcolor)
}
.link svg{
    height: 1.1em;
    margin-left: 0.1em;
}
.link:hover path {
    fill: var(--maincolor) !important;
}
.text-link {
    color: var(--accentcolor);
    text-decoration: underline;
    transition: color 0.1s !important;
}
.text-link:hover {
    color: var(--maincolor) !important;
    cursor: pointer;
}
.text-link-mini {
    /* text-decoration: underline; */
    transition: none !important;
    margin-right: 0.4rem;
    text-decoration: none;
    color: var(--maincolor);
}
.text-link-mini:hover {
    color: var(--accentcolor);
    cursor: pointer;
}
.text-link-mini i {
    margin-right: 0.25rem;
    transition: all 0s !important;
}

.text-highlight {
    width: fit-content;
    padding: 0 8px;
    background-color: rgba(255, 218, 132, 0.5);
    /* color: rgb(222, 174, 43); */
    color: #e29a1d;
    border-radius: 10px;
    transform: translate(-8px, 0);
}
/* .text-highlight i {
    margin-left: 0.25rem
} */
.text-highlight:after{
    content:'\f005';
    font-family: "Font Awesome 6 free";
    font-weight: 900;
    margin-left: 0.25rem;
    font-size: 0.9rem;
}

.text-secondary {
    font-size: 1rem;
}

h1 {
    font-size: 7.25rem;
    font-family: 'Rolling Bold', sans-serif;
    color: var(--maincolor);
    width: fit-content;
    width: -moz-fit-content;
    display: table;
    position: relative;
    /* background-image: linear-gradient(120deg, var(--accentcolor) 0%, var(--accentcolor) 100%);
    background-repeat: no-repeat;
    background-size: 100% 0.3em;
    background-position: 0 72%; */
    padding-left: 1rem;
}
h1::before{
    content: "";
    background-image: linear-gradient(120deg, var(--accentcolor) 0%, var(--accentcolor) 100%);
    position: absolute;
    height: 0.3em;
    bottom: 12%;
    margin-left: 2rem;
    z-index: -1;
    opacity: 0.75;
    transform: skew(-22.5deg);
    width: 95%;
}
.arch-theme h1, .arch-theme h3 {
    background: -webkit-linear-gradient(45deg, #48c6ef, #6f86d6 80%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.paper-theme h1, .paper-theme h3 {
    background: -webkit-linear-gradient(45deg, #63696d, #2c3e50 80%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 1.5rem;
    font-family: 'Recoleta', sans-serif;
    /* margin-top: -.75rem; */
    margin-bottom: 1rem;
    color: var(--accentcolor);
}

h3 {
    font-size: 3rem;
    font-family: 'Rolling Bold', sans-serif;
    color: var(--accentcolor);
    margin-bottom: 0.5rem;
}

.content-block {
    margin-bottom: 1rem;
}
.content-block:last-of-type {
    margin-bottom: 0;
}

nav, .wrapper {
    display: grid;
    grid-template-columns: 520px 1fr;
    gap: 5rem;
}
.wrapper {
    margin-bottom: 3rem;
    height: 100vh;
}

nav {
    padding-top: 6rem;
    margin-bottom: 5rem;
}

#nav-text {
    display: inline-block;
    /* justify-content: space-between; */
    margin-left: 3rem;
    align-self: flex-end;
    flex-shrink: 0;
    min-width: fit-content; 
}

/* #content-scroll {
    /* margin: auto 0; */
    /* margin-top: 20%;
    width: max(50%, 30rem) 
} */

hr {
    margin-right: 0.5rem;
    border: none;
    border-radius: 0.1rem;
    height: 0.125rem;
    width: 1.5rem;
    background-color: var(--accentcolor)
}
.nav-text-link[selected] hr {
    background-color:  var(--maincolor);
    width: 3rem;
}

#nav-wrapper {
    display: flex;
    vertical-align: baseline;
}

#content-wrapper {
    /* position: relative;
    overflow-y: scroll;
    height: inherit; */
    display: flex;
    flex-direction: column;
    mask-image: linear-gradient(to top, transparent 0%, black 20%, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, transparent 0%, black 20%, black 80%, transparent 100%);
    margin: 1rem 0;
    transform: translate(-7px, 0); /* translate back 7px to absorb margin into gap */
    width: calc(100% + 7px) /* re-add 7px to maintain original element width */
}
#content-scroll {
    overflow-y: scroll;
    flex-basis: 0px;
    flex-grow: 1;
    padding-left: 7px; /* allow highlights to overflow */
    position: relative;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
#content-scroll::-webkit-scrollbar {
    width: 0;
    /* background: transparent;
    -webkit-appearance: none; */
}
.content-section {
    /* min-height: 100%; */
    /* margin: auto 0; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    margin-top: 5rem;
}
.fun-section {
    margin-bottom: 300%;
}

#news, #about {
    margin-top: 3rem;
}

#research .text-descrip:not(:first-child) {
    margin-top: 0.75rem;
}

#title-static {
    min-width: 0;
    align-self: center;
}

.content-grid {
    display: grid;
    grid-template-columns: max-content 1fr;
    grid-template-rows: max-content max-content;
    align-items: baseline;
    gap: 0 1rem;
}
.content-grid .text-descrip {
    grid-column: 2;
    /* margin-top: -0.5rem; */
    margin-top: -0.2rem;
}
.content-grid .text-primary, .content-grid .text-name {
    margin-top: 0.75rem;
}

.content-grid .text-descrip, .content-grid .text-name {
    line-height: 1.4rem;
}
.text-secondary span {
    white-space: nowrap;
    margin-right: 0.95rem;
}
.text-secondary.text-descrip.text-name {
    display: flex;
    flex-wrap: wrap;
}
.text-name {
    grid-column: 2;
    display: block;
}
.text-color {
    font-weight: 500;
    margin-right: 0 !important;
}

/* #contact {
    min-height: 0;
    margin-top: 3rem;
} */

#about {
    min-height: calc(100% - 2rem);
}
#contact {
    margin-bottom: 30%;
}
img.img-thumb {
    width: 4rem;
    align-self: start;
}
.content-grid .text-primary {
    grid-column: 2;
}
mark {
    background-color: transparent;
    color: inherit;
}
.focus[info]:not(.text-link):after{
    content:'\f08d';
    font-family: "Font Awesome 6 free";
    font-weight: 900 !important;
    margin-left: 0.4rem;
    font-size: 0.9rem;
}
.focus[info], .text-link[info]:hover {
    padding: 0 8px;
    background-color: rgba(207, 229, 151, 0.4) !important;
    color: #8ea74e;
    /* background-color: rgba(255, 218, 132, 0.5) !important;
    color: #e29a1d; */
    /* color: rgb(222, 174, 43); */
    border-radius: 10px;
}
.focus[info] *, .text-link[info]:hover * {
    /* color: #e29a1d !important; */
    color: #8ea74e !important;
}

.text-link[info] {
    padding: 0 8px;
    border-radius: 10px;
    background-color: rgba(99, 106, 110, 0.1);
    text-decoration: underline;
}

.text-primary:has(> .focus), .text-secondary:has(> .focus)  {
    transform: translate(-8px, 0);
}

@media (max-width: 1000px) {
    nav, .wrapper {
        display: block;
        width: 85%;
        margin: 0 auto;
    }
    body {
        overflow: scroll !important;
    }
    p {
        font-size: 1rem;
        line-height: 1.5rem;
    }
    #body-wrapper {
        width: auto;
    }
    #content-wrapper {
        display: block;
        mask-image: none;
        -webkit-mask-image: none;
    }
    #contact {
        margin-bottom: 10%;
    }
    #title-static {
        padding-top: 4rem;
        width: fit-content;
        margin: 0 auto;
    }
    .vanta-canvas, #nav-text {
        display: none;
    }
    h1 {
        font-size: 6rem;
    }
    .content-grid {
        display: block;
    }
    .text-primary, .text-secondary {
        margin-top: 0 !important;
    }
    .text-descrip, .text-name:not(.text-primary) {
        margin-bottom: 1rem;
    }
    [class="text-secondary"] {
        font-style: italic;
        font-weight: 700;
    }
    #interests .text-secondary {
        font-weight: normal;
        font-style: normal;
    }
}