:root {
    --bg-color: #fff5f8;
    --text-color: #5d4037;
    --link-color: #d81b60;
    --link-hover-color: #ad1457;
    --light-text: #8d6e63;
    --footer-bg: #ffeef4;
    --footer-text: #8d6e63;
    --border-color: #f8bbd0;
    --tag-bg: #fff;
    --separator-color: #f8bbd0;
    --header-color: #880e4f;
    --selection-bg: #f48fb1;
    --selection-text: #fff;
}

* {
    line-height: 2;
}

::selection {
    background: var(--selection-bg);
    color: var(--selection-text);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--link-color);
}

body {
    color: var(--text-color);
    background: var(--bg-color);
    height: 100vh;
    margin: 0;
    font-family: 'Cutive Mono', monospace;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    
    gap: 2rem;

    padding: 1rem;
    padding-bottom: 3rem;

    box-sizing: border-box;
    position: relative;
}

.main {
    animation: fadeIn 0.8s ease-out;
    position: relative;
    z-index: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

b, strong, h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--header-color);
    font-weight: 700;
}

a {
    color: var(--link-color);
    text-decoration: underline dotted;
}

a:hover {
    text-decoration: underline;
    color: var(--link-hover-color);
}

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    color: var(--footer-text);
    background: var(--footer-bg);
    border-top: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    text-align: center;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.05em;
    z-index: 10;
}

.light {
    color: var(--light-text);
}

.separator {
    color: var(--separator-color);
    margin: 0 0.5rem;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: default;
}

.hidden {
    display: none;
}

.no-underline {
    text-decoration: none;
}

.no-underline:hover {
    text-decoration: none;
}

.no-select {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: default;
}

.tag {
    color: var(--light-text);
    font-size: 0.8rem;
    font-weight: normal;
    padding: 2px 10px;
    border-radius: 12px;
    background: var(--tag-bg);
    border: 1px solid var(--border-color);
}

.tag:hover {
    background: var(--bg-color);
}

.icon {
    font-size: 1rem;
}

.heart {
    color: var(--link-color);
    display: inline-block;
    transition: transform 0.3s ease;
}

.heart:hover {
    transform: scale(1.2);
    cursor: default;
}

.ascii-art {
    font-family: monospace;
    line-height: 1.2;
    white-space: pre;
    text-align: center;
    display: block;
    margin-bottom: 1.5rem;
    color: var(--link-color);
    font-weight: bold;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: default;
}

.ascii-particle {
    position: fixed;
    top: -2rem;
    pointer-events: none;
    z-index: 0;
    color: var(--separator-color);
    font-weight: bold;
    user-select: none;
    will-change: transform;
    animation-name: particleFall;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

@keyframes particleFall {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(110vh) rotate(360deg);
    }
}

@media (max-width: 768px) {
    body {
        height: auto;
        padding: 1.5rem;
        padding-bottom: 2.5rem;
        font-size: 0.9rem;
        overflow: auto;
        margin-bottom: 3rem;

    }

    footer {
        position: fixed;
        bottom: 0;
        width: 100%;
        font-size: 0.5rem;
        padding: 0.5rem 1rem;
    }
}
