* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: white;
}

@font-face {
    font-family: 'SamsungSharpSans-Bold';
    src: url('fonts/SamsungSharpSans-Bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SamsungSans';
    src: url('fonts/SamsungSans.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SamsungSans_Lt';
    src: url('fonts/SamsungSans_Lt.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

head{
    width: 360px;
    height: 640px;
    margin: auto;
}

body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #141945;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    background-size: cover;
    background-image: url("assets/ui_image/bgimage.png");
    background-position: center top;
    background-repeat:no-repeat;
}

.title{
    width: 360px;
    height: 269px;
    scale: 100%;
    margin: auto;
    padding-top: 20%;
}

.form-container {
    padding: 40px;
    width: 100%;
    max-width: 500px;
}

h2 {
    text-align: center;
    color: #ffffff;
    font-size: 40px;
    margin-bottom: 25px;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

.input-group input {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-family: 'SamsungSans_Lt';
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.input-line-style input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid white;
  padding-top: 30px;
    padding-bottom: 10px;
  font-size: 14px;
  color: white;
  font-family: 'SamsungSans_Lt';
  outline: none;
    text-align: center;
}

.input-line-style input::placeholder {
  color: white;
  opacity: 0.8;
}

.dropdown-line-style select {
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: transparent;
    border: none;
    border-bottom: 1px solid white;
    padding-top: 30px;
    padding-bottom: 10px;
    font-size: 14px;
    color: white;
    font-family: 'SamsungSans_Lt';
    outline: none;
    text-align: center;
    text-align-last: center;
}

.dropdown-wrapper {
    position: relative;
}

.dropdown-wrapper::after {
    content: "▼";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    pointer-events: none;
    font-size: 12px;
}

.dropdown-line-style select option[value=""] {
    color: #0A0F2C;
    opacity: 0.8;
}

.dropdown-line-style select option:not([value=""]) {
    color: black;
}

button {
    border: 0px solid transparent;
    border-radius: 60px;
    width: 87%;
    height: 44px;
    cursor: pointer;
    background-image: url('assets/ui_image/getstarted_btn.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: filter 0.2s ease;
    display: block;
    margin: 40px auto 0 auto;
    scale: 70%;
}

button:active {
    filter: brightness(0.7);
}

.container {
    display: flex;
    justify-content: space-around;
    margin-top: 50px;
    width: 360px;
    height: 640px;
    max-width: 100%;
    padding: 20px;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

th, td {
    padding: 12px 16px;
    border: 1px solid #ccc;
    text-align: left;
    font-family: 'SamsungSans_Lt';
    font-size: 14px;
}

th {
    background-color: #f0f0f0;
}

td:nth-child(4) {
    width: 100px;
}

td:nth-child(5) {
    width: 180px;
}

#qr1 { float: left;  width: 180px; height: 180px; }
#qr2 { float: right; width: 180px; height: 180px; }
#qr3 { float: left;  width: 180px; height: 180px; }
#qr4 { float: right; width: 180px; height: 180px; }

.qr-item {
    width: 200px;
    cursor: pointer;
}

.qr-item img {
    width: 100%;
    border: 2px solid #ddd;
    border-radius: 8px;
}

.qr-item.scanned img {
    border: 2px solid green;
}

#qr4 {
    cursor: not-allowed;
}

#qr4:not(.unlocked) img {
    opacity: 0.5;
    filter: grayscale(60%);
}

#qr4.unlocked {
    cursor: pointer;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.06); }
}

#scanner-container {
    margin-top: 20px;
    display: none;
}

#scanner-container video {
    width: 100%;
    height: auto;
    border: 2px solid #ddd;
    border-radius: 8px;
}

#survey, #prizes {
    margin-top: 20px;
}

.error {
    color: red;
    font-size: 16px;
    text-align: center;
    margin-bottom: 15px;
}
