@import url('https://fonts.googleapis.com/css?family=Karla:400,700&display=swap');

:root {
    --bgColor: #0be548;
    --bgColor2: #090a0f;
    --accentColor: #FFF;
    --font: 'Karla', sans-serif;
    --delay: .3s;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: var(--font);
    background: radial-gradient(ellipse at bottom, var(--bgColor) 0%, var(--bgColor2) 100%);
    /* background-image: url('https://bit.ly/3nFVqJh'); */
    opacity: 0;
    animation: 1s ease-out var(--delay) 1 transitionAnimation; /* duration/timing-function/delay/iterations/name */
    animation-fill-mode: forwards;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

#profilePicture {
    position: relative;
    width: min(320px, calc(100% - 40px));
    height: auto;
    display: block;
    margin: 28px auto 12px;
    -webkit-tap-highlight-color: transparent;
}

/* Estils per als enllaços d'icones */
.icon-links {
display: flex;
justify-content: center;
gap: 15px; /* Espai entre les icones */
margin-top: 0;
}

.icon-links a {
font-size: 24px; /* Mida de les icones */
color: white;
text-decoration: none;
}

.icon-links a:hover {
color: var(--bgColor);
}

/* Estils per als enllaços amb text */
.text-links {
margin-top: 20px;
text-align: center;
}

.text-links a {
display: block;
margin: 10px 0;
text-decoration: none;
color: white;
font-size: 18px;
}

#links {
    max-width: 500px;
    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;
}

.link img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.link  p {
    margin: 10px 0 0;
}

.links-dual {
    display: flex; 
    justify-content: space-between;
}

.links-dual a {
    width: 48%;
}

.separador {
    color: var(--accentColor);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 10px 12px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.separador::before,
.separador::after {
    content: '';
    height: 1px;
    flex: 1;
    background-color: currentColor;
    opacity: .65;
}

.site-footer {
    margin: -10px auto 24px;
    color: rgba(255, 255, 255, .65);
    font-size: .75rem;
    text-align: center;
}

.site-footer a {
    color: inherit;
}

.site-footer a:hover {
    color: var(--accentColor);
}

@media (hover: hover) {
    .link:hover {
        background-color: var(--accentColor);
        color: var(--bgColor);
    }
}

.link:active {
    background-color: var(--accentColor);
    color: var(--bgColor);
}

#hashtag {
    position: relative;
    padding-bottom: 20px;
    color: var(--accentColor);
    font-size: 1rem;
    display: block;
    font-family: var(--font);
    width: 100%;
    text-align: center;

    /*  animation   */
    overflow: hidden;
    background: linear-gradient(90deg, var(--bgColor), var(--accentColor), var(--bgColor));
    background-repeat: no-repeat;
    background-size: 80%;
    animation: animate 3s linear var(--delay) infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: rgba(255, 255, 255, 0);
}

/*-------------------------animations-----------------------*/
@keyframes transitionAnimation {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes animate {
    0% {
      background-position: -500%;
    }
    100% {
      background-position: 500%;
    }
}

@keyframes animStar {
    from {
        transform: translateY(0px);
    }
    to {
        transform: translateY(-2000px);
    }
}
