/* ------------------------------ Main Page ------------------------------ */

@font-face {
    font-family: 'StarbaseFont';
    src: url('./StarBaseFont.otf') format('opentype');
}

:root {
    --clr-primary: #1e1e1e;
    --clr-secondary: #333333;
    --clr-accent: #494949;
    --clr-light: #606060;

    --background-color: var(--clr-primary);
    --text-color: #e0e0e0;
    --header-background: var(--clr-secondary);
    --header-text-color: #fff;
    --project-background: #363636;
    --project-border: #3c3c3c;
    --shadow-color: rgba(0, 0, 0, 0.5);

    scrollbar-color: var(--clr-accent) var(--background-color);
    scrollbar-width: auto;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    background-size: cover;
    background-position: top center;
    background-repeat: repeat;
    background-attachment: scroll;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    transition: opacity 2s ease-in-out;
}

.bg-fader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.1s ease-in-out;
}

.chamfer-square {
    /* adjust these as needed */
    --c: 60px;
    width: 300px;
    height: 200px;
    background: teal;

    clip-path: polygon(var(--c) 0,
            100% 0,
            100% calc(100% - var(--c)),
            calc(100% - var(--c)) 100%,
            0 100%,
            0 var(--c));
    -webkit-clip-path: polygon(var(--c) 0,
            100% 0,
            100% calc(100% - var(--c)),
            calc(100% - var(--c)) 100%,
            0 100%,
            0 var(--c));
}

/* .main-container {
    width: 80%;
    margin: 0 auto;
    padding: 2rem 0;
} */

.main-container {
    width: 80%;
    margin: 0 auto;
}

.profile {
    text-align: center;
    margin: 2rem 0;
}

.profile img {
    border-radius: 50%;
    /* width: 150px; */
    /* height: 150px; */
    min-width: 140px;
    max-width: 150px;
    width: 15%;
    height: auto;

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

.projects-container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    /* justify-content: space-around; */
    /* justify-content: space-evenly; */
    justify-content: center;
}

.project-card {
    background-color: var(--project-background);
    /* border: 1px solid var(--project-border); */
    /* border-radius: 5px; */
    margin: 1rem;
    padding: 1rem;
    width: 450px;
    min-width: 450px;
    /* box-shadow: 3px 5px 7px rgba(0, 0, 0, 0.9); */
    transition: transform 0.1s, box-shadow 0.1s;

    display: flex;
    flex-direction: row;

    text-decoration: none;
    color: var(--text-color);
}

.project-card-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 50%;
    padding-right: 1rem;
    padding-left: 1rem;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 7px 9px 12px rgba(0, 0, 0, 0.5);
}

.project-card img {
    max-width: 50%;
    min-width: 50%;
    border-radius: 5px;
    
}


/* ------------------------------ Projetcs Pages ------------------------------ */

.back {
    transform: rotate(180deg);
    display: inline-block;

    text-decoration: none;
    font-size: 3.5em;
    color: var(--text-color);

    position: absolute;
    top: 1rem;
    left: 2.5rem;
}

.back:hover {
    transform: rotate(170deg) scale(1.15);
    transition: transform 0.2s ease-in-out;
}


.project-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

.project-page-container {
    margin-top: 2rem;

    width: 60%;

    @media (max-width: 1024px) {
        width: 60%;
    };

    @media (max-width: 768px) {
        width: 100%;
    };

}

.github-link {
    text-decoration: underline;
    color: var(--text-color);
}

.project-about-container {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    margin-bottom: 15px;
    gap: 15px;
    --about-section-flex: 3;
    --image-section-flex: 2;
}

@media (max-width: 768px) {
    .project-about-container {
        flex-direction: column;
    }
}

.project-about-section {
    margin-bottom: 0;
    padding-top: 5px;
    padding-bottom: 10px;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 15px;
    box-shadow: 0 0 10px 0 var(--shadow-color);
    background-color: #212121;
}

.project-about-section:first-child {
    flex: var(--about-section-flex, 3);
    padding-bottom: 15px;
    min-width: 0;
}

.project-about-section:last-child {
    min-width: 0;
}

.project-section {
    margin-bottom: 15px;

    padding-top: 5px;
    padding-bottom: 10px;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 15px;

    box-shadow: 0 0 10px 0 var(--shadow-color);

    background-color: #212121;
}

.project-image-section {
    flex: var(--image-section-flex, 2);
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
}

.project-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
    display: block;
}

.tech-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-chip {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--clr-accent);
    color: var(--text-color);
    border-radius: 20px;
    font-size: 0.9rem;
}

.codeblock-container + .codeblock-container {
    padding-top: 20px;
}

.codeblock { 
    border: 1px solid var(--project-border);

    max-height: 300px;

    overflow: auto;

    scrollbar-color: var(--clr-accent) var(--background-color);
    scrollbar-width: auto;

}

.codeblock-code {
    font-size: 0.8rem;
    font-family: 'Consolas', Courier, monospace;

    position: relative;
    left: -60px;
}