@font-face {
    font-family: stamp;
    src: url(/Users/twurp/Library/Fonts/StampRSPKOne-Regular.otf);
}

@font-face {
    font-family: forma;
    src: url(/Users/twurp/Library/Fonts/Forma-Bold.otf);
}

body {
    /* font-family: Helvetica, Arial, sans-serif;
    font-weight: bold; */
    font-family: "Lora", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    margin: 10px;
}


.nav {
    display: flex;
    justify-content: space-between;
}

.contact {
    text-align: right;
}

.menu {
    width: 2rem;
    height: 2rem;
}

h1 {
    font-size: 2rem;
    margin: 0;
    align-self: center;

}

h2 {
    font-size: 1.5rem;
}

hr {
    color: black;
    width: 50%;
    margin-bottom: 20px;
}

.content {
    display: flex;
    opacity: 0%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: fade-in 1s 7s forwards;
}

.piece {
    margin-top: 3%;
    max-width: 500px;
    font-weight: normal;
}

img {
    max-width: 500px;
    margin-bottom: 2px;
}

p {
    margin-top: 0px;
    font-size: 0.8rem;
    align-self: flex-end;
}

h2 {
    margin-bottom: 0px;
    margin-top: 40px;
}

.intro-overlay {
    height: 100%;
    width: 100vw;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: rgb(0, 0, 0);
    overflow-y: hidden;
    transition: 0.5s;
    animation: fade-out 1s;
    animation-delay: 6s;
    animation-fill-mode: forwards;
}

.piece > p { 
    font-family: Helvetica, Arial, sans-serif;
    font-weight: bold; 
}

.overlay {
    height: 0%;
    width: 100%;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.9);
    overflow-y: hidden;
    transition: 0.5s;
}

.overlay-content {
    position: relative;
    top: 25%;
    width: 100%;
    text-align: center;
    margin-top: 30px;
}

.overlay a {
    padding: 8px;
    text-decoration: none;
    font-size: 36px;
    color: #818181;
    display: block;
    transition: 0.3s;
}

.overlay a:hover,
.overlay a:focus {
    color: #f1f1f1;
}

.overlay .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
}

@media screen and (max-height: 450px) {
    .overlay {
        overflow-y: auto;
    }

    .overlay a {
        font-size: 20px
    }

    .overlay .closebtn {
        font-size: 40px;
        top: 15px;
        right: 35px;
    }
}

/* @media (max-width: 700px) { 
    h2 span:nth-child(1) {
        font-size: 1rem; 
        text-align: center;
        width: 100%; 
        height: 2rem;
        align-self: center;
        align-items: center;
        align-content: center;
    }
    h2 span:nth-child(2) {
        font-size: 1rem;
        text-align: center;
        width: 100%;
        height: 2rem;
        align-self: center;
        align-items: center;
        align-content: center;
    }
    h2 span:nth-child(3) {
        align-self: center;
        align-items: center;
        align-content: center;
    }
} */

@media (max-width: 600px) and (orientation: portrait) {
    .piece {
        max-width: 400px;
    }

    img {
        max-width: 400px;
    }

    /* 
    .nav {
        display: block;
        text-align: left; 
    }

    .contact { 
        text-align: left; 
    } */
    .name {
        font-size: .5rem;
    }

    .contact {
        font-size: .5rem;
        margin: 0;
    }
}

@media only screen and (max-width: 500px) and (orientation: portrait) {

    .piece {
        max-width: 300px;
    }

    img {
        max-width: 300px;
    }

    .contact {
        font-size: .5rem;
    }
}

@media (max-width: 400px) and (orientation: portrait) {
    .piece {
        max-width: 250px;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.1rem;
    }

    .menu {
        width: 1.6rem;
        height: 1.6rem;
    }

    img {
        max-width: 250px;
    }
}


@media (max-width: 250px) and (orientation: portrait) {
    .piece {
        max-width: 100px;
    }

    img {
        max-width: 100px;
    }
}

@media only screen and (max-width: 800px) and (orientation: landscape) {
    .piece {
        max-width: 300px;
    }

    img {
        max-width: 300px;
    }
}




















@keyframes fade-in {
    from {
        opacity: 0%;
    }

    to {
        opacity: 100%;
    }
}

@keyframes fade-out {
    from {
        opacity: 100%;
    }

    to {
        opacity: 0%;
    }
}

@keyframes child1 {
    20% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-18px);
    }

    80% {
        transform: translateY(-18px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes child2 {
    20% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(18px);
    }

    80% {
        transform: translateY(18px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes child3 {
    20% {
        transform: translateY(-50%) scaleY(0);
    }

    50% {
        transform: translateY(-50%) scaleY(1);
    }

    80% {
        transform: translateY(-50%) scaleY(1);
    }

    100% {
        transform: translateY(-50%) scaleY(0);
    }
}

.intro-content {
    margin: 0;
    padding: 0;
    position: absolute;
    font-family: Helvetica, Arial, sans-serif;
    font-weight: bold; 
    top: 50%;
    left: 50%;
    color: white;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: transparent;
    text-transform: uppercase;
    text-align: center;
}

h2 span:nth-child(1) {
    position: absolute;
    top: 0;
    left: 0;
    color: white;
    transition: 0.5s;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
    overflow: hidden;
    animation: fade-in, child1, fade-out;
    animation-duration: 1s, 5s, 1s;
    animation-delay: 0s, 1s, 6s;
    animation-timing-function: linear, ease-in-out, linear;
    animation-fill-mode: forwards, forwards, forwards;
}

h2 span:nth-child(2) {
    position: absolute;
    top: 0;
    left: 0;
    color: white;
    transition: 0.5s;
    clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
    overflow: hidden;
    animation: fade-in, child2, fade-out;
    animation-duration: 1s, 5s, 1s;
    animation-delay: 0s, 1s, 6s;
    animation-timing-function: linear, ease-in-out, linear;
    animation-fill-mode: forwards, forwards, forwards;
}

h2 span:nth-child(3) {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%) scaleY(0);
    width: 91%;
    color: black;
    background: white;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: 0.7em;
    text-align: center;
    padding-left: 5%;
    margin-left: 2%;
    transition: 0.5s;
    animation: fade-in, child3, fade-out;
    animation-duration: 1s, 5s, 1s;
    animation-delay: 0s, 1s, 6s;
    animation-timing-function: linear, ease-in-out, linear;
    animation-fill-mode: forwards, forwards, forwards;
}

