:root {
    --background-color: #0e0e0e;
    --highlight-text: #23CE6B;
    --font-white: rgb(240, 240, 240);
    --navbar-background: #0e0e0ef0;
}

* {
    margin: 0;
    padding: 0;
    color: var(--font-white);
    font-family: "Roboto Mono", monospace;
    scroll-behavior: smooth;
    box-sizing: border-box;
}

html {
    background-color: var(--background-color);
}

body{
    overflow-x: hidden;
}

h1 {
    font-family: "Rubik", sans-serif;
    font-weight: 600;
    font-size: 6em;
    color: #23CE6B;
    display: flex;
    align-items: center;
}

h2 {
    font-size: 2em;
    font-weight: 300;
}

h3 {
    font-size: 3em;
    font-weight: 600;
    color: #23CE6B;
    font-family: "Rubik", sans-serif;
}

h4 {
    font-size: 1.5em;
    font-weight: 400;
}

p {
    font-size: 1.2em;
}

label{
    margin-bottom: .5rem;
}

input{
    background-color: #161616;
    border-style: none;
    height: 3rem;
    margin-bottom: 2rem;
    padding: 1rem;
}

textarea{
    background-color: #161616;
    border-style: none;
    height: 6rem;
    margin-bottom: 2rem;
    resize: vertical;
    padding: 1rem;
}

i:hover {
    color: var(--highlight-text);
    cursor: pointer;
}

.typing-underline {
    border-right: 2px solid var(--highlight-text);
    animation: blink 0.7s infinite step-end;
}

@keyframes blink {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--highlight-text);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

#about {
    padding-top: 20vh;
}

#contact {
    margin-top: 20vh;
    height: 100vh;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    #navbar {
        gap: 2em;
    }

    #hero {
        height: 80vh;
        flex-direction: column-reverse;
    }

    #socials {
        flex-direction: row;
    }

    h1 {
        font-size: 3em;
    }

    h2 {
        font-size: 1em;
    }

    p {
        font-size: 0.8em;
    }

    #projects-container {
        grid-template-columns: 1fr;
        width: 90%;
    }

    #projects-container div {
        aspect-ratio: 16 / 9;
        height: auto;
    }

    #projects-container div h2 {
        font-size: 1.2em;
        top: 10%;
    }

    #projects-container div p {
        font-size: 0.8em;
        top: 40%;
        max-width: 80%;
    }

    #projects {
        margin-top: 10vh;
    }

    h3 {
        font-size: 1.5em;
        font-weight: 600;
        color: #23CE6B;
    }

    h4 {
        font-size: 0.75em;
        font-weight: 400;
    }

    #dictionary-def {
        width: 70%;
    }

    #contact-form{
        width: 60vw;
    }
}