:root {
    /* --color-background: #161921; */
    --color-background: #FFFFFF;
    --color-primary: #161921;
    --color-primary-rgb: 22, 25, 33;
    --color-highlight: #CCCCCC;
    --navbar-height: 4rem;
    --grid-gap: 2rem;
}

body, html{
    /* background-color: #FFFFFF; */
    background-color: var(--color-primary);
    margin: 0px;
    -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape while allowing user zoom */
}

h1 {
    color: var(--color-primary);
    font-family: "Kaisei HarunoUmi", serif;
    font-size: 3rem;
    font-weight: 600;
    font-style: normal;
    margin: 0em 0em 0.5em 0em;

    user-select: none;
    /* background-color: var(--color-background); */
}

h2 {
    color: var(--color-primary);
    font-family: "Inter", sans-serif;
    font-size: 2.4rem;
    font-weight: 600;
    font-style: normal;
    margin: 0em 0em 0.4em 0em;
}

h3 {
    color: var(--color-primary);
    font-family: "Inter", sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    font-style: normal;
    margin: 0em 0em 0.4em 0em;
}

a {
    display: inline-block;
    color: var(--color-primary);
    font-family: "Inter", sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    font-style: normal;
    line-height: 1.4em;
    text-decoration: none;
    margin: 0em 0em 1em 0em;
}

.aUnderline {
    text-decoration: underline;
    text-decoration-thickness: 0.1em;
    text-decoration-skip-ink: none;
}

p {
    color: var(--color-primary);
    font-family: "Inter", sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    font-style: normal;
    line-height: 1.4em;
    margin: 0em 0em 1em 0em;
    break-inside: avoid;
}

ul {
    color: var(--color-primary);
    font-family: "Inter", sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    font-style: normal;
    line-height: 1.4em;
    margin: 0em 0em 1em 0em;
    padding-left: 1.6rem;
}

button {
    display: flex;
    margin: unset;
    padding: unset;
    background: unset;
    border: unset;
}

iframe {
    aspect-ratio: 16/9;
}

.pageCenterDiv > iframe {
    margin-bottom: 1rem;
}

noscript {
    font-family: monospace;
    font-size: 1.2rem;
}

.button {
    -webkit-tap-highlight-color: transparent;
}

.noSelect {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.touchIntercept {
    pointer-events: auto;
}

.contentContainer {
    background-color: var(--color-background);
    /* padding-top: var(--navbar-height); */
}

.pageCenterDiv {
    margin: 0px auto 0px auto;
    box-sizing: border-box;
    padding: 1.2em;
    min-height: 110vh;
    padding-top: calc(1.2em + var(--navbar-height));

    /* background-color: green; */
}

.aboutP {
    column-count: 1;
    margin: 0rem 0rem 1rem 0rem;
}

.con {
    font-size: 1.4rem;
    display: flex;
    flex-direction: column;
    padding: 0rem;
    margin: 0rem 0rem 1em 0rem;
    list-style: none;
}

.con > li {
    flex: 1;
    text-align: center;
    display: block;
}

.con > li > a {
    margin: 0rem;
}

.con > li > span:nth-child(1) {
    display: none;
}

.navBar {
    position: fixed;
    height: var(--navbar-height);
    width: 100%;
    top: 0rem;
    box-sizing: border-box;
    background-color: var(--color-primary);
    
    z-index: 99;

}

.navBarContainer {
    display: flex;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    align-items: center;
    margin: 0rem auto;
}

.navUl {
    flex: 1;
    display: flex;
    padding: 0rem;
    margin: 0rem 0rem 0rem 1.2rem;
    flex-direction: row;
    list-style: none;
    justify-content: space-between;
    box-sizing: border-box;
}

.navLi {
    font-family: "Inter", sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    font-style: normal;
    user-select: none;
}

.navName {
    color: var(--color-background);
    user-select:text;
    font-weight: 500;
}

.navA {
    display: inline;
    text-decoration: none;
    color: var(--color-background);
    opacity: 1;
    transition: opacity 250ms ease;
}



.navDropdown {
    position: fixed;
    transform: translateY(0); 
    width: 100%;
    min-height: 100%;
    background-color: var(--color-primary);
    /* top: var(--navbar-height); */
    transition: transform 500ms ease;
        z-index: 98;
}

.navDropdownUl {
    margin: 4rem 0rem 0rem;
    padding: 1rem 2rem 2rem;
    list-style: none;
    box-sizing: border-box;
    opacity: 1;
}

.navDropdownLi {
    margin: 0rem 0rem 2rem 0rem;
}

.navDropdownButton {
    height: 100%;
    aspect-ratio: 1;
    padding: 1rem;
    box-sizing: border-box;
    position: relative;
}

.navDropdownButtonLine {
    position: absolute;
    width: 50%;
    height: 5%;
    background-color: var(--color-background);
    transform-origin: center;
    transform: translateY(500%);

    transition: transform 250ms ease;
}

/* open button */

.navDropdownHamburgerLine:nth-child(1) {
    transform: translateY(300%);
}

.navDropdownHamburgerLine:nth-child(2) {
    transform: translateY(600%);
}

/* close button */

.navDropdownXLine:nth-child(1) {
    transform: translateY(500%) rotate(45deg);
}

.navDropdownXLine:nth-child(2) {
    transform: translateY(500%) rotate(-45deg);
}

.navDropdownOffScreen {
    transform: translateY(calc(-100% - var(--navbar-height)));
}

.navDropdownUlFadeIn{
    opacity: 1;
    transition: opacity 500ms ease-out;
}

.navDropdownUlFadeOut{
    opacity: 0.2;
    transition: opacity 250ms ease-in;
}


/* projects */
.projectGallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--grid-gap);
}

.projectImage {
    width: 100%;
    aspect-ratio: 1;
    background-size: cover;
    z-index: auto;
    background-repeat: no-repeat;
    background-position: center;
    box-sizing: border-box;
}

.projectOverlay {
    width: 100%;
    box-sizing: border-box;
    aspect-ratio: 1;
    background-color: rgba(var(--color-primary-rgb), 0);
    /* background: radial-gradient(rgba(var(--color-primary-rgb), 0.25) 50%, rgba(var(--color-primary-rgb), 0.75)); */
}

.projectOverlayText {
    font-size: clamp(1.4rem, 6vw, 4rem);
    line-height: 1;
    color: #FFFFFF;
    align-self: flex-end;
    margin: 0rem;
    text-decoration: none;
    text-shadow: 0rem 0rem 0.2em black,
    0rem 0rem 0.2em black;
}

.projectLink {
    display: inline;
    text-decoration: none;
}

.projectLinkInner {
    display: flex;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 1.4rem;
}

.projectBack {
    display: inline-block;
    text-decoration: none;
    color: var(--color-primary);
    font-family: "Inter", sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    font-style: normal;
    line-height: 2.2rem;
    margin: 0em 0em 1em 0em;
    box-sizing: border-box;
}

.textSmall {
    font-size: 1.2rem;
}

.marginSmall {
    margin-bottom: 0.4rem;
}

.columnsTwo {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--grid-gap);
    margin: 0rem 0rem 1rem 0rem;
}

.sectionBreak {
    padding-bottom: 0.4em;
    border-bottom: 0.1em solid rgba(var(--color-primary-rgb), 0.2);
}

.ulAwards {
    list-style-type: "\2605\0020";
}



.ImgThumb {
    display: block;
    width: 100%;
    margin: 0em auto 2rem auto;
}

.ImgGallery {
    display: block;
    width: 100%;
    margin: auto 0rem auto 0rem;
}

/* photos */
.photoGallery {
    position: relative;
    width: 100%;
    /* gap: var(--grid-gap);
    grid-template-columns: 1fr; */
}

.photoGalleryPhoto {
    position: absolute;
    background-size: cover;
    background-repeat: no-repeat;
}

.photoGalleryFooter {
    position: absolute;
    height: 2rem;
    width: 100%;
}

.jsError {
    font-size: 1rem;
    font-family: monospace;
}

.noBreak {
    white-space: normal;
}

.hiddenMobile {
    display: none;
}

/* tablet */
@media (min-width: 480px) {
    .pageCenterDiv {
        max-width: 80%;
        /* background-color: blue; */
    }

    .navUl {
        margin: 0rem 0rem 0rem 1.2rem;
    }

    .navBarContainer {
        max-width: 80%;
    }

    .navDropdownUl {
        max-width: 80%;
        margin: 4rem auto 0rem;
    }

    .projectGallery {
        grid-template-columns: 1fr 1fr;
    }

    .projectOverlayText {
        font-size: clamp(1.4rem, 2.8vw, 3.8rem);
    }

    .photoGallery {
        grid-template-columns: 1fr 1fr;
    }

}

/* desktop */
@media (min-width: 1024px) {
    .hiddenDesktop {
        display: none;
    }

    .hiddenMobile {
        display: revert;
    }

    .pageCenterDiv {
        max-width: 1024px;
        /* background-color: red; */
    }

    .aboutP {
        /* flex-direction: row; */
        column-count: 2;
        column-fill: balance;
        column-gap: var(--grid-gap);
    }

    .con {
        flex-direction: row;
    }

    .con > li:first-child {
        text-align: left;
    }

    .con > li:last-child {
        text-align: right;
    }

    .navBarContainer {
        max-width: 1024px;   
    }

    .navUl {
        margin: 0rem 1.2rem;
    }

    .navDropdown {
        display: none;
    }

    .navA:hover {
        text-decoration: underline;
    }

    .projectGallery {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .projectOverlayText {
        font-size: 1.6rem;
    }

    .width-50 {
        width: 50%;
    }

    .width-80 {
        width: 80%;
    }

    .columnsTwo {
        grid-template-columns: 1fr 1fr;
    }

    .photoGallery {
        grid-template-columns: 1fr 1fr;
    }

    .photoGalleryPhoto {
        cursor: pointer;
    }

    /* photo gallery modal */
    .photoGalleryModal {
        height: 90%;
        margin: auto;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .photoGalleryModalContainer {
        display: none;
        box-sizing: border-box;
        position: fixed;
        top: 0px;
        width: 100%;
        height: 100%;
        padding-top: var(--navbar-height);
        background-color: rgba(0,0,0, 0.8);
        border-width: 0px;
        backdrop-filter: blur(5px);
    }

    .photoGalleryModalShow {
        display: flex;
    }
}


