html,body {
    color: #d18cff;
    font-family: 'Amatic SC', sans-serif;
    font-weight: 100;
    height: 100%;
    margin: 0;
    background: radial-gradient(ellipse at bottom, #40175c 0%, #090a0f 100%);
}

/* geen interne scroll in de legacy-page zelf */
body{
    overflow: hidden;
}

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-thumb {
    background: #b723d5;
}
::-webkit-scrollbar-thumb:hover {
    background: #510b5f;
}

.star {
  position: absolute;
  animation-iteration-count: infinite;
}

.shooting {
  position: absolute;
  top: -700px;
  left: 20%;
  width: 300px;
  height: 5px;
  display: inline-block;
  transform: rotateZ(-30deg);
}

.shooting .core {
  display: inline-block;
  position: absolute;
  top: 0;
  left: 0;
  background: #ffff84;
  box-shadow: 0px 0px 3px 1px rgba(255, 245, 131, 0.5),
    0px 0px 10px 5px rgba(255, 245, 131, 0.2);
  animation: 6s linear infinite core;
}

.shooting .trail {
  display: inline-block;
  position: absolute;
  content: '';
  width: 100px;
  height: 5px; 
  border-radius: 50% 0 0 50%;
  background: linear-gradient(
    to right,
    rgba(255, 245, 174,0.7),
    rgba(255, 245, 174, 0.2) 50%,
    transparent);
  top: -1px;
  left: 0;
  animation: 6s linear infinite trail;
}

@keyframes glow {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

@keyframes core {
  0%   { left: 100%; opacity: 1; }
  5%   { left: 60%;  opacity: 0.8; }
  10%  { left: 0;    opacity: 0; }
  100% { left: 0;    opacity: 0; }
}

@keyframes trail {
  0% {
    left: 100%;
    opacity: 1;
    width: 0;
  }
  5% {
    left: 65%;
    opacity: 0.5;
    width: 150px;
  }
  10% {
    left: 0;
    opacity: 0;
    width: 150px;
  }
  100% {
    left: 0;
    opacity: 0;
    width: 150px;
  }
}

/* hoofdcontainer – content naar boven */
/* hoofdcontainer – content naar boven in het midden */
.flex {
    display: flex;
    justify-content: center;     /* horizontaal in het midden */
    align-items: flex-start;     /* bovenaan */
    width: 100vw;                /* volle breedte van het scherm */
    height: 100vh;               /* volle hoogte van het scherm */
    position: relative;
    background-color: rgba(0, 0, 0, 0.15);
    padding-top: 40px;           /* hoe hoger/lager je alles wilt */
    box-sizing: border-box;
}


/* content boven canvassen */
.content {
    text-align: center;
    margin-top: 0;
    position: relative;
    z-index: 5;                       /* hoger dan tree & grass */
}

#title {
    font-size: 80px;
}

#sub-title {
    font-size: 3vh;
    z-index: -1;
    display: inline-block;
    height: 50px;
}

.links > a {
    color: #d18cff;
    padding: 0 15px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1rem;
    text-decoration: none;
    text-transform: uppercase;
}
.links {
    color: #1e0031;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    min-height: 100%;
    margin: 0;
}

.twitter {
    margin: center;
    text-align: center;
    background-color: rgba(0, 0, 0);
}
footer {
    position: relative;
    z-index: 6; /* nog boven content */
}

.typed-cursor {
    font-size: 24px;
    opacity: 0.7;
    -webkit-animation: blink 0.7s infinite;
    -moz-animation: blink 0.7s infinite;
    animation: blink 0.7s infinite;
}
@keyframes blink {
    0%   { opacity: 1; }
    50%  { opacity: 0; }
    100% { opacity: 1; }
}
a:hover,
a:focus {
    color: #a600e2;
}

/* Avatar: transparante PNG, altijd glow, shake + zoom bij hover */
#avatar {
    background-image: url('../img/cm_white.png');
    width: 184px;
    height: 184px;
    margin: auto;
    margin-bottom: 10px;

    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    background-color: transparent;
    border-radius: 0;

    position: relative;
    transform-origin: center center;

    /* Altijd een zachte, pulserende glow */
    animation: avatarGlow 3s ease-in-out infinite;
}

/* Hover: shake + klein beetje inzoomen, glow blijft ook lopen */
#avatar:hover {
    animation: 
        avatarGlow 3s ease-in-out infinite,
        avatarShake 0.25s ease-in-out infinite;
}

/* Basis glow-loop (altijd actief) */
@keyframes avatarGlow {
    0% {
        filter: drop-shadow(0 0 4px rgba(209, 140, 255, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 16px rgba(209, 140, 255, 0.95));
    }
    100% {
        filter: drop-shadow(0 0 4px rgba(209, 140, 255, 0.4));
    }
}

/* Hover-animatie: shake + scale (licht inzoomen) */
@keyframes avatarShake {
    0% {
        transform: translateX(0) translateY(0) scale(1.03);
    }
    20% {
        transform: translateX(-2px) translateY(-1px) scale(1.05);
    }
    40% {
        transform: translateX(2px) translateY(1px) scale(1.05);
    }
    60% {
        transform: translateX(-2px) translateY(0px) scale(1.05);
    }
    80% {
        transform: translateX(2px) translateY(-1px) scale(1.05);
    }
    100% {
        transform: translateX(0) translateY(0) scale(1.03);
    }
}



/* TREE & GRASS – boom boven gras, beide onder content en aan de onderkant vast */
/* TREE & GRASS – boom boven gras, beide onder content, vast aan de viewport */
#svg {
    background-color: transparent;
    position: fixed;
    bottom: -400px;      /* <--- boom iets naar beneden duwen */
    left: 0;
    width: 100vw;
    height: 128vh;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}


#grass {
    background-color: rgba(0, 0, 0, 0);
    position: fixed;
    bottom: 0;
    left: 0;
    height: 38vh;
    width: 100vw;
    z-index: 4;      /* onder tree, of 3 als gras eroverheen moet */
    pointer-events: none;
}

/* Springende kat – achter het gras */
.meow-cat {
    position: fixed;
    bottom: -320px;                 /* start net buiten beeld */
    left: 0;                        /* X-positie wordt via JS random gezet */
    width: 280px;
    height: 280px;

    background-image: url('../img/kiocat.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    opacity: 0;
    pointer-events: none;
    z-index: 3;                     /* lager dan #grass (3), dus erachter */
}

/* animatie voor de kat */
.meow-cat.show {
    animation: meow-jump 1.6s ease-out forwards;
}

@keyframes meow-jump {
    0% {
        bottom: -320px;
        opacity: 0;
        transform: scale(0.6) rotate(-10deg);
    }
    40% {
        bottom: 40px;
        opacity: 1;
        transform: scale(1.05) rotate(5deg);
    }
    60% {
        bottom: -20px;
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    100% {
        bottom: -320px;
        opacity: 0;
        transform: scale(0.6) rotate(5deg);
    }
}


@media (max-width:600px) {

    /* Op mobiel wél mogen scrollen, anders verdwijnt de bovenkant */
    body {
        overflow: auto;
    }

    /* Container iets compacter zodat avatar + titel in beeld blijven */
    .flex {
        height: auto;
        min-height: 100vh;
        padding-top: 20px;
    }

    /* Avatar iets kleiner zodat hij niet buiten beeld valt */
    #avatar {
        width: 140px;
        height: 140px;
    }

    /* Titel kleiner op phone */
    #title {
        font-size: 48px;
    }

    /* Boom schaal en positie voor mobiel */
    #svg {
        width: 100vw;
        height: 110vh;   /* iets kleiner dan desktop */
        bottom: -180px;  /* minder diep dan -400px zodat hij mooi aansluit */
        left: 0;         /* samen met JS-offset voor stam in het midden */
    }
}



