:root {
    /* font-sizes */
    --fs-300: clamp(0.7rem, 1vw, 0.9rem);
    /* 14px */
    --fs-400: clamp(0.9rem, 2vw, 1.125rem);
    --fs-500: clamp(1rem, 3vw, 1.3rem);
    --fs-600: clamp(1.2rem, 3vw, 1.6rem);
    --fs-700: clamp(2rem, 3vw, 3rem);

    /* font-weights */
    --fw-300: 300;
    --fw-400: 400;
    --fw-500: 500;
    --fw-600: 600;
    --fw-700: 700;
    --fw-800: 800;
    --fw-900: 900;
}

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

html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    background: url(../images/wallpaper_fan_hub.png) no-repeat left center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

/* Utilities */

.width-100 {
    width: 100%;
}

.flex {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.flex-around {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

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

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

.flex-end {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 20px;
}

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


.flex-column-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
}

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

.flex-column-stretch {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: stretch;
    gap: 20px;
}

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

.flex-evenly {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    gap: 20px;
}

.flex-1-1 {
    flex: 1 1 auto;
}

.flex-grow-1 {
    flex-grow: 1;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    grid-auto-flow: dense;
    justify-items: center;
    align-items: center;
    gap: 30px;
}

.grid-header {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 1fr;
    justify-items: center;
    align-items: center;
}

.back-red {
    background-color: red;
}

.back-dark {
    background-color: rgb(29, 33, 36);
}

.back-white {
    background-color: white;
}

.back-transparent {
    background-color: transparent;
}

.color-white {
    color: white;
}

.color-red {
    color: red;
}

.hidden {
    display: none;
}

.border-red {
    border: 4px solid red;
}

.border-white {
    border: 6px solid rgba(255, 255, 255, 0.686);
}

.box-shadow {
    -webkit-box-shadow: 0px 0px 6px 6px #000000;
    box-shadow: 0px 0px 6px 6px #000000;
}

.shadow-white {
    -webkit-box-shadow: 0px 0px 3px 3px #ffffff71;
    box-shadow: inset 0px 0px 3px 3px #ffffff7f;
}

.padding-10 {
    padding: 10px;
}

.padding-20 {
    padding: 20px 30px;
}

.btn-form {
    padding: 5px 15px;
    border: 1px solid black;
    border-radius: 10px;
    -webkit-box-shadow: 0px 0px 13px 3px #000000;
    box-shadow: 0px 0px 13px 3px #000000;
}

.text-center {
    text-align: center;
}

.margin-10 {
    margin: 10px;
}

@counter-style treble-clef {
    system: cyclic;
    /* Unicode for the treble clef symbol */
    symbols: "\1D11E";
    /* Add a space after the symbol */
    suffix: "  ";
}

.playlist-card {
    background-color: rgb(46, 53, 59);
    padding: 30px 20px 20px 30px;
    border-radius: 5px;
    -webkit-box-shadow: 0px 0px 13px 3px #000000;
    box-shadow: 0px 0px 13px 3px #000000;

    & div,
    & ul {
        margin-inline: auto;
        text-align: left;
        max-width: 80ch;
        list-style-position: inside;
    }

    & li {
        list-style-type: treble-clef;
        padding-bottom: 10px;
    }

    & li::marker {
        font-size: 1.7em;
    }

    & h3 {
        color: red;
    }
}

.edit-btn {
    height: 40px;
    border-radius: 20px;
    align-self: flex-start;
    padding: 5px;
    min-width: 120px;
    font-size: var(--fs-400);
    margin-top: 20px;
}

.edit-btn:hover,
.edit-btn:focus,
.edit-btn:active {
    background-color: black;
    color: white;
}


/* Contents */
body {
    color: antiquewhite;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

body,
h1,
h2,
h3,
h4,
p,
a {
    margin: 0;
    font-family: system-ui, sans-serif;
    font-weight: normal;
}

h1,
h2,
h3,
h4 {
    text-shadow: 1px 1px 2px black;
}

h1 {
    font-size: var(--fs-700);
}

h2 {
    font-size: var(--fs-600);
}

h3 {
    font-size: var(--fs-500);
}

p {
    font-size: var(--fs-400);
}

header {
    top: 0;
    padding: 20px 50px 20px 50px;
    background-color: #000000b2;
}

#hello-user {
    grid-column: 3 / 4;
    font-size: var(--fs-500);
}

.username {
    font-size: 120%;
    color: whitesmoke;
    text-shadow: 3px 1px 0px rgba(0, 0, 0, 1);
    text-transform: capitalize;
}

#logo-block {
    justify-self: start;
    & a {
        display: flex;
        justify-content: flex-start;
        align-items: flex-end;
        flex-wrap: wrap;
    }
}


#logo-block p {
    font-size: var(--fs-500);
    align-self: flex-end;
    text-decoration: overline;
    color: white !important;
}


#logo-picture {
    max-width: 100px;
}

#logo-picture img {
    width: 100%;
}

.messages {
    color: white;
    font-size: large;
    text-align: center;
    background-color: black;
    padding: 10px;
}

.container {
    margin: 20px auto;
    width: 95vw;
    padding: 20px;
    border: 2px solid red;
    border-radius: 10px;
}

.nav {
    grid-column: 4 / span 2;
    justify-self: end;
}

.header-menu {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    font-size: var(--fs-500);
    gap: 50px;
    text-shadow: 3px 1px 0px rgba(0, 0, 0, 1);
    text-decoration: overline;
    color: red
}

.menu-icon {
    display: none;
}

a {
    text-decoration: none;
    color: red;
    display: inline-block;
}

a:hover {
    color: white;
    text-decoration: underline;
}

.navigation-btn {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid black;
    border-radius: 5px;
    -webkit-box-shadow: 0px 0px 13px 3px #000000;
    box-shadow: 0px 0px 13px 3px #000000;
}

.navigation-btn:hover {
    background-color: black;
}

/* Footer styles */

.footer-social {
    width: 100%;
    padding: 20px 50px 20px 20px;
    background-color: black;
    display: flex;
    /* flex-direction: column; */
    justify-content: space-around;
    flex-wrap: wrap;
    align-items: center;
    & p {
        font-weight: var(--fw-300);
        font-size: var(--fs-400);
    }
}

.social-media {
    font-size: 1.5em;

    & li {
        display: inline;
        padding: 10px;
        list-style-type: none;
    }

    & a {
        color: antiquewhite;
    }

    & a:hover {
        color: red;
    }
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: transparent;
}

.modal.show {
    display: block;
    /* Show the modal when the 'show' class is added */
}

.modal-content {
    background-color: rgba(0, 0, 0, 0.796);
    margin: 30% auto;
    padding: 20px;
    border: 4px solid #888;
    width: 80%;
    border-radius: 10px;
    box-shadow: -2px 5px 21px 18px rgba(0, 0, 0, 0.78);
    -webkit-box-shadow: -2px 5px 21px 18px rgba(0, 0, 0, 0.78);
    -moz-box-shadow: -2px 5px 21px 18px rgba(0, 0, 0, 0.78);
}

.message-error {
    color: red;
    font-size: var(--fs-400);
    font-weight: var(--fw-600);
    text-align: center;
    background-color: white;
    padding: 10px;
    & li {
        list-style: none;
    }
}

/* Media Queries */
@media (max-width: 1020px) {
    .menu-icon {
        display: block;
        font-size: 3em;
    }
    .menu-icon:hover,
    .menu-icon:focus,
    .menu-icon:active {
        color: red;
        cursor: pointer;
    }

    .navbar {
        display: none;
        position: absolute;
        top: 83px;
        right: 0;
        width: 80%;
        padding: 20px 30px;
        background-color: #000000ce;
        z-index: 1;
    }
    .header-menu {
        flex-direction: column;
        gap: 25px;  
    }
    .menu-toggle:checked + .menu-icon + .navbar {
        display: block;    
    }

    .menu-toggle:checked + .menu-icon {
        transform: rotate(90deg)
    }

    .nav-link {
        padding: 10px 0;
    }
    .nav-item:hover {
        background-color: black;
    }

}

@media (max-width: 780px) {
    .navbar {
        width: 100%;
    }
    .pagination {
        font-size: var(--fs-400);
    }
    .social-media {
        font-size: 1.2rem;
    }
    .home-footer {
        justify-content: center;
        gap: 20px;
    }
}
