@font-face {
    font-family: 'CustomFont';
    src: url('logo_font.otf') format('truetype');
}

@font-face {
    font-family: 'BodyFont';
    src: url('body_font.ttf') format('truetype');
}

@font-face {
    font-family: 'HeaderFont';
    src: url('header_font.ttf') format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #fff;
    background-image: url('water.gif');
    background-repeat: repeat;
    background-attachment: fixed;
    background-size: 4%;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    font-family: 'BodyFont', Arial, sans-serif;
    font-size: 32px;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
}

#text {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    font-family: 'CustomFont', Arial, sans-serif;
    font-size: 32px;
    color: #000;
    z-index: 10;
    -webkit-text-stroke: 0.2px #fff;
    text-shadow: -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 2px 2px 0 #fff;
    pointer-events: none;
    letter-spacing: 4px;
    text-align: center;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    font-weight: normal;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
}

.char {
    display: inline-block;
    animation: bounce 1s ease-in-out infinite;
    min-width: 0.5em;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.nav-sidebar {
    position: fixed;
    top: 75px;
    left: 0;
    width: 100%;
    z-index: 100;
}

.nav-links {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
}

.nav-links button {
    background: #000;
    color: #fff;
    border: 2px solid #fff;
    font-family: 'BodyFont', Arial, sans-serif;
    font-size: 32px;
    text-transform: uppercase;
    cursor: pointer;
    padding: 5px 11px;
    transition: all 0.05s;
}

.nav-links button:hover {
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), #000;
}

.nav-links button:active {
    transform: scale(0.95);
}

.content {
    margin-top: 120px;
    padding: 40px;
    display: flex;
    justify-content: center;
    overflow: visible;
    position: relative;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.page-box {
    background: #fff;
    border: 3px solid #000;
    padding: 30px;
    min-width: 900px;
    min-height: 650px;
    text-align: center;
    font-weight: normal;
}

.page-box h3 {
    font-family: 'HeaderFont', Arial, sans-serif;
    font-size:36px;
    letter-spacing: 5px;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
}

.draw-controls {
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.draw-controls label {
    display: flex;
    gap: 8px;
    align-items: center;
}

.draw-controls input[type="color"],
.draw-controls input[type="range"] {
    cursor: pointer;
}

.draw-controls button {
    background: #000;
    color: #fff;
    border: 2px solid #fff;
    font-family: 'BodyFont', Arial, sans-serif;
    font-size: 26px;
    cursor: pointer;
    padding: 6px 12px;
    transition: all 0.05s;
}

.draw-controls button:hover {
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), #000;
}

.draw-controls button:active {
    transform: scale(0.95);
}

canvas {
    border: 1px solid #000;
    display: block;
    background: #fff;
    margin: 0 auto;
}

.footer-gif {
    position: fixed;
    bottom: 5px;
    right: -30px;
    z-index: 5;
}

.footer-gif img {
    max-width: 300px;
    height: auto;
    transform: scaleX(-1);
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.footer-links {
    position: fixed;
    bottom: 10px;
    left: 23px;
    z-index: 5;
    display: flex;
    gap: 15px;
}

.footer-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    padding: 0;
    transition: all 0.05s;
    text-decoration: none;
}

.footer-links a:hover {
    transform: scale(1.1);
}

.footer-links a:active {
    transform: scale(0.95);
}

.footer-links a svg {
    width: 64px;
    height: 64px;
    color: #000;
}