@charset "UTF-8";

:root {
    --main-color: #aaa;
    --sub-color: #666;
    --bg-color: #111;
    --hover-text-color: #fff;
    --hover-color: #ccc;
    --works-row: 4;
}

/* FONTS
-------------------------------------------------- */

html {
    font-size: 100%; 
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.25;
    color: var(--main-color);
    mix-blend-mode: difference;
}

h1 {
    font-size: 3rem;
    font-weight: lighter;
}

a {
    text-decoration: underline;
    color: var(--main-color);
}

p {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.text-ellipsis {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.bd {
    border: 1px solid #fff;
}

/* HEADER
-------------------------------------------------- */
header {
    color: var(--main-color);
    position: sticky;
    top: 0;
}

.page-header {
    padding: 1.5rem 0 0 0;
    display: flex;
    flex-direction: column;
}

.main-title {
    display: flex;
    justify-content: space-between;
    align-items: top;
}

.main-nav {
    font-weight: bold;
    margin: 1rem 0 1rem 0;
    display: flex;
    justify-content: flex-start;
    list-style-type: none;
    gap: 1rem;
}

.nav-btn {
    color: var(--sub-color);
}

.nav-btn.active {
    color: var(--main-color);
    text-decoration: underline;
}

@media (max-width: 600px) {
    .main-title {
        flex-direction: column;
    }
}

/* BODY
-------------------------------------------------- */
html, body {
    overflow: hidden;
}

body {
    background-color: var(--bg-color);
    margin: 0 auto;
    width: 90%;
    min-height: 100vh;
}

.flex-frame {
    display: flex;
    overflow: hidden;
}

.flex-box {
    flex: 0 0 0%;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.flex-box.active {
    flex: 1 0 100%;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

@media (max-width: 600px) {
    .flex-frame {
        border: none;
        gap: 0;
    }
    .flex-box {
        flex: 0 0 0%;
        min-height: 0;
    }
    .flex-box.active {
        height: 1 0 100%;
    }
}

/* BODY - FRAME
-------------------------------------------------- */

.project-main-frame {
    width: 100%;
}

.about-main-frame {
    width: 100%;
}

.blog-main-frame {
    width: 100%;
}

/* PROJECT - DATA
-------------------------------------------------- */
.project-header {
    display: flex;
    font-weight: bold;
    margin-bottom: 1rem;
    gap: 5%;
}

.project-list {
    width: 100%;
}

.project-link {
    display: flex;
    gap: 5%;
    font-size: 1rem;
    text-decoration: none;
    color: inherit;
}

.project-title {
    width: 20%;
}

.project-type {
    width: 20%;
}

.project-date {
    width: 20%;
}

.project-arrow {
    opacity: 0;
    color: var(--bg-color);
    width: 25%;
    text-align: right;
}

.project-post:hover {
    color: var(--bg-color);
    background-color: var(--main-color);
    .project-arrow {
        opacity: 100%;
    }
}


/* BLOG - DATA
-------------------------------------------------- */
.blog-list {
    display: flex;
    flex-direction: column;
}

.blog-post {
    width: 100%;
    margin-bottom: 3rem;   
}

.blog-title {
    font-weight: normal;
    font-size: 1.5rem;
}

.blog-date {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.blog-content {
    font-size: 1rem;
    white-space: pre-wrap;
}

/* FOOTER
-------------------------------------------------- */

footer {
    position: fixed;
    bottom: 0;
    width: 90%;
    margin: 1rem 0 1.5rem 0;
    display: flex;
    justify-content: space-between;
}

.social-box {
    display: flex;
    gap: 1rem;
}

/* OTHER
-------------------------------------------------- */

::-webkit-scrollbar {
    display: none;
}
