
@font-face {
    font-family: "Courier Prime";
    src: url("../fonts/15_Courier Prime.ttf") format("truetype");
}

@font-face {
    font-family: "Minecraft";
    src: url("../fonts/16_Minecraft.ttf") format("truetype");
}

@font-face {
    font-family: "Helvetica Local";
    src: url("../fonts/18_Helvetica_Bold.ttf") format("truetype");
    font-weight: 700 900;
}

@font-face {
    font-family: "Coexist";
    src: url("../fonts/21_Coexist.ttf") format("truetype");
}

@font-face {
    font-family: "Aesymatt";
    src: url("../fonts/aesymatt.ttf") format("truetype");
}

@font-face {
    font-family: "Alagard";
    src: url("../fonts/alagard.ttf") format("truetype");
}

@font-face {
    font-family: "Coexist Alt";
    src: url("../fonts/coexist.ttf") format("truetype");
}

@font-face {
    font-family: "Comic Sans Local";
    src: url("../fonts/Comic Sans MS.ttf") format("truetype");
}

@font-face {
    font-family: "Creature";
    src: url("../fonts/CREATURE.ttf") format("truetype");
}

@font-face {
    font-family: "Excelsior";
    src: url("../fonts/excelsior.ttf") format("truetype");
}

@font-face {
    font-family: "Fraps";
    src: url("../fonts/fraps.ttf") format("truetype");
}

@font-face {
    font-family: "Impact Local";
    src: url("../fonts/impact.ttf") format("truetype");
}

@font-face {
    font-family: "M5x7";
    src: url("../fonts/m5x7.ttf") format("truetype");
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/Poppins-Regular.ttf") format("truetype");
    font-weight: 400;
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/Poppins-Bold.ttf") format("truetype");
    font-weight: 700;
}

@font-face {
    font-family: "VCR OSD Mono";
    src: url("../fonts/VCR_OSD_MONO.ttf") format("truetype");
}

@font-face {
    font-family: "W95";
    src: url("../fonts/W95F.otf") format("opentype");
}

/* General */
* {
    box-sizing: border-box;
    cursor: crosshair;
}

a,
button,
input,
select,
textarea,
[role="button"] {
    cursor: grab;
}

a:active,
button:active,
input:active,
select:active,
textarea:active,
[role="button"]:active {
    cursor: grabbing;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 30px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(30px, 6vh, 65px);
    text-align: center;
    font-size: 14px;
    background: url("../assets/street.png") center top / contain repeat;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 2vw, 20px);
    width: 100%;
    max-width: 534px;
}

header img {
    width: clamp(100px, 29vw, 208px);
    max-width: 48%;
    height: auto;
    object-fit: contain;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2.5vh, 24px);
    width: 421px;
    height: 160px;
    max-width: 100%;
}

main a {
    display: block;
    max-width: 100%;
    color: #007fff;
    font-family: "Helvetica Local", sans-serif;
    font-weight: 900;
    text-decoration: none;
    text-shadow: 0 0 4px black;
}

main a:nth-child(1) {
    font-size: clamp(32px, 7vw, 53px);
}

main a:nth-child(2) {
    font-size: clamp(18px, 4vw, 26px);
}

main a:nth-child(3) {
    font-size: clamp(13px, 2.5vw, 15px);
    font-weight: 100;
}

/* Link hover effects */
main a:nth-child(1):hover {
    color: #53a270;
    font-family: "Impact Local", sans-serif;
}

main a:nth-child(2):hover {
    color: #9c53a2;
    font-family: "Courier Prime", monospace;
}

main a:nth-child(3):hover {
    color: #5953a2;
    font-family: "Poppins", sans-serif;
}

/* Social links */
nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(10px, 2vw, 20px);
    width: 100%;
}

nav a {
    display: block;
    flex-shrink: 0;
    width: clamp(32px, 5vw, 40px);
    height: clamp(32px, 5vw, 40px);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: 0 0 3px -1px black;
}

nav a[href*="youtube"] {
    background-image: url("../assets/logo_youtube.png");
}

nav a[href*="newgrounds"] {
    background-image: url("../assets/logo_newgrounds.png");
}

nav a[href*="itch.io"] {
    background-image: url("../assets/logo_itch.png");
}

nav a[href*="twitter"] {
    background-image: url("../assets/logo_twitter.png");
}

nav a[href*="discord"] {
    background-image: url("../assets/logo_discord.png");
}

nav a[href*="ko-fi"] {
    background-image: url("../assets/logo_ko-fi.png");
}

/* Footer */
footer {
    max-width: 100%;
    color: rgba(255, 255, 255, 0.65);
    font-family: "Courier Prime", monospace;
    font-size: clamp(9px, 1.5vw, 14px);
    letter-spacing: clamp(2px, 1vw, 9px);
    text-align: center;
    overflow-wrap: break-word;
}

/* Embedded games */
.game-container {
    width: 100%;
    max-width: 800px;
    position: relative;
}

.game-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.game-square {
    aspect-ratio: 1 / 1;
}

.game-caveman {
    max-width: 640px;
    aspect-ratio: 640 / 500;
}

.game-polse {
    max-width: 720px;
    aspect-ratio: 4 / 3;
}

.page-art {
    width: clamp(100px, 29vw, 208px);
    max-width: 100%;
    height: auto;
}
@media (max-width: 480px) {
    body {
        gap: 35px;
    }
}
