@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,700;1,400&display=swap');
body {
    font-family: 'JetBrains Mono', monospace;
    margin: 0;
    padding: 60px 24px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    background: #dfe4ec;
    color: #000000;
    line-height: 1.8;
}

.main-header {
    text-align: center;
    margin-bottom: 80px;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.nav-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

h1 {
    font-size: 28px;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: -1px;
    border-bottom: 2px solid #000;
    display: inline-block;
}

h1:first-of-type {
    margin-top: 0;
}

p {
    margin-bottom: 16px;
    color: #222222;
}

i {
    display: block;
    padding: 20px;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.5);
    border-left: 4px solid #000;
    font-style: italic;
    color: #333;
}

#backToTop {
    display: none;
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 99;
    border: 1px solid #000;
    outline: none;
    background-color: white;
    color: black;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 4px 4px 0px #000;
}

#backToTop:hover {
    background-color: #000;
    color: #fff;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #333;
}

@media (max-width: 600px) {
    body {
        padding: 40px 20px;
    }
    #backToTop {
        bottom: 20px;
        right: 20px;
    }
}

h2 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 12px;
    color: #000;
    display: flex;
    align-items: center;
}

h3 {
    font-size: 18px;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 10px;
    background: #000;
    color: #fff;
    display: inline-block;
    padding: 2px 10px;
    text-transform: lowercase;
}

.footer-container {
    margin-top: 100px;
    padding-bottom: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
}

.playing {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #555;
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin: 20px auto;
    border: 1px solid #000;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.1);
    background: #fff;
    padding: 15px 25px;
    font-weight: 700;
}

.playing span.pulse {
    color: #8b5cf6;
    margin-right: 8px;
    font-size: 10px;
}

.footer-container {
    animation: fadeIn 2s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.image-container {
    max-width: 500px;
    margin: 0 auto 60px auto;
    padding: 0;
}

.main-image {
    display: block;
    width: 100%;
    height: auto;
    border: 2px solid #000;
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.15);
}

figcaption {
    margin-top: 15px;
    font-size: 12px;
    color: #444;
    text-align: left;
    font-weight: 400;
    line-height: 1.6;
    border-left: 3px solid #000;
    padding-left: 12px;
    text-transform: none;
    letter-spacing: 0.5px;
}

#turtle-container {
    position: fixed;
    z-index: 9999;
    pointer-events: auto;
    cursor: pointer;
    left: 50%;
    top: 50%;
    transition: left 12s linear, top 12s linear, transform 4s ease-in-out;
    transform-origin: center;
    opacity: 0.8;
}

.turtle-message {
    position: fixed;
    background: white;
    color: black;
    border: 2px solid #000;
    padding: 8px 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    z-index: 10000;
    pointer-events: none;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2);
    animation: bubbleFade 3s forwards;
}

@keyframes bubbleFade {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    10% {
        opacity: 1;
        transform: translateY(0);
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.foot {
    transform-origin: center;
    animation: crawl 2s infinite ease-in-out;
}

.fl,
.br {
    animation-delay: 0s;
}

.fr,
.bl {
    animation-delay: 1s;
}

@keyframes crawl {
    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.1) translateY(-3px) rotate(5deg);
    }
}

.turtle-head {
    animation: peek 4s infinite ease-in-out;
}