/* --- Global --- */
body {
  margin: 0;
  font-family: 'Rubik', sans-serif;
  background: linear-gradient(135deg, #ff4ecd, #4ecbff, #ff9f4e);
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
}

/* --- Headings --- */
h1, h2, h3 {
  font-family: 'Fredoka One', cursive;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
  margin: 10px 0;
}

/* --- Buttons --- */
button {
  background: #fff;
  color: #333;
  border: none;
  padding: 15px 30px;
  margin: 10px;
  border-radius: 30px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

button:hover {
  transform: scale(1.15) rotate(-2deg);
  background: #ffd84e;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* --- Timer --- */
#timer {
  font-weight: bold;
  margin-top: 15px;
  font-size: 1.5rem;
  background: rgba(0,0,0,0.35);
  padding: 12px 25px;
  border-radius: 25px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* --- Cards / Panels --- */
.card {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  padding: 25px;
  border-radius: 25px;
  margin: 15px;
  width: 75%;
  max-width: 550px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

/* --- Lists --- */
ul, ol {
  list-style: none;
  padding: 0;
}

li {
  background: rgba(255,255,255,0.25);
  margin: 10px 0;
  padding: 14px 20px;
  border-radius: 15px;
  font-size: 1.3rem;
  transition: transform 0.2s, background 0.2s;
}

li:hover {
  transform: scale(1.05);
  background: rgba(255,255,255,0.35);
}

/* --- Floating Animations --- */
.floaty {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(-1deg); }
  50% { transform: translateY(0px) rotate(0deg); }
  75% { transform: translateY(-8px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.vote-bar-container {
    display: flex;
    align-items: center;
    margin: 12px 0;
    font-family: 'Rubik', sans-serif;
}

.vote-label {
    width: 100px;
    font-weight: bold;
}

.vote-bar-bg {
    flex-grow: 1;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    height: 25px;
    margin: 0 10px;
}

.vote-bar {
    height: 100%;
    width: 0%;
    background-color: #007bff;
    transition: width 0.4s ease-in-out;
    border-radius: 10px 0 0 10px;
}

.vote-count {
    width: 30px;
    text-align: right;
    font-weight: bold;
}