html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    display: grid;
    margin: 0;
    padding: 0;
    background-color: black;
}

h2, h3, h4 {
    margin: 0;
    font-weight: 500;
}

h5 {
    margin: 0;
    font-weight: 300;
}

p {
    text-align: center;
    color: #000000;
}

input {
    position: absolute;
    display: none;
}

article {
    position: relative;
    perspective: 1000px;
    width: 350px;
    height: 350px;
}

article header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

article header h2 {
    font-size: 20px;
}

article :is(h4, p) {
    opacity: 0.5;
    font-size: 20px;
}

article p {
    margin-top: 25px;
}

article .front,
article .back {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    text-align: center;
    backface-visibility: hidden;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px,
      rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px -1px;
    padding: 14px;
    transition: 0.6s;
    cursor: pointer;
}

button:hover {
    background-color: #2563eb;
}

input:checked ~ article .back {
    transform: rotateY(0);
}

input:checked ~ article .front {
    transform: rotateY(-180deg);
}

article var {
    font-style: normal;
    font-size: 80px;
    line-height: 1;
}

article h3 {
    margin: 0 0 30px;
    font-weight: 500;
}

header {
    text-align: center;
    padding-bottom: 10px;
}

ul {
    list-style-type: none;
    padding: 0;
}

ol {
    margin: 0;
    padding: 0;
}

li {
    margin-bottom: 5px;
    padding: 5px;
}

a {
    text-decoration: none;
    color: inherit; 
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    text-align: center;
    margin-bottom: 30px;
}

.navbar {
    position: absolute;
    display: flex;
    justify-content: space-between;
    align-items: center;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    margin: auto;
    padding: 25px 0;
}

.navbar-demo {
    background-color: black;
    position: fixed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    margin: auto;
    padding: 25px 0;
}

.nav-items {
    margin-right: 35px;
    padding-top: 5px;
    display: flex;
    align-items: center;
}

.nav-logo {
    margin-left: 25px;
}

.nav-link {
    margin-right: 20px;
    margin-top: 7px;
}

.nav-link-menu {
    margin-right: 20px;
    padding-top: 7px;
}

.icon {
    height: 25px;
    color: white;
    font-size: 24px;
}

#logo-big {
    width: 200px;
}

#logo-small {
    width: 50px;
    display: none;
}

.user-info {
    display: inline-block;
    vertical-align: middle;
    height: auto;
}

.user-logo{
    background-color: #414141;
    margin-left: 9px;
    border-radius: 30px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    padding: 6px;
    transition: all .1s ease-in-out;
}

.profile-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.username {
    max-width: 120px;
    line-height: 36px;
    margin-right: 10px;
    font-family: Circular, sans-serif;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    font-size: 20px;
}

.dropdown {
    position: relative;
    cursor: pointer;
}
  
.dropdown > button {
    width: 170px;
    height: 60px;
    border: 0;
    border-radius: 30px;
    font-family: inherit;
    font-size: 17px;
    background: #3c3c3c;
}
  
.dropdown > .content {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    height: 60px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f7f7f7;
}
  
.dropdown > .content::after {
    content: "";
    position: absolute;
    bottom: 6px;
    right: 10%;
    width: 80%;
    height: 1px;
    transform: scaleX(0);
    transition: 0.3s;
}

.dropdown:hover > .content::after {
    transform: scaleX(1);
}
  
.dropdown > .content > span:first-child {
    font-size: 20px;
}
  
.dropdown > .content > span:last-child {
    margin-left: auto;
}
  
.dropdown > .content > span:last-child {
    transition: 0.3s;
}
  
.dropdown > .menu {
    position: absolute;
    z-index: 1;
    top: -6px;
    left: 50%;
    display: grid;
    width: 110%;
    padding: 70px 0 6px;
    border-radius: 6px;
    translate: -50% 0;
    visibility: hidden;
    opacity: 0;
    scale: 0.85;
    background: linear-gradient(#414141, #1ed760);
    transition: 0.3s;
}
  
.dropdown:hover > .menu {
    visibility: visible;
    opacity: 1;
    scale: 1;
    border-radius: 20px;
    padding-bottom: 15px;
    gap: 10px;
}
  
.dropdown > .menu > a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f7f7f7;
    font-size: 14px;
    padding: 0 24px;
    text-decoration: none;
}
  
.dropdown > .menu > a:hover {
    background: rgb(0 0 0 / 10%);
}
  
.dropdown > .menu > a > span {
    font-size: 18px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-content: center;
    place-items: center;
    margin: 12%;
}

.cards-demo {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-content: center;
    place-items: center;
    margin: 5%;
}

.textarea-container {
    width:310px;
    height: 250px;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 5px;
    background-color: #f1f5f9;
}

.buttons {
    text-align: center;
    margin-top: 20px;
    display: flex;
    margin: 25px 0 5px;
    justify-content: center;
    width: 80%;
    gap: 5px;
}

.cta-button {
    background-color: #1DB954;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background-color: #1ED760;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.3);
}

.spotify-link {
    display: flex;
    align-items: center;
    color: #1DB954;
    font-size: 14px;
    text-decoration: none;
    font-weight: bold;
    justify-content: center;
}

.spotify-link:hover {
    text-decoration: underline;
}

.spotify-logo {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

.artist-box {
    background-color: #1f9b1f;
    border-radius: 10px;
    padding: 10px;
    color: white;
    text-align: center;
}

.back {
    transform: rotateY(180deg);
}

#search-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#artist_search {
    display: block;
    width: 40%;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 16px;
    box-sizing: border-box;
}

.search {
    margin-top: 45px;
    padding: 12px;
    background-color: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.search-again {
    padding: 12px;
    background-color: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.list {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.loader {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
    margin:15px auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000000;
    box-sizing: border-box;
    animation: animloader 1s linear infinite alternate;
    z-index: 999;
    display: none;
}

.demo{
    margin: 120px 20px 0;
    color: white;
}

#events-content.loading {
    opacity: 0.5; 
    pointer-events: none; 
}

#summary :is(var, h3) {
    color: #3b82f6;
}

#overdue :is(var, h3) {
    color: #ef4444;
}

#features :is(var, h3) {
    color: #22c55e;
}

.imagen {
    width: 50%;
    border-radius: 3px;
}

.song-cover {
    width: 30%;
}

.play-icon {
    font-size: 14px;
}

.song {
    display: flex;
    align-items: center;
    background-color: #d6eddf;
}

.song-cover {
    width: 30%;
}

.song-details {
    flex-grow: 1;
    padding-left: 1px;
}

.buttons-demo{
    text-align: center;
    margin: 30px;
    display: flex;
    justify-content: center;
}

.waves-container {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 20vh;
    z-index: -1;
}

.waves {
    position: relative;
    width: 100%;
    height: 100%;
    animation: fadeIn 1s ease-out;
}

.parallax > use {
    animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
    fill: rgba(30, 215, 96, 0.7);
}

.parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
    fill: rgba(21, 121, 55, 0.7);
}

.parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
    fill: rgba(30, 215, 96, 0.7);
}

.parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s; 
    fill: rgba(21, 121, 55, 0.7);
}

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

.intro {
    width: 500px;
    padding: 15px;
    color:white;
}

.footer-text {
    color:white
}

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

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }
    100% {
        transform: translate3d(85px, 0, 0);
    }
}

@keyframes animloader {
    0% {
      box-shadow: -38px -12px ,  -14px 0,  14px 0, 38px 0;
    }
    33% {
      box-shadow: -38px 0px, -14px -12px,  14px 0, 38px 0;
    }
    66% {
      box-shadow: -38px 0px , -14px 0, 14px -12px, 38px 0;
    }
    100% {
      box-shadow: -38px 0 , -14px 0, 14px 0 , 38px -12px;
    }
}

@media screen and (max-width: 768px) {
    .demo {
        font-size: 30px;
        margin: 100px 0 10px;
    }
    .navbar #logo-big {
        display: none;
    }
    .navbar #logo-small {
        display: block;
    }
    .nav-items{
        margin-right: 15px;
        padding-top: 0;
    }
    .nav-logo{
        margin-left: 15px;
    }
    .username{
        display: none;
    }
    .profile-image{
        margin-right: 0;
    }
    .user-logo{
        margin-left: 4px;
    }
    .navbar{
        padding: 25px 0 15px;
        top: 0;
        background-color: black;
    }
    .cards {
        display: flex;
        flex-wrap: wrap;
        margin-top: 30%;
    }
    .cards-demo {
        display: flex;
        flex-wrap: wrap;
        margin-top: 30px;
    }
    .dropdown > button {
        width: 50px;
        height: 50px;
        border-radius: 25px;
    }
    .dropdown > .content {
        height: 50px;
        padding: 0 5px;
    }
    .dropdown > .content::after {
        bottom: 0;
    }
    .dropdown > .menu {
        top: 100%;
        left: -20%;
        width: 240%;
        padding: 15px 0;
    }
    .dropdown > .menu > a {
        padding: 6px 15px;
        font-size: 14px;
    }
    .dropdown > .menu > a > span {
        font-size: 12px;
    }
    .intro {
        width: auto;
    }
}