body {
    font-family: Arial, sans-serif;
    background-color: #ff6f61; /* Pink salmon background */
    margin: 0;
    padding: 20px;
}
.footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

.footer span {
    display: inline-block;
}
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    border-radius: 5px;
    padding: 20px;
}

.profile-header {
    background-color: #ff6f61; /* Pink salmon header */
    color: white;
    padding: 10px;
    margin-bottom: 20px;
}

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

.profile-header nav {
    margin-top: 10px;
}

.profile-header a {
    color: white;
    text-decoration: none;
}

.profile-main {
    display: flex;
    gap: 20px;
    padding: 15px;
    box-sizing: border-box;
    width: 100%;
    flex-wrap: wrap;
}

.profile-left {
    width: 30%;
    min-width: 250px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.profile-right {
    width: 65%;
    min-width: 300px;
    box-sizing: border-box;
    flex: 1;
}

@media screen and (max-width: 768px) {
    .profile-main {
        flex-direction: column;
        gap: 15px;
        padding: 10px;
    }
    
    .profile-left,
    .profile-right {
        width: 100%;
        min-width: auto;
    }
}

.profile-pic {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 8px;
    background: #FFF;
    border: 1px solid #C1C1C1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

}

.profile-pic img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border: 1px solid #666;
    padding: 4px;
    background: white;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
    display: block;
    margin: 0 auto;
    align-items: center;
}

.profile-pic::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 1px solid #E5E5E5;
    z-index: -1;
}

.profile-pic::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px solid #D5D5D5;
    z-index: -2;
}

@media screen and (max-width: 768px) {
    .profile-pic {
        max-width: 300px;
    }
    .profile-pic img {
        max-width: 250px;
    }
}
.contact-box {
    background: #ffe5e0; /* Light salmon background */
    border: 2px solid #ff6f61; /* Pink salmon border */
    border-radius: 10px;
    padding: 10px;
    margin-top: 15px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-box h3 {
    margin-bottom: 10px; /* Ensure spacing below the heading */
    font-size: 1.3rem; /* Responsive font size */
    color: #ff6f61; /* Pink salmon color */
    line-height: 1.5; /* Add proper spacing between lines if text wraps */
    word-wrap: break-word; /* Prevent long text from causing layout issues */
    text-align: center; /* Center-align the heading */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .contact-box h3 {
        font-size: 1.2rem; /* Slightly smaller size for mobile screens */
        line-height: 1.4; /* Adjust line spacing for better readability */
        margin-bottom: 15px; /* Increase spacing below the heading */
    }
}

.contact-box p {
    margin: 5px 0;
    font-size: 14px;
    color: #333;
    word-wrap: break-word;
}

.contact-box a {
    color: #ff6f61;
    text-decoration: none;
}

.contact-box a:hover {
    text-decoration: underline;
}

.profile-details {
    position: relative;
    width: calc(100% - 20px); /* Account for padding */
    margin: 15px 0;
    padding: 15px;
    background: linear-gradient(to bottom, #ffffff, #f5f5f5);
    border: 1px solid #C1C1C1;
    display: flex;
    flex-direction: column;
    flex: 1;
    box-sizing: border-box;
    gap: 8px;
    overflow: hidden;
}

.profile-details p {
    margin: 10px 0;
    padding: 12px;
    background: #fff6f5;
    border: 1px solid #ff6f61;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-details p strong {
    font-size: 16px;
    color: #ff6f61;
    margin-right: 8px;
    text-shadow: none;
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

@media screen and (max-width: 768px) {
    .profile-details {
        padding: 10px;
        width: calc(100% - 10px);
    }
    .profile-details p {
        font-size: 13px;
        padding: 10px;
        margin: 8px 0;
    }
    .profile-details p strong {
        font-size: 14px;
        margin-bottom: 4px;
    }
}

.profile-details::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 1px solid #E5E5E5;
    z-index: -1;
}

.profile-details::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px solid #D5D5D5;
    z-index: -2;
}

.friends-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Default 4 columns for desktop */
    grid-auto-rows: 180px;
    gap: 15px;
    margin-top: 10px;
    padding: 10px;
}

.friends-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #C1C1C1;
    padding: 3px;
    background: white;
}

/* Tablet screens */
@media screen and (max-width: 1024px) {
    .friends-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile screens */
@media screen and (max-width: 768px) {
    .friends-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
        gap: 10px;
    }
}

/* Small mobile screens */
@media screen and (max-width: 480px) {
    .friends-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 130px;
        gap: 8px;
    }
}
/* Hover effect for interactivity */
.friends-grid img:hover {
    transform: scale(1.1); /* Slightly enlarge the image */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3); /* Add shadow effect */
}

/* Make some images span multiple rows or columns */
.friends-grid .wide {
    grid-column: span 2; /* Spans 2 columns */
}

.friends-grid .tall {
    grid-row: span 2; /* Spans 2 rows */
}

.comment {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 5px;
}

.comment img {
    width: 50px;
    height: 50px;
}

h3 {
    color: #003399;
    border-bottom: 2px solid #003399;
    padding-bottom: 5px;
}

/* Classic MySpace hover effect */
a:hover {
    text-decoration: underline;
    color: #3c29a7;
}

/* Whiteboard Container */
.whiteboard {
    margin: 20px 0;
    padding: 10px;
    background: #ffe5e0; /* Light salmon */
    border: 2px solid #ff6f61; /* Pink salmon */
    border-radius: 10px;
}


.whiteboard::before {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    height: 2px;
    background: rgba(0, 0, 0, 0.05);
}

/* Message Form */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

textarea {
    width: 100%; /* Ensures it spans the form width */
    height: 100px; /* Fixed height for the message box */
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 10px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    resize: none; /* Prevent resizing of the text box */
    box-sizing: border-box; /* Ensures padding doesn’t affect overall size */
}

button {
    align-self: flex-end;
    padding: 5px 15px;
    background: #ff6f61;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}

button:hover {
    background: #e65550;
}

/* Messages Display */
#messagesDisplay {
    margin-top: 20px;
}

.message {
    background: #fff;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.message p {
    margin: 0;
}

.timestamp {
    font-size: 12px;
    color: #888;
    text-align: right;
}

/* Updated Video Gallery Section */

.video-gallery {
    margin: 20px auto;
    text-align: center;
}

.video-gallery h2 {
    color: #ff6f61; /* Pink salmon */
    margin-bottom: 20px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 10px;
    justify-content: center;
}

.video-item {
    position: relative;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: #ffe5e0 !important;  /* Force salmon background */
    padding: 10px;
    height: 500px;
    display: flex;
    flex-direction: column;
}

.video-item video {
    width: 100%;
    height: 100%;
    object-fit: fill; /* Changed to fill */
    border-radius: 10px;
    border: 2px solid #ff6f61;
    background: #000;
}

.video-item p {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 8px 15px;
    border-radius: 5px;
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    z-index: 2;
}

@media screen and (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    .video-item {
        height: 400px;
    }
    .video-item p {
        bottom: 15px;
        left: 15px;
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media screen and (max-width: 480px) {
    .video-item {
        height: 350px;
    }
}

/* Updated Audio Player Section */
.audio-player {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 20px auto;
    padding: 15px;
    background: #ffe5e0;
    border-radius: 10px;
    border: 2px solid #ff6f61;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: min(90%, 600px);
    box-sizing: border-box;
}

.audio-player audio {
    width: 100%;
    margin: 10px 0;
    min-width: 200px;
}

.audio-player h3 {
    width: 100%;
    text-align: center;
    color: #ff6f61;
    border-bottom: 2px solid #ff6f61;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.audio-player p {
    width: 100%;
    max-width: 90%;
    display: block;
    text-align: center;
    color: #333;
    font-size: clamp(12px, 2vw, 14px);
    margin: 10px auto;
    padding: clamp(4px, 1vw, 8px);
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.4;
}

@media screen and (max-width: 768px) {
    .audio-player p {
        max-width: 95%;
        font-size: clamp(11px, 1.8vw, 13px);
        padding: clamp(3px, 0.8vw, 6px);
    }
}

@media screen and (max-width: 480px) {
    .audio-player p {
        max-width: 98%;
    }
}

@media screen and (max-width: 768px) {
    .audio-player p {
        font-size: clamp(11px, 1.8vw, 13px);
        padding: clamp(3px, 0.8vw, 6px);
    }
}

@media screen and (max-width: 768px) {
    .audio-player {
        width: min(95%, 500px);
        padding: 12px;
        margin: 15px auto;
    }
}

@media screen and (max-width: 480px) {
    .audio-player {
        width: min(98%, 400px);
        padding: 10px;
        margin: 10px auto;
    }
}

/* Photo Gallery Section */
.photo-gallery {
    margin: 20px auto;
    text-align: center;
}

.photo-gallery h2 {
    color: #ff6f61; /* Pink salmon */
    margin-bottom: 20px;
}

.photo-collage {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Flexible columns */
    gap: 10px;
    padding: 10px;
    justify-content: center; /* Center the grid within the container */
}

.photo-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
/* Responsive adjustments for very large screens */
@media (min-width: 1600px) {
    .photo-collage {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Increase the size for larger screens */
    }
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
    .photo-collage {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Smaller columns for smaller screens */
    }
}


/* Hover Effect for Photo Items */
.photo-item:hover {
    z-index: 1000; /* Ensures the image appears above everything */
}

.photo-item:hover img {
    position: fixed; /* Displays the full image independently of the grid */
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Center the image */
    width: auto; /* Display the full image width */
    height: auto; /* Display the full image height */
    max-width: 90vw; /* Ensure it doesn’t overflow the viewport width */
    max-height: 90vh; /* Ensure it doesn’t overflow the viewport height */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3); /* Add a shadow for emphasis */
    border-radius: 10px; /* Optional rounded edges */
    background-color: white; /* Optional: Add a white background for contrast */
}