body {
    margin:0;
    background-color: #e5e9e9;
}

nav {
    display: flex;
    background-color: #3769b1;
    justify-content: flex-start;
}

#standardNavbar ul {
    display: flex;
    align-items: flex-end;
}

#standardNavbar li {
    display: inline;
    color: #e5e9e9;
    padding: 10px 10px 0px;
    flex-basis: 220px;
    margin-bottom: 0;
}

#homeLogo {
    max-height: 100px;
}

.navlink {
    color: #e5e9e9;
    text-decoration: none;
    font-size: 21px;
    font-weight: bold;
    font-family: 'PT Sans', sans-serif;
    line-height: 28px;
}

.navlink:hover {
    text-decoration: underline;
}

#aboutlink {
    position:relative;
    left:20px;
}

#mobileTop {
    position: fixed;
    display:none;
    top:0;
    height: 60px;
    width: 100%;
    background-color: #3769b1;
    z-index: 1;
}

#mobileHomeLogo {
    position: relative;
    height: 100%;
    float:left;
 
}

#menuButton {
    position: relative;
    height:50%;
    float: right;
    padding: 5px;
    margin: 6px;
    border: 3px solid #e5e9e9;
    border-radius: 8px;
    background-color: #25334F;
}

#menuButton:hover, #menuButton:active {
    background-color: #6e718f;
}

#mobileNavbar {
    position: fixed;
    display:block;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    transform-origin: top;
    top:60px;
    width: 100%;
    transform: scaleY(0%);
    transition: 1s;
    z-index: 2;
}

#mobileNavbar a {
    position: relative;
    text-decoration: none;
    display: block;
    list-style: none;
    text-align: left;
    padding-left: 10%;
    font-family: 'PT Sans', sans-serif;
}

#mobileNavbar a:hover {
    background-color: #25334F;
}

.introBlock {
    display:flex;
    max-width: 900px;
    margin:auto;
    flex-shrink: 1;
}

.intro {
    position: relative;
   display: inline-block;
   margin:10px;
   padding: 10px;

}

.portrait {
    position: relative;
    float: right;
    max-width: 15%;
    min-width: 220px;
    top:30px;
}

.portrait img {
    max-width: 90%;
    /* min-width: 220px; */
    border: 10px solid #25334F;
    margin:auto;
    /* float: right;
    margin-top: 30px; */
}

.intro h1 {
    color:#3769b1;
    font-size: 3.3em;
}

.intro p {
    font-size: 1.3em;
}

.pagetitle {
    position: relative;
    font-size: 2.9em;
    color: #3769b1;
    text-align: center;
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    text-shadow: 1px 2px #25334F;
    margin:20px;
}

#featuredheading {
    color:#25334F;
    font-family: 'PT Sans', sans-serif;
    font-size: 2em;
    font-weight: 700;
    text-align: center;
}

.slideshowcontainer {
    position: relative;
    display: block;
    top:20px;
    max-width: 500px;
    margin:auto;
    cursor: pointer;
}

#slideshowframe {
    position: relative;
    width: 100%;
    top:-245px;
}

.slidecontainer {
    position: relative;
    display: flex;
    max-width: 350px;
    background-color: black;
    border-top: 5px solid black;
    border-bottom: 10px solid black;
    margin:auto;
}

.slidecontainer img {
    width: 100%;
}

.footercontainer {
    position: relative;
    display: block;
    width: 100%;

    background-color: #3769b1;
    color:#e5e9e9;
    font-size: 12px;
    line-height: 18px;
}

.footerlinks {
    padding:10px 15px 5px;
}
.footercontainer span {
    padding:0px 15px 15px;
}

.footercontainer a {
    color:#e5e9e9;
    
}

@media (max-width:900px) {
    #mobileTop {
        display: block;
    }
    #standardNavbar {
        display:none;
    }
    .introBlock {
        top: 60px;
    }
    .portrait {
        top: 90px;
    }
    .pagetitle {
        top: 60px;
    }
    .portfolioitem {
        top: 60px;
    }
    .slideshowcontainer {
        top:20px;
    }
    .footercontainer {
        top:60px;
    }
}



@media (max-width: 800px) {
    .introBlock {
        flex-direction: column;
    }
    .intro h1 {
        font-size: 2.7em;
    }
    .portrait {
        top:0;
        max-width: 100%;
        background-color: #e5e9e9;
        margin: auto;
    }
    .portrait img {
        margin: auto;
        float:none;
        max-width: 350px;
        border: 20px solid #25334F;
    }
    .slideshowcontainer {
        top:20px;
    }
    #featuredheading {
        margin-top: 20px;
    }
}

@media (max-width:600px){
    .slidecontainer {
        width: 300px;
        top: -20px;
        background-color: black;
        border-top: 5px solid black;
        border-bottom: 10px solid black;
    }
    .slideshowcontainer {
        width:450px;
        top:40px;
    }
    #featuredheading {
        margin-top: 20px;
    }

    .footerlinks {
        display:flex;
        flex-direction: column;
        max-width: 200px;
        padding-left:15px;
    }
    .footercontainer {
        padding:15px 0 15px 0;
    }
    .footercontainer span {
        padding-left:15px;
    }
}

@media (max-width: 450px) {
    .slidecontainer {
        /* margin: 0 50px; */
        width: 200px;
        top:10px;
        background-color: black;
        border-top: 5px solid black;
        border-bottom: 10px solid black;
    }

    .slideshowcontainer {
        width:300px;
        top:20px;
    }
    #slideshowframe {
        width:300px;
        top: -135px;
        margin:auto;
    }
    #featuredheading {
        margin-top: 20px;
    }
}

.portfolioitem {
    position: relative;
    display: flex;
    padding: 15px 25px;

}

.portfolioitem:nth-of-type(even) {
    background-color: white;
}

.portfolioitemtext {
    padding-right: 15px;
    display: inline-block;
    flex-basis: 1000px;
    flex-shrink: 1;
}
.portfolioitemtext h3 {
    font-size: 2.2em;
    font-family: 'PT Sans', sans-serif;
    margin: .4em 0em;
}

.portfolioitemtext h4 {
    font-size: 1.5em;
    font-family: 'PT Sans', sans-serif;
    margin: .6em 0em;
}
.portfolioitemtext p {
    font-size: 1.2em;
    font-family: Merriweather, serif;
    margin: .5em 0em;
}
.portfolioitemtext a {
    font-size: 1.5em;
    font-family: Merriweather, serif;
    color:#3769b1;
    font-weight: 700;
    text-decoration: none;
}
.portfolioitemtext a:hover {
    text-decoration: underline;
}

.portfolioitemimg {
    position: relative;
    display: inline-block;
    flex-basis: 600px;
    flex-shrink: 1;
}

.portfolioitemimg img {
    position: relative;
    max-width: 500px;
    max-height: 300px;
}

@media (max-width:900px) {
    .portfolioitem {
        flex-direction: column;
        align-content: flex-start;
    }
    .portfolioitemtext {
        flex-basis: 100px;
    }
    .portfolioitemimg {
        flex-basis: 100px;
        width: 95%;
    }
    .portfolioitemimg img {
        max-width: 100%;
        
    }
}

#aboutinfo {
    position: relative;
    display: flex;
    flex-direction: row;
    /* flex-wrap: wrap; */
    padding: 15px;

}

#abouttext {
    flex-basis: 1400px;
    font-size: 1.2em;
    font-family: Merriweather, serif;
    margin: .5em 0em;
    min-width: 400px;
    flex-shrink: 3;
}

#abouttext p {
    margin:0 0 5px;
    padding:0px 5px;
}

#aboutgraphics {
    display:flex;
    min-width: 0;
    flex-shrink: 1;
}

#aboutimg {
    /* flex-basis:30%; */
    display: flex;
    flex-basis: 300px;
    flex-shrink: 1;
    max-width: 300px;
    min-width: 200px;
    align-items: center;
}

#aboutcert {
    /* flex-basis:20%; */
    min-width: 200px;
    max-width: 250px;
}

#storylinebadge {
    width: 225px;
}
#vyondbadge {
    width:190px;
    padding-left: 20px;
}

#aboutimg img{

    width: 100%;
}

.softwarelogo {
    position: relative;
    width: 8%;
    margin: 10px;
    min-width: 50px;
}

#softwareicons div {
    display: flex;
    justify-content: space-around;
}

@media (max-width: 900px) {
    #aboutinfo {
        flex-direction: column;
        top: 60px;
    }
    #abouttext {
        flex-basis: 350px;
    }
}

#contactpage {
    display:flex;
}

#contactform {
    flex-basis: 700px;
    padding-left: 5%;
    flex-shrink: 2;
}

#linkedin {
    display:flex;
    margin:10px;
    min-width: 370px;
    flex-shrink: 1;
}

#linkedinimg {
    flex-basis:300px;
    max-width: 300px;
    min-width: 160px;
}

#linkedinimg img {
    width: 100%;
}

#linkedintext {
    flex-basis: 300px;
    margin-left: 20px;
}

#linkedintext a {
    position: relative;
    font-size: 2.9em;
    color: #3769b1;
    text-align: center;
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    text-shadow: 1px 2px #25334F;
    text-decoration: none;
}

@media (max-width:1080px){
    #contactform {
        padding-left: 10px;
    }
    #linkedin {
        flex-direction: column-reverse;
        justify-content: start;
        min-width: 200px;
    }
    #linkedintext {
        flex-basis:150px;
    }
    #linkedinimg {
        min-width: 150px;
    }
}
@media (max-width: 900px) {
    #contactpage {
        position: relative;
        top:60px;
        flex-direction: column;
    }
    #linkedin {
        flex-direction: row;
    }
    #contactform iframe{
        width: 90%;
    }
    #abouttext {
        max-width: 95%;
        margin:auto;
        min-width:200px;
    }
    #aboutimg {
        width: 45%;
        min-width: 0;
    }
    #softwareicons {
        position: relative;
        top: 50px;
        width: 95%;
        margin:auto;
        justify-content: center;
    }
    .softwarelogo {
        min-width: 45px;
    }
}