/**Homepage**/

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #e5e7eb;
    color: #2f2f2f;
}
.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    min-height: 100vh;
    padding: 30px;
}
header {
    border-bottom: 1px solid #f97316;
    margin-bottom: 30px;
    padding-bottom: 20px;
}
h1 {
    margin-top: 0;
    color: #2f2f2f;
}
h2 {
    color: #2f2f2f;
    border-left: 5px solid #f97316;
    padding-left: 10px;
}
p {
    line-height: 1.6;
}
nav {
    margin-top: 15px;
}
nav a {
    display: inline-block;
    margin-right: 8px;
    padding: 8px 14px;
    background-color: #e5e7eb;
    color: #2f2f2f;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
}
nav a:hover {
    background-color: #f97316;
    color: #ffffff;
}
main section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #e5e7eb;
    border-radius: 12px;
}
footer {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #dddddd;
    color: #6b7280;
    font-size: 0.9em;
    text-align: center;
}
.feature {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
    margin-top: 30px;
    padding: 35px;
    background: linear-gradient(135deg, #e5e7eb, #f9fafb);
    border-radius: 16px;
    border: 1px solid #d1d5db;
}
.feature h2 {
    font-size: 2em;
}
.feature-text {
    margin-bottom: 10px;
}
.feature img {
    margin-left: auto;
    width: 600px;
    height: 330px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.contact-share {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}
.contact {
    flex: 2;
}
.socials {
    flex: 1;
}

/**Rules**/

.rules-li li {
    margin-bottom: 10px;
}

/**Category page**/

.slideshow {
  position: relative;
  max-width: 1000px;
  height: 600px;
  margin: 20px auto 10px;
  background-color: #2f2f2f;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.slideshow img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  display: block;
}
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(47, 47, 47, 0.75);
  color: white;
  border: none;
  padding: 12px 16px;
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
}
.prev-btn {
  left: 25px;
}
.next-btn {
  right: 25px;
}
.slide-btn:hover {
  background-color: #f97316;
}
.slide-caption {
  text-align: center;
  font-weight: bold;
  color: #2f2f2f;
  margin-top: 10px;
}

/**Voting page**/

.vote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.vote-card {
  display: block;
  background-color: #ffffff;
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: 0.2s ease;
}
.vote-card:hover {
  border-color: #f97316;
  transform: translateY(-3px);
}
.vote-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.photo-title {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}
.vote-card input {
  margin-top: 10px;
}
.vote-text {
  display: block;
  margin-top: 6px;
  color: #6b7280;
  font-size: 0.9em;
}
.submit-vote {
  text-align: center;
}
.submit-vote input {
  margin: 8px;
  padding: 10px 18px;
  border: none;
  border-radius: 20px;
  background-color: #f97316;
  color: white;
  font-weight: bold;
  cursor: pointer;
}
.submit-vote input:hover {
  background-color: #c2410c;
}

/**Gallery page**/

.winner-section {
  background-color: #ffffff;
  border-top: 3px solid #f97316;
  border-radius: 14px;
  padding: 25px;
  margin: 35px 0;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.winner-section h2 {
  text-align: left;
  margin-top: 0;
}
.winner {
  width: 100%;
  max-height: 550px;
  object-fit: contain;
  background-color: #2f2f2f;
  border-radius: 14px;
  padding: 12px;
  display: block;
  margin: 20px auto 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.winner-description {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.6;
}


/**fixing mobile**/

@media screen and (max-width: 700px) {
  .feature {
    flex-direction: column;
    align-items: center;
    padding: 25px;
  }

  .feature-text {
    width: 100%;
    text-align: left;
  }

  .feature img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-left: 0;
  }
}