/* Container for styling */
#clickTestHeader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: linear-gradient(45deg, #2a2a2a, #121212); /* Darker gradient */
    border: 4px solid #00f7ff; /* Neon cyan border */
    border-radius: 12px;
    box-shadow: 0px 0px 15px rgba(0, 247, 255, 0.7); /* Glowing effect */
    width: fit-content;
    margin: 20px auto;
}

/* Fancy Gaming H1 */
#clickTestHeader h1 {
    font-family: "Orbitron", sans-serif;
    font-size: 30px; /*  Reduced by 40% */
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px; /*  Slightly reduced spacing for better proportion */
    text-shadow: 0px 0px 8px #00f7ff, 0px 0px 16px #0088ff; /*  Slightly reduced glow */
    padding: 7px 20px; /*  Scaled down padding */
    margin: 0;
    transition: 0.3s ease-in-out;
}

   

/* Hover effect */
#clickTestHeader:hover {
    border-color: #ff00ff; /* Change glow color on hover */
    box-shadow: 0px 0px 20px rgba(255, 0, 255, 0.7);
}

#clickTestHeader h1:hover {
    text-shadow: 0px 0px 15px #ff00ff, 0px 0px 30px #ff0077;
}

/* Dark Version Styling for Body */
h1, h2, p {
    color: #ffffff; /* Light text */
}

body { background-color:#000;}

/* General container and text styles for dark theme */
#content {
    display: block;
    background-color: #121212; /* Dark background */
    color: #fff; /* Light text */
    padding: 20px;
    border-radius: 10px;
}

h1 {
    text-align: center;
    margin: 0 auto;
    font-size: 50px;
    font-family: "Oswald";
    border: 5px solid;
    border-radius: 10px;
    width: 600px;
}

h2 {
    text-align: center;
    margin-top: 10px !important;
    margin: 0 auto;
    font-size: 20px;
    font-family: "Oswald";
    border-radius: 10px;
    width: 600px;
}

p {
    margin: 0 auto;
    margin-top: 10px;
    text-align: center;
    font-family: "Lato";
    font-size: 20px;
    width: 600px;
}

/* Button styles for dark theme */
.button {
    position: absolute;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease;
    font-family: "Unica One";
    font-size: 35px;
     color: white;
    text-align: center;
    vertical-align: center;
    line-height: 300px;
    margin: 0 auto;
    height: 300px;
    width: 300px;
    margin-top: 50px;
	   background-color: transparent !important; /* Ensure button itself has no background */
/*   background-color: #121212; /* Dark background */
    border-radius: 50%;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    cursor: pointer;
	  
      user-drag: none;
    -webkit-user-drag: none;
    -moz-user-drag: none;
    -ms-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
}
.button {
    transition: transform 0.1s ease-in-out; /* Smooth transitions for "steps" */
}

.button:hover {
    font-size: 37px;
}

.button:active {
    font-size: 35px;
}

/* Button mirrored effect */
.button.mirrored {
    transform: translate(-50%, -50%) scaleX(-1);
}

.button.mirrored.jump {
    transform: translate(-50%, -50%) scaleX(-1) translateY(-10px);
}
 

/* Stats and other text */
.stats {
    margin-top: 10px;
    text-align: center;
}

#stats {
    margin-top: 10px;
}

/* Ripple effect for clicks */
.ripple {
    position: absolute;
    background-color: rgba(255, 0, 0, 0.6);
    border-radius: 50%;
    transform: scale(0);
    width: 20px;
    height: 20px;
    opacity: 1;
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes flashGlow {
    0% { background-color: yellow; color: black; }
    50% { background-color: rgba(255, 255, 0, 0.7); }
    100% { background-color: transparent; color: inherit; }
}

.flash-score {
    animation: flashGlow 5s ease-out forwards;
}


 
/* Speed Meter Styles */
#speedMeterContainer {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    background-color: #222; /* Dark background */
    border-radius: 10px;
    padding: 20px;
}

#speedCanvas {
    width: 195px;  /* ✅ Reduced to 65% of original (300px → 195px) */
    height: 130px; /* ✅ Reduced to 65% of original (200px → 130px) */
    border: 1px solid black;
    cursor: crosshair;
}


/* Dropdown and controls styling */
#dropdownsContainer {
    display: flex;
    align-items: flex-start;
}

#bounceSpeedContainer {
    margin-right: 10px;
    margin-top: 80px;
}

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

#speedSelectorContainer {
    margin-top: 10px;
}

#bounceSpeedContainer label,
#speedSelectorContainer label {
    margin-right: 5px;
}
 

#randomMovementToggle {
    font-size: 14px;
    padding: 5px 10px;
	margin-top:37px;
    background-color: #444; /* Dark button background */
    color: white; /* White text */
    border: 1px solid #ccc; /* Light border for contrast */
    border-radius: 5px; /* Rounded corners for modern design */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#randomMovementToggle:hover {
    background-color: #555; /* Slightly lighter when hovered */
}

/* Dark score history styling */
#scoreHistory {
    background-color: #333; /* Dark gray background */
    border: 1px solid #555;  /* Slightly lighter gray border */
    padding: 10px;
    border-radius: 5px;
    margin-top: 20px;
}

.scoreList {
    list-style-type: none;
    padding: 0;
    color: #ccc;  /* Lighter text color */
}

.scoreList li {
    padding: 5px 0;
    border-bottom: 1px solid #444; /* Darker line between items */
}

.scoreList li:last-child {
    border-bottom: none;
}

.scoreItem {
    font-size: 14px;
    font-family: 'Courier New', monospace; /* Monospace font */
}

/* Dark Speed Stats Overlay */
#speedStatsOverlay {
    position: absolute;
    top: 20%;
    left: calc(50% + 70px); /* Moves the box 70px to the right */
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8); /* Darker overlay */
    padding: 10px 15px;
    border-radius: 8px;
    color: #ffffff;
    font-family: "Oswald", sans-serif;
    font-size: 24px;
    text-align: center; /* Center text inside */
    width: 200px;
    box-shadow: 2px 2px 5px rgba(255, 255, 255, 0.2); /* Slight glow effect */
    display: none;
}

/* Dark speed stats text */
.speedStatsText {
    margin: 0;
    font-size: 22px;
    font-weight: bold;
    color: #ffffff;
    width: 100%;
    text-align: center;
}

/* Button container styling */
#gameContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    width: 100%;
}

#buttonContainer {
    position: relative;
    width: 100%;
    height: 340px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

/* Dark background for game score and history */
#scoreHistoryContainer {
    position: absolute;
    right: 20px;
    top: 37%; /* Scoreboard moved higher */
    transform: translateY(-50%);
    z-index: 0;
}

/* Dark theme for buttons and background */
button {
    display: block;
    margin: 0 auto;
    margin-top: 10px;
}

.options {
    text-align: center;
    margin-top: 20px;
}

.options label {
    margin: 0 10px;
}

/* Additional effects */
@keyframes shake {
    0%, 100% {
        transform: translate(-50%, -50%) translateX(0);
    }
    25% {
        transform: translate(-50%, -50%) translateX(-5px);
    }
    75% {
        transform: translate(-50%, -50%) translateX(5px);
    }
}

/* Hidden class */
.hidden {
    display: none;
}
