* {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Comic Relief", system-ui;
    background-color: #FFF9FB;
    /* #fedee9 */
}

nav {
    width: 100%;
    height: 8vh;
    text-align: center;
    position: relative;
}

nav::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100%;
    height: 3%;
    transform: translateX(-50%);
    background: linear-gradient(to right,
            transparent 0%,
            #000000 60%,
            transparent 100%);
}

.navBar {
    display: flex;
    justify-content: center;
    align-content: center;
}

.navBar a {
    color: #000000;
    text-decoration: none;
    font-family: "Inria Sans", sans-serif;
    font-size: 1.6rem;
    margin: 0.5% 2% 0% 2%;
}


.nameHeader {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 90%;
    height: 50vh;
    font-size: 1rem;
    margin-top: 6%;
}

.nameSpace {
    width: 40%;
}

.nameHeader :nth-child(1) {
    margin-bottom: 5%;
}

.nameHeader :nth-child(2) {
    color: #FF0051;
    font-size: 2.4rem;
}

.nameHeader :nth-child(3) {
    color: #FF0051;
    font-size: 2.4rem;
}

.imageMe img {
    border-radius: 40px;
    width: 80%;
    margin-left: 25%;
}

.redirectButtons {
    display: flex;
    width: 35%;
    height: 7vh;
    margin-left: 6%;
    margin-bottom: 7%;
}

.redirect {
    display: flex;
    align-items: center;
    background-color: #FF5B8F;
    margin-right: 7%;
    height: 35%;
    font-size: 1rem;
    padding: 3%;
    border-radius: 15px;

}

.redirect a {
    text-decoration: none;
    color: white;
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 6vh;
    text-align: center;
    position: relative;
    margin-top: 3%;
}

footer::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 100%;
    height: 3%;
    transform: translateX(-50%);
    background: linear-gradient(to right,
            transparent 0%,
            #000000 60%,
            transparent 100%);
}

.socials a {
    color: #000000;
    font-size: 1.5rem;
}

#background-icons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

#background-icons img {
    position: absolute;
    width: 40px;
    opacity: 0.5;
    animation: float ease-in-out infinite;
}

/* Floating effect */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(15deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* over mij pagina */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    width: 90%;
    margin: auto;
    justify-content: flex-start; 
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 18%;     
    box-sizing: border-box;
    border-radius: 10px;
    text-align: center;
    padding: 1%;        
    margin: 1%;          
    background: #FF5B8F;
    color: white;
    
}


.skill-item:nth-child(odd) {
  background: #FF5B8F;
}
.skill-item:nth-child(even) {
  background: #FF7BA5;
}

.skill-item img {
    width: 35%;
    height: 70%;
    margin-bottom: 8px;
}

.mySkills{
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 5%;
}

.mySkills h1{
    display: flex;
    justify-content: center;
    width: 100%;
}

.aboutMe{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: row;
    width: 100%;
    height: 55vh;

}

.text{
    display: flex;
    flex-direction: column;
    width: 40%;
}

.aboutMeImg img{
    width: 50%;
    border-radius: 20px;
}


/* projecten pagina */

.projectHeader{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1% 0% 2% 0%;
}

.project-grid{
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.project-item{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    background-color: #FFAAC5;
    width: 75%;
    min-height: 35%;
    border-radius: 20px;
    margin-top: 2%;
    box-shadow: 2px 3px 20px #b2b2b2;
}

.project-text{
    display: flex;
    flex-direction: column;
    margin-top: 2%;
    width: 60%;
}

.project-text :nth-child(2){
    height: 50%;
}

.projectButton{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

.project-item img{
    width: 40%;
    margin: 1%;
    border-radius: 20px;
}

.imagePart{
    display: flex;
    flex-direction: column;
    align-items: center ;
    justify-content: space-around;
    min-width: 40%;
    
}

.linkButton{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #FFEFF4;
    padding: 1%;
    border-radius: 10px;
    width: 20%;
    margin: 0% 4% 5% 0%;

    box-shadow: 2px 3px 20px #b2b2b2;
}

.linkButton a{
    color: black;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
}


@media only screen and (max-width:450px) {
    /* home screen */

    .navBar a{
        font-size: 1.3rem;
    }

    .nameHeader{
        width: 100%;
        height: 100%;
        flex-direction: column;
    }

    .nameSpace{
        display: flex;
        flex-direction: column;
        width: 95%;
        align-items: center;
    }

    .imageMe img{
        margin-left: 10%;
    }

    .redirectButtons{
        width: 95%;
        height: 15vh;
    }

    .redirect{
        padding: 5%;
    }


    /*over mij */

    .aboutMe{
        margin-top: 5%;
        flex-direction: column;
        height: 100%;
    }

    .text{
        width: 95%;
        align-items: center;
    }

    .mySkills{
        margin-top: 10%;
    }

    .aboutMeImg img{
        margin: 8% 0% 0% 25%;
    }

    .skills-grid{
        width: 65%;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
    }

    .skill-item{
        margin: 3%;
        width: 80%;
    }

    /* project pagian */

    .project-item{
        flex-direction: column;
        width: 95%;
        height: 100%;
        margin-top: 10%;
    }

    .project-text{
        width: 100%;
        align-items: center;
    }

    .project-text p {
       margin-left: 4%;

    }

    .projectButton{
        flex-direction: column;
       
    }

    .linkButton{
        width: 45%;
        margin-left: 25%;
    }

}

@media (prefers-color-scheme: dark){

    body{
        background-color: white;
    }

}