@import url("https://fonts.googleapis.com/css2?family=Inria+Sans:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

/* Animations */

@keyframes avatarAnimation {
    100% {
        transform: rotate(-360deg);
    }
}

@keyframes fade {
    0% {transform: translateY(4dvh); opacity: 0;};
    100% {transform: translateY(0); opacity: 1;}
}

.fade-in {
    opacity: 0;
    transform: translateY(4dvh);
    transition: transform 0.6 ease-in-out, opacity 0.6 ease-in-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Body */

* {
    box-sizing: border-box;
}

hr {
    border: none;
    border-top: 1px solid #666;
    width: 100%;
    margin: 1rem 0;
    opacity: 1;
}

body {
    margin: 0;              /* removes default browser margins */
    padding: 0;

    background: #1B1C25;
    overflow-x: hidden;
}

h1 {
    font-family: "Inria Sans", sans-serif;
}

p {
    font-family: "Inria Sans", sans-serif; 
}

li {
    font-family: "Inria Sans", sans-serif; 
}

/* Containers */

#projects {
    width: 100%;
    box-sizing: border-box;
}

.site {
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;

    min-height: 100vh;
    padding: 15vh 0 6vh;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;

    flex-grow: 1;
    overflow-y: auto;

    gap: 2rem;
    margin-bottom: 2rem;

    overflow-y: hidden;
}

.div-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.overlay-container {
    position: relative;
    display: inline-block;
}

.card {
    margin: auto;
    margin-top: 0rem;
    margin-bottom: 0rem;


    display: flex;
    flex-direction: column;
    align-items: center;

    border-radius: 8px;

    background-color: rgb(24, 23, 23);

    height: auto;
    width: min(90vw, 32rem);
    min-height: 80px;
}

.navigation {
    display: flex;
    flex-direction: row;

    justify-content: space-between;
    align-items: center;

    padding: 12px 24px;

    position: static;
    top: 0;
    left: 0;
    z-index: 400;

    margin: 0;

    width: 100%;
    min-height: 60px;
    height: auto;

    .nav-left {
        display: flex;
        align-items: center;
        margin-right: auto;
        position: absolute;
        top: 15dvh;
    }
    
    .nav-center {
        display: flex;
        justify-content: right;
        align-items: center;
        flex-grow: 1;
    }

    .nav-block {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        background-color: rgba(39, 35, 49, 0.322);
        border-color: rgb(82, 82, 82);

        width: 7dvw;
        height: 7.5dvh;
        min-width: 60px;
        min-height: 50px;

        border-radius: 10px;
        border-width: 4px 4px 8px 4px;
        border-style: solid;

        transition: transform 0.25s ease-in-out, border-color 0.25s ease-in-out;
    }

    .nav-block:not(:last-child), .nav-block-secondary:not(:last-child) {
        margin-right: 1.2rem;
    }

    .nav-block:hover, .nav-block-secondary:hover {
        transform: scale(1.02);
        cursor: pointer;
        border-color: rgb(113, 113, 245);
    }

    .nav-block:active, .nav-block-secondary:active {
        transform: scale(0.95);
    }
}

.section-container {
    display: flex;
    flex-direction: column;
    justify-content: start;

    width: 100dvw;
    max-width: 90ch;
    margin: auto;
    padding: 1rem 1.5rem;

    min-height: 100dvh;
}

.projects-page {
    display: flex;
    flex-direction: column;
    justify-content: start;

    width: 80dvw;
    width: min(90%, 90ch);
    margin: 4rem auto;

    .post-container {
        display: flex;
        flex-direction: column;

        width: 100%;
        height: auto;

        border-radius: 8px;
        padding: .8rem .8rem;

        transition: background-color 0.15s ease-in-out;
    }

    .post-container:hover {
        background-color: rgb(78, 76, 76) !important;
        cursor: pointer;
        z-index: 10;
    }
    
    .line {
        width: 50dvw;
    }

    .display-title {
        color: rgb(255, 255, 255);

        text-align: left;
        font-size: clamp(0.8rem, 1.5rem, 1.8rem);
    }
    
    .display-content {
        color: #bbbbbb;

        line-height: 1;
        font-weight: 400;

        margin-bottom: 1rem;
    }

    .upload-button {
        position: absolute;
        top: 25;
        left: 0;
        background-color: rgb(40, 43, 43);

        border: 1px solid rgb(61, 63, 63);
        border-radius: 50%;

        padding: 0.6rem 1rem;
    
        margin: 0;
    
        width: 3dvh;
        aspect-ratio: 1/1;

        margin-top: 2rem;
        transition: transform 0.25s ease-in-out, filter 0.25s ease-in-out;
    }
    
    .upload-button:hover {
        filter: brightness(85%);
        transform: scale(102%);
        cursor: pointer;
    }
    
    .upload-button:active {
        transform: scale(99%);
        cursor: pointer;
    }
}

.home-page {
    display: none;
    flex-direction: column;
    justify-content: center;

    min-height: calc(100dvh - 15vh - 6vh);
    margin-top: 2rem;

    .wrapper {
        display: flex;
        flex-direction: center;
        align-items: center;
        gap: 2rem;
    }

    .title {
        color: white;
        font-size: clamp(2rem, 3rem, 4rem);
        
        margin-top: 1rem;
    }

    .subtext {
        font-size: clamp(1rem, 1.7rem, 2.5rem);
    }

    .page-button {
        align-self: center;
        background-color: rgb(33, 202, 89);
    }

    .avatar {
        position: relative;

        width: 15dvw;
        aspect-ratio: 1/1;
        border-radius: 50%;
        z-index: 1;
    }

    .avatar-wrapper {
        position: relative;
    }

    .avatar-wrapper::before {
        content: "";
        position: absolute;
        top: -6%;
        left: -8%;
        background: conic-gradient(
            rgba(20, 255, 224, 0.6),
            rgb(37, 209, 129, 0.5),
            transparent
        );
        width: 115%;
        aspect-ratio: 1/1;
        border-radius: 50%;
        z-index: -1;

        animation: avatarAnimation 1.2s ease-in-out infinite;
    }
}

.upload-section {
    margin: auto;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    margin-top: 5rem;

    border-radius: 4px;
    min-width: 50dvw;
    min-height: calc(100dvh - 15vh - 6vh);

    background-color: rgb(34, 34, 34);

    padding: 0.6rem 1.2rem;


    .upload-title {
        font-weight: bolder;
        font-size: clamp(1rem, 1.6rem, 1.9rem);
    }

    .title-input {
        outline: none;

        display: flex;
        flex-direction: column;
    
        background-color: rgb(34, 34, 34);
        border: 1px solid rgb(77, 80, 82);
        border-radius: 18px;
        padding: 1rem;
        width: 50dvw;
        height: 9dvh;
        box-sizing: border-box;

        border-width: 1px;

        caret-color: white;

        color: rgb(255, 255, 255);
        font-family: "Roboto", sans-serif;
        font-weight: 500;
        font-size: clamp(0.8rem, 1rem, 1.2rem);

        transition: padding-top, 0.2s ease-in-out;
    }

    .description {        
        height: auto;

        min-height: 20dvh;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;

        font-size: clamp(0.65rem, 0.85rem, 1.05rem);
    }

    .innertext {
        position: absolute;
        top: 2.7dvh;
        left: 1dvw;

        font-size: clamp(0.75rem, 1rem, 1.5rem);
        font-weight: 500;
        color: rgb(173, 173, 173);

        opacity: 0.7;
        margin-bottom: 0.2rem;

        transition: top 0.2s ease-in-out, font-size 0.2s ease-in-out;
    }

    .tags {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: rgb(63, 63, 63);
        border-radius: 18px;

        width: 4dvw;
        height: 5dvh;
        aspect-ratio: 1/1;

        margin-top: 2rem;

        filter: brightness(70%);
    }

    .media-import {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        background-color: rgb(34, 34, 34);
        border: 1px solid rgb(77, 80, 82);
        border-radius: 5px;

        width: 8dvw;
        height: 6dvh;
        aspect-ratio: 1/1;

        margin-top: 1.4rem;

        transition: transform 0.35s ease-in-out;

        animation-name: fade;
        animation-timing-function: ease-in-out;
        animation-duration: 1.1s;

        
    .publish-input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        max-width: 8dvw;
        padding-top: 3dvh;
        padding-bottom: 3dvh;
    }
    }

    .media-import:hover, .publish:hover {
        background-color: rgb(61, 60, 60);
        cursor: pointer;
    }

    .media-import:active {
        transform: scale(0.95);
    }

    .title-input:hover {
        border: 1px solid rgb(103, 105, 107);
        background-color: rgb(61, 60, 60);
    }

    .description:empty::before {
        content: attr(placeholder);

        font-weight: 500;
        color: rgb(173, 173, 173);
        
        pointer-events: none;
    }
    
    .title-input:focus, .title-input:hover:focus {
        border: 2px solid rgb(205, 208, 211);
        padding-top: 1.5rem;
    }

    .title-input:required:valid {
        padding-top: 1.5rem;
    }

    .title-input:required:valid + .innertext,
    .title-input:focus + .innertext {

        top: 1dvh;
        font-size: clamp(0.7rem, 0.8rem, 1.3rem);
    }
}

.post-section {
    margin: 5rem auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-radius: 4px;
    min-height: auto;
    background-color: rgba(36, 33, 33, 0.5);
    padding: 1.2rem;

    min-width: 40dvw;
    max-width: 60dvw;

    .post-title {
        font-size: clamp(1.4rem, 2rem, 3.5rem);
        margin-top: 0;
    }

    .post-content {
        color: #bbbbbb;
        font-weight: 400;

        margin-bottom: 1rem;
    }
}

.media-container {
    position: relative;
    width: 100%;

    background-color: #000;
    border-radius: 10px;

    .media-wrapper {
        border-radius: 10px;

        display: flex;
        overflow-x: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
    }

    .media-item {
        display: flex;
        position: relative;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        z-index: 2;
    }

    .mediabox {
        align-items: center;
        justify-content: center;

        display: flex;
        position: relative;
        object-fit: contain;

        scroll-snap-align: start;
        flex: 0 0 100%;
    }

    .blurredbg {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;

        background: var(--bg-image);
        background-size: cover;
        background-position: center;

        filter: blur(20px);
        z-index: 0;
    }

    .arrow-button {
        position: absolute;
        top: 50%;
        
        background-color: #141414;
        opacity: 0.6;
        border-radius: 50%;

        display: flex;
        justify-content: center;
        align-items: center;

        width: 4dvw;
        aspect-ratio: 1/1;
        z-index: 5;

        cursor: pointer;
        transition: transform 0.2s ease-in-out;

        color: white;
        font-family: "Roboto", sans-serif;
        font-weight: 550;
        font-size: clamp(1rem, 1.6rem, 1.8rem);

        box-shadow: 5px 5px 4px 0px black;
    }

    .arrow-button:hover {
        transform: scale(1.05);
        filter: brightness(60%);
    }

    .arrow-button:active {
        transform: scale(0.9);
    }
    
    .left {
        left: 0;
        margin-left: 1rem;
    }

    .right {
        right: 0;
        margin-right: 1rem;
    }

    .media-container--sync-height {
        height: 100%;
    }
}

/* Objects */

.text-input {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    width: auto;

    align-items: center;
    justify-content: center;

    .input-box {
        padding: .6rem;

        background-color: rgb(78, 89, 99);
        opacity: .5;

        width: 18rem;
        height: 2.4rem;

        margin-bottom: .6rem;

        border-radius: 10px;
        border-width: 1px;
        border-style: solid;
        border-color: rgb(129, 159, 179);

        color: rgb(255, 255, 255);
        font-family: "Roboto", sans-serif;
        font-weight: 600;
        font-size: clamp(0.725rem, 1.2dvw, 1.5rem);
    }

    .input-box:focus {
        border-color: rgb(255, 255, 255);
        outline: none;

        caret-color: rgb(255, 255, 255);
    }

    .input-box::placeholder {
        color: rgb(255, 255, 255);
        font-family: "Roboto", sans-serif;
        font-weight: 500;
        font-size: clamp(0.725rem, 1.2dvw, 1.5rem);

        user-select: none;
        -moz-user-select: none;
    }
}

.loading-bar {
    display: block;

    position: absolute;
    top: 0;
    left: 0;

    background-color: red;

    width: 100dvw;
    height: 1dvh;
}

.button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background-color: rgb(106, 123, 124);

    border-radius: 8px;

    width: fit-content;
    padding: 0.6rem 1rem;

    height: 8dvh;

    margin-top: 1rem;
    margin-bottom: 1rem;

    animation: fade 1s ease-in-out;

    transition-property: filter;
    transition-duration: 0.1s;
    transition-timing-function: ease;
}

.button:hover {
    filter: brightness(85%);
    cursor: pointer;
}

.button:active {
    filter: brightness(60%);
    transform: scale(0.985);
}

.header {
    color: rgb(0, 0, 0);
    font-weight: bold;
    font-size: clamp(1.8rem, 3rem, 4.5rem);
    letter-spacing: 1px;
}

.subheader {
    color: rgb(0, 0, 0);
    font-weight: 550;
    font-size: clamp(0.9rem, 1.4dvw, 1.6rem);
}

.paragraph {
    color: rgb(0, 0, 0);
    font-weight: 550;
    font-size: clamp(.9rem, 1.1dvw, 1.2rem);
    line-height: 2;

    margin-bottom: 0.3rem;
    margin-top: 0.3rem;
}

.detail-text {
    color: rgb(83, 76, 76);
    font-family: "Roboto", sans-serif;
    font-weight: 550;
    font-size: clamp(.6rem, .75rem, 1rem);
    line-height: 1;
    margin-bottom: 1.2rem;
    opacity: 0.5;
}

/* Properties */

.button.wide {
    padding-left: 6rem;
    padding-right: 6rem;
}

.button.tall {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.button.border {
    border-width: 1px;
    border-style: solid;
    border-color: rgb(129, 159, 179);
}

.transparent {
    background-color: rgba(0, 0, 0, 0);
}

.centered {
    text-align: center;
}

.white {
    color: rgb(255, 255, 255);
}

.red {
    color: rgb(238, 8, 8);
}

.dark {
    color: rgb(32, 32, 32);
}

.green {
    color: rgb(65, 204, 95);
}

.whitebg {
    background-color: rgb(245, 245, 245);
}

.darkbg {
    background-color: rgb(34, 34, 34);
}

.outline {
    border: 1px solid rgb(77, 80, 82);
}

.blue {
    color: rgb(141, 141, 243);
}

.noselect {
    user-select: none;
    -moz-user-select: none;
}

.bold {
    font-weight: 900;
}

.gray {
    color: #575757;
}

.beige {
    color: #c5c5c5;}