@font-face {
    font-family: BadTyp;
    src: url(BadTyp\ Regular.otf);
}

@font-face {
    font-family: AppleGaramond;
    src: url(AppleGaramond.ttf);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    width: 100%;
    background-image: url(../images/9568_generated.jpg);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

main {
    background: linear-gradient(
        rgba(0, 0, 0, 0.7),
        rgba(0, 0, 0, 0.7));
    height: 100vh;
    width: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
}

main::-webkit-scrollbar {
    display: none;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    transform: translateY(10px);
    transition: 500ms ease;
    opacity: 0;
}

.container.show {
    opacity: 1;
    transform: translateY(0);
    transition: 500ms ease;
}

.text-container {
    padding: 20px;
    margin: 0 20px;
    text-align: center;
    max-width: 800px;
    background-color: rgba(238, 238, 238, 0.9);
    border-radius: 20px;
}

.text-container span {
    padding: 0 0 20px;
}

.page-title {
    display: grid;
    grid-template-areas: "stack";
    justify-content: center;
    align-items: center;
    text-align: center;
    align-self: center;
    width: 15em;
}

.page-title img {
    grid-area: stack;
    object-fit: contain;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: -1;
    transform: rotate(12deg);
}

h1, h3, h4{
    color: white;
    font-family: "BadTyp", Helvetica;
}

p, span{
    color: #333;
    font-family: "AppleGaramond";
}

h1 {
    font-size: 2em;
}

h2 {
    font-size: 1.5em;
    margin: 1em;
    grid-area: stack;
    color: #333;
    font-family: "BadTyp", Helvetica;
}

h3 {
    font-size: 1em;
}

h4 {
    font-size: 1em;
}

p, span {
    font-size: 1em;
}