/* General Styling */
body {
    background-color: #121212;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent any unintended horizontal scrollbars */
}

/* Style all links in the leaderboard */
a {
    color: #ffffff;         /* Set text color to white */
    text-decoration: underline;  /* Always underline links */
}

/* Remove the default blue/purple color for visited links */
a:visited {
    color: #ffffff;         /* Keep the text color white */
}

/* Optional: Customize the hover state for links */
a:hover {
    color: #f4f4f4;         /* Slightly lighter shade on hover */
    text-decoration: underline;  /* Keep underline on hover */
}

/* Optional: Active link style (when clicked) */
a:active {
    color: #ffffff;         /* Keep the color white */
    text-decoration: underline;  /* Keep underline when clicked */
}


/* Container for centering and spacing */
.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* Headings */
h2 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
}

input, textarea, select, button {
    margin: 10px 0;
    padding: 10px;
    background-color: #292929;
    color: #ffffff;
    border: 1px solid #444444;
    border-radius: 5px;
}

input:focus, textarea:focus, select:focus {
    border-color: #666666;
    outline: none;
}

button {
    background-color: #444444;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #555555;
}

/* Images */
img {
    max-width: 100%;
    border-radius: 10px;
    /*margin-bottom: 20px;*/
}

/* Album Details */
.album-details {
    text-align: center;
}

.album-details img {
    max-width: 200px;
}

/* Leaderboard Styling */
.leaderboard-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    margin-bottom: 15px;
    background-color: #222; /* Match your design */
    border-radius: 8px;
}

.leaderboard-item img {
    max-width: 100px;
    height: auto;
    margin-right: 15px;
    border-radius: 8px;
}

.leaderboard-item p {
    margin: 0;
}

.leaderboard-item div {
    flex: 1;
}

.leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.year-dropdown {
    background-color: #333;
    color: #fff;
    border: 1px solid #444;
    padding: 5px;
    border-radius: 5px;
}

/* Align user reviews with profile picture */
.rating-card {
    display: flex;
    align-items: center; /* Center align image and text */
    gap: 15px;
    margin-bottom: 20px;
    background-color: #292929;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.review-profile-image {
    flex-shrink: 0;
    height: auto;
    max-height: 100px; /* Keep the max height as before */
    aspect-ratio: 1 / 1; /* Maintain a square shape */
    border-radius: 50%; /* Makes the image round */
    object-fit: cover; /* Ensures proper scaling */
    background-color: #444; /* Optional background for contrast */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4); /* Cool shadow effect */
    transition: transform 0.3s, box-shadow 0.3s; /* Smooth transition for hover effect */
}

/* Add hover effect */
.review-profile-image:hover {
    transform: scale(1.1); /* Slight zoom-in effect */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6); /* Intensify the shadow on hover */
}

/* Content styling for the review */
.review-content {
    flex-grow: 1; /* Allow the text to occupy the remaining space */
}

.review-content h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #ffffff;
}

.review-content p {
    margin: 5px 0;
    color: #bbbbbb;
}

.review-content p strong {
    color: #ffffff;
}

.rating-card h4 {
    color: #ffffff;
    font-size: 18px;
    margin: 5px 0 5px 0; /* Removed top margin, added a bit of bottom margin */
}

.rating-card h3 {
    color: #ffffff;
    font-size: 20px;
    margin: 5px 0 5px 0; /* Removed top margin, added a bit of bottom margin */
}

.rating-card p {
    color: #bbbbbb;
    margin: 0 0 5px 0; /* Removed top margin, added a bit of bottom margin */
}

.rating-card p strong {
    color: #ffffff;
}

/* Score and Favorite Song */
.rating-card p strong {
    font-weight: bold;
    color: #f4f4f4;
}

/* Make sure the rating card doesn't overflow */
.rating-card img {
    max-width: 100%;
    border-radius: 8px;
    /*margin-bottom: 10px;*/
}

/* Navbar Styling */
nav {
    background-color: #212121;  /* Darker shade for navbar */
    padding: 15px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px; /* Match the container width */
    margin: 0 auto; /* Center the navbar */
}

.navbar-left, .navbar-right {
    display: flex;
    align-items: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.navbar-left li, .navbar-right li {
    margin: 0 15px; /* Spacing between items */
}

.navbar-left li a, .navbar-right li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.navbar-left li a:hover, .navbar-right li a:hover {
    background-color: #4caf50;
}

/* Responsive rule for mobile devices */
@media (max-width: 768px) {
    .navbar-left, .navbar-right {
        overflow-x: auto; /* Enable horizontal scrolling only on small screens */
    }

    .navbar-left li a, .navbar-right li a {
        font-size: 14px; /* Reduce font size for smaller screens */
        padding: 6px 10px; /* Adjust padding */
    }

    #notificationsDropdown, #userDropdown {
        right: 0; /* Ensure it stays within the viewport */
        width: 100%; /* Full width on mobile */
        max-width: none; /* Remove max-width constraint */
        position: fixed; /* Ensure it stays visible */
        top: 60px; /* Adjust top position to be below the navbar */
    }
}

/* Prevent scrollbars on wide screens */
body {
    overflow-x: hidden; /* Prevent any unintended horizontal scrollbars */
}

/* Desktop-specific styling for notifications dropdown */
@media (min-width: 769px) {
    #notificationsDropdown, #userDropdown {
        right: calc(50% - 400px); /* Align with the right edge of the .container */
    }
}

/* Albums to Rate Section */
.albums-to-rate, .your-reviews {
    margin: 20px 0;
}

.nisi-rejto {
    background-color: #292929;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nisi-rejto img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    margin-right: 15px;
}

.nisi-rejto p {
    color: #ffffff;
    margin: 0;
    flex-grow: 1;
}

.nisi-rejto a {
    color: #4caf50;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    background-color: #333;
}

.nisi-rejto a:hover {
    background-color: #4caf50;
    color: #fff;
}

/* Review Card Styling */
.review-card {
    background-color: #292929;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.review-card img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    margin-right: 20px;
}

.review-card div {
    flex-grow: 1;
}

.review-card p {
    color: #bbbbbb;
    margin: 5px 0;
}

.review-card p strong {
    color: #ffffff;
}

ul {
    padding: 0;
    list-style-type: none;
}

/* Additional Styling for Album Details Page */
.album-details img {
    max-width: 250px;
    margin: 20px 0;
    border-radius: 10px;
}

/* Logout Button */
button.logout-btn {
    background-color: #d32f2f;
    color: #fff;
    border: none;
    padding: 8px 15px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button.logout-btn:hover {
    background-color: #b71c1c;
}

.password-reset-link a {
    color: #4caf50;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    background-color: #333;
}

.password-reset-link a:hover {
    background-color: #4caf50;
    color: #fff;
}

/* Profile Page Styling */
.profile-page {
    display: block;
    margin: 10px auto;
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.edit-button {
    color: #4caf50;
    font-weight: bold;
    text-decoration: none;
    padding: 8px 15px;
    background-color: #333;
    border-radius: 5px;
    align-self: center; /* Ensures it stays centered vertically */
}

.edit-button:hover {
    background-color: #4caf50;
    color: #fff;
}

/* Custom styles for user-written content */
.user-written-content h1,
.user-written-content h2,
.user-written-content h3,
.user-written-content h4,
.user-written-content h5,
.user-written-content h6 {
    margin-top: 10px;
    margin-bottom: 10px;
}

.user-written-content p {
    margin-top: 10px;
    margin-bottom: 10px;
}

.feature-request-container {
    background-color: #292929;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* User Icon and Dropdown Menu */
.user-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s;
    margin: 0 15px; /* Add horizontal margin for spacing */
    vertical-align: middle; /* Align vertically with text */
}

.user-icon:hover {
    transform: scale(1.1);
}

.user-dropdown {
    display: none;
    position: absolute;
    right: 10px;
    top: 60px;
    background-color: #333;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    width: 200px; /* Set a fixed width */
    padding: 10px 0; /* Add padding for spacing */
}

.user-dropdown a {
    display: block;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s;
}

.user-dropdown a:hover {
    background-color: #444;
    color: #fff;
}

.user-dropdown.show {
    display: block;
}

/* Responsive rule for mobile devices */
@media (max-width: 768px) {
    .navbar-left, .navbar-right {
        overflow-x: auto; /* Enable horizontal scrolling only on small screens */
    }

    .navbar-left li a, .navbar-right li a {
        font-size: 14px; /* Reduce font size for smaller screens */
        padding: 6px 10px; /* Adjust padding */
    }

    #notificationsDropdown, #userDropdown {
        right: 0; /* Ensure it stays within the viewport */
        width: 100%; /* Full width on mobile */
        max-width: none; /* Remove max-width constraint */
        position: fixed; /* Ensure it stays visible */
        top: 60px; /* Adjust top position to be below the navbar */
    }
}

/* Desktop-specific styling for notifications and user dropdown */
@media (min-width: 769px) {
    #notificationsDropdown, #userDropdown {
        right: calc(50% - 400px); /* Align with the right edge of the .container */
    }
}

/* Article Page Styling */
.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.article-meta img.author-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

.article-meta p {
    margin: 0;
    color: #bbbbbb;
    font-size: 14px;
    text-align: center;
}