:root {
    --back-color: #ddd;
    --back-color-dark: teal;
    --accent-color: red;
    --text-dark: black;
    --white: #fff;
    --anim-speed: transform .5s;
}

*, *:before, *:after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    font-family: 'Prosto One';
    font-size: 16px;
    height: 100%;
}

.body {
    position: relative;
    height: 100%;
}

.maininfo {
    position: absolute;
    min-height: 600px;
    height: 100vh;
    width: 100vw;
}

.background1 {
    position: absolute;
    left: 40%;
    width: 60%;
    height: 100%;
    min-height: 600px;
    background-image: url("../img/farm.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    transition: width .2s, left .2s, height .2s;
}

.fade {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,  rgba(255,255,255,.3) 0%,
                                            rgba(255,255,255,.3) 35vmin,
                                            rgba(255,255,255,.6) 50vmin,
                                            rgba(255,255,255,.8) 90%,
                                            rgba(255,255,255,1) 100%);
    transition: all .2s;
}

nav {
    position: absolute;
    min-width: 350px;
    height: 50px;
    width: 100%;
    display: flex;
    z-index: 10;
}

nav ul {
    margin: auto 10px 0 auto;
    align-self: auto;
}

nav ul li {
    display: inline-block;
    font-size: 1.2rem;
    padding: 0 8px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    position: relative;
}

nav ul li:hover, nav ul li:active, nav ul li:focus{
    animation: menu_but .3s;
    transition-timing-function: cubic-bezier(.5,0,.5,1);
}

.greeting {
    display: inline-block;
    width: 40%;
    text-align: center;
    margin-top: 100px;
    font-size: 1.3rem;
    font-style: italic;
    transition: .2s;
}

.name {
    
    position: absolute;
    margin-top: 80px;
    width: 100vw;
    text-align: center;
    font-size: 7vw;
    font-weight: bold;
    white-space: nowrap;
    z-index: 99;
}

.name span {
    position: relative;
    text-shadow: .0125em .0125em .01em rgba(0, 0, 0, 0.057), .025em .025em .02em rgba(0, 0, 0, 0.076), .05em .05em .04em rgba(0, 0, 0, 0.1), .1em .1em .08em rgba(0, 0, 0, 0.135), .2em .2em .16em rgba(0, 0, 0, 0.18), .4em .4em .32em rgba(0, 0, 0, 0.24);
    padding-right: 20%;
}

.name span::after {
    top: 0;
    left: 0;
    position: absolute;
    color: var(--white);
    content: 'Troy Buerge';
    clip-path: polygon(50% 0%, 120% 0%, 120% 200%, 50% 200%);
    text-shadow: none;
}

.aboutme {
    position: absolute;
    top: 45%;
    font-size: 1.2rem;
    width: 100%;
}

.aboutme div {
    text-align: center;
    padding: 20px;
}

.aboutme div:nth-of-type(1) {
    margin-left: -20%;
}

.aboutme div:nth-of-type(2) {
    margin-left: 0;
}

.aboutme div:nth-of-type(3) {
    margin-left: 20%;
}

@media screen and (max-width: 699px) {

    .background1 {
        width: 100%;
        height: 40vh;
        left: 0;
        min-height: unset;
    }

    .background1 .fade {
        background: linear-gradient(to bottom,  rgba(255,255,255,.3) 0%,
                                            rgba(255,255,255,.3) 100%);
    }
    
    .greeting {
        position: absolute;
        text-align: center;
        margin-left: 40vw;
        margin-top: 15vh;
    }

    .name {
        position: absolute;
        left: 0;
        top: 40vh;
        font-size: 49px;
        margin-top: -30px;
    }

    .name span {
        padding-right: 0;
    }

    .name span::after {
        top: 0;
        left: 0;
        position: absolute;
        color: var(--white);
        content: 'Troy Buerge';
        clip-path: polygon(0% 0%, 120% 0%, 120% 50%, 0% 50%);
    }
    
    .aboutme {
        top: 45vh;
    }

    .aboutme div {
        width: 100%;
        display: flex;
    }

    .aboutme div p {
        max-width: 50%;
    }

    .aboutme div:nth-of-type(1) {
        margin-left: 0;
        justify-content: flex-start;
    }
    
    .aboutme div:nth-of-type(2) {
        margin-left: 0;
        justify-content: center;
    }
    
    .aboutme div:nth-of-type(3) {
        margin-left: 0;
        justify-content: flex-end;
    }

}

@media screen and (min-width: 1285px) {
    .name {
        font-size: 90px;
    }
}

@keyframes menu_but {
    0% {
        transform: rotate(0deg);
    }
    45% {
        transform: rotate(15deg);
    }
    90% {
        transform: rotate(-5deg);
    }
    100% {
        transform: rotate(0deg);
    }
    
}





