img{
	border-radius:20%;
	padding:12px;
}

.vote-image{
        transition: transform 0.25s ease-in-out; /* Smoother animation */
	border-radius:20%;
	padding:12px;
        width: 150px;
        height: 150px;
        cursor: pointer;
}

#toggleButton, #openInNewTabButton, #changeBtn, #open, #otherLinks, #randomBtn, #themeBtn, #darkModeToggle, #panicBtn, #boardBtn, #boxBtn, ul, h1, h2, h3, h4, p, label, button {
        font-family:"consolas", sans-serif; 
}

ul {
  	list-style-type: none;
  	margin: 0;
  	padding: 0;
  	overflow: hidden;
  	background-color: #FED890;
}

li {
  	float: center;
}

li a {
  	display: block;
  	color: black;
  	text-align: center;
  	padding: 14px 16px;
  	text-decoration: none;
	font-family:"consolas", sans-serif;

}

.img {
    transition: transform 0.25s ease-in-out; /* Smoother animation */
    width: 185px;
    height: 185px;
    margin: 0 auto;
    position: relative;
    display: inline-block;
}

.img img {
    transition: filter 0.3s ease-in-out;
}

.vote-image img {
    transition: filter 0.3s ease-in-out;
}

/* Enhanced glow effect with smoother color shifts */
@keyframes dynamicGlow {
    0% { filter: drop-shadow(0px 0px 12px rgba(255, 0, 0, 0.9)); } /* Red */
    20% { filter: drop-shadow(0px 0px 14px rgba(0, 255, 0, 0.9)); } /* Green */
    40% { filter: drop-shadow(0px 0px 16px rgba(0, 0, 255, 0.9)); } /* Blue */
    60% { filter: drop-shadow(0px 0px 18px rgba(255, 255, 0, 0.9)); } /* Yellow */
    80% { filter: drop-shadow(0px 0px 20px rgba(255, 0, 255, 0.9)); } /* Purple */
    100% { filter: drop-shadow(0px 0px 22px rgba(255, 165, 0, 0.9)); } /* Orange */
}

.img:hover {
    transform: scale(1.2) rotate(-5deg); /* Slightly stronger scaling */
    animation: dynamicGlow 3s infinite alternate ease-in-out;
}

.vote-image:hover {
    transform: scale(1.2) rotate(-5deg); /* Slightly stronger scaling */
    animation: dynamicGlow 3s infinite alternate ease-in-out;
}

.spin-3d {
            width: 210px;
            height: 120px;
            animation: spin 5s linear infinite;
            transform-style: preserve-3d;
}

@keyframes spin {
            0% {
                transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
            }
            100% {
                transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
            }
        }

@keyframes moveParticles {
    0% {
        transform: translateY(100vh);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 0;
    }
}

.particle {
    position: fixed;
    background-color: white;
    border-radius: 50%;
    animation: moveParticles 5s linear infinite;
}

:root {
    --background-color: #FDDB99; /* Light mode background */
    --text-color: #000000; /* Default black text */
    --button-color: #FFDE59; /* White buttons */
}

.dark-mode {
    --background-color: #2E2E2E; /* Dark mode background */
    --text-color: #FDDB99; /* Light mode background color becomes text color in dark mode */
    --button-color: #000000; /* Keep buttons white */
}

/* Apply styles dynamically */
body {
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

/* Buttons always white */
button {
    background-color: var(--button-color);
    color: var(--text-color);
    border: none;
    border-radius: 5px;
    font-size: 16.5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s ease-in-out;
    margin: 2px;
}

button:hover {
    transform: scale(1.1);
    filter: brightness(90%);
}

/* Ensure list background adapts to dark mode */
ul {
    background-color: var(--background-color);
}

/* Links should also adapt */
li a {
    color: var(--text-color);
}

@keyframes grow {
    from { width: 0%; }
    to { width: 100%; }
}
.poll-bar {
    display: block;
    height: 10px;
    background-color: #4CAF50;
    animation: grow 0.5s ease-in-out;
}

/* Particles Container */
#particles-js {
    position: fixed;
    width: 100%;
    height: 200vh;
    z-index: 1; /* Behind content */
}

/* Overlay Effect */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Above particles */
}

/* Content Styles */
.content {
    position: relative;
    z-index: 3; /* Above overlay */
    text-align: center;
}

#lessonContainer {
    z-index: 0;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent white */
    border-radius: 25px; /* Optional: adds rounded corners */
}

