
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f9f9f9;
  min-width: 320px;
}
a {
  color: #007bff;
  text-decoration: none;
}
a:hover { text-decoration: underline; }


.site-banner {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
}
.site-banner h1 { font-size: 2.5rem; margin-bottom: .5rem; }
.site-banner p  { font-size: 1.1rem; }


.navbar {
  background: #fff;
  border-bottom: 1px solid #ddd;
}
.navbar ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.navbar li a {
  display: block;
  padding: 1rem 1.5rem;
  font-weight: 600;
  color: #333;
}
.navbar li a.active,
.navbar li a:hover {
  background: #007bff;
  color: #fff;
}


main { max-width: 1100px; margin: 2rem auto; padding: 0 1rem; }
main h2 { text-align: center; margin-bottom: 1rem; font-size: 2rem; }


.intro,
.rules, .categories,
.upload-section,
.vote-section,
.winners-section,
.category-section {
  margin-bottom: 2rem;
}


.social-share,
.contact-link,
.chat-room {
  text-align: center;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
}
.form-group label {
  margin-bottom: .5rem;
  font-weight: 600;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  padding: .5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}
button[type="submit"],
button {
  background: #007bff;
  color: #fff;
  border: none;
  padding: .75rem 1.5rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  display: block;
  margin: 1rem auto;
}
button[type="submit"]:hover,
button:hover {
  background: #0056b3;
}


.voting-category {
  border: 1px solid #ddd;
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}
.voting-category legend {
  font-weight: 700;
  margin-bottom: .5rem;
}
.voting-category label {
  cursor: pointer;
  margin: .5rem;
  display: block;
}
.voting-category img {
  width: 150px;
  border: 2px solid transparent;
  border-radius: 4px;
}
.voting-category input[type="radio"]:checked + img {
  border-color: #007bff;
}


.winner-month {
  border: 1px solid #ddd;
  padding: 1rem;
  margin-bottom: 1rem;
}
.winner-month legend {
  font-weight: 700;
}
.winner-entry {
  text-align: center;
  margin-bottom: 1rem;
}
.winner-entry img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: .5rem;
}


.slideshow-container {
  position: relative;
  margin: 1rem auto;
  max-width: 600px;
}
.slide {
  display: none;
  position: relative;
}
.slide img {
  width: 100%;
  border-radius: 4px;
}
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.3);
  color: #fff;
  padding: .5rem;
  font-size: 1.5rem;
  border-radius: 3px;
  user-select: none;
}
.prev { left: .5rem; }
.next { right: .5rem; }
.prev:hover,
.next:hover { background: rgba(0,0,0,0.6); }
.caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: .5rem;
  text-align: center;
  border-radius: 0 0 4px 4px;
}

footer {
  background: #f1f1f1;
  padding: 1rem;
  text-align: center;
  border-top: 1px solid #ddd;
}
footer .bottom-nav ul {
  justify-content: center;
}
footer .bottom-nav a {
  padding: .5rem 1rem;
}


@media (max-width: 768px) {
  .navbar ul { flex-direction: column; }
  .voting-category { flex-direction: column; align-items: center; }
  .form-group { width: 100%; }
}