html{
    
    height: 100%;
}

a{
    text-decoration: none;
    color:inherit;
    cursor: pointer;
}

body{
    height: 100vh;
    margin:0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#header {
    display: flex;
    height: 10%;
    background-color: black;
    justify-content: space-between;
  }

#header img{
    margin: 1rem;
    opacity: 1;
    transition: opacity 500ms;
    transition-delay: 100ms;

    width: auto;
    height: auto;
    max-height: 100%;
    max-width: 100%;
}

#header.collapsed img{
    opacity: 0;
}

.link:last-child{
    margin-right:2rem;
}

.link{
    color: white;
    align-items: center;
    justify-content: center;
    display: flex;
    cursor: pointer;
    flex-grow: 1;
    margin:0.5rem;
    border-radius: 25px 0;
    border: 1px solid bisque;
    font-family: 'Mulish', sans-serif;
    font-weight: bold;
    user-select: none;
}

.link:hover{
    border:3px solid bisque;
    background-color: #3f3f3f;
}

.link:active{
    border:3px solid bisque;
    background-color: #a4a4a4;
}

#pagecontainer{
    height: 100%;
}

h1.overhead{
    margin: 0 0 1rem 0;
}

.overleft{
    left:10%;
}

.overright{
    left:42%;
}

#pages{
    display: flex;
    flex-direction: column;
    scroll-snap-type:y mandatory;
    overflow: auto;
    height: 100%;
}

section{
    height: 100%;
    width: 100%;
    scroll-snap-align: end;
    display: flex;
}

#FirstPage{
    background-color: black;
    flex-direction: column;
    justify-content: center;
}

#FirstPage img{
    width: 85%;
    align-self: center;
}

#about-imagebox{
    background-image: url('../img/About-min.jpg');
}

#design{
    justify-content: space-around;
    align-items: center;
    background-color: azure;
}
#design img{
    border-radius: 7px;
    max-width: 46%;
    max-height: 90%;
}
.imageBox{
    height: 100%;
    width: 100%;
    background-position: center;
    background-size: cover;
}
#design-imagebox{
    background-image: url('../img/PCBRender-min.jpg');
    background-image: url('../img/PCBRender.webp');
}
#designText{
    opacity: 1;
}

#embedded-imagebox{
    background-image: url('../img/codingImage-min.jpg');
    background-image: url('../img/codingImage.webp');
}

#embeddedText{
    opacity: 1;
}

#manufacturing-imagebox{
    background-image: url('../img/pnp-min.jpg');
    background-image: url('../img/pnp.webp');
}

#manufacturingText{
    opacity: 1;
}

#imprint-imagebox{
    background-image: url('../img/pnp-min.jpg');
    background-image: url('../img/pnp.webp');
}
#imprintText{
    opacity:1;
}
.imprintSection{
    display: flex;
    flex-direction: column;
    margin-top:2em;
}
.imprintInfo{
    font-size: large;
    padding:1em;
    font-weight: 600;
}

#footer{
    display: flex;
    height: 3%;
    background-color: #590213;
    color: bisque;
    font-size: larger;
    justify-content: space-evenly;
    align-items: center;
    padding: 0.3em 0;
}

.textoverlay{
    position: relative;
    top:15%;
    background-color:hsl(0 0% 98% / 0.94);
    border-radius: 7px;
    padding: 2rem;
    font-size: 1.4rem;
    line-height: 1.3em;
    cursor:default;
    user-select: none;
    transition: opacity 20ms;
    font-family: 'Mulish', sans-serif;
}


@media screen and (max-width:1199px) {
    .link{
        display:none;
    }    
    .overleft{
        left:0%;
    }
    .overright{
        left:0%;
    }
    .textoverlay{
        top:10%;
        padding: 1.2rem;
        font-size: 1.2rem;
        line-height: 1.1em;
    }
}

@media screen and (max-width:480px) {
    .textoverlay{
        top:5%;
        padding: 1rem;
        font-size: 1rem;
        line-height: 1em;
    }
}

@media screen and (min-width:1200px){
    .textoverlay{
        width:45%;
    }
}

#contact{
    display:none;
}