/* Global styles */
body {
    position: relative; /* Establish positioning context */
    font-family: "Comic Sans MS", "Comic Sans", cursive; /* Using Comic Sans as the default font */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Use viewport units for height */
    min-width: 100vw; /* Use viewport units for width */
    overflow-x: hidden; /* Prevent horizontal overflow */
    overflow-y: auto; /* Enable vertical scrolling */
}

/* Blurred Background */
.background {
    position: fixed; /* Fix to viewport */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(0,255,127,1) 0%, rgba(0,200,81,1) 35%, rgba(0,126,51,1) 70%, rgba(0,50,20,1) 100%);
    background-size: cover; /* Ensure background covers entire area */
    filter: blur(8px); /* Apply blur */
    z-index: -1; /* Place behind main content */
}

/* Container styles */
.container {
    position: relative; /* Ensure it sits above the background */
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8); /* Slightly transparent background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    max-width: 400px;
    width: 100%;
    z-index: 1; /* Above the background */
}

/* Header styles */
.header {
    margin-bottom: 20px;
}

.profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 3px;
    transition: transform 0.3s ease-in-out; /* Added transition */
}

.profile-image:hover {
    transform: scale(1.1); /* Hover effect */
}

.header h1 {
    margin: 3px 0;
    font-size: 28px; /* Changed font size */
    color: #333;
}

.header p {
    color: #666;
    font-size: 14px; /* Changed font size */
}

/* Links styles */
.links .link {
    position: relative;
    display: flex;
    align-items: center; /* Align items vertically centered */
    justify-content: center; /* Center text */
    padding: 15px;
    padding-left: 50px; /* Space for the icon */
    padding-right: 50px; /* Make it equal to the left padding */
    margin: 10px 0;
    background: linear-gradient(135deg, #00c851, #007e33); /* Green gradient buttons */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.3s ease; /* Added transition */
    font-size: 20px; /* Increased text size by 25% */
    z-index: 1; /* Ensure links are above background if overlapping */
}

.links .link:hover {
    background: linear-gradient(135deg, #007e33, #00c851); /* Hover effect */
    transform: translateY(-5px); /* Hover effect */
}

.links .link img.link-icon,
.links .link svg.link-icon {
    position: absolute;
    left: 10px; /* Position icon to the left */
    width: 30px; /* Icon size */
    height: 30px; /* Icon size */
    border-radius: 3px; /* Optional: rounded corners for icons */
}

/* Make SVGs black and white */
.links .link svg.link-icon {
    filter: grayscale(100%); /* Force SVGs to be black and white */
}

/* Media Queries for responsive design */

/* Styles for screens larger than 600px */
@media (min-width: 600px) {
    .container {
        max-width: 500px;
    }

    .header h1 {
        font-size: 32px;
    }

    .links .link {
        padding: 15px; /* No change to padding */
        padding-left: 50px; /* Adjust left padding for larger screens */
        padding-right: 50px; /* Equal padding for balance */
        margin: 10px 0; /* Keep consistent */
        font-size: 20px; /* Keep text size the same for large screens */
    }

    .links .link img.link-icon,
    .links .link svg.link-icon {
        width: 30px; /* Keep icon size consistent */
        height: 30px; /* Keep icon size consistent */
    }
}

/* Styles for screens smaller than 600px */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    .header h1 {
        font-size: 24px;
    }

    .links .link {
        padding: 15px; /* Keep consistent button size */
        padding-left: 50px; /* Keep space for icons */
        padding-right: 50px; /* Equal padding for balance */
        margin: 8px 0; /* No change */
        font-size: 20px; /* Consistent text size */
    }

    .links .link img.link-icon,
    .links .link svg.link-icon {
        width: 30px; /* Keep icon size consistent */
        height: 30px; /* Keep icon size consistent */
    }
}

/* Apply different fonts for mobile browsers */
body.mobile {
    font-family: "Arial", sans-serif; /* Example of another font */
}
/* Friends Section - Panels */
.friends-header h2 {
        margin-bottom: 10px; /* Adjust spacing below "Mandatory Clicks" */
}
.friends-list {
    display: flex;
    margin-top: 1;
    flex-wrap: nowrap; /* Prevent wrapping */
    justify-content: space-between; /* Spread panels evenly */
    gap: 10px; /* Add spacing between panels */
    overflow-x: auto; /* Allow horizontal scrolling on desktop */
}

.friend-link {
    display: flex;
    flex-direction: column; /* Stack image and text */
    align-items: center; /* Center content */
    justify-content: center; /* Center content vertically */
    text-decoration: none;
    color: #333;
    font-size: 14px; /* Default font size */
    transition: transform 0.3s ease, background 0.3s ease;
    padding: 10px; /* Add padding for breathing room */
    border-radius: 8px;
    background: linear-gradient(135deg, #007e33, #00c851);
    flex: 0 0 calc(30% - 10px); /* Fixed proportion width */
    height: 150px; /* Desktop height */
    overflow: hidden; /* Prevent content overflow */
    margin-top: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.friend-link:hover {
    background: linear-gradient(135deg, #00c851, #007e33); /* Hover effect */
    transform: translateY(-5px); /* Lift effect on hover */
}

/* Image Adjustments */
.friend-image {
    width: 70%; /* Scale to fit proportionally */
    height: auto; /* Maintain aspect ratio */
    max-height: 100px; /* Constrain image height for desktop panels */
    border-radius: 50%; /* Circular image */
    margin-bottom: 5px; /* Add space below the image */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: transform 0.3s ease; /* Smooth hover animation */
    object-fit: cover; /* Ensure the image fills the container proportionally */
}

.friend-image:hover {
    transform: scale(1.1); /* Slight zoom on hover */
}

.friend-link span {
    text-align: center; /* Center align text */
    font-size: 12px; /* Default font size */
    overflow: hidden; /* Prevent overflow */
    white-space: nowrap; /* Single line of text */
    text-overflow: ellipsis; /* Add ellipsis for long text */
    margin-top: 1px;
}

/* Responsive Design for Smaller Screens */
@media (max-width: 600px) {
    .friends-list {
        justify-content: space-between; /* Spread panels evenly */
        overflow-x: hidden; /* Turn off horizontal scrolling */
    }

    .friend-link {
        flex: 0 0 calc(30% - 10px); /* Adjust width for tighter screens */
        height: 130px; /* Shorter height for mobile */
    }

    .friend-image {
        width: 70%; /* Scale to fit proportionally */
        height: auto; /* Maintain aspect ratio */
        max-height: 80px; /* Constrain image height for smaller panels */
    }

    .friend-link span {
        font-size: 11px; /* Slightly smaller text for mobile */
    }
}


