body, html {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #16171a;
    margin: 0;
    width: 100%;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.profile {
    margin-bottom: 20px;
}

.profile img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    opacity: 0; /* Initially hidden for fade-in effect */
    transition: opacity 2s ease-in; /* Fade-in effect */
}

.links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100vw;
    max-width: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.links a {
    padding: 15px 20px;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: block;
    opacity: 0; /* Initially hidden for fade-in effect */
    transition: opacity 2s ease-in; /* Fade-in effect */
}

body.loaded .links a {
    opacity: 1; /* Make links visible on load */
}

body.loaded .profile img {
    opacity: 1; /* Make profile image visible on load */
}

body.loaded .background {
    visibility: visible; /* Background becomes visible */
    opacity: 1; /* Fade-in over the time specified */
}

.links a:hover {
    background-color: #555;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 400%;
    background: url('images/background.png') repeat-y;
    background-size: contain;

    /* Initially hidden */
    opacity: 0; /* Invisible */
    visibility: hidden; /* Hidden from view */

    /* Delayed visibility and opacity transition */
    transition: opacity 8s ease-in, visibility 0s linear 5s; /* Visibility after 5s, opacity transitions over 8s */

    /* Background movement (delayed by 8 seconds: 5s hidden + 3s delay) */
    animation: moveBackground 300s linear infinite;
    animation-delay: 8s; /* Animation starts 8 seconds after page load */
}

/* Keyframes for background movement */
@keyframes moveBackground {
    from { background-position: 0 0; }
    to { background-position: 300% 300%; }
}

/* Content section (profile, links, etc.) */
.content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    margin-top: 20%;
}

.media {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; /* Icon container width */
    height: 40px; /* Icon container height */
    background-color: #333; /* Instagram color */ 
    color: rgb(255, 255, 255); /* Icon color */
    border-radius: 50%; /* Make it circular */
    opacity: 1;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.media:hover {
    background-color: #C13584; /* Darker Instagram color on hover */
    transform: scale(1.1); /* Slightly enlarge on hover */
}

.media i {
    font-size: 20px; /* Adjust icon size */
}


.copyright {
    font-size: 14px;
    color: #666;
    text-align: center;
    padding: 10px 0;
}
