/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* Body Styling */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    color: #333;
}

/* Profile Container */
.profile-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 350px;
    max-width: 90%;
    position: relative;
    margin: 20px;
}

/* Home Button */
#homeButton {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 8px 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

#homeButton:hover {
    background-color: #0056b3;
}

/* Profile Picture Section */
.profile-picture-section {
    margin-bottom: 20px;
}

#profilePicture {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #ff758c;
    transition: transform 0.3s ease-in-out;
    margin-bottom: 15px;
}

#profilePicture:hover {
    transform: scale(1.1);
}

/* File Input */
#fileInput {
    margin-top: 15px;
    padding: 10px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
}

/* Upload Button */
#uploadButton {
    margin-top: 15px;
    padding: 10px 20px;
    border: none;
    background: #ff758c;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

#uploadButton:hover {
    background: #ff5252;
}

/* Display Name Section */
.display-name-section {
    margin-top: 30px;
}

#displayname {
    padding: 10px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

#displayname:focus {
    border-color: #ff758c;
    outline: none;
}

#updateDisplaynameButton {
    padding: 10px 20px;
    border: none;
    background-color: #ff758c;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

#updateDisplaynameButton:hover {
    background-color: #ff5252;
}

/* Home Button */
.home-button {
    margin-top: 20px;
}

/* Media Queries for Mobile Responsiveness */

/* For mobile devices */
@media (max-width: 600px) {
    body {
        padding: 0 20px;
        background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    }

    .profile-container {
        width: 100%;
        max-width: none;
        padding: 20px;
    }

    #profilePicture {
        width: 120px;
        height: 120px;
    }

    /* File Input and Upload Button */
    #fileInput {
        margin-top: 12px;
        padding: 8px;
    }

    #uploadButton {
        margin-top: 12px;
        padding: 10px 15px;
        font-size: 14px;
    }

    /* Display Name Input */
    #displayname {
        font-size: 14px;
        padding: 8px;
    }

    #updateDisplaynameButton {
        font-size: 14px;
        padding: 8px 15px;
    }

    /* Home Button */
    #homeButton {
        font-size: 12px;
        padding: 6px 10px;
    }
}

