/* Fonts */
@font-face {
    font-family: 'britanica-black';
    src: url('font/britanica-black.ttf');
    font-display: swap;
}

@font-face {
    font-family: 'britanica-bold';
    src: url('font/britanica-bold.ttf');
    font-display: swap;
}

@font-face {
    font-family: 'britanica-extrabold';
    src: url('font/britanica-extrabold.ttf');
    font-display: swap;
}

/* Body */
body {
    background-color: black;
    color: white;
    margin: 32px;
    font-family: "britanica-extrabold";
    overflow-x: hidden !important;
}

/* Content */
.content {
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 560px;
    width: calc(100% - 64px);
    justify-content: center;
    align-items: center;
}

.content>div {
    max-width: 765px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

/* Navbar */
header {
    display: flex;
}

header #logo {
    position: absolute;
    width: 50px;
}

.nav {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 66px;
    font-size: 22px;
    margin: 16px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Decorations */
#lamp-moth {
    opacity: 0;
    position: absolute;
    z-index: -1;
    top: 250px;
    right: calc(50% + 175px);
}

#lamp {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

#switch {
    position: absolute;
    top: calc(476px - 95px);
    left: 50%;
    transform: translateX(calc(476px / 2 + 67px));
    display: flex;
    align-items: center;
    gap: 16.4px;
    font-size: 20px;
    user-select: none;
}

#glow {
    border-radius: 1032px;
    background: linear-gradient(180deg, rgba(250, 237, 126, 0.60) 0%, #E0BE68 48.5%, rgba(224, 190, 104, 0.00) 59%);
    filter: blur(379.5px);
    width: 925px;
    height: 1032px;
    position: absolute;
    z-index: -1;
    left: 50%;
    transform: translateX(-50%);
}

/* Hero Text */
.hero {
    gap: 17.6px;
    margin-bottom: 210px;
}

#ca {
    background-color: rgb(236, 212, 114, 0.1);
    padding: 9px 20px;
    border-radius: 1000px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 16.038px;
    margin: 0 auto;
}

h1 {
    font-size: 68.2px;
    font-family: "britanica-black";
    margin: 0 0;
}

b {
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    font-family: "britanica-bold";
    font-size: 26.4px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.hero a {
    border-radius: 360px;
    border: 1.2px solid rgba(255, 255, 255, 0.25);
    background: linear-gradient(180deg, #FAED7E 0%, #E0BE68 100%);
    box-shadow: 0px 0px 150px 0px rgba(240, 128, 0, 0.50);
    color: #000;
    font-family: "britanica-extrabold";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    padding: 10px 28px;
}

.info {
    width: 100%;
    margin-bottom: 205px;

    position: relative;
}

.info h1 {
    margin-bottom: 70px;
}

/* Stats */
#stats {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.stat {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(236, 212, 114, 0.10);
    padding: 25px 45px;
    display: flex;
    justify-content: space-between;
}

.stat .value {
    background: linear-gradient(#FAED7E, #E0BE68);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#coin {
    position: absolute;
    top: 135px;
    left: calc(50% + 235px);
}

/* Memes */
.memes {
    margin-bottom: calc(55vh - 325px);
}

#meme-container {
    display: flex;
    flex-direction: row;
    gap: 62px;
    margin-top: 108px;
    height: 100%;
    align-items: center;
    position: relative;
}

#no-introducing {
    display: none;
}

#meme-display {
    width: 765px;
    height: 445px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#meme-display>* {
    object-fit: contain;
    height: 100%;
    width: 100%;
}

.arrow {
    background-color: rgba(0, 0, 0, 0.1);
    cursor: pointer;
    position: absolute;
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    border-radius: 0 3px 3px 0;
    user-select: none;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', Courier, monospace;
    transform: scaleX(0.5) scaleY(0.5);
    font-size: 30px;
    margin: 16px 0;
    padding: 0px 16px;
    height: 20px;
    height: calc(100% - 32px);
    border-radius: 100px;
    transition: 0.3s ease;
    z-index: 50;
}

.arrow:hover {
    padding: 16px;
    margin: 0 0;
    height: calc(100% - 32px);
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
    transform: scaleY(1);
    font-size: 20px;
    border-radius: 0;
}

#arrow-right {
    right: 0;
}

@media only screen and (max-width: 600px) {
    #no-introducing {
        display: initial;
    }

    #introducing {
        display: none;
    }

    body {
        margin: 32px;
    }

    .content {
        top: 350px;
    }

    .nav {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 20px;
        font-size: 16px;
        margin: 14px;
    }

    /* Decorations */

    #lamp {
        width: 50%;
    }

    #lamp-moth {
        top: 50px;
        right: calc(50% + 30px);
        scale: 0.5;
    }

    #switch {
        position: absolute;
        top: calc(320px - 95px);
        left: 0%;
        transform: translateX(calc(476px / 2));
        display: flex;
        align-items: center;
        gap: 25px;
        font-size: 20px;
        user-select: none;
        scale: 0.5;
    }

    #logo {
        display: none;
    }

    #coin {
        display: none;
    }

    #glow {
        width: 80vw;
    }

    /* Text */

    #ca {
        font-size: 60%;
    }

    h1 {
        font-size: 400%;
        font-family: "britanica-black";
        margin: 0 0;
    }

    b {
        font-size: 18px;
    }

    /* Stats */

    #stats {
        gap: 20px;
    }

    .stat {
        padding: 15px 15px;
        backdrop-filter: blur(10px);
    }

    .stat>b {
        font-size: 22px;
    }

    /* Memes */

    .memes {
        margin-bottom: 60px;
    }

    #arrow-left {
        left: 0;
    }

    #meme-container {
        display: flex;
        flex-direction: column;
    }

    #meme-display {
        height: 100%;
        width: calc(100vw - 100px);
    }

    #meme-display>* {
        height: 100%;
        width: 100%;
        object-fit: contain;
    }

    .arrow:hover {
        backdrop-filter: blur(0);
    }
}

/* Firefox-specific */
@-moz-document url-prefix() {
    #glow {
        opacity: 0.6;
    }
}
