body, html {
    background-color: transparent;
    color: white;
    font-family: 'Montserrat', 'Arial', sans-serif; /* Cyrillic-friendly font */
    text-align: center;
    padding: 20px;
}

#container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    transition: opacity 0.5s ease-in-out; /* Fade in/out animation */
}

.widget-background {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Glow Effect */
h1, .clicker-container h1, .leaderboard-container h2, .poll-option, .poll-votes, li {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}

h1, .leaderboard-container h2 {
    text-transform: uppercase;
}

/* Poll Styles */
.poll-container {
    width: 90%;
}

.poll-option {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 10px;
}

.poll-bar-container {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden; /* Ensures the bar stays within the rounded corners */
}

.poll-bar {
    height: 40px;
    background: linear-gradient(90deg, #4CAF50, #81C784);
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Smooth slide animation */
    box-shadow: 0 0 15px #4CAF50;
}

.poll-votes {
    font-size: 20px;
    margin-bottom: 20px;
}

/* Clicker Styles */
.clicker-container h1 {
    font-size: 48px;
}

.clicker-count {
    font-size: 80px;
    font-weight: 700;
}

.pulse-up {
    animation: pulseUp 0.3s ease-out;
}

@keyframes pulseUp {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); color: #00ff00; }
    100% { transform: scale(1); }
}

/* Leaderboard Styles */
.leaderboard-container {
    margin-top: 30px;
}

.leaderboard-container h2 {
    font-size: 32px;
}

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

.leaderboard-container li {
    font-size: 24px;
    margin-bottom: 8px;
    transition: all 0.5s ease;
}

.leaderboard-container .gold {
    color: #FFD700;
    font-weight: 700;
    text-shadow: 0 0 10px #FFD700;
}

/* Versus Styles */
.versus-container {
    width: 90%;
}

.versus-bar-container {
    display: flex;
    width: 100%;
    height: 50px;
    border-radius: 15px;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.3);
}

.versus-bar {
    height: 100%;
    transition: width 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.bar1 {
    background: linear-gradient(90deg, #c94b4b, #4b134f);
    justify-content: flex-start;
    padding-left: 20px;
}

.bar2 {
    background: linear-gradient(90deg, #0052d4, #4364f7, #6fb1fc);
    justify-content: flex-end;
    padding-right: 20px;
}

.versus-votes {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 28px;
    font-weight: 700;
    margin-top: 10px;
}
