body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.building-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.building-card {
    background: white;
    padding: 20px;
    width: 300px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

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

.building-card h2 {
    margin-top: 0;
    font-size: 1.4rem;
}

.building-card table {
    width: 100%;
    font-size: 0.95rem;
    margin: 10px 0;
}

.building-card td {
    padding: 4px;
}

.vote-btn {
    padding: 10px 16px;
    background-color: #0066ff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

.vote-btn:hover {
    background-color: #0047b3;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s ease-out;
}

.modal-content h3 {
    margin-top: 0;
}

.modal-content input[type="text"] {
    width: 100%;
    padding: 8px;
    font-size: 1rem;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.modal-actions button {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
}

.modal-actions button:first-child {
    background-color: #28a745;
    color: white;
}

.modal-actions button:last-child {
    background-color: #dc3545;
    color: white;
}

@keyframes fadeIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
