* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #1a1a1a;
  color: #fff;
  font-family: 'Press Start 2P', cursive;
  line-height: 1.6;
  padding: 20px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

header {
  margin-bottom: 40px;
  padding: 20px;
  border-bottom: 4px solid #fff;
}

h1 {
  font-size: 2rem;
  color: #ffff00;
  margin-bottom: 15px;
  text-shadow: 4px 4px 0 #000;
}

.subtitle {
  font-size: 0.8rem;
  color: #00ff00;
}

.voting-area {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 50px;
}

.card {
  background: #333;
  border: 4px solid #fff;
  padding: 20px;
  width: 250px;
  box-shadow: 8px 8px 0 #000;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-5px);
}

.image-box {
  background: #eee;
  padding: 10px;
  margin-bottom: 15px;
  border: 2px solid #555;
}

.image-box img {
  width: 100%;
  height: auto;
  display: block;
}

.card h2 {
  font-size: 0.7rem;
  margin-bottom: 20px;
}

.vote-btn {
  background-color: #ff00ff;
  color: white;
  border: none;
  padding: 10px 15px;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.7rem;
  cursor: pointer;
  box-shadow: 4px 4px 0 #000;
  width: 100%;
}

.vote-btn:hover:not(:disabled) {
  background-color: #ff55ff;
}

.vote-btn:disabled {
  background-color: #666;
  cursor: default;
  box-shadow: none;
}

.vs-circle {
  font-size: 1.5rem;
  color: #ff0000;
  text-shadow: 2px 2px 0 #000;
}

.results {
  background: #222;
  border: 4px solid #fff;
  padding: 30px;
  box-shadow: 8px 8px 0 #000;
}

.result-bar-container {
  margin-bottom: 20px;
  text-align: left;
}

.bar-label {
  font-size: 0.6rem;
  margin-bottom: 10px;
}

.bar-bg {
  background-color: #444;
  height: 25px;
  border: 2px solid #fff;
}

.bar-fill {
  height: 100%;
  width: 0%;
  transition: width 0.5s ease;
}

.bar-fill.blue { background-color: #00f; }
.bar-fill.green { background-color: #0f0; }

#voted-msg {
  color: #ff0000;
  font-size: 0.6rem;
  margin-top: 20px;
}

.hidden {
  display: none;
}

footer {
  margin-top: 50px;
  font-size: 0.5rem;
  color: #888;
}

@media (max-width: 600px) {
  .voting-area {
    flex-direction: column;
  }
}