* {
    color: var(--text);
}

nav {
    width: 100%;
    height: 70px;
    background: var(--main);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    color: var(--text);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    overflow-y: hidden;
    animation: nav-animation 0.5s ease;
}

@keyframes nav-animation {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

nav h2 {
    font-size: 2rem;
    margin: 20px;
    margin-left: 0;
    padding: 20px;
    background-color: var(--dark);
    height: 100%;
    min-width: 252px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-overflow: clip;
    transition: all 0.2s ease;
}

@media screen and (max-width: 329px) {
    nav h2 {
        display: none;
    }
    nav {
        justify-content: flex-end;
    }
}

nav h2::after {
    content: '';
    position: absolute;
    top: -100%;
    right: -20%;
    width: 50%;
    height: 200%;
    background-color: var(--dark);
    transform: rotate(30deg);
    z-index: -1;
}


#links {
    margin: 10px;
    font-size: 1.5rem;
    background: none;
}

body {
    padding-top: 70px;
    background: var(--background);
}

.sidebar {
    position: fixed;
    top: 70px;
    right: 0;
    min-width: fit-content;
    height: calc(100vh - 70px);
    background: var(--main);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.sidebar li {
    margin: 10px;
    display: flex;
    list-style: none;
}

.sidebar li a {
    font-size: 2rem;
    width: 100%;
    text-align: center;
}

.sidebar.show {
    transform: translateX(1%);
}

.textbox {
    margin: 35px 50px;
}

.textbox h1 {
    margin: 15px 0;
}

.projects {
    margin: 10px;
}

.project {
    margin: 10px;
    padding: 10px;
    background: var(--dark);
    border-radius: 5px;
    box-shadow: 2px 2px 2px var(--secondary);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 4px var(--secondary);
    cursor: default;
}

textarea {
    background: var(--dark);
    color: var(--text);
    border-radius: 5px;
    border: none;
    outline: none;
    resize: none;
    padding: 10px;
    font-size: 1.2rem;
}