@import url('https://fonts.googleapis.com/css2?family=Funnel+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {
    --background: #ede8d0;
    --primary: #29937c;
    --hover: #176554;
    --title-font-size: 12rem;
    --large-font-size: 1.4rem;
    --section-header-font-size: 3rem;
    --small-font-size: 1rem;
}

* {
    /* font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; */
    scroll-margin-top: 10vh;
    -ms-overflow-style: none;
    scrollbar-width: none;
    color: var(--primary);
}

html {
    font-family: "Funnel Sans", sans-serif;
    background-color: var(--background);
    scroll-behavior: smooth;
}

/* Hide scrollbar for Chrome, Safari and Opera */
*::-webkit-scrollbar {
    display: none;
}

button {
    cursor: pointer;
}

header {
    top: 0;
    position: fixed;
    width: 100%;
    height: calc(2.5rem + var(--large-font-size));
    background-color: var(--background);
    /* background-image: linear-gradient(var(--background), 50%, #00000000); */
    pointer-events: none;
}

footer {
    bottom: 0;
    position: fixed;
    width: 100%;
    height: 10vh;
    background-image: linear-gradient(#00000000, 50%, var(--background));
    pointer-events: none;
}

.sidebar {
    display: flex;
    position: fixed;
    left: 50%;
    transform: translate(-50%, 0%);
    -ms-transform: translate(-50%, 0%);
    gap: .5rem;
    top: 1rem;
}

a {
    text-decoration: none;
}

a:hover {
    color: var(--hover);
}

nav > a {
    display: block;
    font-size: var(--large-font-size);
    font-weight: bold;
    margin-left: .5rem;
    color: var(--primary);
    transition: color .2s;
}

nav > a:hover {
    color: var(--hover);
}

#starter {
    margin: 0;
    top: 0;
    display: flex;
    height: 100vh;
    align-items: center;
}

.name-container {
    color: var(--primary);
    padding: 10rem;
    background-attachment: fixed;
    display: inline-block;
}

.name-container > h1 {
    display: block;
    font-size: var(--title-font-size);
    line-height: 12rem;
}

section {
    margin-top: 3rem;
}

#home {
    margin-left: 30%;
    margin-right: 30%;
}

.intro {
    color: var(--primary);
    font-size: var(--large-font-size);
    /* text-align: center; */
}

#project-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-left: 15%;
    margin-right: 15%;
}

#section-header {
    text-align: center;
    font-size: var(--section-header-font-size);
    color: var(--primary);
}

#project-card {
    width: 25rem;
    height: 12rem;
    margin: .5rem;
    border: .4rem solid var(--primary);
    box-sizing: border-box;
    border-radius: 1rem;
    text-align: center;
    color: var(--primary);
    cursor: pointer;
    box-shadow: inset 0 0 0 0 var(--primary);
    transition: ease-out .25s;
    outline: none;
    align-content: center;
}

#project-card:hover {
    box-shadow: inset 25rem 0 0 0 var(--primary);
}

#project-card > h2 {
    margin: 0;
    margin-bottom: .5rem !important;
}

#project-card:hover > h2 {
    color: var(--background);
}

#project-icons {
    justify-content: center;
    display: flex;
    column-gap: .5rem;
}

#project-icon {
    height: 2rem;
    /* width: 2rem; */
}

@keyframes fade_in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fade_out {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes slide_up {
    0% {
      transform: translateY(100%);
    }
    100% {
      transform: translateY(0%);
    }
}

#project-info-dialog {
    border-radius: 1rem;
    border: .4rem solid var(--primary);
    background-color: var(--background);
    color: var(--primary);
    text-align: center;
    padding: 0;
    box-shadow: 0 0 0 100vw rgba(0,0,0, 0.75);
}

#dialog-content {
    padding: 1rem;
    width: calc(100% - 2rem);
    max-height: 80vh;
    /* padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 1rem; */
}

#project-info-dialog[open] {
    animation: 
        slide_up .25s forwards,
        fade_in .25s forwards;
}

#project-info-dialog[closing] {
    display: block;
    inset: 0;
    animation: fade_out .25s forwards;
    pointer-events: none;
}

#project-info-dialog::backdrop {
    background-color: rgba(0,0,0, 0.75);
    opacity: 0;
    animation: fade_out .25s forwards;
}

#project-info-dialog[closing]::backdrop {
    animation: fade_out .25s forwards;
}

#dialog-details > h1 {
    text-align: center;
    margin-bottom: 0;
}

#dialog-details > p {
    width: 35rem;
    text-align: left !important;
    margin-left: 2rem;
    margin-right: 2rem;
    margin-top: 0;
}

#dialog-details > p > a {
    outline: 0;
    color: var(--primary);
    user-select: none;
}

#dialog-details > p > a:hover {
    color: var(--hover);
}

#dialog-details > img {
    width: 30rem;
    /* max-height: 30rem; */
    /* box-shadow: 0 0 1rem var(--primary); */
    border-radius: 1rem;
}

.python-img {
    width: 15rem !important;
    box-shadow: none !important;
}

.running-log-app-img {
    width: 15rem !important;
}

#dialog-details > a {
    outline: 0;
    color: var(--primary);
    user-select: none;
}

.close-dialog-btn {
    background-color: #00000000;
    border: 0; /* 2px solid var(--primary); */
    border-radius: 1rem;
    color: var(--primary);
    /* font-size: var(--large-font-size); */
    padding-left: 1rem;
    padding-right: 1rem;
    transition: all .25s ease-out;
}

.close-dialog-btn:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--background);
}

.footer-space {
    height: 10vh;
}

@media (max-width: 480px) {

    :root {
        --title-font-size: 5rem;
    }

    html {
        font-size: 10px;
    }

    .name-container {
        padding: 0;
        width: 100%;
    }

    .name-container > h1 {
        margin: 0 auto;
        line-height: 6rem;
        text-align: center;
    }

    #dialog-details > p {
        width: calc(100% - 4rem);
    }

    #blog-list-item {
        width: calc(25rem - 2rem);
        display: block;
    }

    #blog-list-image {
        width: 100%;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    html {
        font-size: 12px;
    }

    .sidebar {
        display: flex;
        left: 50%;
        transform: translate(-50%, 0%);
        -ms-transform: translate(-50%, 0%);
        gap: .5rem;
        top: .5rem;
    }

    .home-link {
        margin-top: .5rem !important;
    }
}