@import url('https://fonts.googleapis.com/css?family=Karla:400,700&display=swap');

:root {
    --bgColor: #223344;
    --bgColor2: #090a0f;
    --accentColor: #A8A8A8;
    --font: 'Karla', sans-serif;
    --delay: .3s;
}

body {
    margin: 0;	
    padding: 0;
    min-height: 100vh;
    font-family: var(--font);
    background: #000000;
    opacity: 0;
    animation: 1s ease-out var(--delay) 1 transitionAnimation; /* duration/timing-function/delay/iterations/name */
    animation-fill-mode: forwards;
}

#profilePicture, #profilePicture img {
    position: relative;
    width: 180px;
    height: 180px;
    display: block;
    margin: 35px auto 20px;
    border-radius: 50%;
    -webkit-tap-highlight-color: transparent;
}

#userName {
    color: var(--accentColor);
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.25;
    display: block;
    font-family: var(--font);
    width: 100%;
    text-align: center;
    text-decoration: none;
}

#links {
    max-width: 675px;
    width: auto;
    display: block;
    margin: 27px auto;
}

.link {
    position: relative;
    background-color: transparent;
    color: var(--accentColor);
    border: solid var(--accentColor) 2px;
    border-radius: 10px;
    font-size: 1rem;
    text-align: center;
    display: block;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 10px; /* 17px */
    text-decoration: none;
    /* transition: all .25s cubic-bezier(.08, .59, .29, .99); */
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
    .link:hover {
        background-color: var(--accentColor);
        color: var(--bgColor);
        text-shadow: 
            0 0 10px #ffffff,
            0 0 20px #ffffff,
            0 0 30px #ffffff,
            0 0 40px #ffffff,
            0 0 70px #ffffff,
            0 0 80px #ffffff,
            0 0 100px #ffffff !important;
        box-shadow: 0 0 20px var(--accentColor);
        transform: scale(1.02);
        transition: all 0.3s ease;
    }
}

.link:active {
    background-color: var(--accentColor);
    color: var(--bgColor);
}
#bankroll {
    position: relative;
    padding-bottom: 20px;
    color: transparent;
    font-size: 1rem !important;
    display: block;
    font-family: var(--font);
    width: 100%;
    text-align: center;

    background: linear-gradient(270deg, #000000, #ffffff, #000000);
    background-repeat: no-repeat;
    background-size: 80%;
    animation: animateRightToLeft 3s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
    
    filter: drop-shadow(0 0 8px white) drop-shadow(0 0 16px white);
}

@keyframes moveRightToLeft {
    0% { background-position: 500% 0; }
    100% { background-position: -500% 0; }
}

#copyright {
    position: relative;
    padding-bottom: 15px;
    color: transparent;
    font-size: 1rem !important;
    display: block;
    font-family: var(--font);
    width: 100%;
    text-align: center;

    background: linear-gradient(270deg, #000000, #FFFFFF, #000000);
    background-repeat: no-repeat;
    background-size: 80%;
    animation: animate 3s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
    
    filter: drop-shadow(0 0 8px white) drop-shadow(0 0 16px white);
}


/*-------------------------animations-----------------------*/
@keyframes transitionAnimation {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/*-------------------------animations-----------------------*/
@keyframes animateRightToLeft {
    0% {
        background-position: 500%;
    }
    100% {
        background-position: -500%;
    }
}

@keyframes animate {
    0% {
      background-position: -500%;
    }
    100% {
      background-position: 500%;
    }
}

@keyframes animStar {
    from {
        transform: translateX(0px);
    }
    to {
        transform: translateX(-2000px);
    }
}

/*----------------------- flying stars -----------------------*/
.star-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.flying-star {
    position: absolute;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    font-weight: normal;
    user-select: none;
    animation: fly linear infinite;
    text-shadow: 0 0 8px rgba(255,255,255,0.8);
    will-change: transform;
    opacity: 0;
    top: -10%; /* Стартуем чуть выше экрана */
}

@keyframes fly {
    0% {
        transform: translateY(110vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 0.9;
    }
    95% {
        opacity: 0.9;
    }
    100% {
        transform: translateY(-20vh) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background-color: #000;
}

#canvas {
  display: block;
  width: 100%;
  height: 100%;

  body.o-start & {
    cursor: none;
  }
}

#message {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  color: rgba(#fff, 0.7);
  font-family: Georgia, serif;
  font-size: 0.9rem;
  text-align: center;
  letter-spacing: 0.1em;
  pointer-events: none;
  opacity: 0;
  transition: opacity 500ms;

  body.o-start & {
    opacity: 1;
	}
}

#lastfm {
    max-width: 675px;
    margin: 20px auto;
    padding: 15px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    border: 2px solid var(--accentColor);
    color: var(--accentColor);
    font-family: var(--font);
    text-align: center;
}

#lastfm-title {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

#lastfm-content {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

#lastfm-cover {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(255,255,255,0.2);
    border: 2px solid var(--accentColor);
}

#lastfm-info {
    flex: 1;
    text-align: left;
}

#lastfm-track {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 4px;
    color: #ffffff;
}

#lastfm-artist {
    font-size: 0.9rem;
    opacity: 0.9;
    color: var(--accentColor);
}

#profilePicture img {
    border: 3px solid var(--accentColor);
    box-shadow: 0 0 20px var(--accentColor);
    transition: all 0.3s ease;
}

#profilePicture img:hover {
    border-color: #ffffff;
    box-shadow: 0 0 30px #ffffff;
}

/* Контент поверх частиц */
body > *:not(#tsparticles):not(.star-field) {
    position: relative;
    z-index: 2;
}

#tsparticles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1 !important; /* Частицы на заднем плане */
    pointer-events: none; /* Чтобы мышь "пробивала" сквозь частицы */
}

/* Звезды тоже на заднем плане */
.star-field {
    z-index: 0 !important;
}
