/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}

* {
    box-sizing: border-box;
}

@font-face {
    font-family: "BoonTookMon-Regular";
    src: url(../fonts/BoonTookMon-Regular.otf) format('opentype'),
    url(../fonts/BoonTookMon-Regular.ttf) format('truetype');
}

@font-face {
    font-family: "Roboto-Regular";
    src: url(../fonts/Roboto-Regular.ttf) format('truetype');
}

@font-face {
    font-family: "Roboto-Bold";
    src: url(../fonts/Roboto-Bold.ttf) format('truetype');
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    height: 100%;
    font-family: "MyriadPro-Bold", "Myriad Pro", "Myriad", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

main {
    font-family: "Roboto-Bold";
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: url(../img/bg-desktop.jpg) no-repeat center center;
    background-size: cover;
}

.title-img {
    width: 700px;
    height: 70px;
    margin-top: 20px;
    background-image: url(../img/title-en.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

body.th .title-img {
    background-image: url(../img/title-th.png);
    margin-bottom: 0;
}

.title-text {
    text-align: center;
    color: white;
    font-size: 16px;
    height: 450px;
    font-family: "BoonTookMon-Regular";
    font-weight: normal;
}

.title-text p {
    margin: 0;
    padding: 0;
}

.main-content {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.rowContent {
    width: 150%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.row1,
.row2 {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 50px;
}

.row2 {
    width: 80%;
}

.row3 {
    text-align: center;
}

.rowButton {
    width: 200px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 2px solid rgb(249, 196, 13);
    border-radius: 20px;
    background-image: linear-gradient(90deg, rgb(136, 0, 0), rgb(220, 18, 22));
    color: white;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    font-size: 19px;
}

.rowButton > span {
    position: relative;
    z-index: 2;
}

.rowButton::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgb(249, 196, 13);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    pointer-events: none;
}

.rowButton:hover::before {
    width: 300%;
    height: 300%;
}

.rowButton:hover {
    color: rgb(136, 0, 0);
    border-radius: 10px;
}

@keyframes popupFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.popup-box {
    animation: popupFadeIn 0.3s ease-in-out forwards;
}

@keyframes popupClose {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.popup-box.closing {
  animation: popupClose 0.3s ease-out;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-box {
    position: relative;
    width: 500px;
    height: 400px;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    background-image: url('../img/lightbox-bg.png');
    background-size: cover;
    background-position: center;
    overflow: hidden;
    box-sizing: border-box;
}

.popup-header {
    text-align: center;
    position: sticky;
    top: 0;
    background: transparent;
    color: #ffe000;
    font-size: 30px;
    z-index: 10;
    font-weight: bolder;
    margin-bottom: 0;
}

.header-caption {
    font-family: "BoonTookMon-Regular";
    font-weight: normal;
}

.popup-header .popup-subtitle,
.popup-header .popup-main {
    font-size: 12px;
    color: white;
    font-weight: normal;
    font-family: "Roboto-Regular";
}

.popup-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 10px;
    color: white;
    font-family: "Roboto-Regular";

    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: #ffe000 transparent;
}

.popup-content::-webkit-scrollbar {
    width: 8px;
}

.popup-content::-webkit-scrollbar-track {
    background: transparent;
}

.popup-content::-webkit-scrollbar-thumb {
    background-color: #ffe000;
    border-radius: 4px;
}

.popup-close {
    align-self: flex-end;
    margin-bottom: 5px;
    font-size: 20px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    z-index: 11;
    transition: transform 0.5s ease-in-out;
    display: inline-block;
}

.popup-close:hover {
    transform: rotate(360deg);
}

.popup-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.popup-wrapper {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease;
}

.popup-slide {
    min-width: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.popup-arrow {
    position: absolute;
    top: 55%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 5px 30px;
    cursor: pointer;
    z-index: 20;
    transition: all 0.5s ease;
}

.popup-arrow.prev {
    left: 10px;
}

.popup-arrow.next {
    right: 10px;
}

.iphone-img img {
    width: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.winners {
    font-size: 20px;
    text-align: center;
    font-family: "BoonTookMon-Regular";
}

.available {
    margin-top: 7%;
    font-size: 14px;
    font-weight: 800;
    font-style: italic;
    text-align: center;
}

.yellow-text {
    color: #ffe000;
}

.yellow-text-winners {
    color: #ffe000;
    font-size: 42px;
}

.yellow-text-iphone {
    color: #ffe000;
    font-size: 25px;
}

.yellow-terms {
    color: #ffe000;
    text-decoration: none;
}

.text {
    display: inline-block;
    margin: 10px 0;
}

.text b {
    margin-right: 0.3em;
}

ol {
    padding: 5px;
    list-style: decimal inside;
    margin: 10px 0 !important;
}

ol li + li {
    margin-top: 7px;
    line-height: 1.5;
}

table {
    margin: 0 auto;
    border-collapse: collapse;
}

table.ftbl-leagues-table {
    width: 220px;
    border-collapse: separate;
    border-spacing: 0;
    border: 2px solid #ffe000;
}

table.ftbl-leagues-table th,
table.ftbl-leagues-table td {
    border: none;
}

.ftbl-games-table {
    width: 220px;
    border-collapse: collapse;
    border-spacing: 0;
}

table.first-lucky-table,
table.second-lucky-table,
table.third-lucky-table {
    width: 400px;
}

th,
td {
    border: 1px solid #ffe000;
    text-align: center;
    padding: 5px 0;
}

th {
    background-color: #ffe000;
    color: rgb(136, 0, 0);
    padding: 10px 5px;
    font-family: "Roboto-Bold";
}

.rowInput {
    width: 240px;
    height: 45px;
    opacity: 0.8;
    border: 3px solid #A3ADAD;
    border-radius: 5px;
    background: rgb(213, 213, 213);
    color: #6c5e5e;
    text-align: center;
    font-size: 20px;
    font-weight: 900;
}

.rowInput::placeholder {
    font-size: 20px;
}

.submitButton {
    width: 100px;
    height: 43px;
    margin-left: 2px;
    background: url(../img/submit-button.png);
    border: none;
    color: #ffe000;
    font-size: 18px;
    font-weight: bold;
}

.member {
    text-align: center;
    font-size: 18px;
    font-weight: 900;
}

.sign-red {
    color: #ff0000;
    text-decoration: underline;
    font-weight: 900;
}

.sign-black {
    color: black;
    text-decoration: none;
    font-weight: 900;
}

#overlay-snackbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 999;
}

#snackbar {
  visibility: hidden;
  min-width: 250px;
  margin-left: -125px;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 16px;
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 30px;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.3s ease, bottom 0.3s ease;
}

#snackbar.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}

#snackbar.success {
  background-color: #4CAF50;
}

#snackbar.error {
  background-color: #F44336;
}
