/* styles.css */
body {
    /*background-color: rgb(25, 91, 69);*/
    background: url(./background/bg3.gif);
    background-size: cover;

    display: flex;
    justify-content: center;  /* Centers the canvas horizontally */
    align-items: center;      /* Centers the canvas vertically */
    height: 100vh;            /* Makes the body take the full height of the viewport */
    margin: 0;                /* Removes default body margin */
}

canvas {
   
    background-image: url(/background/bg4.gif);
    opacity: 0.9;
    background-size: contain;
    filter: contrast(2);
    display: block;
    width: 38%;               /* Set the width to 40% of the parent (body) */
    height: 77%;             /* Maintain aspect ratio */
    border: 1vw solid rgb(128, 0, 128); /* Dark purple border */
    border-style: groove;
    box-shadow: 0 0 10px rgba(128, 0, 128, 0.8), 0 0 20px rgba(0, 0, 255, 0.6), 0 0 30px rgba(255, 105, 180, 0.5); /* Neon glow with purple, blue, and light pink */
    animation: neonPulse 1.5s ease-in-out infinite; /* Apply the animation */
 
}

/* Define the keyframes for the neon pulse effect */
@keyframes neonPulse {
    0% {
        box-shadow: 0 0 10px rgba(176, 134, 253, 0.8), 0 0 10px rgba(0, 0, 255, 0.6), 0 0 30px rgba(255, 105, 180, 0.5);
        border-color: rgb(255, 52, 255); /* Dark purple border */
  
    }
    50% {
        box-shadow: 0 0 10px rgb(128, 1, 226), 0 0 30px rgba(145, 49, 255, 0.9), 0 0 90px rgba(255, 105, 180, 0.7);
        border-color: rgb(110, 192, 255); /* Dark purple border gets brighter */
    }
    100% {
        box-shadow: 0 0 10px rgba(255, 115, 187, 0.8), 0 0 10px rgba(0, 0, 255, 0.6), 0 0 30px rgba(255, 105, 180, 0.5);
        border-color: rgb(172, 92, 238); /* Back to the initial border color */
    }
}

.note1{
    position: absolute;
 
    left: 6.3%;
    top: 12%;
  
    
}
.note1 img{
    width: 26%;
    transform: translateX(390%);
    
    border-style: groove;
    border: 0.3vw solid rgb(128, 0, 128); /* Dark purple border */
    border-style: groove;
    animation: neonPulsey 0.4s ease-in-out infinite; /* Apply the animation */
    /*animation: neonPulse 0.4s ease-in-out infinite; /* Apply the animation */
}
.img1{
    position: absolute;
 
    left: -6%;
    bottom: 10%;
    animation: neonPulsey 1s ease-in-out infinite; /* Apply the animation */
    
    

}
.img1 img{
    
    width: 38%;
    transform: translateX(390%);
    border: 0.5vw solid rgb(128, 0, 128); /* Dark purple border */
    border-style: groove;
    animation: neonPulsey 1s ease-in-out infinite; /* Apply the animation */
   
    /*animation: neonPulse 0.4s ease-in-out infinite; /* Apply the animation */
}
.img2{
    position: absolute;
 
    left: -6%;
    bottom: 10%;
    animation: neonPulsey 1s ease-in-out infinite; /* Apply the animation */
    
    

}
.img2 img{
    
    width: 45%;
    transform: translateX(90%);
    border: 0.5vw solid rgb(128, 0, 128); /* Dark purple border */
    border-style: groove;
    animation: neonPulsey 1s ease-in-out infinite; /* Apply the animation */
   
    /*animation: neonPulse 0.4s ease-in-out infinite; /* Apply the animation */
}
.title{
    position: absolute;
    transform: translateX(100%);
    left: -21%;
    top: 3%;

    z-index: 123;
    
    

}
.title img{
    
    width: 85%;
    transform: translateX(90%);


 

   
    /*animation: neonPulse 0.4s ease-in-out infinite; /* Apply the animation */
}
@keyframes neonPulsey {
    0% {
 
        border-color: rgb(255, 52, 255); /* Dark purple border */
  
    }
    50% {
        
        border-color: rgb(110, 192, 255); /* Dark purple border gets brighter */
    }
    100% {
       
        border-color: rgb(172, 92, 238); /* Back to the initial border color */
    }
}

#scoreContainer {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 10px;
    border: 0.5vw solid rgb(128, 0, 128); /* Dark purple border */
    border-style: groove;
    animation: neonPulsey 1s ease-in-out infinite; /* Apply the animation */
}

@keyframes neonPulsey {
    0% {
        border-color: rgb(255, 52, 255); /* Dark purple border */
    }
    50% {
        border-color: rgb(110, 192, 255); /* Dark purple border gets brighter */
    }
    100% {
        border-color: rgb(172, 92, 238); /* Back to the initial border color */
    }
}

#scoreDisplay {
    font-size: 20px;
    font-family: Arial, sans-serif;
    color: white; /* Set the score text color to white */
}

.youtube-music iframe {
    position: absolute;
    width: 25%;
    max-width: 660px; /* Maximum width of the player */
    height: 29%;
    border: 0.5vw solid rgb(128, 0, 128); /* Dark purple border */
    border-style: groove;
    animation: neonPulsey 0.8s infinite; /* Apply the animation */
    left: 3%;
    top: 11%;
    pointer-events: none;
}

/* Style for the container to position buttons side by side */
.button-container {
    width: 50%;
    justify-content: center;
    position: absolute;
    bottom: 4%;  /* Vertically center the buttons */
    left: 50%;  /* Horizontally center the buttons */
    transform: translate(-50%, -50%);  /* Correct the centering */
    display: flex;
    gap: 20px;  /* Adds space between the buttons */
    z-index: 10;
}

/* Button styles */
button {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bolder;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    cursor: pointer;
    background-color: #46007b; /* Pink color */
    border: 0.5vw solid rgb(128, 0, 128); /* Dark purple border */
    border-style: groove;
    animation: neonPulsey 0.8s infinite; /* Apply the animation */
    color: white;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #cf74ee; /* Change color on hover */
}

/* Style for the intro screen */
.intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Optional: to add a background overlay */
    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 9999; /* Ensures it's on top of the main content */
    pointer-events: all; /* Allow interactions with the intro screen */
    opacity: 1;
    transition: opacity 2s ease-out; /* Fade-out animation */
  }
  
  .intro img {
    border: 0.2vw solid rgb(20, 205, 242); /* Dark purple border */
    max-width: 90%; /* Adjust based on how you want the intro image to display */
    max-height: 90%;
  }
  
  /* Style for the main content */
  .content {
    visibility: hidden; /* Hide content initially */
    opacity: 0;
    transition: opacity 1s ease-in;
  }
  
  /* Show the main content after intro fades out */
  .content.show {
    visibility: visible;
    opacity: 1;
  }
  