@font-face {
    font-family: "Yuji Mai";
    src: url('/assets/yuji_mai_reduced.woff2') format('woff2');
}

@font-face {
    font-family: "Zen Kurenaido";
    src: url('/assets/zen_kurenaido.woff2') format('woff2');
}

@keyframes float {
    0%   { transform: translateY(0) rotateZ(2deg); }
    50%  { transform: translateY(-15px) rotateZ(-1deg); }
    100% { transform: translateY(0px) rotateZ(2deg); }
}


:root {
    --bombus-yellow: #f9feb6;
}

body {
    background-color: #000;
    margin: 0;
    cursor: default;
}

::selection {
    background-color: var(--bombus-yellow);
    color: black;
}

a {
    color: var(--bombus-yellow);
}

.bee_talking {
    font-family: "Zen Kurenaido", cursive;
}

.wrapper {
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    perspective: 10px;
    scroll-behavior: smooth;
}

header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    transform-style: preserve-3d;
    z-index: -1;
}

header .background {
    position: absolute;
    height: 100%;
    width: 100%;
    object-fit: cover;
    z-index: -1;
    transform: translateZ(-10px) scale(2);
}

header .flower {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 80%;
}

header .bee {
    position: absolute;
    top: 45%;
    left: 10%;
    height: 12rem;
    transform-origin: center;
    animation: float 4s ease-in-out infinite;
}

header .title {
    font-family: "Yuji Mai", serif;
    font-weight: 400;
    font-size: 8rem;
    -webkit-text-stroke: 2px var(--bombus-yellow); /* Firefox supports this :) */
    text-shadow: 0 0 8px #000;
    transform: translateZ(-5px) scale(1.5);
}

header .please_scroll {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%);
    text-decoration: none;
    cursor: pointer;
    color: white;
    text-shadow: 0 0 8px #000;
    text-align: center;
    font-size: 2rem;
    padding: .3rem;
}

@media screen and (orientation:landscape) {
    @media screen and (max-width: 1220px) {
        header .bee {
            left: 2rem;
            height: 14rem;
        }
    }
    @media screen and (max-width: 1100px) {
        header {
            justify-content: left;
        }

        header .bee {
            left: auto;
            right: 5rem;
            top: 20%;
        }
    }
    @media screen and (max-width: 899px) {
        header .title {
            writing-mode: vertical-rl;
        }
    }
}

@media screen and (orientation:portrait) {
    header {
        align-items: flex-start;
    }

    header .title {
        writing-mode: vertical-rl;
        font-size: 8rem;
    }

    header .flower {
        position: absolute;
        right: 0;
        bottom: 0;
        height: auto;
        width: 50%;
    }

    header .bee {
        top: auto;
        bottom: 4rem;
        height: auto;
        width: 40%;
    }

    header .please_scroll {
        font-size: 1.5rem;
    }
}

section {
    display: flex;
    align-items: center;
    flex-direction: column;
    font-size: 2rem;
    padding: 2rem;
    background-color: black;
    color: white;
    height: 100%;
    gap: 2rem;
}

section > div {
    font-size: 1.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

section h2 {
    font-size: 3rem;
    font-family: "Zen Kurenaido", cursive;
    text-decoration: underline 4px dotted var(--bombus-yellow);
}

h2 {
    text-align: center;
}

h3 {
    color: var(--bombus-yellow);
}

.window {
    position: relative;
    display: flex;
    max-width: 30rem;
    width: 100%;
    height: 100rem;
    max-height: 90vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgb(254, 227, 227);
    box-shadow: 4px 4px 0px #9d6262;
    border-radius: 5px;
}

.window .titlebar {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - .6rem);
    padding: .3rem;
    gap: .3rem;
    background-color: lightcoral;
    border-radius: 5px 5px 0px 0px;
}

.window .titlebar .icon {
    display: block;
    content: '';
    height: 1.6rem;
    width: 1.6rem;
    background-image: url('/favicon.ico');
    background-size: cover;
}

.window .titlebar .close {
    position: absolute;
    top: 0;
    right: .6rem;
    color: rgb(254, 227, 227);
    cursor: pointer;
}

.window .titlebar h2 {
    font-weight: normal;
    font-size: 1.5rem;
    margin: 0;
    text-decoration: none;
}

.window .content {
    color: #000;
    margin-top: 3rem;
    margin-bottom: 2rem;
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.window .btn {
    display: flex;
    padding: .3rem;
    color: #000;
    background-color: rgb(255, 193, 193);
    box-shadow: 4px 4px 0px #9d6262;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
}

.window nav {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    min-width: 18rem;
}

.window .content .bee-container {
    width: 80%;
}

article {
    font-size: 1.5rem;
    width: 95vw;
    max-width: 40rem;
}

.get_stamps {
    display: flex;
    flex-direction: row;
    gap: .4rem;
    width: 100%;
    max-width: 40rem;
}

@media screen and (max-width: 599px) {
    .get_stamps {
        flex-direction: column;
    }
}

.stamp_btn {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: white;
    width: 100%;
    aspect-ratio: 20/8;
    border-radius: 10px;
    background-color: #40bf75 /*#06c755*/;
    position: relative;
    overflow: hidden;
}

.stamp_btn.signal {
    background-color: #4046bf /*#3b45fd*/;
}

.stamp_btn .stamp_bee, .stamp_btn .stamp_hana {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 60%;
}

@keyframes slideIn {
    0% { transform: translateY(100%); }
    100% { transform: translateY(0); }
}

@keyframes slideOut {
    0% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

@keyframes stayIn {
    0% { transform: translateY(0); }
    50% { transform: translateY(2%); }
    100% { transform: translateY(0); }
}

.stamp_btn .stamp_hana {
    animation: slideOut .3s ease-in-out;
    transform: translateY(100%);
}

.stamp_btn:hover .stamp_hana {
    animation: slideIn .3s ease-in-out, stayIn 2s ease-in-out infinite .3s /* animation delay */;
}

.stamp_btn:hover .stamp_bee {
    animation: stayIn 3s ease-in-out infinite;
}

@media (hover: none) {
    .stamp_btn .stamp_hana {
        animation: stayIn 2s ease-in-out infinite;
        transform: translateY(0);
    }

    .stamp_btn .stamp_bee {
        animation: stayIn 3s ease-in-out infinite;
    }
}

.stamp_btn span {
    display: block;
    z-index: 2;
    text-shadow: 0 0 6px #000;
    transform: translateY(-35%);
}

.back_to_top_btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    background-color: var(--bombus-yellow);
    box-shadow: 0px 0px 6px #000;
    color: black;
    cursor: pointer;
    padding: 15px;
    border-radius: 10px;
    font-size: 18px;
}