:root {
    --main-color: #6E07F3;
 }

body {
    margin: 0;
}

header {
    padding: 10px 170px 0;
}

.headercontainer {
    display: flex;
    flex-wrap: nowrap;
    width:100%;
    align-items: center;
}

.headercontainer > div {
    margin: 10px;
    text-align: center;
    line-height: 75px;
    font-size: 30px;
  }

.navigation {
    flex-grow: 1;
}


.navigation a {
    display:inline;
    font-family: 'Nunito', sans-serif;
    text-decoration: none;
    margin-right:50px;
    font-size: 20px;
    color: var(--main-color);
    font-weight: 400;
}

.navigation a:last-of-type {
    margin-right:0;
}

.nav2 {
    display: none;
}

.nav2 a {
    margin: 0 0 -1px;
    padding: 20px 0;
    border: 1px solid #E1CAFF;
}

.logo {
    flex-grow: 1;
}

.spacer {
    flex-grow: 3;
}

.logo svg {
    height:50px;
    width:50px;
    vertical-align: middle;
}

.top {
    text-align: center;
}

h1 {
    font-size: 50px;
    font-weight: 700;
    color: #141c3a;
    font-family: 'Nunito', sans-serif;
    text-align: center;
}

.top {
    padding-top: 100px;
    color: #141c3a;
    font-family: 'Nunito', sans-serif;
}

.toptext {
    margin-bottom:100px;
}

.aboutbutton {
    width: 295px;
    height: 54px;
    border-radius: 50px;
    border: solid 2px var(--main-color);
    font-family: 'Nunito', sans-serif;
    background-color: white;
    font-size: 20px;
    color: var(--main-color);
    transition: all 0.3s ease-in-out;
    margin-bottom: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.aboutbtn {
    margin: 0 auto 100px;
}

.aboutbutton:hover {
    background-color: var(--main-color);
    color: white;
    cursor: pointer;
}

.codeImg {
    border-radius: 12px;
    display: block;
    margin:0 auto 100px;
}

#about {
    background-color:var(--main-color);
    padding: 150px 0 300px;

}

#about p {
    max-width: 900px;
    margin: 0 auto;
    color: white;
    font-family: 'Nunito', sans-serif;
    font-size: 20px;
    padding: 0 50px;
}

.skills {
    max-width: 1344px;
    align-items: center;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 5px 0 rgba(187, 198, 202, 0.5), 0 0 0 1px #c1c8d8;
    margin: -150px auto 0;
    padding: 100px;
}

.skillgrid {
    width: 100%;
    text-align: center;  
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0px 0px;
    grid-auto-flow: row;
    grid-template-areas:
        ". . . ."
        ". . . .";
}
  
.griditem {
    width: auto;
    padding-top: 100px;
}

.griditem p {
    font-family: 'Nunito', sans-serif;
    color: #141c3a;
    text-align: center;
    padding-top: 20px;
    visibility: hidden;
}

.griditem svg {
    height: 100px;
    width: 100px;
    transition: scale 0.3s;
}

.griditem svg:hover {
    scale: 1.5;
}

.griditem h2 {
    text-decoration: none;
}

.projectimage {
    height: 400px;
    box-shadow: 0 5px 5px 0 rgba(187, 198, 202, 0.5), 0 0 0 1px #c1c8d8;
    border-radius: 12px;
}

iframe {
    border-radius: 12px;
    width: 600px;
    height: 400px;
}

h2 {
    font-family: 'Nunito', sans-serif;
    color: #141c3a;
    text-align: center;
}

#projects {
    font-family: 'Nunito', sans-serif;
    margin-top: 200px;
}

.projectgrid {
    max-width: 1344px;
    text-align: center;  
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 0px 20px;
    grid-auto-flow: row;
    grid-template-areas:
        ". .";
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 5px 0 rgba(187, 198, 202, 0.5), 0 0 0 1px #c1c8d8;
    margin: -150px auto 0;
    padding: 100px;
}

/* .projectgrid img {
    width: 300px;
} */

.website img {
    width: 700px;
    display: inline-block;
}

.website {
    max-width: 1344px;
    margin: 100px auto;
    display: flex;
    justify-content: center;
    column-gap: 100px;
}

.websitetext {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.websitetext h2 {
    text-align: left;
}

#websites {
    font-family: 'Nunito', sans-serif;
    padding-top: 100px;
    margin-top: 100px;
}

.sitebtn {
    margin-top: 80px;
}

.sitebtn svg {
    width: 30px;
    height: 30px;
    margin-top: 10px;
}

.purplespacer {
    background-color: var(--main-color);
    padding: 100px;
}

.purplespacer h1 {
    color:white;
    margin-bottom: 100px;
}

#contact {
    margin-top: 300px;
    text-align: center;
}

#contact label {
    display: block;
}

form {
    max-width: 600px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 5px 0 rgba(233, 240, 243, 0.5), 0 0 0 1px #E6ECF8;
    margin: -150px auto 0;
    padding: 100px;
    font-family: 'Nunito', sans-serif;
    text-align: left;
}

label {
    font-size: 18px;
}

input, textarea {
    width: 100%;
    height: 50px;
    border-radius: 12px;
    border: 1px solid #c1c8d8;
    margin: 10px 0 30px;
    font-size: 18px;
}

#messagebox {
    height: 100px;
}

.formbtn {
    display: block;
    margin: 100px auto 0;
    padding: 0;
    margin-bottom: 0;
}

#footer {
    background-color: #141c3a;
    width: 100%;
    margin-top: 100px;
    padding-top: 150px;
    padding-bottom: 150px;
}

.social {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social svg {
    height: 50px;
    width: 50px;
    transition: scale 0.3s;
}

.social svg:hover {
    scale: 1.5;
}

.fa {
    display: none;
}

@media only screen and (min-width:926px) and (max-width: 1194px) {
    header {
        padding: 10px 100px 0;
    }
  }

@media only screen and (max-width: 925px) {
    header {
        padding: 10px 50px 0;
    }
}

@media only screen and (min-width:600px) and (max-width: 820px) {
    /* .fa {
        display: block;
        color: var(--main-color);
    } */

    /* .navigation a {
        display: none;
    } */

    .navigation a {
        font-size: 16px;
        margin-right: 20px;
    }
}

@media only screen and (max-width: 599px) {
    .fa {
        display: block;
        color: var(--main-color);
    }

    .navigation {
        display: none;
    }

    .nav2 {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

}

.shown {
    display: flex;
}

@media only screen and (min-width:600px) {
    .nav2 {
        display: none;
    }
}

@media only screen and (max-width:400px) {
    h1 {
        font-size: 30px;
    }
}

@media only screen and (max-width:784px) {
    .codeImg {
        width: 95%;
    }

    .codeImgContainer {
        margin:0;
    }
}

@media only screen and (min-width:409px) and (max-width:556px) {
    #about p {
        font-size: 16px;
    }
}

@media only screen and (max-width:408px) {
    #about p {
        font-size: 14px;
        padding: 0 30px;
    }

}

@media only screen and (max-width:496px) {
    .purplespacer {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media only screen and (max-width:362px) {
    .aboutbtn {
        margin: 0 auto 100px;
        width: 80%   
    }

    .formbtn {
        width: 200px;
    }
}

@media only screen and (min-width:709px) and (max-width:864px) {
    form {
        margin: -150px 20px 0;
    }
}

@media only screen and (max-width:708px) {
    form {
        margin: -150px 20px 0;
        padding-left: 5%;
        padding-right: 5%;
    }
}

@media only screen and (max-width:1620px) {
    .skills, .projectgrid {
        margin-left: 30px;
        margin-right: 30px;
    }
}

@media only screen and (max-width:938px) {
    .skills {
        padding-left: 50px;
        padding-right: 50px;
    }
}

@media only screen and (min-width:401px) and (max-width:728px) {
    .skillgrid {
        width: 100%;
        text-align: center;  
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr 1fr;
        gap: 0px 0px;
        grid-auto-flow: row;
        grid-template-areas:
            ". ."
            ". ."
            ". ."
            ". .";
    }
}

@media only screen and (max-width:400px) {
    .skillgrid {
        width: 100%;
        text-align: center;  
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
        gap: 0px 0px;
        grid-auto-flow: row;
        grid-template-areas:
            "."
            "."
            "."
            "."
            "."
            "."
            "."
            ".";
    }

    .griditem {
        padding-top: 10px;
    }

    .griditem:first-of-type {
        margin-top: 50px;
    }
}

@media only screen and (min-width:1020px) and (max-width:1460px) {
    iframe {
        width: 400px;
    }

    .projectimage {
        width: 400px;
        object-fit: cover
    }
}

@media only screen and (max-width:1019px) {
    /* iframe {
        width: 400px;
    }

    .projectimage {
        width: 400px;
        object-fit: cover
    } */
    .projectgrid {
        max-width: 1344px;
        text-align: center;  
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 0px 0px;
        grid-auto-flow: column;
    }
}


@media only screen and (min-width:708px) and (max-width:864px) {
    .projectimage {
        height: 300px;
    }

    .griditem iframe {
        width: 472px;
    }
}

@media only screen and (min-width:592px) and (max-width:707px) {
    .projectimage {
        height: 200px;
    }

    .griditem iframe {
        width: 350px;
    }
}

@media only screen and (min-width:464px) and (max-width:591px) {
    .projectimage {
        height: 200px;
    }

    .griditem iframe {
        width: 350px;
    }

    .projectgrid {
        padding-left: 0px;
        padding-right: 0px;
    }
}

@media only screen and (min-width:0px) and (max-width:463px) {
    .projectimage {
        height: 150px;
    }

    .griditem iframe {
        width: 300px;
    }

    .projectgrid {
        padding-left: 0px;
        padding-right: 0px;
    }
}


@media only screen and (max-width:1198px) {
    .website {
        flex-direction: column;
    }

    .website img {
        margin: 0 auto;
    }

    .websitetext, .websitetext h2 {
        text-align: center;
    }

    .websitetext a {
        margin: 0 auto;
    }

    .websitetext p {
        padding: 0 30px 50px;
    }
}

@media only screen and (max-width:702px) {
    .website img {
        width: 555px
    }
}

@media only screen and (max-width:546px) {
    .website img {
        width: 400px
    }
}

@media only screen and (max-width:390px) {
    .website img {
        width: 300px
    }
}