@font-face {
    font-family: 'Eraser';
    src: url('EraserDust.woff2') format('woff2'),
        url('EraserDust.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --app-height: 100vh;
    --mom-yellow: #efd800;
}

body {
    font-family: "Schoolbell", cursive;
    overflow-x: hidden;
}

body.fixed {
    overflow: hidden;
}


button,
.button {
    font-size: 24px;
    color: #000;
    text-decoration: none;
    border: none;
    box-shadow: none;
    background-color: var(--mom-yellow);
    border: 2px solid #000;
    border-radius: 5px;
    padding: 10px 14px;
    cursor: pointer;
    display: block;
    border-radius: 2px;
    text-align: center;
}

button:hover,
.button:hover {
    background-color: #9d9410;
}

section.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 4308;
}

div.header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    align-items: center;
    z-index: 4308;
}

div.header>* {
    width: calc(100% / 3);
    display: flex;
    align-items: center;
}

div.header>*:nth-child(2) {
    justify-content: center;
}

div.header>*:nth-child(3) {
    justify-content: flex-end;
    display: flex;
    column-gap: 20px;
}

div.header div.buttons img {
    width: 49px;
}

div.header div.buttons img.invert {
    filter: invert(1);
}

div.header div.buttons a.muted{
    pointer-events: none;
    opacity: .4;
}

div.header img.logo {
    width: 100px;
}

div.header div.date p {
    color: #fff;
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    text-align: center;
}

section.header.scrolled div.date p {
    color: #000;
}


section.header.scrolled div.header div.buttons img.invert {
    filter: invert(0);
}

a.button.token.muted {
    position: relative;
    pointer-events: none;
    background-color: #aeaeae;
    box-shadow: none;
}

section.popup {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    background: #000;
    color: #fff;
    z-index: 4309;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    row-gap: 20px;
    padding: 20px;
    transition: opacity .3s ease;
}

section.popup.hide {
    opacity: 0;
    pointer-events: none;
}

section.popup p {
    font-size: 24px;
    text-align: center;
}

section.popup img.logo {
    width: 200px;
}

section.popup img.dragon {
    position: absolute;
    width: 360px;
    animation: dragon 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes dragon {
    0% {
        left: 100%;
        transform: rotateZ(-30deg);
        bottom: -100px;
    }

    33% {
        transform: rotateZ(30deg);
        bottom: 100px;
    }

    66% {
        transform: rotateZ(-30deg);
        bottom: -100px;
    }

    100% {
        left: -360px;
        transform: rotateZ(30deg);
        bottom: 100px;
    }
}

section.header {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 666;
}

section.hero {
    width: 100%;
    height: var(--app-height);
    position: relative;
    overflow: hidden;
}

#chalkboard {
    width: 100%;
    height: var(--app-height);
    background: url(bg-hero.png);
    touch-action: none;
}


.chalk {
    width: 40px;
    height: 50px;
    background: url(chalk.png);
    position: absolute;
    padding: 0;
    margin: 0;
    bottom: 0;
    left: 0;
    cursor: none;
    z-index: 2;
}

section.hero img.master {
    position: absolute;
    left: 10%;
    bottom: -500px;
    width: 500px;
    transition: all .5s ease;
}

body.loaded section.hero img.master {
    bottom: -100px;
}

section.hero p.qotd {
    position: absolute;
    font-family: 'Eraser';
    color: #fff;
    top: 200px;
    left: 50%;
    font-size: 48px;
    text-align: center;
    transform: translateX(0%);
    line-height: 1.1;
}

section.graduates {
    background: var(--mom-yellow);
    padding: 100px 0 40px;
}

div.graduates {
    display: flex;
    flex-wrap: wrap;
    column-gap: 60px;
    row-gap: 60px;
    justify-content: center;
}

div.graduates div.single-grad {
    width: 320px;
    position: relative;
    display: flex;
    flex-direction: column;
    row-gap: 20px;
}

div.graduates div.single-grad img {
    width: 100%;
    background: rgb(117, 0, 191);
    background: radial-gradient(circle, rgb(191, 0, 0) 31%, rgba(8, 8, 8, 1) 100%);
    aspect-ratio: 4/5;
    object-fit: cover;
    position: relative;
}

div.graduates div.single-grad::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: url(frame.png);
    background-size: contain;
    top: 3px;
    scale: 1.03;
    width: 320px;
    background-repeat: no-repeat;
}

.grad-info p {
    margin-bottom: 0;
    color: #000;
    text-align: center;
}

.grad-info p.name {
    font-size: 24px;
    margin-bottom: 10px;
}

.grad-info p.quote {
    font-size: 32px;
}

h1.heading {
    color: #000;
    text-align: center;
    margin-bottom: 60px;
    font-size: 64px;
}


.note-wrap {
    width: 235px;
    min-height: 235px;
    padding: 40px 35px 35px;
    margin: 0 22px 44px 22px;
    position: relative;
    font-size: 24px;
    vertical-align: top;
    display: inline-block;
    color: #211d17;
    line-height: 34px;
    text-align: center;
}

.note-wrap a {
    color: #6b824f;
    text-decoration: none;
    font-size: 20px;
    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    -ms-transition: all 0.4s ease;
    transition: all 0.4s ease;
}

.note-wrap a:hover {
    color: #D83A25;
}

.note-yellow {
    background-image: url(sticker-yellow.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.note-green {
    background-image: url(sticker-green.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.note-blue {
    background-image: url(sticker-blue.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.note-pink {
    background-image: url(sticker-red.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.note-yellow p,
.note-yellow span {
    -webkit-transform: rotate(2deg);
    -moz-transform: rotate(2deg);
    -o-transform: rotate(2deg);
    -ms-transform: rotate(2deg);
    transform: rotate(2deg);
}

.note-blue p,
.note-blue span {
    -webkit-transform: rotate(-2deg);
    -moz-transform: rotate(-2deg);
    -o-transform: rotate(-2deg);
    -ms-transform: rotate(-2deg);
    transform: rotate(-2deg);
}

.note-pink p,
.note-pink span {
    -webkit-transform: rotate(1deg);
    -moz-transform: rotate(1deg);
    -o-transform: rotate(1deg);
    -ms-transform: rotate(1deg);
    transform: rotate(1deg);
}

.note-green p,
.note-green span {
    -webkit-transform: rotate(-1deg);
    -moz-transform: rotate(-1deg);
    -o-transform: rotate(-1deg);
    -ms-transform: rotate(-1deg);
    transform: rotate(-1deg);
}

div.notes {
    display: flex;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    margin-top: 180px;
}

p.footer-credits {
    text-align: center;
    margin-top: 60px;
    color: #000;
}

a.bottom-arrow{
    position: absolute;
    right: 20px;
    bottom: 20px;
    background-color: var(--mom-yellow);
    width: 50px;
    height: 50px;
    display: none;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    z-index: 3;
    animation: pulse 1s ease infinite;
}

a.bottom-arrow img{
    width: 24px;
}

@keyframes pulse{
    0%, 100%{
        scale: 1;
    }

    50%{
        scale: 1.05;
    }
}

@media (max-width: 768px) {
    a.bottom-arrow{
        display: flex;
    }
    section.hero img.master, section.hero p.qotd{
        width: 250px;
        left: 50%;
        transform: translate(-50%);
    }
    section.hero p.qotd{
        top: 120px;
        font-size: 32px;
        width: 100%;
    }

    div.header div.date p{
        font-size: 20px;
    }

    div.header div.buttons img{
        width: 30px;
    }

    div.header>*:nth-child(3){
        column-gap: 10px;
    }

    div.header img.logo{
        width: 66px;
    }

    h1.heading{
        font-size: 48px;
    }

    div.notes{
        margin-top: 100px;
    }
}