:root {
    --lighter: #8627cf;
    --light: #7019b3;
    --dark: #600ba1;
}

body, html { overflow-x: hidden; }

body {
    background: #fff;
    margin: 0;
    padding: 0;
    font-size: 1.2rem;
    font-family: Georgia, Garamond, serif;
}

a { color: #0079b5; }
a:visited { color: #b5007f; }
.restcontent a, .restcontent a:visited { color: #fff; text-decoration: none; }

svg, canvas {
    position: absolute;
    display: block;
    color: var(--light);
}

.light { fill: var(--light); }
.lighter { fill: var(--lighter); }

#canvas {
    width: 100%;
    z-index: -1;
}

.absolute { position: absolute; }
.static { position: static; }

.rest {
    height: calc(100vh - 26.7vw + 10vw);
    background: linear-gradient(170deg, var(--light), var(--dark));
    margin-top: 0px;
    color: #fff;
    padding: 50px;
    box-sizing: border-box;
    position: relative;
    margin-bottom: 7vw;
}

.restcontent {
    height: 100vh;
    bottom: 10vw;
    left: 0;
    right: 0;
}

.restcontent li a:hover { text-decoration: underline; }

.rest li {
    margin-bottom: 0.2em;
    font-family: "American Typewriter", Georgia, Garamond, serif;
}

.octopus {
    position: relative;
    height: calc(100vh + 26.7vw);
    overflow: hidden;
}

#octo, #canvas {
    width: 100%;
    bottom: -2px;
    left: 0;
}

p, .center { text-align: center; }

.cookie {
    position: static;
    margin: 0 auto;
    max-width: 400px;
    width: 80%;
    margin-top: 50px;
}

footer {
    background: var(--dark);
    margin-top: -1px;
    color: #fff;
    padding: 1rem 2rem;
    line-height: 1;
    position: relative;
}

footer svg {
    left: 1.6rem;
    top: 0.6rem;
    width: 2rem;
}

.dark { fill: var(--dark); }

footer > ul {
    list-style-type: none;
    column-count: 3;
    padding: 0;
    margin: 0.75rem 2rem;
}

footer a, footer a:visited {
    color: #fff;
    text-decoration: none;
}

footer a:hover { text-decoration: underline; }
footer li { padding: 0.125rem 0; }

.rest-projects { left: 10%; top: 20%; }
.rest-blog { right: 10%; top: 15%; }
.rest-portfolio { bottom: 10%; left: 60%; }
.rest-rocks { bottom: 10%; right: 20%; }
.teevee { top: 155px; left: 70px; }
.doggo { top: 30vw; left: 2%; }
.eye1 { top: 10%; right: 5%; }
.eye2 { left: 54%; top: 25%; }
.eye3 { left: 10%; bottom: 30%; }
.eye4 { bottom: 10%; left: 35%; }
.eye5 { bottom: 15%; right: 2%; }

.rest h2 { margin-bottom: 0; }
.rest-portfolio h2::before {
    content: '<';
    position: absolute;
    left: -38px;
    font-size: 1.2em;
    top: 30px;
}
.rest-portfolio h2::after {
    content: '>';
    position: absolute;
    right: -38px;
    font-size: 1.2em;
    top: 30px;
}
.rest-portfolio h2:hover::before { left: -25px; content: '>'; }
.rest-portfolio h2:hover::after { right: -25px; content: '<'; }

.worthit { transform: rotate(-3deg); margin-top: .5em; }

#blog:hover svg { transform: scale(-1); }

.dropped {
    margin: 1.2em auto;
    position: relative;
    width: 24em;
    line-height: 1.3;
    padding-right: 0.5em;
}

.dropped-sm {
    display: none;
}

.dropped::first-letter {
  font-size: 2.5rem;
  padding: 8px 26px 0 16px;
  float: left;
  font-style: italic;
  line-height: 1.85rem;
}

.dropped svg {
    left: -0.2rem;
    top: -0.45rem;
    width: 3.7rem;
    transform: rotate(5deg);
}

.drips {
    left: -1px;
    right: 1px;
    bottom: -5vw;
    width: 100%;
}

.nexttime {
    position: relative;
    margin-bottom: 0.3em;
}

.nexttime svg {
    position: absolute;
    width: 7em;
    left: calc(50% + 0.5em);
    top: -0.8em;
    z-index: 1;
}

.views { position: absolute; width: 0; height: 0; }

@media (max-aspect-ratio: 150/100) {
    #octo, #canvas { width: auto; height: calc(100vh + 26.7vw); min-height: 831px; }
}
@media (min-aspect-ratio: 150/100) and (max-width: 1000px) {
    .octopus { height: calc(100vh + 267px); }
    #octo, #canvas { width: 1000px; height: auto; }
}
@media (max-width: 1000px) {
    footer { padding: 1rem; }
    footer svg { left: 0.6rem; }
    footer li { padding: 0.25rem 0; }
    footer > ul {
        margin: 0.5rem 0;
        column-count: 2;
    }
    .rest {
        height: max(100vh - 26.7vw, 50rem - 200px + 10vw);
        background: var(--light);
        margin-bottom: 14vw;
    }

    .restcontent { height: max(100vh, 50rem); }
    .rest-bg { width: 1000px; }
    #ducks, #bubbly { display: none; }

    .rest-projects { left: 25%; top: 5%; }
    .doggo { top: 10%; left: 5%; }
    .rest-blog { right: 15%; top: 40%; }
    .rest-portfolio { bottom: 10%; left: 30%; }
    .rest-rocks { bottom: 25%; right: 15%; }
    .eye1 { top: 5%; }
    .eye2 { left: 20%; top: 40%; }
    .eye3 { left: 10%; bottom: 30%; }
    .eye5 { top: 40%; }
    .eye4 { left: 60%; bottom: 25%; }
}
@media (max-width: 700px) {
    .nexttime svg { display: none; }

    .drips {
        left: -30%;
        width: 150%;
        bottom: -7.5vw;
    }
}
@media (max-width: 500px) {
    .dropped { width: 18rem; }
    .dropped-lg { display: none; }
    .dropped-sm { display: initial; }
}
@media (max-height: 500px) {
    .rest { background: var(--light); }
    .rest-bg { display: none; }
}
