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

:root {
    --accentColor: #FFF;
    --font: 'Karla', sans-serif;
    --delay: .3s;

    --unicornLightPink: #FFC0CB;
    --unicornDarkPink: #FF69B4;

    /* Re-purposing original dark colors for link hover background/text contrast */
    --bgColor: var(--unicornDarkPink);
    --bgColor2: #090a0f;
    
    /* New variable for button background color, slightly darker pink for contrast */
    --buttonBgColor: #E0A0B0; /* A muted pink for the button background */
    --buttonHoverBgColor: #FFF; /* White on hover */
    --buttonTextColor: var(--unicornDarkPink); /* Dark pink for text on hover */
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: var(--font);

    background-color: var(--unicornDarkPink); /* Fallback */
    background-image: linear-gradient(to bottom, var(--unicornLightPink) 0%, var(--unicornDarkPink) 100%),
                      url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><defs><pattern id="unicornPattern" width="100" height="100" patternUnits="userSpaceOnUse"><path fill="%23FFFFFF" d="M 50 0 L 60 40 L 100 50 L 60 60 L 50 100 L 40 60 L 0 50 L 40 40 Z" opacity="0.1"/><text x="10" y="80" font-family="Arial" font-size="20" fill="%23FFFFFF" opacity="0.3">🦄</text></pattern></defs><rect x="0" y="0" width="100" height="100" fill="url(%23unicornPattern)"/></svg>');

    background-repeat: repeat;
    background-size: auto, 150px 150px; /* Adjusted unicorn pattern size for more density */
    background-attachment: fixed; /* Ensures unicorns scroll with the background */

    opacity: 0;
    animation: 1s ease-out var(--delay) 1 transitionAnimation;
    animation-fill-mode: forwards;
    position: relative;
}

#profilePicture, #profilePicture img {
    position: relative;
    width: 96px;
    height: 96px;
    display: block;
    margin: 40px 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: var(--buttonBgColor); /* Solid background color for buttons */
    color: var(--accentColor);
    border: none; /* No border for buttons now */
    border-radius: 10px;
    font-size: 1rem;
    text-align: left; /* Align text to left for icon spacing */
    display: flex; /* Use flexbox for icon and text alignment */
    align-items: center; /* Center items vertically */
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 10px;
    text-decoration: none;
    transition: all .25s cubic-bezier(.08, .59, .29, .99);
    -webkit-tap-highlight-color: transparent;
    overflow: hidden; /* Hide overflow for pseudo-element */
}

/* Pseudo-element for the icon overlay in the background */
.link i {
    position: relative;
    z-index: 2; /* Ensure icon is above the pseudo-element background */
    font-size: 1.5rem; /* Adjust icon size */
    margin-right: 15px; /* Space between icon and text */
    /* No change to color, it will be white initially */
}

.link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly lighter overlay */
    border-radius: 10px;
    opacity: 0; /* Hidden by default */
    transition: opacity .25s cubic-bezier(.08, .59, .29, .99);
    z-index: 1; /* Behind the icon and text */
}

@media (hover: hover) {
    .link:hover {
        background-color: var(--buttonHoverBgColor); /* White on hover */
        color: var(--buttonTextColor); /* Dark pink text on hover */
        transform: translateY(-2px); /* Slight lift effect */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    }
    .link:hover i {
        color: var(--buttonTextColor); /* Dark pink icon on hover */
    }
    .link:hover::before {
        opacity: 1; /* Show the overlay on hover */
    }
}

.link:active {
    background-color: var(--buttonHoverBgColor);
    color: var(--buttonTextColor);
    transform: translateY(0); /* Reset lift on active */
    box-shadow: none;
}
.link:active i {
    color: var(--buttonTextColor);
}


#hashtag {
    position: relative;
    padding-bottom: 20px;
    color: var(--accentColor);
    font-size: 1.2rem; /* Slightly larger for emphasis */
    font-weight: 900; /* Made bolder */
    line-height: 1.25;
    display: block;
    font-family: var(--font);
    width: 100%;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(90deg, var(--unicornDarkPink), var(--accentColor), var(--unicornDarkPink));
    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%;
    }
}


/*-------------------------popup------------------------*/
.overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2;
    visibility: hidden;
    opacity: 0;
    overflow: hidden;
    transition: .5s ease-in-out;
}

.popup {
    position: relative;
    top: -43%;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 400px;
    width: auto;
    height: auto;
    margin: 56px;
    background-color: var(--unicornDarkPink);
    transform: scale(0);
    transition: .5s ease-in-out;
}

.popup-quote {
    font-family : Baskerville, Georgia, serif;
    font-style : italic;
    position: flex;
    color: var(--accentColor);
    padding: 20px;
    text-align: center;
    font-size: 1rem;
}

.popup-photo {
    display: flex;
    width: 100%;
    height: 100%;
}

.popup-photo img {
    width: 100%;
    height: 100%;
}

.overlay:target {
    visibility: visible;
    opacity: 1;
}

.overlay:target .popup {
    transform: scale(1);
    top: 0;
}

.popup-close {
    position: absolute;
    right: -1rem;
    top: -1rem;
    width: 3rem;
    height: 3rem;
    font-size: 1.7rem;
    font-weight: 400;
    border-radius: 100%;
    background-color: var(--unicornDarkPink);
    z-index: 4;
    color: var(--accentColor);
    line-height: 2.7rem;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
    .popup-close:hover {
        background-color: var(--accentColor);
        color: var(--unicornDarkPink);
    }
}

.popup-close:active {
    background-color: var(--accentColor);
    color: var(--unicornDarkPink);
}


/*-----------------------parallax-----------------------*/
/* This section is completely removed from the CSS as well now */
.animated-background {
    display: none;
}