

#start-quiz-btn {
    padding: 10px 20px; /* Adjust padding as needed */
    margin-top: 20px; /* Adjust margin as needed */
    background-color: #007bff; /* Button color */
    color: #fff;
    border: none;
    border-radius: 5px; /* Rounded corners */
    cursor: pointer;
    font-size: 16px; /* Button font size */
}

#start-quiz-btn:hover {
    background-color: #0056b3; /* Darker button color on hover */
}

.category-btn{

padding: 10px 20px;
    margin-top: 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;

}
#progress-bar-container {
  width: 100%;
  height: 20px;
  background-color: #f0f0f0;
  border-radius: 5px;
}

.progress-bar {
  height: 100%;
  background: #2196F3!important;
  width: 0%;
  border-radius: 5px;
  transition: width 5s linear; /* Adjust the timing to match your 5-second timer */
}
 .music-quiz-screen {
            max-width: 800px;
					height:auto;
            margin: 0 auto;
            padding: 30px;
            background-color: #142934; /* White background */
            border: 1px solid #ccc;
					    text-align: center; /* Center-align text */

            color: #fff; /* Black text color */
            border-radius: 10px; /* Rounded corners */
        }
        .music-quiz-screen h2, .music-quiz-screen p, .music-quiz-screen button {
            text-align: center;
            color: #fff; /* Black text color */
        }
        .quiz-question {
            margin-bottom: 20px;
        }
        .options-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
        }
        .option {
        position: relative;
        padding: 30px;
        margin: 0; 
        border: 1px solid #ccc;
           
			cursor: pointer;
					margin:10px;
					border-radius:6px;
            overflow: hidden;
            height: 250px; /* 
            color: #000; /* Black text color */
        }
        .option:hover {
            			   

        }









.option::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%); /* Convert image to black and white */
    z-index: 1;
}

.option .overlay {
    position: relative;
    z-index: 2; /* Ensure the overlay is above the grayscale image */
     /* Semi-transparent black overlay */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: baseline !important;
    justify-content: center;
    flex-direction: column;
}



.text-background span {
    display: block;
    color: white;
	text-align:left !important;
	font-weight:500;
}








.option.correct .overlay {
    background-color: rgba(0, 128, 0, 0.5); /* Green with 50% opacity */
}


        .option.correct {
            background-color: #d4edda; /* Light green */
         
					background:green;
					border-color: #00FF00;
					 filter: grayscale(0%);
			border-width:5px;
        }
        .option.wrong {
            background-color: #f8d7da; /* Light red */
            border-color: #f5c6cb;
						border-width:5px;

        }
        .option .overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            opacity: 1;
            transition: opacity 0.3s;	
        }



.option:hover::before {
    filter: none; /* Show colors on hover */
}



        .option:hover .overlay {
          
					opacity: 1;

        }
        .overlay {
            opacity: ;
        }
        .overlay span {
            text-align: center;
            font-size: 16px;
            line-height: 1.5;
            color: #fff; /* Black text color */
            margin: 5px;
            opacity: 1;
        }
        .timer {
            font-size: 18px;
            text-align: center;
            margin-top: 10px;
            color: #000; /* Black text color */
        }
        /* End screen styling */
        #end-screen {
    text-align: center;
    display: none;
    margin-top: 20px;
}

#end-screen h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

#end-screen p {
    margin-bottom: 5px;
}

#end-screen button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

#end-screen button:hover {
    background-color: #0056b3;
}

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

.leaderboard li {
    background-color: #f9f9f9;
    border-radius: 5px;
    margin-bottom: 10px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.leaderboard li:last-child {
    margin-bottom: 0;
}

.leaderboard li:nth-child(even) {
    background-color: #f1f1f1;
}

.leaderboard li:before {
    content: "\2022";
    color: #ff9800;
    font-size: 20px;
    margin-right: 5px;
}

.leaderboard li span {
    font-weight: bold;
}

.leaderboard-title {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
}

/* Center the leaderboard */
#end-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.quiz-title {
    background: linear-gradient(45deg, #f3ec78, #af4261);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 5em;
	margin-top:0px;
    margin-bottom: 20px;
    animation: gradientAnimation 5s linear infinite; /* Animation properties */
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%; /* Start position of the gradient */
    }
    100% {
        background-position: 100% 50%; /* End position of the gradient */
    }
}


.quiz-title-inner {
    background: linear-gradient(45deg, #f3ec78, #af4261);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
	text-align:left;
    font-size: 2em;
	margin-top:0px;
		margin-bottom:-30px !important;

    animation: gradientAnimation 5s linear infinite; /* Animation properties */
}
h3{
	color:#fff;
	text-align:left;
}



.text-background {
    background-color: #037afb; /* Blue background color */
    color: white; /* White text color */
    padding: 5px; /* Add padding to create space between text and background */
    display: inline-block; /* Make the background size fit the content */
filter: grayscale(0%) !important;
}


.overlay {
    display: flex; /* Use flexbox for alignment */
  filter: grayscale(0%); 
	align-items: center; /* Align items vertically */
}

/* Add this CSS to center the "Wrong" text vertically and horizontally */
.wrong-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 0, 0, 0.5); /* Red with 50% opacity */
    z-index: 100;
    pointer-events: none; /* Allow clicking through the overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem; /* Adjust the font size as needed */
    font-weight: bold; /* Make the text bold */
}


#leaderboard-title {
    font-size: 24px;
    margin-bottom: 10px;
}

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

#leaderboard-list li {
    margin-bottom: 5px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
	color:black;
	font-weight:600;;
}

#leaderboard-list li:nth-child(even) {
    background-color: #e5e5e5;
	color:black;
	font-weight:600;
}

#leaderboard-list li span {
    flex: 1;
}

#leaderboard-list li .user {
    font-weight: bold;
    flex: 2;
}

#leaderboard-list li .score {
    flex: 1;
}

#leaderboard-list li:first-child::before {
    content: '\f005'; /* Unicode for star icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 5px;
    color: gold;
}

#end-screen {
    text-align: center;
    color: white;
    border-radius: 10px;
    margin: 40px auto;
}

.quiz-title {
    margin-bottom: 20px;
}

.score-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.score-info {
    flex: 1;
    text-align: left;
    padding: 20px;
	padding-top:0px !important;
}

.score-box {
    background: #34495e;
    padding: 10px;
	
    margin-bottom: 10px;
    border-radius: 5px;
}

.score-box p:first-child {
    margin: 0;
    font-size: 1em;
}

.score-box p:last-child {
    margin: 0;
    font-size: 2em;
    font-weight: bold;
}

.share-score {
  display:none; 
	margin: 50px 0;
}

.share-icons img {
    width: 32px;
    margin-right: 10px;
}

button {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
}

#play-again-btn {
    background: #27ae60;
    color: white;
}

#back-to-start-btn {
    background: white;
    color: #0b3d91;
}

#leaderboard {
    flex: 1;
    text-align: left;
    padding: 20px;
    background: #34495e;
    border-radius: 10px;
}

#leaderboard h2 {
    margin-bottom: 10px;
    font-size: 1.5em;
    color: #1abc9c;
}

#leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#leaderboard-list li {
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 5px;
}

#leaderboard-list li:not(:last-child) {
    margin-bottom: 10px;
}


.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 600px; /* Set a maximum width for the container */
    margin: 0 auto; /* Center the container */
}

.button-container button {
    flex: 1 0 45%; /* Set the button width to 45% of the container width */
}