/*----------------------------
    Header
*----------------------------*/
header .header {
    height: 5rem;
    display: grid;
    grid-template-areas: "logo-group btn" ". .";
    grid-template-rows: 5rem 15rem;
    align-items: center;
    transition: all .3s ease-in-out;
}

header .headerWrapper {
    color: white;
}

header .logoGroup {
    justify-self: start;
    display: grid;
    grid-template-areas: "logo wordmark";
    align-items: center;
    color: white;
    text-decoration: none;
    height: 100%;
    transition: all .2s ease-in;
    position: relative;
    z-index: 10;
}

header .logoGroup:hover {
    cursor: pointer;
    background: rgba(0, 0, 0, 0.3);
}

header .wordmark {
    grid-area: wordmark;
    font-size: 1.15em;
    font-weight: 700;
    margin-right: 10px;
}

header .btn {
    grid-area: btn;
    justify-self: end;
}

header .paintbrush {
    height: 24px;
    transition: all .4s;
    position: relative;
    z-index: 10;
}

header .paintbrush:hover {
    cursor: pointer;
    filter: brightness(100);
}

header .hide {
    height: 5rem;
}

header .show {
    height: 40rem;
}

header .white {
    fill: white;
}

header .purple {
    fill: var(--primaryDark);
}

header canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.logo {
    grid-area: logo;
    height: 30px;
    width: 30px;
    margin: 0 10px;
}

.noTouchScroll {
    touch-action: none;
}

/*----------------------------
    Main
*----------------------------*/

main {
    padding: 20px 0;
    background-color: white;
    position: relative;
    z-index: 2;
    box-shadow: 0px -13px 8px -10px rgba(0, 0, 0, 0.5);
}

main .projectswrap {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 40px;
}

main .projects {
    padding: 0 20px;
}

.project {
    display: grid;
    grid-template-areas: "image" "title" "tags" "description" "buttons";
    grid-template-rows: 40vw 25vw 30px 2fr 1fr;
}

.project img {
    grid-area: image;
    max-width: 100%;
    border-radius: 2px;
    box-sizing: border-box;
    padding: 7px;
    box-shadow: 0 1px 2px hsla(0, 0%, 0%, 0.2);
    background-color: white;
    transition: all .2s ease-in;
    filter: brightness(0.97);
}

.project img:hover {
    filter: brightness(1);
    transform: scale(1.01);
    box-shadow: 2px 2px 10px hsla(0, 0%, 0%, 0.2);
}

.project h3 {
    grid-area: title;
    margin: 10px 0;
    align-self: center;
}

.project p {
    grid-area: description;
    margin: 10px 0;
    line-height: 1.35;
}

.project .buttons {
    grid-area: buttons;
}

.project .buttons .info {
    display: block;
    background-color: #f3f3f3;
    color: #9f9f9f;
    padding: 10px;
    padding-left: 40px;
    border-radius: 2px;
    background-image: url("assets/info.svg");
    background-repeat: no-repeat;
    background-size: auto;
    background-position: 2% 50%;
    margin-top:20px;
}

.project .buttons a {
    display: block;
    background-color: var(--primary);
    color: white;
    border-radius: 2px;
    padding: 10px;
    margin: 0 0 10px 0;
}

.project a {
    display: block;
    background-color: var(--primary);
    color: white;
    border-radius: 2px;
    padding: 10px;
    margin: 0 0 10px 0;
}

.project .tags {
    grid-area: tags;
}

.project .tags span {
    background-color: #f7f7f7;
    border-radius: 2px;
    padding: 3px 10px;
    font-size: 12px;
    color: #6f6f6f;
}

.online {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 20px;
    padding: 0 20px;
}

.onlineWrapper {
    background: rgb(243, 243, 243);
    padding: 40px 0;
    margin-bottom: 60px;
    border-top: 1px solid #e1def5;
    border-bottom: 1px solid #e1def5;
}


.online dl {
    display: grid;
    grid-template-columns: max-content auto;
    grid-gap: 10px;
}

.online dt {
    grid-column-start:1;
    text-align: end;
    font-weight: 600;
}

.online dt:after {
    content: "-";
    padding-left: 12px;
}

.online dd {
    margin: 0;
    grid-column-start: 2;
}


.online .shots {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 20px;
}

.online .shot img {
    width:100%;
    box-sizing: border-box;
    padding: 7px;
    border-radius: 2px;
    box-shadow: 0 1px 2px hsla(0, 0%, 0%, 0.2);
    background-color: white;
    filter: brightness(0.97);
    transition: all .2s ease-in;
}

.online .shot img:hover {
    filter: brightness(1);
    transform: scale(1.01);
    box-shadow: 2px 2px 10px hsla(0, 0%, 0%, 0.2);
}

/*----------------------------
    ABOUT
*----------------------------*/

.about {
    /* background-color: var(--primary); */
    background: rgb(68,53,146);
    background: linear-gradient(164deg, rgba(68,53,146,1) 0%, rgba(97,53,146,1) 100%);
    color: white;
    box-shadow: inset 0px 13px 8px -10px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--primaryDark);
    padding: 0 20px;
    padding-bottom: 40px;
}

.about h2 {
    padding-top: 40px;
}

.about p:last-child {
    padding-bottom: 40px;
}

.about .strike {
    text-decoration: line-through;
}

.about a {
    color: white;
    text-decoration: underline;
    padding: 3px;
    margin-bottom: 10px;
    display: block;
}

/*----------------------------
    Footer
*----------------------------*/

.footer {
    /* background-color: var(--primary); */
    /* color: white; */
    background-color: white;
    color: var(--primary);
    height: 7rem;
    padding: var(--mainPadding);
    display: grid;
    grid-template-areas:
    "message"
    "button";
    justify-items: center;
    align-items: center;
    box-shadow: 0px -13px 8px -10px rgba(0, 0, 0, 0.5);
}

.message {
    grid-area: message;
}

.button {
    border-radius: 50px;
    border: none;
    color: inherit;
    height: 30px;
    font-size: 1em;
    padding: 3px 30px;
    text-align: center;
    overflow: hidden;
    position: relative;
    background: none;
    text-decoration: none;
}

.button:hover {
    cursor: pointer;
}

.outline {
    border:1px solid var(--primaryDark);
    color: var(--primaryDark);
    transition: all .2s ease-out;
}
.outline:hover {
    background: var(--primaryDark);
    color: white;
    border:1px solid var(--primaryDark);
}

.filled {
    background: var(--primaryDark);
    border: 1px solid var(--primaryDark);
    color: white;
    transition: all .2s ease-out;
}

.filled:hover {
    background: white;
    color: var(--primaryDark)
}

.top::after {
    content: '';
    width: 0;
    height: 0;
    background: transparent;
    display: inline-block;
    position: absolute;
    top:0;
    left: 50%;
    transform: scale(2) translateX(-25%) translateY(65px);
    transition: all .6s;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 50px solid #A9A4BF;
}
.top:hover::after {
    content: '';
    display: inline-block;
    transform: scale(2) translateX(-25%) translateY(-100px);
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 50px solid #A9A4BF;
}

.top {
    transition: all .6s;
    border:none;
}

.top:hover {
    background: white;
    color: var(--primaryDark)
}


/*----------------------------
    Responsiveness
*----------------------------*/


@media only screen and (min-width: 650px) {
    header .header {
        padding: var(--mainPadding);
    }

    main {
        padding: 10px 0;
    }

    main .projectswrap {
        grid-template-columns: 1fr 1fr;
    }

    main .projects {
        padding: var(--mainPadding);
    }

    .project {
        grid-template-rows: 15vw 60px 50px 2fr 1fr;
    }

    .project img {
        grid-area: image;
        max-width: 100%;
        border-radius: 2px;
        box-sizing: border-box;
        padding: 7px;
        box-shadow: 0 1px 2px hsla(0, 0%, 0%, 0.2);
        background-color: white;
        transition: all .2s ease-in;
    }

    .project a {
        background-color: transparent;
        color: var(--primary);
        border-radius: 0;
        padding: 2px 0;
        margin: 0;
    }

    .online {
        padding: var(--mainPadding);
    }

    .onlineWrapper {
        margin-bottom: 70px;
    }

    .online .shots {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 20px;
    }

    .about {
        padding: var(--mainPadding);
        padding-bottom: 60px;
    }

    .about p {
        max-width: 40vw;
    }

    .about a {
        display: inline;
    }

    .project .buttons .info {
        background-position: 5% 50%;
    }
}

@media only screen and (min-width:860px) {
    main .projectswrap {
        grid-template-columns: 1fr 1fr 1fr;
        grid-gap: 20px;
    }

    .project {
        grid-template-rows: 10vw 60px 50px 1fr 110px;
    }

    .online {
        grid-template-columns: 1fr 1fr;
    }

    .onlineWrapper {
        margin-top: 40px;
    }
}