/* Prevent horizontal scroll */
html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
    background-color: #EDEDED;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    background-color: #EDEDED;
    position: relative;
    min-height: 100vh;
}

body > * {
    max-width: 100%;
}

*, *::before, *::after {
    box-sizing: border-box;
}

main {
    margin: 130px 50px 0 50px;
    position: relative;
    padding-bottom: 20px;
    /* Verwijderd: min-height: 1000px; */
}


h1 {
    text-align: center;
}

h3 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 500;
    font-size: 30px;
    color: #222;
    margin-top: 0;
    margin-bottom: 20px;
    margin-left: 0;
}

/* Header styles */
.header {
    width: 100%;
    height: 100px;
    margin: 0;
    border-bottom: 2px solid #888;
    overflow: hidden;
    background: none;
    position: relative;
}

.header-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100px;
    z-index: 0;
    background: url('data:image/svg+xml;utf8,<svg width="1440" height="100" viewBox="0 0 1440 100" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="1440" height="100" fill="%238A8A8A"/><g opacity="0.13"><ellipse cx="120" cy="50" rx="90" ry="35" fill="black"/><ellipse cx="300" cy="40" rx="40" ry="40" fill="black"/><ellipse cx="500" cy="60" rx="60" ry="30" fill="black"/><ellipse cx="700" cy="30" rx="80" ry="40" fill="black"/><ellipse cx="900" cy="60" rx="50" ry="30" fill="black"/><ellipse cx="1100" cy="40" rx="70" ry="35" fill="black"/><ellipse cx="1300" cy="60" rx="60" ry="30" fill="black"/><ellipse cx="400" cy="80" rx="30" ry="15" fill="black"/><ellipse cx="800" cy="80" rx="30" ry="15" fill="black"/><ellipse cx="1000" cy="80" rx="30" ry="15" fill="black"/><ellipse cx="1400" cy="20" rx="30" ry="15" fill="black"/></g></svg>');
    background-repeat: no-repeat;
    background-position: left top;
    background-size: cover;
    opacity: 1;
    clip-path: polygon(0 0, 65% 0, 55% 100%, 0% 100%);
}

.header-content {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: transparent;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 100px;
    justify-content: flex-start;
}

img.logo {
    height: 64px;
    width: auto;
    display: block;
    margin: 0;
    padding: 0;
    object-fit: contain;
}

.header-name {
    font-size: 1.45rem;
    color: #222;
    letter-spacing: 4px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 300;
    margin-top: 2px;
    display: flex;
    align-items: center;
    height: 100px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 40px;
    z-index: 2;
    position: static;
    height: 100px;
    background: transparent;
}

.header-nav a {
    text-decoration: none;
    color: #222;
    font-size: 1.35rem;
    letter-spacing: 2.5px;
    font-family: 'Montserrat', Arial, sans-serif;
    transition: color 0.2s;
    font-weight: 300;
    display: flex;
    align-items: center;
    height: 100px;
    white-space: nowrap;
}

.header-nav a:hover {
    color: #757575;
}

/* Image Styles */
.foto {
    width: 400px;
    height: 540px;
    border: 2px solid black;
    top: -500px;
    position: relative;
    left: 70%;
}

.foto img {
    width: 100%;
    height: 537px;
    object-fit: cover;
}

/* Button Styles */
button {
    background-color: #8A8A8A;
    padding: 10px 25px;
    margin: 10px 10px 20px 0;
    border: none;
    font-size: medium;
    color: white;
    cursor: pointer;
    border-radius: 10px;
}

button:hover {
    background: #757575;
}

/* Music Player Styles */
.container {
    width: 100%;
    max-width: 42rem;
    
    position: relative;
    top: -850px;
    left: 0;
    margin-left: 3%;
    margin-right: 3%;
}

.player-wrapper {
    width: 100%;
}

.info-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 1.25rem 2rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.info-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.track-info {
    flex: 1;
}

.track-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 0.125rem;
}

.track-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
}

.playlist-btn {
    padding: 0.5rem;
    border: none;
    border-radius: 0.5rem;
    background: transparent;
    color: #4b5563;
    cursor: pointer;
    transition: background-color 0.2s;
}

.playlist-btn:hover {
    background-color: #f3f4f6;
}

.player-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 2rem 2.5rem;
}

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

.cd-container {
    flex-shrink: 0;
}

.cd {
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 0 20px rgba(0, 0, 0, 0.08);
}

#coverImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cd-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(135deg, #f4a460 0%, #e8c4a0 30%, #87ceeb 70%, #a8d8ea 100%);
}

.cd-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cd-inner::before {
    content: '';
    width: 9rem;
    height: 9rem;
    border-radius: 50%;
    background: linear-gradient(to bottom right, #fdba74, #bfdbfe);
}

.cd-center {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: white;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    position: absolute;
}

.cd-shine {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    opacity: 0.4;
    background: radial-gradient(circle at 30% 30%, white 0%, transparent 60%);
}

.controls-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 1rem;
}

.control-btn {
    border: none;
    background: transparent;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    color: #9ca3af;
}

.play-icon, .pause-icon {
    display: block;
}

.pause-icon.hidden, .play-icon.hidden {
    display: none;
}

.progress-container {
    width: 18rem;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-family: sans-serif;
}

.progress-bar {
    height: 0.5rem;
    background-color: #e5e7eb;
    border-radius: 9999px;
    cursor: pointer;
    position: relative;
    padding: 0.5rem 0;
    margin: -0.5rem 0;
}

.progress-fill {
    height: 0.5rem;
    background-color: #6b7280;
    border-radius: 9999px;
    transition: width 0.1s;
    pointer-events: none;
}

.playlist {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-top: 0.75rem;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.playlist.show {
    max-height: 500px;
    opacity: 1;
}

.playlist-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.playlist-header h3 {
    font-size: 1rem;
    font-weight: bold;
    color: #1f2937;
    margin: 0;
}

.playlist-content {
    padding: 0.75rem;
}

.playlist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border-radius: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 0.25rem;
}

.playlist-item:hover,
.playlist-item.active {
    background-color: #f9fafb;
}

.playlist-item-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.playlist-item-cover {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    overflow: hidden;
    background-color: #e5e7eb;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.playlist-item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-item-cover-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, #fdba74, #bfdbfe);
}

.playlist-item-info {
    display: flex;
    flex-direction: column;
}

.playlist-item-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.875rem;
}

.playlist-item-artist {
    font-size: 0.75rem;
    color: #6b7280;
}

.playlist-item-duration {
    font-size: 0.75rem;
    color: #6b7280;
    font-family: sans-serif;
}

/* Clock styles */
.clock {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: black 1px solid;
    background: linear-gradient(135deg, #b8b8b8 0%, #ffffff 100%);
    position: relative;
    left: 45%;
    top: 0;
    box-shadow: 0 20px 60px #757575;
}

.clock::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.number {
    position: absolute;
    font-size: 18px;
    font-weight: 600;
    color: rgb(0, 0, 0);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    border-radius: 10px;
}

.hour-hand {
    width: 5px;
    height: 70px;
    margin-left: -2.5px;
    background: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    z-index: 3;
}

.minute-hand {
    width: 3px;
    height: 95px;
    margin-left: -1.5px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
    z-index: 2;
}

.second-hand {
    width: 2px;
    height: 105px;
    margin-left: -1px;
    background: #000000;
    box-shadow: 0 0 15px #757575;
    z-index: 4;
}

.tick {
    position: absolute;
    width: 2px;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    left: 50%;
    margin-left: -1px;
    top: 0;
    transform-origin: 1px 140px;
}

.tick.major {
    height: 12px;
    width: 3px;
    margin-left: -1.5px;
    background: rgba(0, 0, 0, 0.6);
}

.center-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #8A8A8A;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
    box-shadow: 0 0 15px #757575;
}

/* Footer */
.jo-footer {
    background: #ffffff !important;
    padding: 60px 40px 40px 40px;
    width: 100%;
    border-top: 1px solid #e0e0e0;
    margin-top: -850px;
    position: relative;
    z-index: 100;
}

.jo-footer-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.jo-logo {
    margin-bottom: 50px;
}

.jo-logo img {
    height: 80px;
    width: auto;
}

.jo-contact-info {
    margin-bottom: 50px;
}

.jo-contact-info p {
    margin: 10px 0;
    color: #000;
    font-size: 14px;
    letter-spacing: 1.5px;
    font-weight: 400;
}

.jo-contact-info a {
    color: #000;
    text-decoration: none;
}

.jo-social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.jo-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: transparent;
    border: 2px solid #000;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.jo-social-links a:hover {
    background: #000;
}

.jo-social-links a:hover svg {
    fill: #fff;
}

.jo-social-links svg {
    width: 28px;
    height: 28px;
    fill: #000;
    transition: fill 0.3s ease;
}

/* RESPONSIVE MEDIA QUERIES */

/* Tablets en kleinere laptops */
@media (max-width: 1024px) {
    .header-content {
        padding: 0 30px;
    }

    .header-nav {
        gap: 25px;
    }

    .header-nav a {
        font-size: 1.1rem;
        letter-spacing: 1.5px;
    }

    .foto {
        width: 350px;
        height: 450px;
    }

    .foto img {
        height: 450px;
    }

    .container {
        max-width: 35rem;
    }

    .clock {
        width: 240px;
        height: 240px;
    }

    main {
        margin: 130px 30px 0 30px;
    }
}

/* Tablets portrait */
@media (max-width: 768px) {
    .header-content {
        padding: 0 20px;
        flex-direction: column;
        height: auto;
        min-height: 100px;
    }

    .header-logo {
        height: auto;
        padding: 15px 0;
    }

    .header-name {
        font-size: 1.2rem;
        letter-spacing: 2px;
        height: auto;
    }

    img.logo {
        height: 50px;
    }

    .header-nav {
        gap: 15px;
        height: auto;
        padding: 10px 0;
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-nav a {
        font-size: 0.9rem;
        height: auto;
        padding: 5px 10px;
    }

    .header {
        height: auto;
        min-height: 100px;
    }

    .header-bg {
        height: 100%;
    }

    main {
        margin: 130px 20px 0 20px;
        /* min-height: auto; */
    }

    .foto {
        width: 100%;
        max-width: 300px;
        height: 400px;
        position: relative;
        right: auto;
        top: auto;
        margin: 30px auto;
        display: block;
    }

    .foto img {
        height: 400px;
    }

    .container {
        position: relative;
        margin: 30px auto;
        max-width: 100%;
    }

    .clock {
        width: 200px;
        height: 200px;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        top: auto;
        margin: 30px 0;
    }

    h3 {
        margin-top: 0;
        margin-left: 0;
        font-size: 1rem;
    }

    button {
        margin-left: 0;
    }

    .player-content {
        flex-direction: column;
        gap: 2rem;
    }

    .cd {
        width: 10rem;
        height: 10rem;
    }

    .progress-container {
        width: 100%;
        max-width: 18rem;
    }

    .jo-footer {
        padding: 60px 20px;
    }

    .jo-logo img {
        height: 60px;
    }

    .jo-contact-info p {
        font-size: 12px;
    }

    .jo-social-links {
        gap: 20px;
    }

    .jo-social-links a {
        width: 50px;
        height: 50px;
    }

    .jo-social-links svg {
        width: 24px;
        height: 24px;
    }
}

/* Mobiele telefoons */
@media (max-width: 480px) {
    .header-name {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .header-nav a {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    img.logo {
        height: 40px;
    }

    main {
        margin: 120px 15px 0 15px;
    }

    .foto {
        max-width: 100%;
        height: 350px;
    }

    .foto img {
        height: 350px;
    }

    .container {
        margin: 20px 10px;
    }

    .player-card {
        padding: 1.5rem 1rem;
    }

    .info-card {
        padding: 1rem 1.25rem;
    }

    .track-title {
        font-size: 1rem;
    }

    .cd {
        width: 8rem;
        height: 8rem;
    }

    .clock {
        width: 180px;
        height: 180px;
    }

    .control-buttons {
        gap: 1.5rem;
    }

    h3 {
        font-size: 0.9rem;
    }

    button {
        padding: 8px 20px;
        font-size: small;
    }

    .jo-footer {
        padding: 40px 15px;
    }

    .jo-logo img {
        height: 50px;
    }

    .jo-contact-info p {
        font-size: 11px;
        letter-spacing: 1px;
    }

    .jo-social-links {
        gap: 15px;
    }

    .jo-social-links a {
        width: 45px;
        height: 45px;
    }

    .jo-social-links svg {
        width: 20px;
        height: 20px;
    }
}
