/* Import fonts from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@200..900&display=swap');

/* Enable smooth scrolling for the entire document */
html {
    scroll-behavior: smooth;
}

/* Global styles */
body {
    font-family: 'Segoe UI', 'Source Sans 3', Tahoma, Geneva, Verdana, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #fff;
    color: #000;
    transition: background 0.3s, color 0.3s;
}

/* Header layout and donate button positioning */
header {
    position: relative;
    background: #f0f0f0;
    padding: 20px;
    padding-right: 80px;
    transition: background 0.3s;
}

.header-content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start; 
    gap: 20px;
}

.logo {
    width: 144px;
    height: 144px;
    border: 1px solid #ccc;
    border-radius: 5px;
	transition: transform 0.3s, border-color 0.3s;
}

.logo:hover {
    transform: scale(1.02);
	border-color: #ff0000;
}

.header-text h1 {
    margin: 0;
    font-size: 3em;
}

.header-text p {
    margin: 5px 0;
    font-size: 1.1em;
}

/* Donate buttons container */
.donate-container {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.donate-btn {
    width: auto;
    height: auto;
    max-height: 60px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.3s;
}

.donate-btn:hover {
    transform: scale(1.05);
}

.paypal-btn .donate-btn {
    width: auto;
    height: 50px;
}

.youtube-btn .donate-btn {
    width: auto;
    height: 50px;
}

/* Internal navigation bar */
.internal-nav {
    background: #ddd;
    padding: 10px;
    text-align: center;
    transition: background 0.3s;
}

.internal-nav a {
    margin: 0 10px;
    text-decoration: underline;
    color: #000;
    font-weight: bold;
    text-decoration-color: #000000;
    transition: text-decoration-color 0.3s;
}

.internal-nav a:hover {
    text-decoration-color: #ff0000;
}

/* Main content */
main {
    padding: 20px;
    margin: 0 auto;
}

/* Sorting and mode toggle controls */
.sort-options {
    margin-bottom: 20px;
    text-align: center;
}

#sorting-select,
#toggle-darkmode {
    border-radius: 5px;
    border: none;
    padding: 10px;
    cursor: pointer;
    margin: 5px;
    transition: background 0.3s, color 0.3s;
}

#sorting-select {
    background: #333;
    color: #fff;
}

#sorting-select:hover {
    background: #555;
}

#toggle-darkmode {
    background: #333;
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    margin: 0 5px;
    border-radius: 5px;
}

#toggle-darkmode:hover {
    background: #555;
}

/* Section headings */
h2 {
    text-align: left;
    margin-top: 40px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
    font-size: 2.2em;
}

.responsive-title {
    font-size: 2.2em;
    transition: font-size 0.3s ease;
}

#carlosduty a,
#davidmaeso a {
	color: #000;
    text-decoration: underline;
	text-decoration-thickness: 2px;
}

#carlosduty a:hover,
#davidmaeso a:hover {
    text-decoration: underline;
    text-decoration-color: #ff0000;
	text-decoration-thickness: 2px;
}

/* Album layouts */
.album-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 20px;
}

.album-item {
    width: calc(25% - 20px);
    text-align: center;
    font-size: 1.6em;
}

.album-item img {
    width: 100%;
    border: 1px solid #ccc;
    display: block;
    margin-bottom: 5px;
    border-radius: 5px;
    transition: transform 0.3s, border-color 0.3s;
}

.album-item img:hover {
    transform: scale(1.02);
    border-color: #ff0000;
}

.album-item strong {
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
    color: #000;
}

.album-item a {
    color: #000000;
    text-decoration-color: #000000;
}

.album-item a:hover {
    text-decoration-color: #ff0000;
}

/* Spacing for specific sections */
#carlosduty,
#davidmaeso {
    margin-top: 150px;
}

/* Footer credits */
footer {
    background: #f0f0f0;
    padding: 20px;
    text-align: center;
    font-size: 1.1em;
}

footer p {
    margin-left: 50px;
    margin-right: 50px;
}

footer a {
    color: #000;
    text-decoration: underline;
    font-weight: bold;
    text-decoration-color: #000000;
}

footer a:hover {
    text-decoration-color: #ff0000;
}

/* Back to top button */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 20px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}

#back-to-top:hover {
    background: #555;
}

/* Dark mode styling */
.dark-mode {
    background: #121212;
    color: #e0e0e0;
    transition: background 0.3s, color 0.3s;
}

.dark-mode header {
    background: #1f1f1f;
}

.dark-mode footer {
    background: #1f1f1f;
}

.dark-mode .internal-nav {
    background: #2c2c2c;
}

.dark-mode a {
    font-weight: bold;
    color: #fff;
}

.dark-mode .album-item img {
    border-color: #333;
}

.dark-mode .album-item img:hover {
    transform: scale(1.02);
    border-color: #ff0000;
}

.dark-mode #sorting-select {
    background: #333;
    color: #e0e0e0;
}

.dark-mode #sorting-select:hover {
    background: #444;
}

.dark-mode #toggle-darkmode {
    background: #333;
    color: #e0e0e0;
}

.dark-mode #toggle-darkmode:hover {
    background: #444;
}

.dark-mode h1, 
.dark-mode h2,
.dark-mode h3,
.dark-mode h4,
.dark-mode strong {
    color: #fff;
}

.dark-mode #carlosduty a,
.dark-mode #davidmaeso a {
	color: #fff;
    text-decoration: underline;
	text-decoration-thickness: 2px;
}

.dark-mode #carlosduty a:hover,
.dark-mode #davidmaeso a:hover {
    text-decoration: underline;
    text-decoration-color: #ff0000;
	text-decoration-thickness: 2px;
}

.dark-mode .donate-btn {
    filter: brightness(1.1);
}

/* Dark mode underline colors */
.dark-mode .internal-nav a {
    text-decoration-color: #ffffff;
}

.dark-mode .album-item a {
    text-decoration-color: #ffffff;
}

.dark-mode footer a {
    text-decoration-color: #ffffff;
}

.dark-mode .internal-nav a:hover {
    text-decoration-color: #ff0000;
}

.dark-mode .album-item a:hover {
    text-decoration-color: #ff0000;
}

.dark-mode footer a:hover {
    text-decoration-color: #ff0000;
}

/* Album Details Section */
.album-details {
    flex: 1;
    max-width: 50%;
    text-align: left;
}

.album-info {
    display: flex;
    flex-direction: column;
    align-items: left;
    gap: 20px;
}

.album-cover {
    width: 100%;
	max-width: 540px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	margin-top: -20px;
}

.album-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
	margin-top: 40px;
}

.album-meta p {
    font-size: 1.1em;
    margin: 5px 0;
}

/* Tracklist Section */
.tracklist {
    margin-bottom: 40px;
	text-align: center;
}

.tracklist h2 {
    margin-bottom: -5px;
	text-align: center;
    width: 100%;
}

.tracks {
    display: flex;
    flex-direction: column;
    gap: 20px;
	align-items: center;
}

.track {
    text-align: center;
    width: 100%;
}

.track h4 {
    font-size: 1.5em;
    margin-bottom: 5px;
    background-color: #333;
    color: #fff;
    padding: 15px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.track p {
    font-size: 1em;
    margin-bottom: 10px;
}

.download-links {
    display: flex;
    gap: 10px;
	justify-content: center;
    flex-wrap: wrap;
}

.download-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s;
}

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

/* Album Downloads Section */
.album-downloads {
    flex: 1;
    max-width: 50%;
    text-align: right;
}

.album-downloads h2 {
    text-align: right;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
}

.download-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #333;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.download-button:hover {
    background-color: #555;
}

.download-button .download-icon {
    width: 30px;
    height: 30px;
}

.album-art {
    width: 100%;
    border-radius: 5px;
    margin-top: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Album Player Section */
.album-player {
    flex: 1;
    max-width: 33.33%;
    text-align: center;
    margin: 0 20px;
}

.album-details,
.album-downloads {
    max-width: 30%;
}

.bandcamp-player-wrapper {
    width: 100%;
    max-width: 600px;
    height: 500px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    transition: box-shadow 0.3s ease;
}

.bandcamp-player-wrapper:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.bandcamp-player-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Other Adjustments */
.main-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Responsive adjustments */
@media (max-width: 1000px) {
	.album-item {
        width: 45%;
    }
	
	h2 {
		align-items: center;
        text-align: center;
	}
	
	.main-content {
        flex-direction: column;
        gap: 40px;
		align-items: center;
    }
	
    .album-details,
    .album-downloads,
    .album-player {
        max-width: 100%;
        text-align: center;
        margin: 20px 0;
    }
	
	.album-downloads h2 {
		text-align: center;
	}

    .album-cover {
        width: 100%;
        max-width: 400px;
    }

    .album-meta {
        align-items: center;
        text-align: center;
    }

	.tracks {
        align-items: center;
    }

    .track {
        max-width: 100%;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

	.bandcamp-player-wrapper {
		width: 500px;
		max-width: 100%;
	}
}

@media(max-width: 500px) {
    .album-item {
        width: 100%;
    }
}

@media (max-width: 1100px) {
    .responsive-title {
        font-size: 2.0em;
    }
}

/* Modernized album pages without an embedded Bandcamp player */
.main-content.no-player {
    gap: 40px;
}

.main-content.no-player .album-details,
.main-content.no-player .album-downloads {
    max-width: 48%;
}

.main-content.no-player .album-downloads {
    align-self: flex-start;
}

.muted-note {
    color: #666;
    font-size: 1.05em;
}

.dark-mode .muted-note {
    color: #bbb;
}

@media (max-width: 1000px) {
    .main-content.no-player .album-details,
    .main-content.no-player .album-downloads {
        max-width: 100%;
    }
}

