* {
  box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #faf3e0;
    margin: 0;
    padding: 1rem;
}

.card {
    background: #fffaf0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem;
}

h2 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #5a3e2b;
    text-align: center;
}

label {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
    color: #6d4c41;
}

input[type="text"], select {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.5rem;
    border: 1px solid #d2a679;
    border-radius: 6px;
    background-color: #fffdf7;
}

.vote-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.vote-buttons button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    background-color: #a86b3c;
    color: white;
    font-size: 1rem;
    cursor: pointer;
}

.vote-buttons button:hover {
    background-color: #87542f;
}

.vote-buttons {
  display: flex;
  gap: 1rem; /* adds spacing between buttons */
  flex-wrap: wrap; /* allow wrapping on narrow screens */
}

.vote-buttons button {
  flex: 1; /* optional: makes them equal width */
  min-width: 150px; /* prevents buttons from getting too small */
}

.vote-buttons button span {
  margin-right: 0.5rem;
}

.vote-counts {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    font-size: 1rem;
    color: #333;
}

@media (max-width: 480px) {
    .card {
    padding: 1rem;
    }

    .vote-counts {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    }
}

.toggle-button.deactivate {
    background-color: #d9534f;
}

.toggle-button.deactivate:hover {
  background-color: #c9302c;
}

.toggle-button.delete {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
}
.toggle-button.delete:hover {
    background-color: #c0392b;
}

.toggle-button.activate {
    background-color: #5cb85c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
}
.toggle-button.activate:hover {
    background-color: #4cae4c;
}