/* General Styling */
body {
    background-color: #121212;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
}

/* 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 {.rating-card {
    border: 1px solid #ccc;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.review-reactions {
    margin-top: 10px;
    position: relative;
}

.reaction-options {
    display: none;
    position: absolute;
    top: -50px;
    left: 0;
    display: flex;
    gap: 10px;
    background: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    z-index: 10;
}

.reaction-option {
    width: 32px;
    height: 32px;
    cursor: pointer;
}

.reaction-option img {
    max-width: 100%;
    height: auto;
}

.current-reactions {
    margin-top: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.reaction-summary {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.reaction-summary img {
    width: 20px;
    height: 20px;
}

.user-reaction {
    margin-top: 15px;
}

.user-reaction-display {
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-reaction-display img {
    width: 32px;
    height: 32px;
}

.remove-reaction {
    background: none;
    border: none;
    color: #ff0000;
    cursor: pointer;
    font-size: 16px;
}

    flex: 1;
}



/* 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);
}

/* General styling for the navbar */
nav ul {
    display: flex;
    justify-content: center; /* Center items horizontally */
    align-items: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap; /* Prevent items from wrapping to the next line */
}

/* Styling to prevent wrapping and fix hover clipping */
nav ul li {
    margin: 0 15px; /* Spacing between items */
    white-space: nowrap; /* Prevent text from wrapping */
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
    display: inline-block; /* Ensures hover effect fits the item */
}

/* Fix green hover effect not being clipped */
nav ul li a:hover {
    background-color: #4caf50;
}

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

    nav ul li a {
        font-size: 14px; /* Reduce font size for smaller screens */
        padding: 6px 10px; /* Adjust padding */
    }
}

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

/* 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;
}

/* Reaction Section Container */
.review-reactions {
    margin-top: 20px;
    border-top: 1px solid #ccc;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Current Reactions */
.current-reactions {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.reaction-summary {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    background-color: #f0f0f0;
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.reaction-summary:hover {
    transform: scale(1.1);
}

.reaction-summary img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.reaction-summary .reaction-count {
    font-weight: bold;
}

/* Reaction Options for Adding New Reactions */
.reaction-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.reaction-option {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.reaction-option img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.reaction-option:hover {
    background-color: #ececec;
    transform: scale(1.1);
}

/* User Reaction */
.user-reaction {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-reaction-display {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #f7f7f7;
    padding: 5px 10px;
    border-radius: 20px;
    position: relative;
}

.user-reaction-display img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.user-reaction-display .remove-reaction {
    background-color: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    position: absolute;
    top: -5px;
    right: -5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.user-reaction-display .remove-reaction:hover {
    background-color: darkred;
}

/* Add Reaction Button */
.user-reaction .add-reaction {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 5px 15px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.user-reaction .add-reaction:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* General Styling for Buttons */
button {
    outline: none;
    font-family: inherit;
    font-size: inherit;
}

