html {
    font-family:'PT Serif', Times, serif;
    background-color: var(--color-bg);
}

/* Title */
#title {
    position: absolute;
    z-index: 10000;
    top: 5rem;
    left: 0;
    width: 100%;
    height: 6.25rem;
    background-color: transparent;
    overflow-x: hidden;

    display: flex;
    justify-content: center;
    align-items: center;
}

/* Main */
main {
    position: absolute;
    inset: 5rem 0 0;
    color: var(--color-beige);
    font-size: 1.2rem;
    text-align: center;

    overflow: hidden;

    display: flex;
    justify-content: center;
}
main > div {
    position: relative;
    width: 794px;
    max-width: 90%;
    border: 3px solid var(--color-beige);
    border-bottom: none;
}
main > div > .title-space {
    height: 6.25rem;
}

/* Zye Presents */
main > div > small {
    position: absolute;
    left: 0.125rem;
    font-family: 'Asap Condensed', sans-serif;
    margin-top: -1.125rem;
}

/* Flavor text */
.flavor-text {
    height: 40px;
    background-color: var(--color-beige);
    font-size: 20px;
    line-height: 40px;
    font-weight: bold;
    font-style: italic;
    text-align: center;
    white-space: pre;
    color: var(--color-bg);
}

/* Links */
a { text-decoration: none; }
/* Usual */
.exam-container a {
    display: block;
    margin: 1rem 1rem 3rem;
    border: none;
    padding: 0.25rem;

    font-size: 3rem;
    font-family: 'PT Serif', Times, serif;
    font-weight: bold;
    text-align: center;
    color: var(--color-beige);
    background-color: var(--color-black);

    transition: transform 0.2s;
}

.exam-container a:hover {
    background-color: var(--color-bg);
    transform: scale(1.1);
}

/* Small screen */
.small-screen-link {
    display: none;
    margin: 1.5rem 3rem 0;
    border: 1px solid var(--color-beige);
    border-radius: 25px;
    padding: 0;
    box-shadow: var(--color-black) 4px 4px 3px;

    font-size: 2rem;
    font-family: 'Catamaran', sans-serif;
    font-weight: bold;
    text-align: center;
    color: var(--color-bg);
    background-color: var(--color-beige);
}


/* Example Exam */
.exam-container {
    position: relative;
}
.exam-container2 {
    position: absolute;
    left: 50%;
    background-color: transparent;
    text-align: left;
    transform: translate(-50%, -90px) scale(0.75) skew(2deg, 358deg);
}
.exam-page {
    position: absolute;
    width: 794px;
    min-height: 1123px;
    box-shadow: var(--color-shadow) 6px 6px 10px;
    background-color: var(--color-beige);
}
.exam-page:nth-of-type(1) {
    transform: rotate(-2deg) translate(-0.3%, 2%);
    opacity: 0.6;
}
.exam-page:nth-of-type(2) {
    transform: rotate(5deg) translate(-0.2%, 0%);
    opacity: 0.7;
}
.exam-page:nth-of-type(3) {
    transform: rotate(2deg) translate(0.3%, -0.5%);
    opacity: 0.8;
}
.exam section {
    min-height: 1123px;
    margin: 0;
    padding-bottom: 0;
    grid-template-rows: minmax(48px, auto) 1fr;
    background-color: var(--color-beige);
}

/* Gradient */
main::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 20%;
    background: linear-gradient(180deg, transparent 0%, var(--color-bg) 80%);
}

/* Responsive */
@media only screen and (max-height: 600px) {
    main::after {
        height: 15%;
        background: linear-gradient(180deg, transparent 0%, var(--color-bg) 90%);
    }
    main, #title { top: 0; }
    main > div { border-top: none; }
}

@media only screen and (max-width: 720px) {
    /* main::after { height: 0; } */
    main, #title { top: 0; }
    main > div { max-width: 100%; border: none; }
    main > div > small { display: none; }

    .small-screen-link { display: block; }
    .exam-container a { display: none; }
    .exam-container2 { transform: translate(-50%, 2rem) scale(0.9) skew(2deg, 358deg); }
}

@media only screen and (max-width: 480px) {
    .exam-container2 { transform: translate(-50%, -5rem) scale(0.75) skew(2deg, 358deg); }
    .small-screen-link { margin: 1.5rem 1.5rem 0; }
}