* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    font-family: Domine, Georgia; /*"Press Start 2P"*/
    font-weight: 300;
    font-style: normal;
}

body {
    min-height: 100vh;
    height: 100%;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.6s ease-in-out;
    overflow-x: hidden !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-color: rgb(208, 218, 221);
    z-index: -1;
    /* background-image: url('./assets/backgroundDrawing.png'); */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body.home::before {
    background-image: /* linear-gradient(
            rgba(37, 116, 195, 0.1),
            rgba(50, 115, 180, 0.1)
        ), */ url('./assets/minecraftBackground.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 1;
}

#header-placeholder,
header,
nav {
    width: 100%;
    height: 100%;
}

/* Header & Navigation */
/* header {
    margin-bottom: 2rem;
} */

nav {
    line-height: 2rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: #000080;
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

h1 {
    font-size: 1.5rem;
    margin: 1.2rem 0;
    font-weight: 600;
}

h2 {
    font-size: 1.2rem;
    margin: 1.2rem 0;
    font-weight: 600;
}

.logo {
    font-family: 'Press Start 2P', Georgia;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease-in-out;
    font-size: 0.8rem;
}

.logo img {
    width: 5rem;
    vertical-align: middle;
    padding: 0 1rem;
}

.logo:hover {
    transform: scale(1.03);
}

.nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 2.5rem;
    list-style-type: none;
    font-size: 1rem;
    height: auto;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    padding: 0 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
    animation: slideInFromRight 0.6s ease-out var(--delay, 0.2s) both;
}

.nav-links a:nth-child(1) {
    --delay: 0.3s;
}
.nav-links a:nth-child(2) {
    --delay: 0.4s;
}
.nav-links a:nth-child(3) {
    --delay: 0.5s;
}
.nav-links a:nth-child(4) {
    --delay: 0.6s;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-links a:hover {
    text-decoration: underline;
    transform: translateY(-2px);
}

.nav-links a:active {
    transform: translateY(0px);
}

/* Main Content */
#page-wrapper {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    overflow: hidden !important;
}

/* Window/Dialogue Box */
.home-container {
    width: 90%;
    max-width: 800px;
    height: 100%;
    margin: auto;
    background-color: #c0c0c0;
    border-style: solid;
    border-width: 2px;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    box-shadow: 4px 4px 0 0 #000000;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.window-title-bar {
    width: 100%;
    background-color: #000080;
    color: white;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    cursor: default;
}

.window-title-bar i {
    margin-right: 0.5rem;
    vertical-align: top;
}

.close-button {
    display: block;
    background-color: #c0c0c0;
    color: black;
    padding: 0 0.5rem;
    font-weight: bold;
    font-size: 0.8rem;
    border-style: solid;
    border-width: 2px;
    border-color: #dfdfdf #000000 #000000 #dfdfdf; /* Light-dark-dark-light */
}

#home-navigation {
    width: 100%;
    padding: 2rem;
    text-align: center;
    margin: 0 auto;
}

#home-navigation .logo {
    min-width: 100%;
    font-size: 2.5rem;
    text-shadow: 2px 2px #000000;
    color: #000080;
    background-color: transparent;
    text-align: center;
    text-decoration: none;
}

#home-navigation .logo img {
    display: block;
    margin: 2rem auto 0 auto;
    height: 8rem;
    width: auto;
}

#home-navigation .nav-links {
    padding: 2rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    background-color: transparent;
}

#home-navigation .nav-links a {
    background-color: #dfdfdf;
    color: #000000 !important;
    width: auto;
    text-align: center;
    padding: 0.5rem 1.5rem;
    border-style: solid;
    border-width: 3px;
    border-color: #dfdfdf #000000 #000000 #dfdfdf;
    box-shadow: 1px 1px 0 0 black;
    transition: all 0.1s ease-out;
    cursor: pointer;
    text-decoration: none;
}

#home-navigation .nav-links a:hover {
    background-color: #000080;
    color: white !important;
    border-color: #000080 #000000 #000000 #000080;
    box-shadow: 2px 2px 0 0 black;
    transform: translateY(-2px);
}

#home-navigation .nav-links a:active {
    border-color: #000000 #dfdfdf #dfdfdf #000000;
    box-shadow: none;
    transform: translateY(1px);
    background-color: #000080;
    color: white !important;
}

.window {
    margin: auto;
    padding: 0;
    background-color: #ffffff;
    border-style: solid;
    border-width: 2px;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    box-shadow: 4px 4px 0 0 #000000;
    max-width: 1000px;
    width: 80%;
    animation: windowAppear 0.5s ease-out forwards;
}

@keyframes windowAppear {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.left {
    animation: slideInLeft 0.4s forwards;
}

.right {
    animation: slideInRight 0.4s 0.4s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.window-title {
    width: 100%;
    background-color: #ebebeb;
    margin: 0;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
}

.window-intro {
    padding: 1rem;
    border-bottom: 1px dashed #c0c0c0;
    margin: 0 1rem;
}

.window-body {
    padding: 2rem;
    /* margin: 0 auto; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.dialog-text {
    padding: 2rem 3rem;
}

.dialog-hint {
    background: #fff7d6;
    border: 1px solid #ffd700;
    margin: 1rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.hint-icon {
    height: 1.5rem;
    width: auto;
    vertical-align: middle;
}

.dialog-hint-small-screens {
    display: none;
}

.dialog-hint-big-screens {
    display: inline;
}

#projects-ring {
    position: relative;
    width: 60vw;
    height: 60vw;
    max-width: 600px;
    max-height: 600px;
    margin: 2rem auto;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0.8rem rgb(50, 50, 50), 0 0 0.8rem rgb(50, 50, 50);
    animation: smoothSpin 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes smoothSpin {
    0% {
        opacity: 0;
        transform: scale(0.7) rotate(-360deg);
    }
    60% {
        opacity: 1;
        transform: scale(1.02) rotate(20deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.project-segment {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: center;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-blend-mode: multiply;
    transform-origin: center;
    cursor: url('./assets/colour-picker3.png') 16 16, pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Position each image in the ring seperately */
#title1 {
    background-position: 10% 10%;
}

#title2 {
    background-position: 70% 50%;
}

#title3 {
    background-position: 40% 100%;
}

#title4 {
    background-position: 0% 80%;
}

.project-segment:hover {
    filter: grayscale(100%);
    background-blend-mode: normal;
    transform: scale(1.01);
}

.project-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.project-segment:hover .project-image {
    opacity: 0.9;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--segment-color);
    z-index: 1000;
    opacity: 0.9;
    pointer-events: none;
}

.ring-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* width: 200px;
    height: 200px; */
    /* width: 40%;
    height: 40%; */
    /* background: #C0C0C0; */
    border-radius: 50%;
    box-shadow: 0 0 0.2rem rgb(136, 136, 136), 0 0 0.2rem rgb(136, 136, 136);
    display: flex;
    align-items: center;
    justify-content: center;
    /* box-shadow: inset 2px 2px 0px #FFFFFF, inset -2px -2px 0px #000000; */
    z-index: 100;
    /* border: 2px solid #808080; */
    text-align: center;
    padding: 1rem;
    transition: all 0.7s ease-in-out;
}

.center-image-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.5s ease-in-out, transform 0.4s ease-out;
    box-shadow: 0 0 0.2rem rgb(136, 136, 136), 0 0 0.2rem rgb(136, 136, 136);
    /* border: 1px solid #808080; */
}

.ring-center:after {
    content: '';
    position: absolute;
    border-radius: 50%;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0);
    opacity: 0.4;
}

.center-text {
    font-weight: 400;
    font-size: 0.8rem;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.9);
    z-index: 1;
    transition: all 0.5s ease-in-out;
}

.bold {
    font-weight: 600;
}

#project-details {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 0 1rem;
    color: rgb(126, 126, 126);
    font-size: 0.9rem;
    min-height: 100px;
}

.left .project-detail-item {
    animation: slideUp 0.4s forwards;
    max-width: 200px;
    margin-bottom: 0.5rem;
}

.right .project-detail-item {
    animation: slideUp 0.4s forwards 0.3s;
    max-width: 200px;
    margin-bottom: 0.5rem;
}

.contact-container {
    max-width: 600px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.form-group {
    margin-bottom: 0;
    position: relative;
    width: 100%;
}

label {
    display: block;
    margin: 5px 0;
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
}

input[type='text'],
input[type='email'],
textarea {
    width: 100%;
    padding: 12px;
    border-style: solid;
    border-width: 2px;
    border-color: #808080 #ffffff #ffffff #808080;
    background-color: #f0f0f0;
    font-size: 1em;
    outline: none;
    box-shadow: inset 1px 1px 0px #000000, inset -1px -1px 0px #dfdfdf;
    transition: all 0.2s ease;
}

textarea {
    border-color: #808080 #ffffff #ffffff #808080;
    box-shadow: inset 1px 1px 0px #000000, inset -1px -1px 0px #dfdfdf;
}

/* Focus State */
input[type='text']:focus,
input[type='email']:focus,
textarea:focus {
    border: none;
    box-shadow: 2px 2px 0px #000000;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

#submit-form-button {
    background-color: #dfdfdf;
    color: #000000 !important;
    width: fit-content;
    padding: 0.5rem 1.5rem;
    border-style: solid;
    border-width: 3px;
    border-color: #dfdfdf #000000 #000000 #dfdfdf;
    box-shadow: 1px 1px 0 0 black;
    transition: all 0.1s ease-out;
    cursor: pointer;
}

#submit-form-button i {
    font-size: 1rem;
    margin-right: 0.5rem;
}

#submit-form-button:hover:not([disabled]) {
    background-color: #000080;
    color: white !important;
    border-color: #000080 #000000 #000000 #000080;
    box-shadow: 2px 2px 0 0 black;
    transform: translateY(-2px);
}

#submit-form-button:active {
    border-color: #000000 #dfdfdf #dfdfdf #000000;
    box-shadow: none;
    transform: translateY(1px);
    background-color: #000080;
    color: white !important;
}

#submit-form-button[disabled] {
    cursor: not-allowed;
    opacity: 0.6;
}

.error-message {
    color: #dc3545;
    font-size: 0.85em;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}

.input-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 1px rgba(220, 53, 69, 0.5);
}

#form-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    font-weight: bold;
    text-align: center;

    opacity: 0;
    display: none;
    transition: opacity 0.5s, visibility 0.5s;
}

#form-success.show {
    opacity: 1;
    display: block;
}

.social-links-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.social-links-section h3 {
    color: #000080;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: bold;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links a {
    font-size: 1.5rem;
    color: #414141;
    cursor: pointer;
}

.social-links a:hover {
    color: #808080;
}

.social-links a:visited {
    color: #000080;
}

footer {
    width: 100%;
    flex-shrink: 0;
    margin-top: 2rem;
}

.footer-content {
    display: block;
    text-align: center;
    padding: 0.5rem;
    background-color: #000080;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    font-size: 0.9rem;
}

.footer-content {
    animation: slideInFromBottom 0.6s ease-out;
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.social-icons a {
    font-size: 1.1rem;
    margin: 0 0.3rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.social-icons a:visited {
    color: lightblue;
}

.social-icons a:hover {
    color: grey;
    cursor: pointer;
}

/* Mobile Responsive */
@media screen and (max-width: 600px) {
    html {
        font-size: 12px;
    }

    #home-navigation {
        padding: 1rem;
        width: 90%;
    }

    #home-navigation .logo {
        font-size: 1.5rem;
        text-shadow: none;
    }

    #home-navigation .logo img {
        margin-top: 1rem;
        height: 6rem;
    }

    #home-navigation .nav-links {
        flex-direction: row;
        gap: 1rem;
        padding: 1rem;
    }

    #home-navigation .nav-links a {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .window-title-bar {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    nav {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }

    .logo {
        width: 100%;
        text-align: center;
        font-size: 0.9rem;
    }

    .center-text {
        font-size: 0.7rem;
    }

    .dialog-text {
        padding: 2rem 1rem;
    }
}

/* For mobiles and tablets */
@media screen and (max-width: 1023px) {
    .dialog-hint-big-screens {
        display: none;
    }
    .dialog-hint-small-screens {
        display: inline;
    }
}

/* About me page */
/* body:has(#page-wrapper-draggable) {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    overflow-x: hidden;
} */

/* #page-wrapper-draggable {
    position: sticky !important;
    top: calc(var(--nav-height)) !important;
    left: 0;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden !important;
    transform: none !important;
} */

.window.draggable .window-title-bar:hover {
    cursor: move;
}

/* .profile-container {
    width: 50vw;
    max-width: 350px !important;
}

.about-container {
    width: 70vw;
    max-width: 600px !important;
} */

.image-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.profile-image {
    width: 100%; /* fills the width of the column/window */
    max-width: 250px; /* prevents it from becoming too large */
    aspect-ratio: 4 / 5; /* keeps proportions (same as 200x250) */
    background-color: #e0e0e0;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #808080;
    font-size: 0.9rem;
    overflow: hidden;
}

.profile-image img {
    height: 100%;
}

.image-caption {
    text-align: center;
    font-size: 0.9rem;
    color: #000080;
    font-weight: bold;
}

.aboutme-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.about-text-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.text-card {
    background-color: #f0f0f0;
    padding: 1.2rem;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow: inset 1px 1px 0px #dfdfdf, inset -1px -1px 0px #000000;
    transition: all 0.2s ease;
}

/* .text-card:hover {
    transform: translate(2px, 2px);
    box-shadow: none;
} */

.text-card h3 {
    color: #000080;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: bold;
}

.text-card h3 i {
    color: #000080;
}

.about-visuals {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.interest-item {
    background-color: #e0e0e0;
    padding: 0.5rem;
    text-align: center;
    border: 1px solid #a0a0a0;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

/* .interest-item:hover {
    border-color: #000080;
} */

.download-button {
    text-decoration: none;
    background-color: #c0c0c0;
    color: #000000;
    padding: 0.5rem 1.5rem;
    border-style: solid;
    border-width: 2px;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    box-shadow: 1px 1px 0 0 #000000;
    transition: all 0.1s ease-out;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
}

.download-button:hover {
    background-color: #000080;
    color: white;
    border-color: #000080 #000000 #000000 #000080;
    box-shadow: 2px 2px 0 0 black;
    transform: translateY(-2px);
}

.download-button:active {
    border-color: #000000 #dfdfdf #dfdfdf #000000;
    box-shadow: none;
    transform: translateY(1px);
    background-color: #000080;
    color: #ffffff;
}

.window.draggable {
    position: absolute !important;
    margin-bottom: 20px;
    /* left: 50%;
    top: 50%; */
    /* width: 90% !important; */
    height: auto !important;
}

/* Mobile Responsive Design */
@media screen and (max-width: 768px) {
    .aboutme-content {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .window-body {
        padding: 1rem;
    }

    .text-card,
    .visual-card,
    .architecture-diagram {
        padding: 1rem;
    }

    .interests-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .interests-grid {
        grid-template-columns: 1fr;
    }
}

/* @media (max-width: 480px) {
    .about-container {
        width: 90vw !important;
    }
    .profile-container {
        width: 70vw !important;
    }
} */

.project-segment:nth-child(2) {
    background-size: 70%;
    background-position: 120% 67%;
}

.project-segment:nth-child(3) {
    background-size: 120%;
    background-position: 110% 360%;
}

.project-segment:nth-child(4) {
    background-size: 30%;
    background-position: 63% 120%;
}

.project-segment:nth-child(5) {
    background-size: 40%;
    background-position: 30% 100%;
}

.project-segment:nth-child(6) {
    background-size: 40%;
    background-position: 3% 82%;
}

.project-segment:nth-child(7) {
    background-size: 40%;
    background-position: -20% 50%;
}

.project-segment:nth-child(8) {
    background-size: 30%;
    background-position: 0% 20%;
}

.project-segment:nth-child(9) {
    background-size: 30%;
    background-position: 22% -10%;
}

.project-segment:nth-child(10) {
    background-size: 35%;
    background-position: 60% 0%;
}

.project-segment:nth-child(11) {
    background-size: 45%;
    background-position: 95% 6%;
}

.project-segment:nth-child(12) {
    background-size: 55%;
    background-position: 100% 30%;
}

.music-window {
    /* Use the same styling as other windows */
    background-color: #ffffff;
    border-style: solid;
    border-width: 2px;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    box-shadow: 4px 4px 0 0 #000000;
    max-width: 600px; /* similar to .about-container */
    width: 70%; /* consistent with other draggable windows */
    animation: windowAppear 0.5s ease-out forwards;
}

.music-window .window-body {
    padding: 2rem; /* same as other windows */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.player-controls,
.nav-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

#progress {
    width: 100%;
}

#play-pause, #prev, #next {
    padding: 0.5rem;
    font-weight: 600;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    cursor: pointer;
    transition: all 0.3s;
}

#play-pause:hover, #prev:hover, #next:hover {
    background-color: #ababab;
    /* color: white; */
    /* border-color: #808080 #000000 #000000 #000080; */
    box-shadow: 2px 2px 0 0 black;
    transform: translateY(-2px);
}

#play-pause:active, #prev:active, #next:active {
    border-color: #000000 #dfdfdf #dfdfdf #000000;
    box-shadow: none;
    transform: translateY(1px);
}


/* Style the range slider */
#progress {
    -webkit-appearance: none; /* Remove default style */
    width: 100%;
    height: 8px; /* Thickness of the bar */
    
    /* 💡 NEW: This gradient creates the split fill using the JS variable */
    --track-progress: 0%; /* Initialize the variable */
    background: linear-gradient(
        to right, 
        #000000 0%,      /* Start Dark at 0% */
        #000000 var(--track-progress), /* Dark up to the current progress point */
        #d3d3d3 var(--track-progress), /* Start Light at the current progress point */
        #d3d3d3 100%     /* Light until 100% */
    );
    
    border-radius: 4px;
    outline: none;
    /* Remove 'overflow: hidden;' if you have it, as it interferes with gradient */
    cursor: pointer;
}

/* Track for Webkit browsers (Chrome, Safari, Edge) */
#progress::-webkit-slider-runnable-track {
    height: 8px;
    background: transparent; /* Must be transparent so the main #progress background shows */
    border-radius: 4px;
}

/* Firefox */
#progress::-moz-range-track {
    height: 8px;
    background: transparent; /* Let the main #progress rule handle the background */
    border-radius: 4px;
}

#progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #000000;
    border: 2px solid #000000; 
    
    /* 💡 CRITICAL: This is the centering offset for a 14px thumb on an 8px track */
    margin-top: -3px; 
    
    cursor: pointer;
}

#current-song {
    font-weight: 600;
}