@import url('hamburger.css');

html,
body {
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: roboto, Arial, Helvetica, sans-serif;
    zoom: normal;
    width: 100%;
    scroll-behavior: smooth;
}

.d-none {
    display: none;
}


main {
    display: grid;
    grid-template-areas:
        "nav head"
        "nav top"
        "nav center"
        "nav bottom"
        "nav foot";
    grid-template-rows: 1fr 400px auto 64px 64px;
    grid-template-columns: 180px 1fr;
    font-family: roboto, Arial, Helvetica, sans-serif;
    margin: 0;
    overflow: hidden;
}


.head {
    grid-area: head;
    grid-column: 2;
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
}


.headcontainer {
    grid-column: 2 / 3;
    width: 100%;
    height: 100%;
    margin: 0;
}


.headline-container {
    grid-column: 2 / 3;
    height: 100vh;
    width: 100%;
    margin: 0;
    position: relative;
}


.head-img {
    height: 100vh;
    width: 100%;
    object-fit: cover;

}


.headline {
    color: white;
    position: absolute;
    top: -128px;
    font-size: 64px;
}


.headline-description {
    color: white;
    position: absolute;
    top: -64px;
    font-size: 32px;
}


.top {
    grid-area: top;
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
}

.topcontainer {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    flex-direction: column;
    font-size: 24px;
    align-items: center;
    margin: 64px 256px 64px 256px;
    padding-bottom: 64px;
}


nav {
    position: fixed;
    grid-area: left;
    z-index: 999;
    overflow: hidden;
    width: 100%;
    grid-row: 1 / 6;
    /*display: none;
    width: 100%;*/
}


.navcontainer {
    position: fixed;
   /* display: grid;
    justify-content: center;
    align-items: center;*/
    top: 0;
    left: 0;
    /*grid-template-rows: repeat(3, 1fr);
    grid-template-columns: 1fr;*/
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.8);
    background-color: #E2ECF4;
    height: 100%;
    width: 180px;
}


section {
    width: 100%;
}



.center {
    grid-area: center;
}

.centercontainer {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: repeat(7, auto);
    gap: 8px;
}


.centercontainer h2 {
    margin-bottom: 32px;
}


.projectheadlinesection {
    position: relative;
    width: 100%;
    height: 200px;
}



.projectcontainer {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, auto);
    margin-left: 64px;
    gap: 32px;
    margin: 8px 256px 8px 256px;
}



.projectcontainer img {
    width: 100%;
    /*grid-column: 1;*/
    grid-row: 1;
    border: 1px solid;
    border-radius: 8px;
}

.projectcontainer span {
    padding: 0 16px 0 16px;
}

.projectcontainer div {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    grid-column: 1;
    grid-row: 2;
}

.grid-column-1 {
    grid-column: 1;
}

.grid-column-2 {
    grid-column: 2;
}

.left {
    display: none;
    /*
    position: fixed;
    grid-area: left;
    z-index: 999;
    overflow: hidden;
    width: 100%;
    grid-row: 1 / 6;*/
}


.leftcontainer {
    position: fixed;
    display: grid;
    top: 0;
    left: 0;
    grid-template-rows: repeat(3, 1fr);
    grid-template-columns: 1fr;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.8);
    background-color: #E2ECF4;
    height: 100%;
    width: 180px;
}


.logo {
    display: flex;
    width: 100%;
    height: 100px;
    justify-content: center;
    align-items: center;
    grid-row: 1;
}


.avatar {
    display: flex;
    grid-row: 2;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100px;
}


.avatar img {
    height: 100px;
    width: 100px;
    border-radius: 50%;
    background-color: #B6CCFF;
}


.gridcontainer {
    display: grid;
    grid-template-rows: repeat(auto-fill, 24px);
    grid-template-columns: 1fr;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: calc(100vh - 24px);
    grid-row: 3;
    background-color: #E2ECF4;
}


.start-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    margin-left: 20px;
}


.display-column {
    display: flex;
    flex-direction: column;
}


.center-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}


.img-size-20 {
    width: 20px;
    height: 20px;
}


.img-size-24 {
    width: 24px;
    height: 24px;
}


.clickable:hover {
    cursor: pointer;
}


.margin-top-16 {
    margin-top: 16px;
}


.projects-link {
    grid-column: 1;
    grid-row: 3;
}


.web-link {
    grid-column: 1;
    /*grid-row: 5;*/
    grid-row-end: -10;
}


.unity3d-link {
    grid-column: 1;
    grid-row: 7;

}


.cpp-link {
    grid-column: 1;
    grid-row: 9;
    margin-left: 64px;

}


.github-link {
    grid-column: 1;
    grid-row: 9;
}


.language-link {
    grid-column: 1;
    grid-row: 11;
}


.search-link {
    grid-column: 1;
    grid-row: 13;
}


.dataprotection-link {
    grid-area: 1 / 31;
}


.imprint-link {
    grid-area: 1 / 33;
}


.about-link {
    grid-area: 1 / 35;
}


.more-link {
    grid-column: 1;
    grid-row-end: -10;
}


ul,
li {
    list-style: none;
}


.right {
    display: none;
}


.web-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}


.bottom {
    grid-area: bottom;
    height: 64px;
}


.foot {
    grid-area: foot;
    box-shadow: 3px 0px 5px 0px rgba(0, 0, 0, 0.8);

}


.dropdowncontainer {
    display: grid;
    grid-template-rows: repeat(auto-fill, 24px);
    position: fixed;
    bottom: 64px;
    left: 0px;
    width: 180px;
    height: 200px;
    background-color: #E2ECF4;
    z-index: 1000;
}

.dropdowncontainer>div {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 100%;
    margin-left: 20px;
}

.dropdowncontainer>div>span {
    margin-left: 8px;
}

.opensidebar {
    animation-name: sidebaropened;
    animation-duration: 1s;
}


.closesidebar {
    animation-name: sidebarclosed;
    animation-duration: 1s;
}


.expandgridcontainer {
    animation-name: expandedgrid;
    animation-duration: 1s;
}


.reducegridcontainer {
    animation-name: reducedgrid;
    animation-duration: 1s;
}


.expandgridcontainerTo360px {
    animation-name: expandedgridTo360px;
    animation-duration: 1s;
}


.reducegridcontainerFrom360px {
    animation-name: reducedgridFrom360px;
    animation-duration: 1s;
}


.expandgridcontainerFrom180pxTo360px {
    animation-name: expandedgridFrom180pxTo360px;
    animation-duration: 1s;
}


.reducegridcontainerFrom360pxTo180px {
    animation-name: reducedgridFrom360pxTo180px;
    animation-duration: 1s;
}

.span-hide {
    display: none;
}


.span-show {
    display: block;
}


.overlay {
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlaycontainer {
    width: 800px;
    height: 80%;
    display: grid;
    grid-template-rows: 64px 1fr 64px;
    background-color: white;
    border-radius: 8px;
}

.overlayClose {
    grid-row: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    width: 100%;
    padding-right: 16px;
}


.dataprotectioncontainer {
    display: block;
    grid-row: 2;
    overflow-y: auto;
    padding: 0px 64px 0px 64px;
}


.imprint {
    display: block;
    grid-row: 2;
    overflow-y: auto;
    padding: 0px 64px 0px 64px;
}


.imprintcontainer {
    margin: 0 0 0 64px;
    padding: 0 8px 0 8px;
    overflow-y: auto;
}


.contactInput {
    width: 300px;
}


textarea {
    display: block;
    resize: none;
    height: 150px;
    width: 302px;
    max-height: 150px;
}


.aboutmecontainer {
    padding: 64px;
}


.aboutme {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding-top: 64px;
}

.footercontainer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
}

.grid-row-2 {
    grid-row: 2;
}

#my-form-button:hover {
    cursor: pointer;
}


@media(max-width: 1280px) {
    .topcontainer {
        margin: 64px 128px 64px 128px;
    }

    .projectcontainer {
        margin: 8px 32px 8px 32px;
    }

    .topcontainer {
        margin: 64px 32px 64px 32px;
    }
}

@media(max-width: 1100px) {
    .headline {
        font-size: 56px;
    }

    .headline-description {
        font-size: 32px;
    }

   
}


@media(max-width: 1028px) {
    .head {
        grid-column: 2 / 3;
    }

    .headline {
        font-size: 48px;
    }

    .headline-description {
        font-size: 32px;
    }

    .left {
        display: none;
    }

    .top {
        grid-column: 2 / 3;
    }

    .center {
        grid-column: 2 / 3;
    }

    .foot {
        grid-column: 2 / 3;
    }


    main {
        display: grid;
        grid-template-areas:
            "nav head"
            "nav top"
            "nav center"
            "nav bottom"
            "nav foot";
        grid-template-columns: 64px 1fr;
    }

    nav {
        display: block;
        position: fixed;
        grid-area: nav;
        z-index: 999;
        overflow: hidden;
        width: 100%;
        grid-row: 1 / 6;
    }

    .navcontainer {
        width: 64px;
    }

    .gridcontainer {
        display: grid;
        grid-template-rows: repeat(auto-fill, 24px);
        grid-template-columns: 1fr;
        justify-content: center;
        align-items: center;
        width: 64px;
        /*height: calc(100vh - 24px);*/
        /*grid-row: 3;*/
        background-color: #E2ECF4;
    }

    .web-link {
        grid-column: 1;
        grid-row: 5;
    }
    
    
    .unity3d-link {
        grid-column: 1;
        grid-row: 7;
    
    }
    
    
    .github-link {
        grid-column: 1;
        grid-row: 9;
    }
    
    
    .language-link {
        grid-column: 1;
        grid-row: 11;
    }
    
    .more-link {
        grid-column: 1;
        grid-row-end: -10;
    }

    .dropdowncontainer {
        width: 64px;
    }
}


@media(max-width: 900px) {
    .overlaycontainer {
        width: 100%;
        height: 100%;
        border-radius: 0px;
    }
}

@media(max-width: 755px) { 
    .headline {
        font-size: 40px;
    }

    .headline-description {
        font-size: 24px;
    }

   
}


@media(max-width: 700px) {
    main {
        display: grid;
        grid-template-areas:
            "head"
            "top"
            "center"
            "bottom"
            "foot"
            "nav";
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 500px auto 64px 128px 64px;
        height: 100vh;
        width: 100%;
        overflow: auto;
    }


    .headline {
        font-size: 32px;
    }

    .headline-description {
        font-size: 16px;
    }


    nav {
        display: block;
        position: fixed;
        grid-area: nav;
        z-index: 999;
        overflow: hidden;
        width: 100%;
        grid-column: 1;
        grid-row: 6;
    }

    .navcontainer {
        position: fixed;
        /*display: grid;
        justify-content: center;
        align-items: center;*/
        top: calc(100% - 64px);
        left: 0;
        /*grid-template-rows: 64px;
        grid-template-columns: 64px 1px 1fr;*/
        box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.8);
        background-color: #E2ECF4;
        height: 64px;
        width: 100%;
    }

    .gridcontainer {
        display: grid;
        grid-template-columns: repeat(auto-fill, calc(100% / 10 - 4px));
        grid-template-rows: 64px;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 64px;
        grid-row: 1;
        grid-column: 3;
        background-color: #E2ECF4;
    }

    .logo {
        grid-row: 1;
        grid-column: 1;
        width: 100%;
        height: 100%;
    }

    .logo > div {
        display: none;
    }



    .web-link {
        grid-column: 1;
        grid-row: 1;
    }
    
    
    .unity3d-link {
        grid-column: 3;
        grid-row: 1;
    
    }
    
    
    .github-link {
        grid-column: 5;
        grid-row: 1;
    }
    
    
    .language-link {
        grid-column: 7;
        grid-row: 1;
    }
    
    .more-link {
        grid-column: 9;
        grid-row: 1;
    }

}


@media(max-width: 480px) {
    .headline {
        font-size: 24px;
    }

    .headline-description {
        font-size: 16px;
    }
}



@keyframes sidebaropened {
    0% {
        grid-template-columns: 64px 1fr;
    }

    100% {
        grid-template-columns: 180px 1fr;
    }
}


@keyframes sidebarclosed {
    0% {
        grid-template-columns: 180px 1fr;
    }

    100% {
        grid-template-columns: 64px 1fr;
    }
}


@keyframes expandedgrid {
    0% {
        width: 64px;
    }

    100% {
        width: 180px;
    }
}


@keyframes reducedgrid {
    0% {
        width: 180px;
    }

    100% {
        width: 64px;
    }
}



@keyframes sidebaropenedTo360px {
    0% {
        grid-template-columns: 64px 1fr;
    }

    100% {
        grid-template-columns: 360px 1fr;
    }
}


@keyframes sidebarclosedFrom360px {
    0% {
        grid-template-columns: 360px 1fr;
    }

    100% {
        grid-template-columns: 64px 1fr;
    }
}


@keyframes expandedgridTo360px {
    0% {
        width: 64px;
    }

    100% {
        width: 360px;
    }
}


@keyframes reducedgridFrom360px {
    0% {
        width: 360px;
    }

    100% {
        width: 64px;
    }
}


@keyframes expandedgridFrom180pxTo360px {
    0% {
        width: 180px;
    }

    100% {
        width: 360px;
    }
}


@keyframes reducedgridFrom360pxTo180px {
    0% {
        width: 360px;
    }

    100% {
        width: 180px;
    }
}



@media(max-height: 432px) {
    .gridcontainer { 
        display: grid;
        grid-template-rows: repeat(auto-fill, 24px);
        grid-template-columns: 1fr;
        justify-content: center;
        align-items: center;
        width: 64px;
        height: 100vh;
    }

    .search-link {
        grid-column: 1;
        grid-row: 13;
    }
    
    
    .dataprotection-link {
        grid-area: 2 / 1;
    }
    
    
    .imprint-link {
        grid-area: 2 / 3;
    }
    
    
    .about-link {
        grid-area: 2 / 5;
    }
/*
    @keyframes sidebaropened {
        0% {
            grid-template-columns: 64px 1fr;
        }
    
        100% {
            grid-template-columns: 360px 1fr;
        }
    }
    
    
    @keyframes sidebarclosed {
        0% {
            grid-template-columns: 360px 1fr;
        }
    
        100% {
            grid-template-columns: 64px 1fr;
        }
    }
    
    
    @keyframes expandedgrid {
        0% {
            width: 64px;
        }
    
        100% {
            width: 360px;
        }
    }
    
    
    @keyframes reducedgrid {
        0% {
            width: 360px;
        }
    
        100% {
            width: 64px;
        }
    }*/
}


@font-face {
    font-family: roboto;
    src: url("../../assets/fonts/Roboto/Roboto-Regular.ttf");
}


@font-face {
    font-family: petemoss;
    src: url("../../assets/fonts/Petemoss/Petemoss-Regular.ttf");
}