html,
body {
    height: 100%;
    background: #000;
    color: #fff;
}
* {
    box-sizing: border-box;
}
::-moz-selection {
    background-color: #777;
    color: #fff;
}
::selection {
    background-color: #777;
    color: #fff;
}
.visually-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

/* ===================
    TYPOGRAPHY
=================== */
h1 {
    font-family: "Times New Roman", serif;
    font-size: 22px;
    font-weight: normal;
    letter-spacing: 2.1px;
    margin: 0 0 20px;
}

h2,
h3 {
    font-family: Arial, sans-serif;
    font-weight: bold;
}

h2 {
    margin: 0 0 10px;
    display: inline-block;
    position: relative;
}

h2::after {
    content: "";
    position: absolute;
    left: 0px;
    bottom: 3px;
    height: 8px;
    width: 100%;
    background-color: rgb(255 0 0 / 20%);
}

h2 span {
    font-size: 14px;
}

#text p,
#text li {
    font-family: Arial, sans-serif;
}

h2 {
    font-size: 18px;
    margin: 0 0 10px;
}

h3 {
    font-size: 16px;
    margin: 0 0 5px;
}

#text p.intro {
    font-size: 18px;
    font-weight: 500;
    line-height: 26px;
}

h1 ~ p,
h2 ~ p {
    margin: 0 0 30px 0;
}

#text p,
#text li {
    font-size: 16px;
    line-height: 24px;
}

p.notice {
    background-color: #f7ffc9;
    padding: 10px;
}

blockquote {
    display: block;
    border: 3px dashed #f3f3f3;
    margin: 0 0 15px;
    padding: 25px;
    max-width: 100%;
}

blockquote:last-of-type {
    margin-bottom: 40px;
}

blockquote p::before {
    content: "\“";
    font-style: normal;
    font-weight: bold;
    padding-right: 3px;
}

blockquote p::after {
    content: "\”";
    font-style: normal;
    font-weight: bold;
    padding-left: 3px;
}

blockquote p {
    margin: 0 0 10px;
}

blockquote span.author {
    background-color: #f3f3f3;
    color: #555;
    font-size: 12px;
    font-weight: bold;
    margin: 10px 0;
    padding: 3px 5px;
}

#text li {
    margin: 3px 0;
}

#text ul + h2 {
    margin-top: 30px;
}

/* ===================
    HEADER
=================== */
#logo {
    background-color: #fff;
    color: #000;
    position: absolute;
    left: 5px;
    bottom: 20px;
    height: 40px;
    width: 40px;
    text-align: center;
    line-height: 40px;
    z-index: 100;
    transition: all 0.5s ease 0s;
}

#logo:hover {
    background-color: #000;
}

#logo:hover h1 {
    color: #fff;
}

#logo h1 {
    font-family: Arial, sans-serif;
    font-weight: bold;
    color: #000;
    margin: 0;
    transition: all 0.25s ease 0s;
}

/* ==================
    NAVIGATIONS
=================== */
#nav-wrapper {
    background: rgb(171, 32, 135);
    background: radial-gradient(circle, rgba(171, 32, 135, 1) 0%, rgba(255, 61, 205, 1) 100%);
    height: 100%;
    width: 50px;
    position: fixed;
    top: 0;
    left: 0;
    transition: all 0.25s ease 0s;
    z-index: 100;
}

#page-about #nav-wrapper {
    background: rgb(32, 84, 171);
    background: radial-gradient(circle, rgba(32, 84, 171, 1) 0%, rgba(61, 133, 255, 1) 100%);
}

#page-work #nav-wrapper {
    background: rgb(32, 171, 143);
    background: radial-gradient(circle, rgba(32, 171, 143, 1) 0%, rgba(61, 255, 216, 1) 100%);
}

#page-contact #nav-wrapper {
    background: rgb(171, 93, 32);
    background: radial-gradient(circle, rgba(171, 93, 32, 1) 0%, rgba(255, 147, 61, 1) 100%);
}

#nav-wrapper.open {
    width: 60%;
}

#close-nav {
    background-color: #fff;
    color: #000;
    cursor: pointer;
    display: none;
    transition: background-color 250ms ease 0s;
    z-index: 5;
    width: 70px;
    margin: 0 auto;
    height: 35px;
    line-height: 39px;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translate(-50%);
}

#close-nav:hover {
    background-color: #000;
    color: #fff;
}

#close-nav i {
    font-size: 28px;
}

#ham-menu {
    position: absolute;
    top: 20px;
}

#main-nav {
    height: calc(100% - 75px);
    margin-top: 35px;
}

#ham-menu {
    cursor: pointer;
    left: 5px;
    z-index: 1;
}

#ham-menu span {
    display: block;
    font-size: 14px;
    font-weight: bold;
}

#main-nav > ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    height: 100%;
}

#main-nav > ul > li {
    width: 100%;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

#main-nav a {
    color: #fff;
    display: inline-block;
    font-family: "Source Sans Pro", sans-serif;
    font-size: 28px;
    margin: 0 0 15px;
    padding: 5px 0;
    text-decoration: none;
    transition: all 250ms;
}

#main-nav a::after,
#main-nav a.active::after {
    background-color: #fff;
    content: "";
    display: block;
    height: 2px;
    transition: width 0.3s ease 0.1s;
    width: 0;
}

#main-nav a:hover::after {
    width: 100%;
}

#main-nav a:hover,
#main-nav a.active {
    text-shadow: -4px -1px 29px #fff;
}

#main-nav a.active {
    font-weight: bold;
}

#main-nav a.active::after {
    width: 100%;
}

#nav-wrapper nav {
    text-align: center;
}

#nav-wrapper li {
    transform: translateX(-1000px);
    transition: transform 300ms cubic-bezier(0.645, 0.045, 0.355, 1);
}

#nav-wrapper.open li.closed {
    transform: translateX(-1000px);
    transition: transform 300ms cubic-bezier(0.645, 0.045, 0.355, 1);
}

#nav-wrapper.open li {
    transform: translateX(0px);
    transition: transform 300ms cubic-bezier(0.645, 0.045, 0.355, 1);
}

#nav-wrapper.open #main-nav li:nth-child(1) {
    transition-delay: 50ms;
}
#nav-wrapper.open #main-nav li:nth-child(2) {
    transition-delay: 100ms;
}
#nav-wrapper.open #main-nav li:nth-child(3) {
    transition-delay: 150ms;
}
#nav-wrapper.open #main-nav li:nth-child(4) {
    transition-delay: 200ms;
}

/*** Secondary Navigation ***/
#secondary-nav {
    width: calc(100% - 45px);
    margin-left: 45px;
}

#nav-wrapper.open #secondary-nav ul {
    transform: translateX(0px);
    transition: transform 300ms cubic-bezier(0.645, 0.045, 0.355, 1);
    transition-delay: 350ms;
}

#secondary-nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-1000px);
}

#secondary-nav li {
    display: inline-block;
    border-top: 1px solid #fff;
    padding: 10px;
}

#secondary-nav li:nth-child(2),
#secondary-nav li:nth-child(3),
#secondary-nav li:nth-child(4),
#secondary-nav li:nth-child(5),
#secondary-nav li:nth-child(6),
#secondary-nav li:nth-child(7) {
    display: none;
}

#secondary-nav a {
    color: #fff;
    display: inline-block;
    font-size: 20px;
    transition: all 0.25s ease 0s;
}

#secondary-nav a:hover {
    opacity: 1;
}

#secondary-nav a.no {
    cursor: not-allowed;
    opacity: 0.15;
}

#content {
    display: flex;
}

/* ==================
    TEXT
=================== */
.pagetitle {
    color: rgba(0, 0, 0, 0.35);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 10px;
    margin: 0 0 15px;
}

#text {
    background: linear-gradient(90deg, #ffffff 21px, transparent 1%) center, linear-gradient(#ffffff 21px, transparent 1%) center, #9c9c9c;
    background-size: 22px 22px;
    color: #000;
    height: 100vh;
    width: 60%;
    padding: 20px 20px 20px 70px;
    overflow: auto;
}

#text p span[data-sound],
#text p span[data-gif],
#text li span {
    background-color: rgba(171, 32, 135, 0.15);
    cursor: help;
    transition: all 250ms;
}

#text p span[data-sound]:hover,
#text p span[data-gif]:hover,
#text li span:hover {
    background-color: rgba(135, 244, 255, 0.5);
}

#page-about #text p span[data-sound],
#page-about #text p span[data-gif],
#page-about #text li span {
    background-color: rgba(32, 84, 171, 0.15);
}

#page-work #text p span[data-sound],
#page-work #text p span[data-gif],
#page-work #text li span {
    background-color: rgba(32, 171, 143, 0.15);
}

#page-contact #text p span[data-sound],
#page-contact #text p span[data-gif],
#page-contact #text li span {
    background-color: rgb(171, 93, 32, 0.15);
}

#text p a,
#text li a {
    border-bottom: 2px solid #888;
    color: #888;
    text-decoration: none;
    transition: all 0.25s ease 0s;
}

#text p a:hover,
#text li a:hover {
    color: #111;
    border-bottom: 2px solid #111;
}

#media {
    background-image: url("../img/me.gif");
    background-position: center center;
    background-size: cover;
    height: 100vh;
    width: 40%;
}

.tetris {
    display: none;
}

/* ==================
    PAGES
=================== */
#page-home #media {
    background-image: url("../img/hello.gif");
}

#page-work #media {
    background-image: url("../img/muscles.gif");
}

#page-contact #media {
    background-image: url("../img/wink.gif");
}

/* ==================
    RESPONSIZZLE
=================== */
@media only screen and (min-width: 0px) and (max-width: 768px) {
    #logo {
        bottom: 0;
    }

    #nav-wrapper.open {
        width: 100%;
    }

    #text,
    #media {
        position: absolute;
        width: 100%;
    }

    #text {
        height: 70%;
    }

    #media {
        margin-left: 50px;
        top: 70%;
        width: calc(100% - 50px);
        height: 30%;
    }

    #media h1 span {
        font-size: 18px;
    }
}

@media only screen and (min-width: 769px) {
    h1 {
        font-size: 24px;
        letter-spacing: 2.5px;
    }

    #text {
        padding: 20px 50px 50px 100px;
    }

    #main-nav {
        height: calc(100% - 95px);
    }
}

@media only screen and (min-width: 1025px) {
    #secondary-nav li:nth-child(2),
    #secondary-nav li:nth-child(3),
    #secondary-nav li:nth-child(4),
    #secondary-nav li:nth-child(5),
    #secondary-nav li:nth-child(6),
    #secondary-nav li:nth-child(7) {
        display: block;
    }

    .tetris {
        display: block;
    }

    .game__actions {
        margin-top: 20px;
    }

    .game__button {
        border: 1px solid black;
        background-color: rgba(255, 147, 61, 1);
        cursor: pointer;
        padding: 10px 15px;
        font-weight: bold;
        color: black;
        transition: all 250ms;
    }

    .game__button:hover {
        background-color: white;
        color: black;
    }
}

@media only screen and (min-width: 1440px) {
    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 20px;
    }

    #text p,
    #text li {
        font-size: 18px;
        line-height: 32px;
    }

    #text p.intro {
        font-size: 20px;
        line-height: 32px;
    }

    #text blockquote p {
        font-size: 22px;
    }

    #text blockquote span.author {
        font-size: 14px;
    }

    #main-nav a {
        font-size: 30px;
    }

    blockquote {
        max-width: 50%;
    }
}
