/* 
Hi 🎐
If you're reading this, it means you opened the source code of my little project.
                            ╱|、
                          (˚ˎ 。7  
                           |、˜〵          
                          じしˍ,)ノ
						
This is a personal project that compiles my social media links so I no longer have to rely on third-party platforms. It also includes a fan-made Tamagotchi guide, written in Spanish and created with lots of love♡ (and I hope there will be many more in the future).

All the Tamagotchi resources were taken from the Tamagotchi Wiki &  Neomametchi forum, for the main page I was partly inspired by Yokiie's website.

You are welcome to:
• learn from it
• take inspiration
• experiment with your own ideas

But if you reuse parts of it, please credit this website ⸜(｡˃ ᵕ ˂ )⸝♡

— Ema
emanon.vip
⠀⠀⠀⠀⠀⢀⣠⣤⣤⣄⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⢠⣿⡟⠉⠉⠉⠛⠻⢷⣶⣄⣀⣀⣠⣤⣤⣀⣀⣀⣀⡀⠀⠀⢀⣠⣤⣶⡿⠿⠿⢿⣦⠀⠀⠀⠀⠀
⠀⠀⠀⠀⢸⣿⠀⠀⠀⠀⠀⠀⠀⠈⠻⡛⠉⠏⢩⠃⡏⠋⢹⠛⠻⠿⣿⠿⠋⠁⠀⠀⠀⠀⠀⢿⡇⠀⠀⠀⠀
⠀⠀⠀⠀⢸⣿⠀⠀⠀⠀⠀⠀⠀⠀⢠⡇⡆⠀⢸⢰⡄⢸⠀⡆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⡇⠀⠀⠀⠀
⠀⠀⠀⠀⠘⣿⠆⠀⠀⠀⠀⠀⠀⠀⠀⠉⠁⠀⠀⠉⠀⠈⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣤⣤⣄⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢰⡿⠋⠀⠀⠀⠀⠀
⠘⠿⣷⣦⡄⠀⢀⣾⡿⠉⠈⠉⢻⣿⣷⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣤⣶⣶⣶⣶⣤⣀⠀⠀⠀⠀⣠⣴⣶⠀
⠀⠀⠀⠈⠁⠀⢸⣿⠀⠀⠀⠀⢠⣿⣿⣷⡄⠀⠀⠀⠀⠀⠀⢠⣾⡿⠁⠀⠀⠀⠘⣿⣿⣆⠀⢶⡿⠋⠁⠀⠀
⠿⠿⣷⣶⡄⠀⢸⣿⣷⣦⣴⣾⣿⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⣿⣿⡄⠀⠀⢀⣠⣼⣿⣿⣿⠀⠀⠀⠀⢀⡀⠀
⠀⠀⠀⠀⠀⣀⠬⢿⣿⣿⣿⣿⣿⡿⢿⣿⣿⠂⠀⠀⠀⠀⢰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠇⠀⠘⠛⠛⠛⠛⠃
⠀⠀⠀⠀⠀⠓⠲⣾⣏⠛⢿⣿⣿⣷⣾⠟⠁⠀⠀⠀⠀⠀⠘⢿⣿⣿⣿⣧⣼⣿⣿⣟⠁⠓⣆⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠈⠛⠿⣶⣤⣄⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠉⠉⣋⣩⣶⡿⠟⠉⠉⠁⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⣿⣿⠻⠻⢷⣦⣀⣤⣶⣶⣶⣶⣾⠿⠟⠛⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⣿⡇⠀⠀⢩⠟⠉⠁⢠⣾⡿⠟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⣿⣤⣾⠿⠿⣷⣤⣿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠉⠉⠀⠀⠉⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
*/

:root {
    --bg-gradient: linear-gradient(135deg, #EAF6FF 0%, #DFF3FF 25%, #E8E4FF 50%, #DFFFEF 75%, #F2F9FF 100%);

    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(220, 240, 255, 0.8);
    --glass-shadow: 0 8px 32px 0 rgba(180, 210, 255, 0.25);

    --text-dark: #4A5A6A;
    --text-muted: #7A8A9A;

    --primary-color: #a7cbe6;
    --secondary-color: #C7F5E7;
    --accent-color: #D6CCFF;

    --hover-color: #9FD4FF;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-gradient);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ── Base Components ── */
.app-container {
    width: 100%;
    max-width: 1200px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    box-shadow: var(--glass-shadow);
    padding: 2rem;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* ── Header ── */
.app-header {
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 2rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 15px;
}

.title-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 50px;
}

.controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.lang-toggle-container {
    display: flex;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 26px;
    font-family: inherit;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge {
    background: white;
    color: var(--primary-color);
    font-size: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.back-btn {
    background: white;
    color: var(--text-dark);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    background: var(--primary-color);
    color: white;
}

.hidden {
    display: none !important;
}

/* ── Views ── */
.view-section {
    flex: 1;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Selection Screen ── */
.selection-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.selection-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.selection-intro p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.tree-selection-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* ── Base Branch Indicator ── */
.base-branch {
    position: relative;
    padding-bottom: 2rem;
}

.base-branch::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 2rem;
    background: var(--text-muted);
    opacity: 0.3;
}

.specialized-branches {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    position: relative;
}

.specialized-branches::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--text-muted);
    opacity: 0.3;
}

.kid-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid white;
    border-radius: 20px;
    padding: 1.5rem;
    width: 220px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.base-kid {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--primary-color);
    cursor: default;
}

.kid-card:not(.base-kid):hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 123, 156, 0.2);
    background: white;
}

.kid-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: var(--transition);
}

.kid-card:not(.base-kid):hover .kid-img {
    transform: scale(1.1) rotate(-5deg);
}

.kid-name {
    font-size: 1.2rem;
    font-weight: 700;
}

.base-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── Guide ── */
.guide-header {
    text-align: center;
    margin-bottom: 3rem;
}

.selected-kid-info {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}

.kid-img-large {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

#guide-kid-name {
    font-size: 2rem;
    color: var(--primary-color);
}

/* ── Evolutions ── */
.evolutions-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.evo-branch {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.course {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.evo-step {
    flex: 1 1 200px;
    text-align: center;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
    position: relative;
}

.evo-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.evo-step img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

/* ── Meals ── */
.meal-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--primary-color);
    font-weight: 700;
}

.meal-images-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.main-meal-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.meal-cell-img {
    position: absolute;
    bottom: -5px;
    right: -15px;
    width: 25px !important;
    height: 25px !important;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
}

.young-cell-img {
    position: absolute;
    bottom: 60px;
    right: 50px;
    width: 25px !important;
    height: 25px !important;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
    animation: bounceSlow 3s infinite ease-in-out;
}

@keyframes bounceSlow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.cell-info-text {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
    font-style: italic;
    display: block;
    margin-bottom: 15px;
    line-height: 1.3;
}

.arrow {
    font-size: 2rem;
    color: rgba(0, 0, 0, 0.1);
}

/* ── Adults ── */
.adults-grid {
    flex: 3;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.adult-card {
    background: white;
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.adult-card:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.adult-card img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.adult-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* ── Requirements Icons ── */
.reqs {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.req-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.3rem 0.6rem;
    border-radius: 10px;
}

.stat-icon {
    width: 14px !important;
    height: 14px !important;
    object-fit: contain;
    margin-bottom: 0 !important;
}

.inline-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
    margin: 0 4px;
}

.req-mistakes {
    background: #FFE5E5;
    color: #D84343;
}

.req-ideal {
    background: #FFF5CC;
    color: #D4A000;
}

@media (max-width: 900px) {
    .specialized-branches::before {
        display: none;
    }

    .course {
        flex-direction: column;
        align-items: stretch;
    }

    .arrow {
        transform: rotate(90deg);
        margin: 0 auto;
    }

    .adults-grid {
        grid-template-columns: 1fr;
    }

    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .young-cell-img {
        bottom: 100px;
        right: 30px;
    }
}

/* ── Footer ── */
.app-footer {
    width: 100%;
    max-width: 1200px;
    margin-top: 2rem;
    padding: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 12px;
}

.footer-left {
    position: absolute;
    left: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-right {
    position: absolute;
    right: 0;
    display: flex;
    gap: 8px;
    opacity: 0.9;
}

.footer-logo {
    height: 22px;
}

.footer-center {
    font-style: italic;
    opacity: 0.8;
}

.separator {
    opacity: 0.5;
}

.footer-source {
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.8;
    letter-spacing: 0.03em;
    margin-bottom: 0;
}

.footer-source::before {
    content: "✧ ";
}

.footer-source::after {
    content: " ✧";
}

.footer-source a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-source a:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

.no-link-style {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.no-link-style:hover {
    opacity: 0.7;
}


@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        position: static;
    }
}
