
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

header, footer {
    background-color: #8a4545;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

h1, h2, h3 {
    color: #222;
}


nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav ul li a {
    color: #fff;
    font-weight: bold;
    padding: 5px 10px;
}

nav ul li a:hover {
    background-color: #007bff;
    border-radius: 5px;
    color: #fff;
}


main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

p {
    line-height: 1.6;
    margin-bottom: 15px;
}


button, input[type="submit"] {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;
}

button:hover, input[type="submit"]:hover {
    background-color: #0056b3;
}


form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
}

input, textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}


table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}

table th {
    background-color: #007bff;
    color: #fff;
}


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

.gallery img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* =========================
   Voting Section
========================= */
.vote-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.vote-item {
    text-align: center;
}

.vote-item img {
    width: 250px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .gallery img, .vote-item img {
        width: 100%;
        height: auto;
    }
}
