/* styles */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background-color: #ffeb3b;
  background-image: 
    linear-gradient(to bottom, rgba(255, 255, 100, 0.1) 0%, rgba(255, 235, 59, 0.95) 50%, rgba(255, 235, 59, 0.9) 100%),
    radial-gradient(ellipse at 20% 30%, rgba(255, 255, 120, 0.08) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 70%, rgba(255, 255, 110, 0.06) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 255, 115, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  font-family: acumin-variable, "Roboto", sans-serif;
  font-weight: 600;
  font-variation-settings: "wdth" 75, "wght" 600;
  color: rgb(83, 76, 59);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  box-sizing: border-box;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.08) 0px,
      transparent 1px,
      transparent 2px,
      rgba(0, 0, 0, 0.05) 3px,
      transparent 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.06) 0px,
      transparent 1px,
      transparent 2px,
      rgba(0, 0, 0, 0.04) 3px,
      transparent 4px
    );
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
  filter: url(#noise) blur(0.3px);
}

.grid-column {
  max-width: 960px;
  width: 100%;
  padding: 2rem 1.5rem;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  background: transparent;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  text-transform: uppercase;
  display: inline-block;
  background-color: rgb(231, 170, 204);
  padding: 0.2em 0.3em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  line-height: 1.6;
  transform: rotate(-2deg);
  max-width: 100%;
  word-wrap: break-word;
}

a,
a:visited {
  color: rgb(226, 53, 39);
}

a:hover {
  color: rgb(240, 95, 85);
}

main {
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.main-image {
  margin: 0 auto;
  text-align: center;
}

.main-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.confirmed-acts {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  justify-content: center;
  margin-bottom: 2.5em;
}

.confirmed-acts li {
  display: inline-block;
  background-color: rgb(226, 53, 39);
  color: rgb(238, 225, 64);
  padding: 0.5em;
  text-transform: uppercase;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  line-height: 1.6;
  font-size: large;
  transform: rotate(-2deg);
  max-width: 100%;
  word-wrap: break-word;
}

.confirmed-acts li a {
  color: rgb(238, 225, 64);
}

.confirmed-acts li a:hover {
  color: rgb(255, 255, 255);
}

.confirmed-catering {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0;
  margin-top: 1em;
  margin-bottom: 2.5em;
  box-sizing: border-box;
}

.confirmed-catering-wrapper {
  display: inline-flex;
  gap: 1em;
  animation: ticker 30s linear infinite;
}

.catering-item {
  display: inline-block;
  background-color: rgb(83, 76, 59);
  color: rgb(255, 255, 255);
  padding: 0.2em 0.5em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  line-height: 1.6;
  white-space: nowrap;
  flex-shrink: 0;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.schedule {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: table;
  width: 100%;
  max-width: 600px;
  border-collapse: collapse;
  margin-bottom: 2.5em;
}

.schedule li {
  display: table-row;
}

.schedule-time,
.schedule-event {
  display: table-cell;
  padding: 0.5em 1em;
  border-bottom: 1px solid rgb(83, 76, 59);
  text-align: left;
}

.schedule-time {
  font-weight: 600;
  width: 30%;
}

.schedule-event {
  width: 70%;
}

.schedule li:last-child .schedule-time,
.schedule li:last-child .schedule-event {
  border-bottom: none;
}

.qr-code-holder {
  margin: 2em 0.75em;
  padding: 1.5em;
  background-color: rgb(255, 255, 255);
  border: 3px solid rgb(83, 76, 59);
  display: inline-block;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: fit-content;
  animation: jump 2s ease-in-out infinite;
}

@keyframes jump {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.qr-code {
  display: block;
  max-width: 200px;
  height: auto;
  margin: 0 auto;
}

.poll-container {
  margin: 2em 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.poll-name-field {
  margin-bottom: 1.5em;
  display: flex;
  align-items: center;
  gap: 1em;
  justify-content: center;
}

.poll-name-field label {
  font-weight: 600;
  min-width: 60px;
}

.poll-name-field input[type="text"] {
  padding: 0.8em 1em;
  border: 2px solid rgb(83, 76, 59);
  background-color: rgb(255, 255, 255);
  font-family: acumin-variable, "Roboto", sans-serif;
  font-size: 1em;
  color: rgb(83, 76, 59);
  min-width: 200px;
  max-width: 300px;
}

.poll-name-field input[type="text"]:focus {
  outline: none;
  border-color: rgb(226, 53, 39);
  background-color: rgb(255, 250, 240);
}

.poll-name-field input[type="text"]:invalid {
  border-color: rgb(226, 53, 39);
}

.poll-options {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-bottom: 2em;
}

.poll-option {
  display: flex;
  align-items: center;
  padding: 0.8em 1em;
  background-color: rgb(231, 170, 204);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  transform: rotate(-1deg);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.poll-option:hover {
  transform: rotate(0deg) scale(1.02);
  background-color: rgb(240, 180, 210);
}

.poll-option input[type="radio"]:checked + .poll-text {
  font-weight: 700;
}

.poll-option input[type="radio"] {
  margin-right: 1em;
  cursor: pointer;
  width: 20px;
  height: 20px;
}

.poll-text {
  flex: 1;
  font-size: 1em;
}

.poll-submit-btn {
  display: block;
  margin: 2em auto;
  padding: 1em 2em;
  background-color: rgb(226, 53, 39);
  color: rgb(255, 255, 255);
  border: none;
  font-family: acumin-variable, "Roboto", sans-serif;
  font-size: 1.1em;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  transform: rotate(-1deg);
}

.poll-submit-btn:hover:not(:disabled) {
  background-color: rgb(240, 95, 85);
  transform: rotate(0deg) scale(1.05);
}

.poll-submit-btn:active:not(:disabled) {
  transform: rotate(0deg) scale(0.98);
}

.poll-submit-btn:disabled {
  background-color: rgb(150, 150, 150);
  cursor: not-allowed;
  opacity: 0.7;
}

.poll-results {
  margin-top: 2em;
  padding: 1.5em;
  background-color: rgb(255, 255, 255);
  border: 2px solid rgb(83, 76, 59);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.poll-results h3 {
  margin-top: 0;
  margin-bottom: 1em;
}

.poll-bar-container {
  margin-bottom: 1em;
  display: flex;
  align-items: center;
  gap: 1em;
}

.poll-bar-label {
  min-width: 150px;
  font-weight: 600;
}

.poll-bar {
  flex: 1;
  height: 30px;
  background-color: rgb(240, 240, 240);
  border: 1px solid rgb(83, 76, 59);
  position: relative;
  overflow: hidden;
}

.poll-bar-fill {
  height: 100%;
  background-color: rgb(226, 53, 39);
  transition: width 0.5s ease;
}

.poll-count {
  min-width: 40px;
  text-align: right;
  font-weight: 600;
}

.poll-total {
  margin-top: 1em;
  margin-bottom: 0;
  font-weight: 600;
  text-align: center;
}

footer {
  text-align: center;
  margin-top: 1em;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }

  .grid-column {
    padding: 1rem;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  main {
    overflow-x: hidden;
  }

  .poll-name-field {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5em;
  }

  .poll-name-field label {
    min-width: auto;
    text-align: left;
  }

  .poll-name-field input[type="text"] {
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .poll-bar-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5em;
  }

  .poll-bar-label {
    min-width: auto;
    font-size: 0.9em;
  }

  .poll-bar {
    width: 100%;
  }

  .poll-count {
    min-width: auto;
    text-align: left;
  }

  .schedule {
    font-size: 0.9em;
  }

  .schedule-time,
  .schedule-event {
    padding: 0.5em;
  }

  .confirmed-acts {
    flex-direction: column;
    align-items: stretch;
  }

  .confirmed-acts li {
    width: 100%;
    text-align: center;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: 1.2em;
  }

  .poll-option {
    padding: 0.6em 0.8em;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .poll-options {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .schedule {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .poll-submit-btn {
    width: 100%;
    padding: 0.8em 1em;
  }

  .main-image img {
    width: 100%;
    max-width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .grid-column {
    padding: 0.75rem;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: 1em;
    padding: 0.15em 0.25em;
  }

  .schedule {
    font-size: 0.85em;
  }

  .confirmed-acts li {
    font-size: 0.9em;
    padding: 0.4em;
  }

  .poll-text {
    font-size: 0.9em;
  }

  .catering-item {
    font-size: 0.85em;
    padding: 0.15em 0.4em;
  }
}