* {
    box-sizing: border-box; 
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000; 
    background-color: #fcde1e; 
    padding: 10px;
    text-align: center; 
    font-size: 9px;
    border: 4px solid black;
    margin-left: 20px;
    margin-right: 20px;
}

.smallscreen-nav {
    visibility: hidden;
}

.smallscreen-nav img {
    width: 21px;
    height: 21px;
}

.smallscreen-nav .nes-btn {
    margin: 3px;
    padding: 1px;
}

nav a {
    margin: 10px; 
}

html {
    scroll-padding-top: 80px; 
}

body {
    padding-top: 60px;
}

strong {
    color: rgb(251, 0, 84);
}

.nes-container {
    margin: 20px;
}

.avatar-container {
    display: flex; 
    align-items: flex-start; 
    justify-content: flex-start;
    gap:20px;
}

.download-button-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    flex-direction: row;
    flex-wrap:wrap;
}

.avatar {
    width: 20%; 
    height: auto;
    
}
.nes-balloon {
    width: 80%; 
    margin: 10px; 
    position: relative; 
}

@media (max-width: 768px) {

    .bigscreen-nav {
        visibility: hidden;
    }

    .smallscreen-nav {
        visibility: visible;
    }

    .avatar {
        width: 60%;  
    }

    .nes-balloon {
        flex-grow: 1; 
        margin: 10px; 
        position: relative; 
    }

    .avatar-container {
        flex-direction: column-reverse; 
        flex-wrap: wrap;
        justify-content: center;
        align-content: center;
        align-items: center;
    }

    body {
        font-size: 12px;
    }

    .progress-label {
        width: 50%;
        font-size: 10px;
        margin-right:10px;
    }
    
    .progress-bar {
        width: 40%;
        margin-right: -30px;
    }

    .star-icon {
        font-size: 1rem;
    }

    .language-container {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .language {
        width: auto;
        margin-right: 10px;
    }
    
    .stars {
        width: auto;
        align-items: center;
    }

    .project-container {
        columns: 1;
    }
}  

.progress-bar-label {
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-label {
    width: 15%;
    margin-right: 30px;
    margin-left:-30px;
}

.progress-bar {
    width: 80%;
    margin-right: -40px;
}

.mid-section {
    margin: 10px;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

@media (min-width: 768px) {
    .language-container {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }
    
    .language {
        margin-right: 20px;
    }
}

.skill-box {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.project {
    text-align: center; 
    margin: 10px; 
    border: 4px solid black; 
    padding: 10px;
    width: 100%;
}

.project-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

@media only screen and (min-width: 768px) and (max-width: 1023px) {
    .project {
        width: calc(50% - 20px);
    }
    
    .avatar-container { 
        align-items: flex-start; 
        justify-content: flex-start;
        gap:20px;
    }
    
    .avatar {
        width: 40%; 
        height: auto;
    }

    .nes-balloon {
        width: 50%; 
        margin: 10px; 
        position: relative; 
    }
}   

@media only screen and (min-width: 1024px) {
    .project {
        width: calc(33.33% - 20px);
    } 
}

.contact-me {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
    flex-direction: row; 
    gap: 20px; 
}

.mid-section img {
    width: 40px;
    height: 40px;
}

.mid-section .heart {
    animation: heart-move 1.5s ease-in-out infinite;
}

.mid-section .code {
    animation: code-move 1.5s ease-in-out infinite;
}

@keyframes heart-move {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes code-move {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(3px); 
    }
}