/* ================= COMIC CODE FONT ================= */
@font-face {
    font-family: 'Comic Code';
    src: url('https://www.doughmination.win/fonts/ComicCode-Regular_2022-05-24-151938_hsmz.woff2') format('woff2'),
        url('https://www.doughmination.win/fonts/ComicCode-Regular_2022-05-24-151938_hsmz.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

/* ================= THEME COLORS ================= */
:root {
    --green-dark: #0d1b0d;
    --green-medium: #145214;
    --green-light: #1e7a1e;
    --green-accent: #4cff4c;
    --text-light: #e8f5e9;
    --accent-glow: #6aff6a;
    --lavender-purple: #9b7cb6;
}

/* ================= BASE STYLES ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Code', monospace;
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-medium) 100%);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    text-align: center;
}

/* ================= LOADING SCREEN ================= */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--green-dark), var(--green-medium));
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

#loading-screen h1 {
    font-size: 2rem;
    color: var(--green-accent);
    text-shadow: 0 0 10px var(--accent-glow), 0 0 20px var(--accent-glow);
    margin-bottom: 10px;
}

.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-left-color: var(--green-accent);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ================= MAIN CONTENT ================= */
#main-content.hidden {
    display: none;
}

.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================= HEADER ================= */
header {
    padding: 20px;
    text-align: center;
    font-size: 2rem;
    color: var(--green-accent);
    text-shadow: 0 0 10px var(--accent-glow);
}

/* ================= LINK SECTION ================= */
.link-section {
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ================= LINK BUTTONS ================= */
.link-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 15px;
    min-height: 140px;
    width: 100%;
    font-size: 1.1rem;
    color: var(--text-light);
    text-decoration: none;
    background: var(--green-light);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease;
    text-align: center;
    box-shadow: 0 0 10px var(--accent-glow);
}

.link-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--green-accent);
}

/* ================= BUTTERFLY IMAGES ================= */
.butterfly-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--lavender-purple);
    box-shadow: 0 4px 15px rgba(163, 136, 238, 0.3);
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto 10px;
}

.link-button:hover .butterfly-image {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(163, 136, 238, 0.5);
    border-color: var(--accent-glow);
}

/* ================= HOVER UNDERLINE ================= */
.link-button::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--green-accent);
    transition: all 0.3s ease;
}

.link-button:hover::after {
    width: 100%;
    left: 0;
}
