:root {
  --font-family: Arial, sans-serif;
  --text-color: #2c3e50;
  --label-color: #333;
  --container-bg: #fff;
  --border-color: #27ae60;
  --button-text:#fff;
  --button-color: #27ae60;
  --button-hover: #219150;
  --popup-bg: #e0ffe0;
  --box-shadow-color: rgba(0, 0, 0, 0.1);
}

html, body {
  width: 100%;
  height: 100%;
  font-family: var(--font-family);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}


/* Portrait mode background */
@media screen and (orientation: portrait) {
  body {
    background-image: url('../background/portrait1.jpg');
  }
}

/* Landscape mode background */
@media screen and (orientation: landscape) {
  body {
    background-image: url('../background/landscape1.jpg');
  }
}

.container {
  position: relative;
  display: inline-block;
  margin-top: 20px;
}

.table-wrapper {
  position: relative;
  display: inline-block;
}

table {
  box-shadow: 0 0 10px var(--box-shadow-color);
  margin-top: 60px;
}

td {
  width: 120px;
  height: 120px;
  text-align: center;
  vertical-align: middle;
  overflow: hidden;
}

td img {
  width: 120px;
  height: 120px;
  border: 6px solid var(--border-color);
  border-radius: 16px;
  object-fit: cover;
  display: block;
}

.qr-image {
  width: 250px;
  height: 240px;
  border-radius: 16px;
  display: block;
  padding: 5px;
}

.qr-caption {
  margin-top: 8px;
  font-size: 20px;
  font-weight: bolder;
  color: var(--text-color);
}

.logo-message {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  font-size: 50px;
  font-weight: bolder;
  color: var(--text-color);
  text-align: center;
  z-index: 1000;
}

.message-below-table {
  margin-top: 20px;
  font-size: 15px;
  font-weight: bold;
  color: var(--text-color);
  text-align: center;
}

.popup {
  width: 400px;
  height: 300px;
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--popup-bg);
  border: 6px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 0 20px var(--box-shadow-color);
  text-align: center;
  z-index: 1000;
}

.popup img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

.popup p {
  font-size: 18px;
  font-weight: bold;
  color: var(--text-color);
  margin: 0;
}

.hidden {
  display: none;
}

@media screen and (max-width: 1080px) and (orientation: portrait) {
  .qr-image {
    width: 410px;
    height: 400px;
  }

  td, td img {
    width: 200px;
    height: 200px;
  }

  .popup {
    width: 80%;
    height: auto;
    padding: 30px;
  }

  .popup img {
    width: 380px;
    height: 380px;
  }

  .popup p {
    font-size: 30px;
  }

  .logo-message {
    font-size: 50px;
    width: 100%;
  }

  .qr-caption {
    font-size: 30px;
  }

  .message-below-table {
    font-size: 30px;
  }
}

:root {
  --font-family: Arial, sans-serif;
  --text-color: #2c3e50;
  --label-color: #333;
  --container-bg: #fff;
  --border-color: #27ae60;
  --button-text:#fff;
  --button-color: #27ae60;
  --button-hover: #219150;
  --popup-bg: #e0ffe0;
  --box-shadow-color: rgba(0, 0, 0, 0.1);
}

html, body {
  width: 100%;
  height: 100%;
  font-family: var(--font-family);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}


/* Portrait mode background */
@media screen and (orientation: portrait) {
  body {
    background-image: url('../background/portrait1.jpg');
  }
}

/* Landscape mode background */
@media screen and (orientation: landscape) {
  body {
    background-image: url('../background/landscape1.jpg');
  }
}

.container {
  position: relative;
  display: inline-block;
  margin-top: 20px;
}

.table-wrapper {
  position: relative;
  display: inline-block;
}

table {
  box-shadow: 0 0 10px var(--box-shadow-color);
  margin-top: 60px;
}

td {
  width: 120px;
  height: 120px;
  text-align: center;
  vertical-align: middle;
  overflow: hidden;
}

td img {
  width: 120px;
  height: 120px;
  border: 6px solid var(--border-color);
  border-radius: 16px;
  object-fit: cover;
  display: block;
}

.qr-image {
  width: 250px;
  height: 240px;
  border-radius: 16px;
  display: block;
  padding: 5px;
}

.qr-caption {
  margin-top: 8px;
  font-size: 20px;
  font-weight: bolder;
  color: var(--text-color);
}

.logo-message {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  font-size: 50px;
  font-weight: bolder;
  color: var(--text-color);
  text-align: center;
  z-index: 1000;
}

.message-below-table {
  margin-top: 20px;
  font-size: 15px;
  font-weight: bold;
  color: var(--text-color);
  text-align: center;
}

.popup {
  width: 400px;
  height: 300px;
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--popup-bg);
  border: 6px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 0 20px var(--box-shadow-color);
  text-align: center;
  z-index: 1000;
}

.popup img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

.popup p {
  font-size: 18px;
  font-weight: bold;
  color: var(--text-color);
  margin: 0;
}

.hidden {
  display: none;
}

@media screen and (max-width: 1080px) and (orientation: portrait) {
  .qr-image {
    width: 410px;
    height: 400px;
  }

  td, td img {
    width: 200px;
    height: 200px;
  }

  .popup {
    width: 80%;
    height: auto;
    padding: 30px;
  }

  .popup img {
    width: 380px;
    height: 380px;
  }

  .popup p {
    font-size: 30px;
  }

  .logo-message {
    font-size: 50px;
    width: 100%;
  }

  .qr-caption {
    font-size: 30px;
  }

  .message-below-table {
    font-size: 30px;
  }
}

@media screen and (max-width: 768px) {
  html, body {
    padding: 10px;
    font-size: 14px;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    min-height: 100vh;
  }

  .logo-message {
    font-size: 25px;
    top: 120px;
    width: 100%;
    padding: 0 10px;
    text-align: center;
  }

  table {
    margin-top: 70px;
  }

  td, td img {
    width: 70px;
    height: 70px;
  }

  .qr-image {
    max-width: 170px;
    height: auto;
  }

  .qr-caption {
    font-size: 16px;
    text-align: center;
  }

  .message-below-table {
    font-size: 16px;
    padding: 10px 5px;
    margin-top: 10px;
  }

  .popup {
    width: 90%;
    max-width: 320px;
    height: auto;
    padding: 15px;
    top: 55%;
  }

  .popup img {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 10px;
  }

  .popup p {
    font-size: 16px;
  }
}
