@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

/* ----------- global styles ----------- */

* {
    font-family: 'Raleway', sans-serif;
    user-select: none;
    -webkit-user-select: none;
    transition: all ease;
    box-sizing: border-box;
}

html,
body {
    background-color: #151515;
    color: white;
    padding: 0;
    margin: 0;
    height: 100%;
    overscroll-behavior: none;
}

body {
    opacity: 0;
    transition: opacity 0.25s;
}

body.fade-in {
    opacity: 1;
}

body.fade-out {
    opacity: 0 !important;
}

/* ----------- top bar ----------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #202020;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: solid 1px #303030;
}


.topbar h1 {
    color: #00ff80;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
    margin-left: 12.5px;
}

.nav {
    display: flex;
}

.nav button {
    font-size: 1rem;
    padding: 1rem;
    margin-right: 12.5px;
    cursor: pointer;
    background-color: #303030;
    color: white;
    border-radius: 7.5px;
    border: none;
    transition: all 0.25s;
}

.nav button:hover {
    background-color: #353535;
}

.nav button:active {
    background-color: #252525;
    transform: scale(0.95);
}

#home {
    color: #202020;
    background-color: #00ff80;
}

#socials {
    border: solid 1px #00ff80;
}

#about {
    border: solid 1px #00ff80;
}

#repo {
    border: solid 1px #00ff80;
}

.nav p {
    opacity: 0;
    position: fixed;
    bottom: 0;
}

/* ----------- main content ----------- */

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    line-height: 1.5rem;
}


.c-container {
    background-color: #202020;
    border-radius: 15px;
    width: 60%;
}

.content {
    margin: 15px;
}

.content p,
.content li {
    font-size: 18px;
}

a {
    font-size: 18px;
    text-decoration: none;
    color: #00ff80;
}

footer {
    opacity: 0.1;
    background-color: rgb(0, 0, 0, 0);
    position: fixed;
    bottom: 0;
    width: 100%;
    transition: opacity 0.25s, background-color 0.25s;
}

footer:hover {
    opacity: 1;
}

/* ----------- SEO ----------- */
.seo-links {
    position: fixed;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


/* ----------- responsiveness ----------- */
.hamburger {
    display: none;
    font-size: 24px;
    border-radius: 5px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.25s;
}

.hamburger:active {
    transform: scale(0.9);
}

@media (max-width: 768px) {
    .nav {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(15, 15, 15, 0.95);
        z-index: 999;
        padding: 0;
        border-radius: 0;
    }

    .nav.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .hamburger {
        display: block;
        font-size: 32px;
        margin-right: 20px;
        z-index: 1000;
    }

    /* Make nav buttons bigger and spaced out for easier tap */
    .nav button {
        font-size: 1.25rem;
        padding: 1rem 2rem;
        margin: 0.5rem 0;
        width: 80vw;
        max-width: 300px;
        border-radius: 12px;
    }

    .c-container {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
        background: none;
        padding: 1rem;
    }

    .content {
        padding-bottom: 15px;
    }

    main {
        flex: 1 1 auto;
        margin-top: 25%;
        width: 100vw;
        height: 100vh;
        padding: 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .topbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
    }

    footer {
        opacity: 0;
    }

    .nav p {
        opacity: 1;
    }
}