
body {
    font-family: "Montserrat", sans-serif;


}

:root {
    --indigo-dye: #1a4875ff;
    --alice-blue: #ecf3f9ff;
    --steel-blue: #3583bfff;
    --white: #ffffffff;
    --alice-blue-2: #e1ecf4ff;
    --indigo-dye-2: #29425bff;
}

.button-style {
    background: linear-gradient(180deg, var(--indigo-dye), var(--steel-blue));
    color: var(--white);

    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /*border: 1px solid var(--white);*/
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.button-style:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.input-style {
    padding: 1rem;
    border: 2px solid var(--alice-blue-2);
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    margin: 0.5rem 0;
    transition: border-color 0.3s ease;
}

.input-style:focus {
    border-color: var(--indigo-dye);
    outline: none;
}

#genre-list li {
    border: 2px solid var(--alice-blue-2);
    border-radius: 10px;

    transition: border-color 0.5s ease, min-width 0.5s ease-in-out;
    min-width: 3vw;
}

#genre-list li:hover {
    border-color: var(--indigo-dye);
}

#genre-list li:has(input:checked) {
    min-width: 5vw;

}


#generate-lyrics-btn {
    background: linear-gradient(90deg, var(--indigo-dye), var(--steel-blue));
    color: var(--white);
    border-radius: 50px;

    transition: background 0.3s ease, transform 0.3s ease;
}

#generate-lyrics-btn:hover {
    background: linear-gradient(90deg, var(--steel-blue), var(--indigo-dye));
    transform: scale(1.05);
}

.vinyl-jacket {
    position: relative;
    border-radius: 1px;
    width: 25vh;
    height: 25vh;
    perspective: 200px;
    transform-style: preserve-3d;
    background-image: linear-gradient(rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0));
    background-size: cover;
    box-shadow: 1px 2px 5px 4px #0000001c;
    cursor: pointer;
}

@media (max-width: 600px) {
    .vinyl-jacket {
        position: relative;
        border-radius: 1px;
        width: 20vh;
        height: 20vh;
        left: -10%;

        perspective: 200px;
        transform-style: preserve-3d;
        background-image: linear-gradient(rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0));
        background-size: cover;
        box-shadow: 1px 2px 5px 4px #0000001c;
        cursor: pointer;
        transition: left ease-in-out 2s;
    }

    .vinyl-move-left {

        left: -14%;
    }

    .vinyl-wrapper {
        position: absolute;
        z-index: -1;
        border-radius: 50%;
        top: 0;
        left: 30%;
        width: 100%;
        height: 100%;
        transform: translateZ(-8px);
        filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.6));
        transition: left 0.4s;
        overflow: hidden;
    }

}

.jacket-img {
    display: none;
}

.vinyl-jacket::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 1px 2px 5px 4px #0000001c;
    background-size: cover;
    transform: translateY(8%) scaleY(-1) scaleX(1.18) rotateX(-20deg);
    -webkit-mask-image: linear-gradient(transparent 80%, rgba(255, 255, 255, 0.1));
    mask-image: linear-gradient(transparent 80%, rgba(255, 255, 255, 0.1));
    pointer-events: none;
}

.vinyl-wrapper {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    top: 0;
    left: 16%;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.6));
    transition: left 0.4s;
    overflow: hidden;

}

.scale-cover {
    scale: 73%;
    z-index: 0;
}

.vinyl-jacket:hover > .vinyl-wrapper {
    animation: spin 30s linear infinite forwards;
}

.vinyl-slide-out {
    left: 60%;
    transition: left ease-in-out 2.5s;

}

.vinyl-slide-in {
    left: 0%;
    transition: left ease-in-out 2.5s;

}

/*vinyl-jacket:hover {*/
/*  left: -14%;*/
/*  transition: left ease-in-out 2s;*/
/*}*/

@media (max-width: 600px) {
    .vinyl-jacket:hover > .vinyl-wrapper {
        left: 60%;
        animation: spin 30s linear infinite;
    }

    .vinyl-slide-out {
        left: 60%;
        transition: left ease-in-out 2s;

    }

}


.vinyl-spin {
    animation: spin 30s linear infinite forwards;
}

.vinyl {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    background-color: #21201e;
    background-image: conic-gradient(from 45deg, rgba(255, 255, 255, 0.25), transparent 6.25% 43.75%, rgba(255, 255, 255, 0.25) 50%, transparent 56.25% 93.75%, rgba(255, 255, 255, 0.25)), radial-gradient(farthest-side, transparent 0 calc(100% - 1px), #342d2b 95.23% 100%), radial-gradient(farthest-side, transparent 0 95.23%, #342d2b 95.23% 100%), radial-gradient(farthest-side, rgba(255, 255, 255, 0.06) 0 40%, rgba(0, 0, 0, 0.2) 40% calc(40% + 1px), rgba(0, 0, 0, 0.12) calc(40% + 1px) 48%, #282826 48% calc(48% + 1px), transparent calc(48% + 1px) 100%), radial-gradient(farthest-side, transparent 63.8%, rgba(255, 255, 255, 0.03) 63.8% calc(63.8% + 1px), transparent calc(63.8% + 1px) 81.9%, rgba(255, 255, 255, 0.03) 81.9% calc(81.9% + 1px), transparent 0), repeating-radial-gradient(farthest-side, rgba(255, 255, 255, 0.005) 0 1px, transparent 1px 2px), repeating-radial-gradient(farthest-side, rgba(255, 255, 255, 0.005) 0 1px, transparent 1px 5px), repeating-radial-gradient(farthest-side, #1e1d1c, #21201e 12.5%);
    -webkit-mask-image: radial-gradient(transparent 2.4%, #ffffff 2.4%);
    mask-image: radial-gradient(transparent 2.4%, #ffffff 2.4%);
    box-shadow: inset 0 0 1px 1px #000, inset 0 0 0 2px rgba(110, 100, 101, 0.6);
}

.vinyl img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0);
    border: 1px solid #3b3b38;
    background: white;
    border-radius: 50%;
    width: 39.33%;
    height: 39.33%;
    background-size: cover;
    image-rendering: crisp-edges;
}


@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


.tag-list {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    gap: 1rem 0;
    position: relative;
    padding: 1.5rem 0;
    overflow: hidden;
    margin: 0 auto; /* center the element */
}


.loop-slider .inner {
    display: flex;
    width: fit-content; /* full width on mobile */
    animation-name: loop;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: var(--direction);
    animation-duration: var(--duration);
}


/* Override the animation when hovering on .loop-slider or any of its child .tag */
.inner:hover, .tag:hover {
    animation-play-state: paused;
}

.tag:hover {
    transform: scale(1.15); /* Increase the size by 10% */
    animation-play-state: paused;

}

.gradient-button {
    background: linear-gradient(359deg, var(--indigo-dye), var(--steel-blue));
    transition: background 0.5s ease;
    background-size: 300%;

    animation: gradient-spin-deg 3s linear infinite;


}

.play-button {
    /* From https://css.glass */
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: absolute;
    top: 50%;
    left: 50%;
    width: fit-content;
    padding: 1rem;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.vinyl-jacket:hover .play-button {
    opacity: 1;
}


.gradient-text {
    background: linear-gradient(90deg, #727272, rgb(0, 20, 121), rgb(11, 23, 72), #001d69, #339af0, #22b8cf, #20c997, #94d82d, #fcc419, #ff922b);
    background-size: 300%;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    transition: background-position 0.5s ease;
    line-height: normal;
    /*animation: gradient-spin 30s linear infinite;*/
}

.gradient-animate {
    animation: gradient-spin 30s linear infinite forwards;
}

/*.gradient-text:hover {*/
/*  */
/*}*/

@keyframes gradient-spin {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

@keyframes gradient-spin-deg {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 0% 50%;
    }
    75% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 0%;
    }
}


.tag {
    display: flex;
    cursor: pointer;
    min-width: 16vh;
    align-items: center;
    justify-content: center;
    gap: 0 0.8rem;
    color: rgb(227, 227, 227);
    font-size: 0.95rem;
    background: linear-gradient(359deg, var(--indigo-dye), var(--steel-blue));
    border-radius: 0.8rem;
    padding: 0.5rem 0.8rem;
    margin-right: 1vw;;
    box-shadow: 0 0.1rem 0.2rem rgba(0, 0, 0, 0.2), 0 0.1rem 0.5rem rgba(0, 0, 0, 0.3), 0 0.2rem 1.0rem rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease-in-out;
    width: max-content;
}

.tag span {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

.fade {
    pointer-events: none;
    background: linear-gradient(90deg, #f3f4f6, transparent 12%, transparent 88%, #f3f4f6);
    position: absolute;
    inset: 0;
}

@keyframes loop {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.hidden-ease {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.scaled-to-zero {
    transform: scale(0);

}

img, video {
    /*width: 20;  !* Adjust as needed *!*/
    /*height: 200px; !* Adjust as needed *!*/

    object-fit: cover; /* This will ensure that your images/videos maintain their aspect ratio */
}

.smaller-vinyl-jacket {
    width: 30vh;
    height: 30vh;
}

.play-button {
    width: 1em; /* Increased width */
    height: 1em; /* Increased height */
    /*background-color: #262730;*/
    /*border: none;*/
    /*border-radius: 50%;*/
    cursor: pointer; /* Ensure it's centered within its container */
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button svg {
    fill: white;
    opacity: 0.8;
    width: 1.7em;
    height: 1.7em;
    color: white;
}

.play-button:before {
    /*content: "";*/
    position: relative;
    display: block;
    /*border-left: 15px solid #fff;*/
    /*border-top: 10px solid transparent;*/
    /*border-bottom: 10px solid transparent;*/
}

li:has(input[type="radio"]:checked + label) {
    background-color: #cce4ff; /* Highlight color for light mode */
    color: #000; /* Text color for light mode */
}

li:has(input[type="radio"] + label) {
    outline: none;
    box-shadow: none;

}

li:has(.dark input[type="radio"]:checked + label) {
    background-color: #1a2a47; /* Highlight color for dark mode */
    color: #fff; /* Text color for dark mode */
}

.share-btn {
    display: inline-block;
    color: #ffffff;
    border: none;
    padding: 0.1em 0.6em;
    outline: none;
    text-align: center;
    cursor: pointer;
    font-size: 0.9em;
    margin: 0 0.2em;
}

@keyframes grow {
    from {

        transform: scale(0%);

    }
    to {
        transform: scale(100%);

    }
}

.appear {
    animation: grow 1.5s linear forwards;
}

@keyframes shrink {
    from {
        /*transform: scale(1);*/
        top: 0%;

    }
    to {
        top: -10%;

    }
}

#card-1, #card-2 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.shrink-vinyl .vinyl-jacket {
    animation: shrink 1s linear forwards;
}

.share-btn:focus,
.share-btn:hover {
    text-decoration: none;
    opacity: 0.8;
}

.share-btn:active {
    color: #e2e2e2;
}

.share-btn.twitter {
    background: #55acee;
}

.share-btn.google-plus {
    background: #dd4b39;
}

.share-btn.facebook {
    background: #3B5998;
}

.share-btn.stumbleupon {
    background: #EB4823;
}

.share-btn.reddit {
    background: #ff5700;
}

.share-btn.hackernews {
    background: #ff6600;
}

.share-btn.linkedin {
    background: #4875B4;
}

.share-btn.email {
    background: #444444;
}


/* styles.css */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    margin: 0;
}

.close-button {
    background: none;
    border: none;
    color: red;
    cursor: pointer;
    font-size: 16px;
}

.modal-body {
    font-size: 14px;
}
