@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --lightmode: 1;
    --darkmode: 0;
    --text-color: rgb(245, 245, 245);
    --text-color-hover: rgb(50, 50, 50);
    --background-color: rgb(10, 10, 10);
    --secondary-background-color: rgb(20, 20, 20);
    --socials-background-color: rgb(30, 30, 30);

    --artwork-hover: rgba(0, 0, 0, 0.4);
}

.lightmode {
    --lightmode: 0;
    --darkmode: 1;
    --text-color: rgb(10, 10, 10);
    --text-color-hover: rgb(205, 205, 205);
    --background-color: rgb(245, 245, 245);
    --secondary-background-color: rgb(235, 235, 235);
    --socials-background-color: rgb(225, 225, 225);

    --artwork-hover: rgba(255, 255, 255, 0.4);
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    background: var(--background-color);
    color: var(--text-color);
    font-family: 'Inter', 'Roboto', 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.5;

    max-width: 960px;
    margin: auto;

    text-align: center;
}

header img {
    padding: 10px;
    width: 60%;
    border-radius: 0;
}

img {
    width: 100%;
    border-radius: 16px;
}

svg {
    width: 100%;
    border-radius: 16px;
}

nav {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    list-style-type: none;
    align-items: center;
    margin-bottom: 10px;
}

nav ul:first-child {
    background-color: var(--secondary-background-color);
    border-radius: 16px;
    padding: 10px;
    margin-right: 10px;

    display: flex;
    flex-direction: row;
    justify-content: space-around;
    list-style-type: none;
    align-items: center;
    flex: 1;
}

nav ul:last-child {
    background-color: var(--secondary-background-color);
    border-radius: 16px;

    justify-content: center;
    list-style-type: none;
    align-items: center;
}

/*Theme Switch*/

#theme-switch {
    background-color: var(--secondary-background-color);
    width: auto;
    height: auto;
    padding: 10px;
    border-radius: 16px;
    border-style: none;
    display: flex;
    justify-content: center;
    align-items: center;

    /*position: absolute;
    top: 0;
    right: 0;
    z-index: 9999;*/
    margin: auto;
    cursor: pointer;

    pointer-events: auto;
}

#theme-switch:hover {
    background-color: var(--background-color);
}

#theme-switch svg {
    fill: var(--text-color);
}

#theme-switch svg:last-child {
    display: none;
}

.lightmode #theme-switch svg:first-child {
    display: none;
}

.lightmode #theme-switch svg:last-child {
    display: block;
}

/*Logo*/

.logo {
    display: grid;
    place-items: center;
}

.white {
    opacity: var(--lightmode);
    grid-area: 1 / 1;
}

.black {
    opacity: var(--darkmode);
    grid-area: 1 / 1;
}

/*Socials*/

.social {
    justify-content: center;
    list-style-type: none;
    gap: 10px;
}

.social svg {
    max-width: 50px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    padding: 5px;
    border-radius: 0;
    fill: var(--text-color);
}

.sociallink {
    display: flex;
    flex-direction: column;
    justify-content: center;
    list-style-type: none;
    font-weight: bold;
    gap: 10px;
}

.sociallink svg {
    width: 50px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    padding: 5px;
    justify-content: left;
    border-radius: 0;
    fill: var(--text-color);
}

.sociallink p {
    justify-content: center;
    margin: auto;
}

.sociallink a {
    background-color: var(--socials-background-color);
    transition: background-color;
    transition-duration: .15s;
    margin: auto;
    width: 50%;
    border-radius: 16px;
    padding: 10px;
    display: flex;
}

.space {
    width: 50px;
}

.sociallink a:hover {
    background-color: var(--secondary-background-color);
}

.email {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: bold;
}

.artworkdetail img {
    border-radius: 0;    
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: color;
    transition-duration: .15s;
}

a:hover {
    color: var(--text-color-hover);
}

footer {
    background-color: var(--secondary-background-color);
    border-radius: 16px;
    margin-top: 10px;
    padding: 10px;
}

.description {
    background-color: var(--secondary-background-color);
    border-radius: 16px;
    margin-top: 10px;
    padding: 10px;
}

.description p:nth-of-type(2) {
    text-align: start;
}

.infoextra {
    background-color: var(--secondary-background-color);
    border-radius: 16px;
    padding: 10px;
}

.error {
    background-color: var(--secondary-background-color);
    border-radius: 16px;
    padding: 10px;

    font-size: 24px;
    font-weight: bold;
}

.error h1 {
    color: rgb(255, 0, 0);
    font-size: 64px;
}

.illustrations {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
}

/*.column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}*/

/*Artwork*/

.artwork {
    position: relative;
    width: 100%;
}

.artwork img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.artwork a {
    border-radius: 16px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;

    opacity: 0;
    transition: opacity;
    transition-duration: .15s;
}

.artwork a:hover {
    opacity: 100%;
    
    background-color: var(--artwork-hover);
    /*text-shadow: 0 0 10px black, 0 0 20px black;*/
    color: var(--text-color);
}

.info {
    padding: 10px;
    text-align: start;
}

/*Projects*/

.project {
    position: relative;
    width: 100%;
}

.project img {
    width: 100%;
    height: 300px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.project a {
    border-radius: 16px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    transition: color;
    transition-duration: .15s;
    /*background-color: rgba(0, 0, 0, 0.4);*/
}

.project a:hover {
    color: rgb(180, 0, 0);
}

.project h1 {
    font-size: 48px;
}

/*Simulation 4*/

.simulation_4 {
    height: 100000000000px;
}

.simulation_4_background {
    animation-name: simulation_4;
    animation-duration: 100s;
    animation-fill-mode: forwards;
}

.simulation_4_background nav {
    animation-name: simulation_4_nav;
    animation-duration: 100s;
    animation-fill-mode: forwards;
}

@keyframes simulation_4 {
    0% {
        background: var(--background-color); 
    }
    100% {
        background: rgb(255, 0, 0);
    }
}

@keyframes simulation_4_nav {
    0% {
        background: var(--secondary-background-color);
    }
    100% {
        background: rgb(235, 20, 20);
    }
}

@media(max-width:768px) {
    body {
        max-width: 95%;
    }
    header img {
        width: 100%;
    }
    .illustrations {
        display: grid;
        gap: 10px;
        grid-template-columns: 1fr;
    }
    .artwork img {
        width: 100%;
        height: auto;
        aspect-ratio: auto;
        object-fit: cover;
        display: block;
    }
    .sociallink a {
        width: 100%;
    }
}