body {
  font-family: Arial, sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

input,
textarea {
  font-size: 14px;
  text-align: center;
}

.title-container {
  display: flex;
  align-items: flex-start;
  text-align: center;
  gap: 10px;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.title-container h1 {
  font-size: 1.5rem;
}

.title-container h3 {
  font-size: 1rem;
}

.title-container header h3 {
  line-height: 2;
  display: none;
}

h3.h3-line {
  font-size: 1rem;
  display: block;
  margin: 0;
}

.logo {
  width: 70px;
  height: 70px;
  /* align-self: center; */
}

/* .button-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: row;
  width: 100%;
} */

.swiper {
  width: 100%;
  padding: 20px 0;
  overflow: hidden;
  position: relative;
  --swiper-navigation-size: 30px;
}

.swiper-wrapper {
  display: flex;
  align-items: stretch;
}

.swiper-slide {
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.button-container {
  display: flex;
  flex-direction: column;
  padding: 8px;
  height: 100%;
}

.button-container img {
  width: 80%;
  height: auto;
  align-self: center;
  margin-bottom: 10px;
}

.prize-button {
  padding: 16px 10px;
  cursor: pointer;
  background-color: transparent;
  color: black;
  border: solid 2px #ffbc0f;
  border-radius: 6px;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 8px;
}

.prize-button span {
  font-weight: bold;
  font-size: 1.2rem;
}

.prize-button .detail {
  font-size: 0.8rem;
}

.prize-button.active {
  background-color: #ffbc0f;
}

.search-container {
  margin-bottom: 20px;
  position: relative;
  width: 100%;
  max-width: 500px;
}

.search-wrapper {
  position: relative;
  width: 100%;
}

#emailSearch {
  padding: 10px 40px;
  width: 100%;
  border: solid #ffbc0f;
  border-radius: 45px;
  box-sizing: border-box;
}

.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #ffbc0f;
  cursor: pointer;
}

.message-container {
  text-align: center;
}

.error-message {
  color: red;
  margin-top: 5px;
  display: none;
}

#alertModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.table-container {
  max-height: 800px;
  overflow-y: auto;
  margin-top: 20px;
  border: 1px solid #ddd;
}

.results-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.results-table thead th {
  position: sticky;
  top: 0;
  background-color: #ffbc0f;
  z-index: 1;
  border-bottom: 2px solid #ddd;
}

.results-table th,
.results-table td {
  padding: 12px 8px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.results-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.results-table tbody tr:hover {
  background-color: #f5f5f5;
}

.results-table th {
  background-color: #ffbc0f;
  text-align: center;
}

.pagination {
  margin: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.pagination button {
  padding: 8px 12px;
  border: 1px solid #ddd;
  background-color: white;
  cursor: pointer;
  border-radius: 4px;
  color: black !important;
}

.pagination button:hover:not(:disabled) {
  background-color: #f0f0f0;
}

.pagination button:disabled {
  background-color: #ffbc0f;
  cursor: default;
}

.pagination-info {
  margin: 10px 0;
  text-align: center;
  color: #666;
}

.cmp-teaser__body {
  position: relative;
  top: 20px;
  padding: 24px
}

.cmp-teaser__title {
  font-size: 2rem;
}

.cmp-teaser__title p {
  margin: 0;
}

.cmp-teaser__description ul {
  list-style-type: decimal;
  padding: 0 0 0 1em;
}

.cmp-teaser__description + .cmp-teaser__title {
  margin-top: 1em;
}

/* Loading indicator */
.loading {
  text-align: center;
  padding: 20px;
}

.loading:after {
  content: "Loading...";
  display: inline-block;
}

/* Swiper navigation buttons */
.swiper-button-next,
.swiper-button-prev {
  color: darkgrey;
  top: unset;
  bottom: 17%;
}

.swiper-button-next {
  right: 5%;
  left: auto;
}

.swiper-button-prev {
  left: 5%;
  right: auto;
}

.swiper-pagination-bullet-active {
  background: #ffbc0f;
}

.swiper-horizontal>.swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal, .swiper-pagination-custom, .swiper-pagination-fraction {
  bottom: 5px;
}

.nav {
  width: 100%;
  margin: 0 auto;
  border-collapse: collapse;
}

.nav th {
  width: fit-content;
}

.nav th, .nav td {
  margin: 0;
  padding: 0.5rem;
  vertical-align: middle;
  text-align: center;
}

.nav th img {
  max-width: 70px;
}

.nav td h1 {
  text-align: center;
  line-height: 1;
  display: inline-block;
  font-size: 1.5rem;
  margin: 0;
}

.nav td h3 {
  display: none;
  font-size: 1rem;
}

br.md-break {
  display: none;
}

/* Mobile optimization */
@media (max-width: 1920px) {
  :root {
    --size: 1;
  }
}

@media (max-width: 1280px) {
  :root {
    --size: 1;
  }
}

@media (max-width: 768px) {
  .swiper-slide {
      width: 85%;
  }

  .button-container {
      padding: 4px;
      width: 90%;
      margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .nav {
    width: auto;
  }
  .nav td h1 {
    line-height: 1.2;
    font-size: 1.2rem;
  }
  .nav td h3 {
    display: block;
    font-size: 0.8rem;
  }

  br.md-break {
    display: block;
  }

  .title-container header h3 {
    display: block;
  }

  h3.h3-line {
    /* display: none; */
  }

  .title-container {
    display: inline-flex;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .title-container header {
    align-items: center;
    /* width: 77.7053vw; */
    width: calc(90% - 20px);
  }

  .title-container header h1 {
    font-size: 1rem;
    margin: 0;
  }

  .title-container header h3 {
    font-size: 0.8rem;
    line-height: 1;
  }
}

@media (max-width: 602px) {

  
  .swiper-button-next,
  .swiper-button-prev {
    bottom: 21%;
  }
}

@media (max-width: 430px) {
  html {
      font-size: 14px;
  }
}

@media (max-width: 375px) {
  .nav th, .nav td {
    padding: 0 0.3rem;
  }
  .nav td h1 {
    font-size: 1rem;
  }
  .nav td h3 {
    font-size: 12px;
  }
}