*{
    padding: 0;
    margin: 0.7vh 2vh 0vh 2vh;
}

body{
    font-size: 1.3vw;
    background-color: #000;
    color: #F8CF40;
}

html{
    scroll-behavior: smooth;
}

#mainContainer{
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

header{
    grid-column: 1/7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    height: 15vh;
    background-color: #000;
}

header > nav > ul{
    display: flex;
    list-style: none;
    gap: 2vw;
}

a{
    text-decoration: none;
    color: #F8CF40;
}


.heroBanner{
    grid-column: 1/7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15vh;
    /*height: 92vh;*/
}

.heroText > h1{
    font-size: 10vh;
}

.heroText > h2{
    border-right: 3px solid;
    width: 42%;
    white-space: nowrap;    
    overflow: hidden;
    animation: 
        typing 2s steps(34),
        cursor .4s step-end infinite alternate;
}

@keyframes cursor{
    50% { border-color: transparent }
}

@keyframes typing{
    from { width: 0 }
}

.projectSection{
    grid-column: 1/7;
    /*height: 160vh;*/
    padding-top: 15vh;
}

#projects > h1{
    display: flex;
    justify-content: center;
}

.boxContainer{
    display: flex;
    flex-wrap: wrap;
    gap: 50px 10px;
}

.box > img{
    height: 35vh;
    width: 25vw;
    border-radius: 5px; 
}

.box{
    box-shadow: 15px 1px 10px #F8CF40;
    overflow: hidden;
    border-radius: 10px;
}

.intro{
    height: 30vh;
    width: 25vw;
    padding: 6px;
    box-sizing: border-box;
    background: #F8CF40;
    transition: .5s;
    color: #000;
}

#about{
    grid-column: 1/7;
    /*height: 92vh;*/
    padding-top: 15vh;  
}

#about > h1{
    display: flex;
    justify-content: center;
}

.aboutSection{
    display: flex;
    margin-top: 10vh;
}

#timeline{
    grid-column: 1/7;
    margin-top: 15vh;
    /*height: 92vh;*/
}

#timeline > h1{
    display: flex;
    justify-content: center;
}

.timeline{
    position: relative;
    max-width: 1200px;
    margin: 100px auto;
}

.container{
    padding: 10px 20px;
    position: relative;
    width: 46.7%;
    animation: movedown 1s linear forwards;
    opacity: 0;
}

@keyframes movedown{
    0%{
        opacity: 1;
        transform: translateY(-30px);
    }
    100%{
        opacity: 1;
        transform: translateY(0px);
    }
}

.container:nth-child(1){
    animation-delay: 0s;
}

.container:nth-child(2){
    animation-delay: 1s;
}

.container:nth-child(3){
    animation-delay: 3s;
}

.textBox{
    padding: 20px 30px;
    background: #000;
    position: relative;
    border-radius: 6px;
    font-size: 20px;
}

.leftContainer{
    left: 0;
}

.rightContainer{
    left: 50%;
}

.container img{
    position: absolute;
    width: 40px;
    border-radius: 50%;
    right: -20px;
    top: 32px;
    z-index: 10;
}

.rightContainer img{
    left: -55.7px;
}

.timeline::after{
    content: '';
    position: absolute;
    width: 6px;
    height: 100%;
    background: #F8CF40;
    top: 0;
    left: 50%;
    margin-left: -3px;
    z-index: -1;
    animation: moveline 6s linear forwards;
}

@keyframes moveline{
    0%{
        height: 0;
    }
    100%{
        height: 100%;
    }
}

.textBox h2{
    font-weight: bold;
}

.textBox small{
    display: inline-block;
    margin-bottom: 15px;
}

#skills{
    grid-column: 1/7;
    /*height: 85vh;*/
}

#skills h1{
    display: flex;
    justify-content: center;
}

.skillsBox{
    margin-top: 200px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.skill{
    font-size: 20px;
    border: 1px solid #F8CF40;
    border-radius: 10px;
    padding: 20px;
}

.skill:hover{
    background-color: #F8CF40;
    color: #000;
}

#contact{
    grid-column: 1/7;
    margin-top: 40vh;
    margin-bottom: 15vh;
    /*height: 50vh;*/
}

#contact h1{
    display: flex;
    justify-content: center;
}

#contact h2{
    margin-top: 5vh;
}

#contact img{
    height: 40px;
}


/*Media query*/

@media (max-width: 1919px) {
    #skills{
        margin-top: 80px;
    }

    .rightContainer img{
        left: -50px;
    }
    
}

@media (max-width: 1600px) {
    #about img{
        height: 400px;
        width: auto;
    }

    .heroImg img{
        height: 400px;
        width: auto;
    }
}

@media (max-width: 1209px) {
   .heroText h1{
    font-size: 50px;
   }

   .heroText > h2{
    border-right: 3px solid;
    width: 50%;
    white-space: nowrap;    
    overflow: hidden;
    animation: 
        typing 2s steps(34),
        cursor .4s step-end infinite alternate;
    }
}

@media (max-width: 1010px) {
    .heroText h1{
     font-size: 40px;
    }

    .heroImg img{
        height: 350px;
        width: auto;
    }

    #about img{
        height: 350px;
        width: auto;
    }
    
    .heroText > h2{
        border-right: 3px solid;
        width: 65%;
        white-space: nowrap;    
        overflow: hidden;
        animation: 
            typing 2s steps(34),
            cursor .4s step-end infinite alternate;
    }
 }

#hallo{
    width: 50px;
    height: 30px;
}

.joe{
    width: 2px;
    height: 4px;
}

object{
    height: 87vh;
    width: 90vw;
}

@media (max-width: 600px) {
    * {
        padding: 0;
        margin: 0.7vh 1vh 0vh 1vh;
    }

    body {
        font-size: 4vw;
    }

    #mainContainer {
        grid-template-columns: 1fr;
    }

    header {

        position:static;    
    }

    header > nav > ul {
        flex-direction: column;
        gap: 1vh;
    }

    .heroBanner {
        flex-direction: column;
        margin-top: 10vh;
    }

    .heroText > h1 {
        font-size: 6vh;
    }

    .heroText > h2 {
        width: 90%;
    }

    .boxContainer {
        flex-direction: column;
        gap: 20px 0px;
    }

    .box > img {
        height: auto;
        width: 70vw;
    }

    .intro {
        height: auto;
        width: 70vw;
    }

    .aboutSection {
        flex-direction: column;
        margin-top: 5vh;
    }

    .container {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .leftContainer,
    .rightContainer {
        left: 0;
    }

    .textBox {
        font-size: 16px;
    }

    .skillsBox {
        flex-direction: column;
        margin-top: 50px;
    }

    .skill {
        font-size: 16px;
        padding: 15px;
    }

    #contact {
        margin-top: 20vh;
        margin-bottom: 10vh;
    }
}
