@import url('https://fonts.googleapis.com/css2?family=Comfortaa&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@400;700&display=swap');

:root {
  --dark-red: #741317;
  --dark-brown: #2c180d;
  --light-brown: #f7bd47;
  --dark-blue: #2444b7;
}
html {
  scroll-behavior: smooth;
}
body{
    position: relative;
    min-height: 100vh;
    font-family:  'Comfortaa', cursive;
}
main{
    position: static;
    /*min-height: 100vh;*/
    margin: 0 auto;

    background-image: url('../../public/assets/SysImg/background_cover.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
footer{
    width: 100%;
    bottom: 0;
}

.dropdown-item.active{
    color: white !important;
    background-color: var(--dark-brown) !important;
}

.text-black{
    color: black;
}

.text-dark-red{
    color: var(--dark-red);
}

.text-dark-brown{
    color: var(--dark-brown);
}

.text-dark-blue{
    color: var(--dark-blue) !important;
}

.list-group-item.active{
    border-color: #2c180d !important;
    background-color: #2c180d !important;
}

.list-group-item:hover{
    filter: brightness(0.85);
}

.list-group-item-action:hover{
    color: #fff;
    border-color: #2c180d !important;
    background-color: #2c180d !important;
}

.bg-primary{
    background-color: #f7bd47 !important;
}

.bg-win-red{
    background-color: #b62024;
}

.bg-lose-red{
    background-color: #a31c01;
}

.btn-primary, .btn-primary:active, .btn-primary:visited {
    border-color: #2c180d !important;
    background-color: #2c180d !important;
}

.btn-primary:hover{
    filter: brightness(0.85);
}

/*.grecaptcha-badge { 
    visibility: hidden !important;
}*/

.btn-play, .btn-play:active, .btn-play:visited {
    color: white;
    width: 100%;
    max-width: 400px;
    height: 100px;
    border-radius: 25px;
    border-color: #eb1e23 !important;
    background-color: #eb1e23 !important;
}

.btn-play:hover{
    color: white;
    filter: brightness(0.85);
}

.btn-share, .btn-share:active, .btn-share:visited {
    color: white;
    padding: 35px 0;
    width: 400px;
    max-width: 320px;
    height: 95px;
    border-radius: 25px;
    border-color: #2444b7 !important;
    background-color: #2444b7 !important;
}

.btn-share:hover{
    color: white;
    filter: brightness(0.85);
}

.btn-play-again, .btn-play-again:active, .btn-play-again:visited {
    display: block;
    padding: 35px 0;
    color: #b62024 !important;
    width: 400px;
    height: 100px;
    border-radius: 25px;
    border-color: #f7bd47 !important;
    background-color: #f7bd47 !important;
}

.btn-play-again:hover{
    color: #b62024;
    filter: brightness(0.85);
}

.btn-exit, .btn-exit:active, .btn-exit:visited {
    display: block;
    padding: 35px 0;
    color: black !important;
    width: 400px;
    height: 100px;
    border-radius: 25px;
    border-color: #fff2c5 !important;
    background-color: #fff2c5 !important;
}

.btn-exit:hover{
    color: black;
    filter: brightness(0.85);
}

.fixed {
    position:fixed;
    top: -90px;
    left: 0;
    right: 0;
    z-index:999;
    transition:0.4s top cubic-bezier(.3, .73, .3, .74);
}
.fixed.slideDown {
    top:0;
}

#scrollTop {
    z-index: -1;
    opacity: 0;
    position: fixed;
    text-align: center;
    line-height: 12px !important;
    right: 26px;
    bottom: 0;
    color: #fff;
    cursor: pointer;
    border-radius: 100px;
    height: 40px;
    width: 40px;
    background-color: var(--dark-brown);
    background-repeat: no-repeat;
    background-position: center;
    transition: opacity .3s,bottom .5s,box-shadow .3s cubic-bezier(.55,0,.1,1),background-color .1s linear;
    background-color: var(--dark-brown) !important;
    overflow: hidden;
}

.waves-up{
    display: block;
    height: 52px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-size: 100% 100%;
    background-image: url('../../public/assets/SysImg/HG-Yellow-Wave-f-Up.png');
}

.waves-down{
    display: block;
    height: 52px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-size: 100% 100%;
    background-image: url('../../public/assets/SysImg/HG-Yellow-Wave-f-Down.png');
}

#scrollTop:hover {
    transition: box-shadow .3s cubic-bezier(.55,0,.1,1),background-color .05s linear .25s;
    background-color: #f7bd47 !important;
}

#scrollTop i {
    line-height: 39px !important;
    width: 39px !important;
    height: 39px !important;
    font-size: 16px !important;
    top: 0 !important;
    left: 0 !important;
    text-align: center !important;
    position: relative;
    z-index: 10;
    background-color: transparent !important;
    transform: translate(0,0px);
    transition: transform .2s ease;
}

/* T&C */
.terms-content{
    height: 300px;
    overflow: auto;
}
.td-center{
    vertical-align: middle;
    text-align: center;
}
.nested li {
    display: block;
    position: relative;
}
ul{
    padding-left: 0;
}
.final-grand-prizes-table{
    margin-left: -30px;
}
.be-surprised, .be-powerful, .be-happy, .be-lucky{
    margin-bottom: 1rem;
}
.nested .nested,.nested .nested .sixth-nested,.fifth-nested{
    padding-left: 0;
}
.nested {
    margin-bottom: 0;
    counter-reset: number;
}
.parent .nested {
    counter-reset: letter;
}
.parent .fifth-nested{
    counter-reset: fifth-num;
}
.parent .nested .fifth-nested{
    counter-reset: fifth-num;
}
.parent .nested .sixth-nested{
    counter-reset: sixth-num;
}
.parent .nested .sixth-nested .be-surprised{
    counter-reset: be-surprised-num;
}
.parent .nested .sixth-nested .be-powerful{
    counter-reset: be-powerful-num;
}
.parent .nested .sixth-nested .be-happy{
    counter-reset: be-happy-num;
}
.parent .nested .sixth-nested .be-lucky{
    counter-reset: be-lucky-num;
}
.nested .ninth-nested{
    counter-reset: ninth-num;
}
.parent .nested li::before {
    content: counter(number) "." counter(letter, decimal);
    counter-increment: letter;
}
.nested li::before {
    content: counter(number) ".";
    counter-increment: number;
    position: absolute;
    margin-right: 100%;
    right: 10px;
}
.nested .fifth-nested li::before{
    content:  counter(fifth-num, lower-roman) ".";
    counter-increment: fifth-num;
}
.parent .sixth-nested li::before{
    content:  counter(sixth-num, lower-alpha) ".";
    counter-increment: sixth-num;
}
.parent .nested .sixth-nested .be-surprised li::before{
    content:  '\2022';
    counter-increment: be-surprised-num;
}
.parent .nested .sixth-nested .be-powerful li::before{
    content:  '\2022';
    counter-increment: be-powerful-num;
}
.parent .nested .sixth-nested .be-happy li::before{
    content:  '\2022';
    counter-increment: be-happy-num;
}
.parent .nested .sixth-nested .be-lucky li::before{
    content:  '\2022';
    counter-increment: be-lucky-num;
}
.nested .ninth-nested li::before{
    content:  counter(ninth-num, lower-alpha) ".";
    counter-increment: ninth-num;
}
/* END T&C */

@media(min-width: 320px) {
    h1 {
      font-size: 1em;
    }
    h2{
        font-size: 0.8rem;
    }
    h3{
        font-size: 0.75rem;
    }
    video{
        width: 200px;
        height: 100%;
    }
    .win-text{
        position: absolute;
        top: 25%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .lose-text{
        position: absolute;
        top: 15%;
        left: 50%;
        font-size: 0.6em;
        transform: translate(-50%, -50%);
    }
    .btn-share{
        font-size: 0.9em;
    }
    .award-img{
        width: 200px;
        height: 100%;
        object-fit: scale-down;
    }
    .img-upload-example{
        width: 100%;
    }
}

@media (min-width: 576px) {
    h1{
        font-size: 1.3rem !important;
    }
    h2{
        font-size: 1rem;
    }
    h3{
        font-size: 0.875rem;
    }
    video{
        width: 350px;
        height: 350px;
    }
    .win-text{
        position: absolute;
        top: 25%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .lose-text{
        position: absolute;
        top: 15%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .award-img{
        width: 200px;
        height: 100%;
        object-fit: scale-down;
    }
    .img-upload-example{
        width: 100%;
    }
}

@media (min-width: 768px) {
    main{
        min-height: 100vh;
    }
    h1{
        font-size: 1.3rem !important;
    }
    h2{
        font-size: 1rem;
    }
    h3{
        font-size: 0.875rem;
    }
    video{
        width: 400px;
        height: 400px;
    }

    .how-to-participate-content{
        display: flex;
        height: 200px;
        justify-content: center;
        align-items: flex-start;
    }

    .win-text{
        position: absolute;
        top: 25%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .lose-text{
        position: absolute;
        top: 10%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .award-img{
        width: 200px;
        height: 100%;
        object-fit: scale-down;
    }
    .img-upload-example{
        width: 100%;
    }
}

@media (min-width: 992px) {
    main{
        min-height: 100vh;
    }
    h1{
        font-size: 1.7rem !important;
    }
    h2{
        font-size: 1.5rem;
    }
    h3{
        font-size: 1.3rem;
    }
    video{
        width: 450px;
        height: 450px;
    }

    .how-to-participate-content{
        display: flex;
        height: 200px;
        justify-content: center;
        align-items: flex-start;
    }

    .win-text{
        position: absolute;
        top: 25%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .lose-text{
        position: absolute;
        top: 15%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .award-img{
        width: 200px;
        height: 100%;
        object-fit: scale-down;
    }
    .img-upload-example{
        width: 100%;
    }
}

@media (min-width: 1200px) {
    main{
        min-height: 100vh;
    }
    h1{
        font-size: 2.1875rem;
    }
    h2{
        font-size: 1.75rem;
    }
    h3{
        font-size: 1.53125rem;
    }
    video{
        width: 600px;
        height: 600px;
    }

    .how-to-participate-content{
        display: flex;
        height: 200px;
        justify-content: center;
        align-items: flex-start;
    }

    .win-text{
        position: absolute;
        top: 25%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .lose-text{
        position: absolute;
        top: 12%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .award-img{
        width: 200px;
        height: 100%;
        object-fit: scale-down;
    }
    .img-upload-example{
        width: 70%;
    }
}