:root {
    --primary: #4a6fa5;
    --secondary: #ff6b6b;
    --dark: #333;
    --light: #f8f9fa;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    margin: 0;
    padding: 0;
    background-image: url('media/top3.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

header {
    background-color: #333;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

header nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

header nav li {
    margin: 0 1rem;
}

header nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

header nav a:hover {
    color: #ff9800;
}

nav ul li a.active {
  color: #fff;
  background: #007bff;
  border-radius: 4px;
  padding: 0.25em 0.75em;
  font-weight: bold;
  text-decoration: underline;
}

nav ul li a {
  transition: background 0.2s, color 0.2s;
}

main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

main.pastry-page {
    background: none;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 2rem;
    margin: 2rem auto;
    max-width: 900px;
}

h1 {
    text-align: center;
    color: white;
    -webkit-text-stroke: 1px #d9534f;
    text-shadow: 1px 0 0 #d9534f, -1px 0 0 #d9534f, 0 1px 0 #d9534f, 0 -1px 0 #d9534f;
    margin-bottom: 2rem;
}

.pastry-table {
    background: white;
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.pastry-table th, .pastry-table td {
    border: 1px solid #ddd;
    padding: 0.8rem;
    text-align: left;
}

.pastry-table th {
    background-color: #333;
    color: white;
}

.pastry-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 2rem;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin: 0 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.spotify-btn {
    background-color: #1DB954;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero {
    display: flex;
    align-items: center;
    padding: 2rem;
    gap: 2rem;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.hero-image-small {
    max-width: 100px; 
    max-height: 300px; 
    display: block; 
    margin: 0 auto; 
}

.hero-caption {
    text-align: center;
    font-style: italic;
    color: #555;
    margin-top: 10px;
}

.top3-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.top3-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    text-decoration: none;
    color: var(--dark);
}

.top3-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.guitars-page {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    padding: 20px;
    background-color: #f9f9f9;
}

.guitar-item {
    margin-bottom: 40px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.guitar-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.guitar-desc {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 20px;
}

.guitar-images {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.guitar-images img {
    height: auto;
    max-width: 45%;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.video-section {
    text-align: center;
    margin-top: 40px;
}

.video-section video {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.video-caption {
    font-style: italic;
    color: #555;
    margin-top: 10px;
}

.guitar-caption {
    text-align: center;
    font-style: italic;
    color: #555;
    margin-top: 10px;
}

#music-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.form-group textarea {
    min-height: 120px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-buttons button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.form-buttons button[type="submit"] {
    background-color: var(--primary);
    color: white;
}

.form-buttons button[type="reset"] {
    background-color: #ddd;
}

.music-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.intro-section {
    margin-bottom: 40px;
    font-size: 1.2em;
    line-height: 1.8;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.band {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.band:last-child {
    border-bottom: none;
}

.band-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-top: 1.5rem;
}

.band-images {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.band-images img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.band-desc {
    flex: 1;
    font-size: 1.1em;
    line-height: 1.6;
}

.highlight {
    color: #d9534f;
    font-weight: bold;
    margin-top: 1.5rem;
}

.band-caption {
    text-align: center;
    font-style: italic;
    color: #555;
    margin-top: 10px;
}

.image-with-caption {
    display: inline-block;
    text-align: center;
    margin: 0 10px;
}

.simple-carousel {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background: #fff;
}
.simple-carousel img {
    width: 100%;
    display: none;
    transition: opacity 0.5s;
    border-radius: 8px;
}
.simple-carousel img.active {
    display: block;
}
.simple-carousel .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 0 0.7rem;
    cursor: pointer;
    border-radius: 50%;
    z-index: 2;
    transition: background 0.2s;
}
.simple-carousel .carousel-btn:hover {
    background: rgba(0,0,0,0.7);
}
.simple-carousel .prev {
    left: 10px;
}
.simple-carousel .next {
    right: 10px;
}

.guitar-thumb {
    max-width: 120px;
    max-height: 120px;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    margin: 0 8px;
    transition: transform 0.2s;
}
.guitar-thumb:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.22);
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}
.modal-content {
    display: block;
    margin: 5vh auto;
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.modal-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    text-shadow: 0 2px 8px #000;
}

.caption {
    background: white;
    padding: 0.5em 1em;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.table-caption {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    padding: 1em 1.5em;
    margin-top: 1em;
    margin-bottom: 2em;
}
.table-caption summary {
    font-weight: bold;
    cursor: pointer;
    outline: none;
}

main a:not(.top3-card):not(.spotify-btn),
article a,
.band-desc a,
.band-caption a,
.video-caption a,
.guitar-caption a,
footer a {
    color: #1a0dab;
    text-decoration: underline;
    transition: color 0.2s;
}
main a:not(.top3-card):not(.spotify-btn):visited,
article a:visited,
.band-desc a:visited,
.band-caption a:visited,
.video-caption a:visited,
.guitar-caption a:visited,
footer a:visited {
    color: #8888aa;
}
main a:not(.top3-card):not(.spotify-btn):hover,
article a:hover,
.band-desc a:hover,
.band-caption a:hover,
.video-caption a:hover,
.guitar-caption a:hover,
footer a:hover {
    color: #d9534f;
}

p, ul, ol, li {
  text-align: left;
}

body.high-contrast, body.high-contrast * {
  background: #000 !important;
  color: #fff !important;
  font-size: 1.35em !important;
  font-family: Arial Black, Arial, sans-serif !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  border-color: #fff !important;
}
body.high-contrast a, body.high-contrast a:visited {
  color: #ffff00 !important;
  text-decoration: underline !important;
}
body.high-contrast button, body.high-contrast input, body.high-contrast textarea, body.high-contrast select {
  background: #222 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
}
body.high-contrast .active, body.high-contrast nav ul li a.active {
  background: #ffff00 !important;
  color: #000 !important;
}
body.high-contrast .logo {
  color: #ffff00 !important;
}
body.high-contrast .spotify-btn {
  background: #ffff00 !important;
  color: #000 !important;
}
body.high-contrast .modal {
  background: #000 !important;
}
body.high-contrast .band-caption, body.high-contrast .caption, body.high-contrast .video-caption, body.high-contrast .guitar-caption {
  color: #ffff00 !important;
}

#accessibility-toggle {
  background: #000;
  color: #fff;
  font-size: 1.1em;
  padding: 0.5em 1em;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  margin-bottom: 1em;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}
#accessibility-toggle:focus {
  outline: 3px solid #ffff00;
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 10000;
}
.skip-link:focus {
  left: 50%;
  top: 0;
  width: auto;
  height: auto;
  padding: 1em 2em;
  background: #222;
  color: #fff;
  font-size: 1.2em;
  text-align: center;
  transform: translateX(-50%);
  border-radius: 0 0 8px 8px;
  outline: 3px solid #ffff00;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }
    
    .hero {
        flex-direction: column;
    }
    
    .guitar-content {
        flex-direction: column;
    }
    
    .band-content {
        flex-direction: column;
    }
    
    .band-images {
        grid-template-columns: 1fr;
    }
}