/*css resets based on https://www.joshwcomeau.com/css/custom-css-reset/ */
/* calculate sizes based on border-box */
*, *::before, *::after{
    box-sizing: border-box;
}

/* remove default margins*/
* {
    margin: 0;
    padding: 0;
}

/* remove default inline-image behavior, stop images from overflowing containers*/
img {
    display: block;
    max-width: 100%;
}

/* set form elements to inherit font styles from the rest of the document*/
input, button, textarea, select {
    font: inherit;
}

/* stop text from overflowing containers */
p, h1, h2, h3, h4, h5, h6, a {
    overflow-wrap: break-word;
}

/* variables for easier color repeats */
:root {
    --light-pink: #FFF8FC;
    --dark-grey-pink: #97818E;
    --blue-green: #e1f8fd;
    --darkest-shade: #7a6973;

    --homepage-gradient: linear-gradient(
        45deg,
        #feb8e0,
        #e1b3fa,
        #cfb7fa,
        #b7bffa,
        #abcdfc
    ); 

    --homepage-border-radius: 1rem;
    --homepage-hero-border-width:4px;
}

/* more readable default line height */
body {
    line-height: 1.5;
    /*the following is to prevent any mobile nav menu overflows*/
    overflow-x: hidden;
}

.whole-page{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
} 

/*individual page header styles */
.site-header{
    background-color: var(--light-pink);
    padding: 1rem;
}

.portfolio-image-and-title{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/*individual page header on mobile */
@media screen and (max-width: 600px){
    .site-header{
        min-height: calc(100vh - 3rem);
        /* use this to show the category underneath (has a margin of 1 rem around and a 36px height) 
        min-height: calc(100vh - 3rem - 2rem - 36px); */
        display:flex;
        flex-direction: column;
        justify-content: center;
    }
    .portfolio-image-and-title{
        flex-direction: column;
    }
    .portfolio-title-text{
        text-align: center;
    }
}

.main-portfolio-image{
    border-radius: 100%;
    margin: 1rem;

}
.main-portfolio-title{
    font-family: 'Comfortaa', sans-serif;
    font-weight: normal;
    color: var(--dark-grey-pink);
    text-transform: uppercase;
    font-size: 2rem;

}

.main-portfolio-subtitle{

    font-family: 'Comfortaa', sans-serif;
    font-weight: normal;
    color: var(--dark-grey-pink);
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

/*navbar, desktop and mobile styles, both homepage and individual pages*/

.navigation-list{
    list-style-type: none;
    display: flex;  
}

.navigation-link{
    text-decoration: none;
    font-family: 'Comfortaa', sans-serif;
}

.nav-toggle-mobile{
    display: none;
}

.navigation-link:hover{
    font-weight: bold;
    color: var(--blue-green);
}

.active-link{
    text-decoration: underline;
    text-underline-offset: 0.5rem;
}

/* desktop specific navbar styling*/
@media screen and (min-width: 601px){
    .floating-menu-top{
        display: none;
    }
    .navigation-list{
        justify-content: space-evenly;
        padding: 1rem;
        background-color: var(--dark-grey-pink)
        
    }
    .navigation-link{
        color: white;
    }
}

/* mobile navbar, expanded */
@media screen and (max-width: 600px){
    .floating-menu-top{
        display: flex;
        background-color: var(--dark-grey-pink);
        color: white;
        justify-content: space-between;
        align-items: center;
        position: sticky;
        top: 0;
        z-index: 9999;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .floating-menu-text{
        font-family: 'Comfortaa', sans-serif;
        text-transform: uppercase;
        color: var(--light-pink);
        text-decoration: none;
    }
    .navigation-list{
        position: fixed;
        inset: 0 40% 0 0;
        z-index: 1000;
        background-color: var(--dark-grey-pink);
        background-color: #97818ef7;
        flex-direction: column;
        padding-top: min(20vh, 5rem);
        padding-left: 2rem;
        padding-right: 2rem;
        transform: translateX(-100%);
        transition: transform 500ms ease-out;
    }

    .navigation-list[data-open-on-mobile="true"]{
        transform: translateX(0%);
    }
    
    .navigation-list-item{
        /*border-bottom: 1px solid var(--light-pink);*/
        padding: 0.5rem 0;
    }

    .navigation-list-item:last-child{
        border-bottom: none;
    }
    
    
    .navigation-link{
        color: white;
        font-size: 14px;
    }

    .nav-toggle-mobile{
        display: block;
        background-color: var(--dark-grey-pink);
        color: white;
        width: 3rem;
        aspect-ratio: 1;
        border: none;
        border-radius: 10%;
        background-repeat: no-repeat;
        background-position: center;
    }

    .nav-toggle-mobile[data-is-menu-icon="true"]{
        background-image: url("images/material-icon-menu.svg");
    }

    .nav-toggle-mobile[data-is-menu-icon="false"]{
        background-image: url("images/material-icon-x.svg");
    }
}

/*homepage hero section styles*/
.homepage-hero{
    min-height: calc(100vh - 3rem);
    
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: var(--darkest-shade);
    z-index: -10;
}

.homepage-hero-text{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 3rem 2rem;
    position: relative;
    background-color: var(--darkest-shade);
    border-radius: var(--homepage-border-radius);
}

@media screen and (max-width:600px){
    /*match size of text box to the card sections below on mobile */
    .homepage-hero-text{
        max-width: calc(100vw - 4rem);
        padding: 4rem 1.5rem;
    } 
}

/* For the gradient border */
.homepage-hero-border{
    margin: 2rem;
    padding: var(--homepage-hero-border-width);
    border-radius: var(--homepage-border-radius);

    background-image: var(--homepage-gradient);
    background-size: 400%;
    background-position: left;
    animation: animated-gradient-bg 10s infinite alternate-reverse;
}

.sparkle{
    /*margin: 4rem;*/
    animation: sparkle-animation 2s infinite alternate;
}
/*
.sparkle-delay{
    animation-direction: alternate-reverse;
}*/

.sparkle-top{
    position:absolute;
    top: calc(-18px - 2px);
}

.sparkle-bottom{
    position: absolute;
    bottom: calc(-12px - 2px);
}
@keyframes sparkle-animation {
    0% {
        opacity: 1;
        scale: 1;
    }

    100% {
        opacity: 0.6;
        scale: 0.5;
    }
}

@keyframes animated-gradient-bg {
    0% {
        background-position: left;
    }
    100% {
        background-position: right;
    }
}

.homepage-title{
    font-family: 'Comfortaa', sans-serif;
    font-weight: normal;
    text-transform: uppercase;
    font-size: 2.5rem;
    text-align: center;

    /*animating gradient*/
    background-image: var(--homepage-gradient);
    background-size: 400%;
    background-position: left;
    background-clip: text;
    animation: animated-gradient-bg 10s infinite alternate;
    color: transparent;
}

.homepage-hero-description{
    font-family: 'Comfortaa', sans-serif;
    text-align: center;
    font-size: 1.25rem;

    background-image: var(--homepage-gradient);
    background-size: 400%;
    background-position: left;
    background-clip: text;
    animation: animated-gradient-bg 10s infinite alternate;
    /*animation: animated-gradient-bg 10s infinite alternate-reverse;*/
    color: transparent;
}

/*homepage hero font increase for desktop */
@media screen and (min-width: 601px){
    .homepage-title{
        font-size: 4rem;
        padding: 0.5rem;
    }

    .homepage-hero-description{
        font-size:2rem;
        padding: 0.5rem;
    }
}

/*portfolio page content styles */
.main-content{
    padding: 0 2rem;
    max-inline-size: 960px;
    margin-inline: auto;
}

@media screen and (max-width: 600px){
    .main-content{
        padding: 0 1rem;
    }
}

.page-title{
    font-family: 'Comfortaa', sans-serif;
    text-transform: uppercase;
    text-align: center;
    color: var(--dark-grey-pink);
    margin: 3rem 0 2rem 0;
}

/*increase font size on desktop */
@media screen and (min-width: 601px){
    .page-title{
        font-size: 36px;
    }
}

/*individual page project styles */
.project-information{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 1.5rem;
}

.project-social-media-icon{
    height: 3rem;
    margin: 0.5rem;
}

@media screen and (max-width: 600px){
    /*center text when in single column on mobile */
    .project-text{
        text-align: center;
    }
}

.project-title{
    font-family: 'Comfortaa', sans-serif;
    font-weight: normal;
    color: var(--dark-grey-pink);
}

/*increase font size on desktop */
@media screen and (min-width: 601px){
    .project-title{
        font-size: 24px;
    }
}

.project-subtitle{
    font-family: 'Comfortaa', sans-serif;
    color: var(--dark-grey-pink);
    font-size: 14px;
}

.project-link{

    /*the following styles the alt-text if it shows up */
    font-family: 'Comfortaa', sans-serif;
    color: var(--dark-grey-pink);
} 

.image-gallery{
    display: grid;
    margin-bottom: 4rem;
    row-gap: 1rem;
    column-gap: 1rem;
    
}

.portfolio-art{
    border-radius: var(--homepage-border-radius);
}

/* For the fade in on scroll animations on the individual pages*/
.starts-hidden{
    opacity: 0;
    size: 0.8;
    transform: translateY(50%);
    transition: all 500ms ease-out;
}

.shown{
    opacity: 1;
    size: 1;
    transform: translateY(0);
}
/* desktop specific image grid layout*/
@media screen and (min-width: 601px){
    .image-gallery{
        grid-template-columns: 1fr 1fr;
    }
    .portfolio-art{
        object-fit: cover;
        width: 100%;
        height: 100%;
    }

    .whole-screen-width{
        grid-column: span 2;
        /*max-width: 100%;*/
    }
}

/*custom mobile layout for visual novel sprites */
@media screen and (max-width: 600px){
    .sprite-image-gallery{
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    }

    .sprite-image{
        object-fit: contain;
        grid-column: span 2;
    }

    .featured-sprite {
        grid-column: 2 / span 4;
        object-fit: contain;
    }
}


/*custom desktop grid layout for visual novel sprites */
@media screen and (min-width: 601px){
    .sprite-image-gallery{
        display: grid;
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        margin-bottom: 2rem;
    }

    .sprite-image{
        object-fit: cover;
    }

    .featured-sprite {
        grid-row: span 3;
        object-fit: contain;
        min-height: 750px;
    }
}

/*dont crop mink images on desktop */
@media screen and (min-width: 1000px){

    .sprite-image{
        object-fit: contain;
    }

}

/*homepage content styles */

.homepage-section{
    font-family: 'Comfortaa', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

    /*disable background-attachment fixed on mobile because of an iphone/ipad safari bug
    background-attachment: fixed;
    */

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

/*the dark grey pink cards */
.homepage-section-info-card, .about-section-info-card, .contact-section-card{
    padding: 2rem;
    background-color: #816a77f0;
    color: var(--light-pink);
    border-radius: var(--homepage-border-radius);
    margin: 2rem;
    
    /*box-shadow: 0 3px 10px rgba(0,0,0,0.4);*/
    /*border: 1px solid var(--light-pink);*/
}

/*standardize card size on mobile 
@media screen and (max-width: 601px){
    .homepage-section-info-card, .about-section-info-card{
        min-width: calc(100vw - 4rem);
        padding: 0.5rem;
    }
} */

/*margin and layout for cards other than the about section, which has a photo*/
.homepage-section-info-card{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    max-width: 800px;
}


.homepage-section-title, .about-heading, .contact-section-title{
    font-family: 'Comfortaa', sans-serif;
    text-transform: uppercase;
    margin: 1rem;
    font-size: 2rem;
    text-align: center;
}

@media screen and (max-width: 801px){
    .homepage-section-title, .about-heading{
        font-size: 1.5rem;
        margin-top: 1rem;
    }
}
.homepage-section-description, .about-description{
    font-family: 'Comfortaa', sans-serif;
    text-align: center;
}

/*text and layout for sections other than the about section */
.homepage-section-info-text{
    margin-bottom: 1.5rem;
}
.homepage-section-link{
    text-align: center;
    text-decoration:none;
    padding: 1rem 2rem;
    background-color: var(--light-pink);
    color: var(--dark-grey-pink);
    display: block;
    margin: 1rem;
    border-radius: 2rem;
}

.homepage-section-link:hover{
    text-decoration: underline;
    text-underline-offset: 0.25rem;
}
/*individual homepage section styles */

.about-section{
    background-image: url(images/homepage-images/about-bg.png);
}

.about-section-text{
    margin: 1rem;
}

.about-section-info-card{
    display: flex;
    flex-wrap: wrap-reverse;
    justify-content: space-evenly;
}

.about-image{
    border-radius: 100%;
    border: 1px solid var(--light-pink);
}

/*the following adds a margin between paragraphs*/
.about-description, .contact-section-description{
    margin: 1rem 0;
}

/*about section breakpoints to stop design from going past 100vh and breaking the animation*/
/*desktop */
@media screen and (min-width: 1001px){
    .about-section-text{
        max-width: 50%;
    }

    .about-image{
        margin: 1rem;
        align-self: center /*stops stretching */
    }
}

/*tablet: shrink photo and keep horizontal layout, but smaller font size */
@media screen and (max-width:1000px) and (min-width: 800px){
    
    .about-image{
        max-width: 200px;
        aspect-ratio: 1;
        align-self: center
    }
    
    .about-section-text{
        max-width: 50%;
    }

    .about-description{
        font-size: 1rem;
    }

    .about-heading{
        font-size: 1.5rem;
    }

}

/*phone: shrink photo but switch to vertical layout*/
@media screen and (max-width:800px){
    .about-image{
        max-width: 150px;
        aspect-ratio: 1;
        align-self: center;
        margin-top: 1rem;
    }

    .about-description{
        font-size: 14px;
    }

    .about-heading{
        font-size: 1.5rem;
        margin-top: 0;
    }
    
}
.illustrations-section{
    background-image: url(images/homepage-images/illustration.png);
}

.backgrounds-section{
    background-image: url(images/homepage-images/background.png);
}

.characters-section{
    background-image: url(images/homepage-images/characters.png);
}

.studies-section{
    background-image: url(images/homepage-images/studies.png);
    background-position: top;
}
/* For the fade in on scroll animations on the home page*/

.image-overlay{
    background-color: #fff6fba9;
    min-height: 100vh;
    min-width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


.starts-hidden-homepage{
    opacity: 0;
    size: 0.8;
    transition: all 1s ease-out;
}

.overlay-animation{
    transition: all 500ms ease-out;
}

.text-animation{
    /*property duration timing delay */
    transition: all 1s ease-out 500ms;
}
.shown-homepage{
    opacity: 1;
    size: 1;
}

.contact-section{
    font-family: 'Comfortaa', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--darkest-shade);
    color: var(--light-pink);
    text-align:center;
    box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.2);
}

/*this card is currently not a noticeably different color from the background but it's there in case*/
/*it also holds the animation*/
.contact-section-card{
    max-width: 800px;
    background-color: var(--darkest-shade); /*override transparency*/
}

.contact-section-title{
    text-transform: capitalize; /*override the all caps of the previous cards*/
}
/* footer styles*/
.website-footer{
    background-color: var(--light-pink);
    margin-top: auto;
    padding: 2rem;
}

.homepage-footer{
    box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.2);
}
.social-media-links{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}
.alt-social-media-icon{
    height:36px;
    width: 36px;
}