:root {
    --nav: rgba(20, 20, 20, 0.2);
    --background: linear-gradient(to bottom, hsl(300, 100%, 20%), hsl(0, 0%, 0%));
    --section: linear-gradient(to bottom,hsla(0, 0%, 50%,0.75),hsla(0, 0%, 75%,0.5));
}

body {
    font-family:Verdana, Geneva, Tahoma, sans-serif;
    box-sizing: border-box;
    background: var(--background);
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: var(--nav);
    backdrop-filter: blur(10px);
    padding: 0.4rem;
}

nav a {
    color: white;
    text-decoration:none;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 5px;
}

nav a:hover {
    background: inherit;
}

#avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

main {
    max-width: 1000px;
    min-width: 350px;
    padding: 2rem;
    margin-top: 3rem;
    margin-left: auto;
    margin-right: auto;
}

section {
    margin-bottom: 2rem;
    background: var(--section);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
}
#about h2{
    font-size: 2rem;
    font-family:monospace;

}
#bio{
    font-size: 1.2rem;
    font-family:cursive;
    font-style: italic;
    text-align: start;
}
ul {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    
}
li {
    list-style: none;
    margin: 1rem 1rem;
}
.skill {
    width: 150px;
    height: 150px;
    border-radius: 10%;
}
.project {
    display: flex;
    margin-bottom: 1rem;
}
.project_image {
    width : 200px;
    height: 120px;
    display: flex;
    border-radius: 20px;
}
.project a:hover {
    opacity: 0.5;
}
.project_description {
    font-style: italic;
    font-family: cursive;
    margin-left: 1rem;
    text-align: start;
}
form {
    max-width: 600px;
    margin: auto;
}
label {
    display: block;
    margin-bottom: 0.5rem;
}

input {
    width: 100%;
    height: 1.5rem;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
}
textarea {
    width: 100%;
    height: 5rem;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
}

button {
    background-color: white;
    color: black;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    opacity: 0.5;
}

footer {
    background-color: inherit;
    color: white;
    display: flex;
    margin: auto;
    padding: 2rem;
}
#left {
    margin: auto;
    text-align: center;
}
#right {
    margin: auto;
    text-align: center;
    width: 60%;
}
#contact {
    display: flex;
    list-style-type: none;
    padding: 0;
}

#contact li {
    margin-right: 10px;
}
.social {
    width: 50px;
    height: 50px;
    border-radius: 10px;
}
.social:hover {
    opacity: 0.5;
}
@media (max-width: 600px) {
    form {
        max-width: 100%;
    }
    #right {
        width: 100%;
    }
    #contact {
        flex-direction: column;
        align-items: center;
    }

    #contact li {
        margin-bottom: 10px;
    }

    .social {
        width: 30px;
        height: 30px;
    }
}
#about h2::after {
    content: '|';
    animation: cursorBlink 0.5s infinite alternate-reverse;
}

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

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

#about h2::before {
    content: 'Azyz - Web Developer';
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    animation: typing 5s steps(100) 1s forwards infinite;
}
