@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@font-face {
  font-family: 'Drag Racing';
  font-style: normal;
  font-weight: 400;
  src: url('../assets/font/Drag-Racing-2.woff') format('woff');
}
html{
    color-scheme: light;
}

body{
    font-family: "Inter", sans-serif;
}
.petrosains-bg{
    background: 
        linear-gradient(0deg, rgba(0, 0, 0, 0) 85%, rgba(0, 0, 0, 0.7) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0) 85%, rgba(0, 0, 0, 0.7) 100%),
        url('../assets/images/main-bg.png') no-repeat center center;
    background-size: cover;
}
/***** HEADER *****/
.center-90{
    width: 90%;
    margin: auto;
}
.center-full{
    width: 100%;
    margin: auto;
}
.white-header{
    /* background: #fff; */
    padding: 10px 0;
    background-color: #fff!important;
    color-scheme: only light;
    isolation: isolate;
    position: relative;
    overflow: hidden;
}
/***** GENERAL *****/
.mobile-container{
    max-width: 600px;
    min-height: 100dvh;
    margin: auto;
    backdrop-filter: blur(10px);
    /* padding-top: 60px; */
}
.content-placeholder{
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    max-width: 100%;
    margin: 40px auto;
    padding: 24px;
}

.hide{
    display: none!important;
}
.hidden{
    visibility: hidden;
}
#qrcode img{
    margin: auto;
}

.white-bg{
    /* background-image: url("../assets/images/white.jpg")!important; */
    background-color: #dcdcdc!important;
    color-scheme: only light;
    isolation: isolate;
    padding: 20px;
    border-radius: 10px;
    width: fit-content;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
}
@media (prefers-color-scheme: dark) {
    .white-bg, .white-header{
        background-color: #dcdcdc!important;
        filter: brightness(1.0);
    }
    .white-bg::before, .white-header::before {
        content: "";
        position: absolute;
        inset: 0;
        background: #dcdcdc;
        z-index: 0;
        pointer-events: none;
    }

    .white-bg > *, .white-header > * {
        position: relative;
        z-index: 1;
    }
}
@media only screen and (max-width: 600px) {
    .content-placeholder{
        padding: 20px;
    }
}
/* Spacing */
.mt-178{
    margin-top: 178px;
}
.flex-alarm{
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    text-align: left;
}
.flex-alarm img{
    width: 12%;
    height: 12%;
    margin-right: 15px;
}

#page1{
    margin: 60px auto;
}
#page1, #register_success{
    min-height: 50dvh;
}
#page2{
    min-height: 67dvh;
}
@media only screen and (max-width: 600px) {
    .flex-alarm img{
        width: 10%;
        height: 10%;
        margin-right: 10px;
    }
    #page1, #register_success{
        min-height: 54dvh;
    }
}
/* FONT - TEXT */
.text-14{
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    line-height: 18px;
    margin-top: 8px;
    margin-bottom: 0;
}
.racerText{
    font-family: 'Drag Racing', sans-serif;
    color: #fff;
    margin-bottom: 0;
}
.racerText.smaller{
    width: 70%;
    font-size: 16px;
    line-height: 22px;
}
#racerName{
    text-transform: uppercase;
    font-size: 28px;
    line-height: 34px;
    margin-bottom: 30px;
}
.center{
    text-align: center;
}
.tap-text{
    text-shadow: 0px 0px 12px #00B2AD;
    font-size: 28px;
    line-height: 30px;
    font-weight: 400;
    margin-bottom: 15px;
}
.countdown-number{
    text-shadow: 0px 0px 12px #00B2AD;
    font-size: 44px;
    line-height: 44px;
    font-weight: 400;
    margin-bottom: 0;
}
.at-right{
    text-align: right;
}
.justify{
    text-align: justify;
}
/***** BUTTON *****/
.btn{
    font-family: "Inter", sans-serif;
    font-size: 20px;
    line-height: 26px;
    font-weight: 500;
    padding: 15px 22px;
    min-width: 150px;
}
.btn2{
    font-family: 'Drag Racing', sans-serif;
    font-weight: 400;
    font-size: 45px;
    line-height: 53px;
}
.green-btn{
    color: #fff;
    border-radius: 10px;
    background-color: #25B3AA;
    width: 80%;
}
    .green-btn:hover {
        color: #fff;
        background-color: #13645f;
    }
.neutral-btn{
    color: #1B2238;
    background-color: #fff;
    border: 1px solid #DFE4F1;
    border-radius: 56px;
    box-shadow: 0px 2px 5px 0px #909BBB1A;
}
    .neutral-btn:hover {
        color: #1B2238;
        background-color: #e9e2e2;
    }

.tap-container {
  position: relative;
  margin: auto;
  overflow: hidden;
  padding: 20px 0;
}
.tapping-wrapper{
    margin: auto;
    border: 3px solid;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}
    .tapping-wrapper.one{
        width: 250px;
        height: 250px;
        border-color: rgba(255,255,255,0.32);
        box-shadow: 0px 0px 24px 0px #82fffb33;
    }
    .tapping-wrapper.two{
        width: 95%;
        height: 95%;
        border-color: rgba(255,255,255,0.64);
        box-shadow: 0px 0px 24px 0px #82fffb64;
    }
.start-button{
    width: 95%;
    height: 95%;
    background: linear-gradient(136.11deg, #FFFFFF 13.75%, #88FFF7 87.88%);
    color: #25B3AA;
    text-shadow: 0px 0px 12px #6DFFFA;
    padding: 20px;
    border-radius: 50%;
    cursor: pointer;
    border-width: 6px 10px 20px 10px;
    border-style: solid;
    border-color: #25B3AA;
}
    .start-button.active{
        border-width: 6px;
        transform: translateY(5px);
    }
    .start-button:hover{
        background: linear-gradient(136.11deg, #88FFF7 13.75%, #FFFFFF 87.88%);

    }
.tap-btn-bg{
    width: 95%;
    height: 95%;
    background: linear-gradient(180deg, #25B3AA 0%, #104D49 100%);
    border-radius: 50%;
    padding: 5px;
    position: relative;
    z-index: 1;
}
.tap-button{
    width: 100%;
    height: 100%;
    background: linear-gradient(136.68deg, #88FFF7 12.9%, #529994 86.34%);
    color: #FFFFFF;
    text-shadow: 0px 0px 12px #00B2AD;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    z-index: 1;
    overflow: hidden;
    touch-action: manipulation;
}
    .tap-button.active{
        width: 95%;
        height: 95%;
        transform: translateY(5px);
    }
    .tap-button:disabled{
        width: 95%;
        height: 95%;
        cursor: default;
        opacity: 0.4;
        transform: translateY(0px);
        touch-action: manipulation;
    }

.plus-one-icon{
    max-height: 50px;
    position: absolute;
    right: 35px;
    opacity: 1;
    z-index: 10;
    animation: translation 1s ease-in forwards;
}
    .plus-one-icon.animateIt {
        -webkit-animation-name: translation; 
        -webkit-animation-duration: 1s; 
        -webkit-animation-timing-function: ease-in;
        -webkit-animation-iteration-count: 1;
        -webkit-animation-fill-mode: forwards;

        animation-name: translation;
        animation-duration: 1s;
        animation-timing-function: ease-in;
        animation-iteration-count: 1;
        animation-fill-mode: forwards;
    }
    @keyframes translation {
        /* from {
            top: 20px;
            opacity: 100%;
        }
        to {
            opacity: 0%;
            top: -30px;
        } */
        from {
            transform: translateY(0);
            opacity: 1;
        }
        to {
            transform: translateY(-50px);
            opacity: 0;
        }
    }
/***** FOOTER *****/
footer.footer{
    position: relative;
    bottom: 0;
    color: #fff;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    padding: 30px 20px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.footer img.logo{
    width: 45%!important;
    height: auto!important;
}
@media only screen and (max-width: 600px) {
    .racerText.smaller{
        width: 85%;
        font-size: 14px;
        line-height: 22px;
    }
    footer.footer{
        padding: 20px;
    }
    .btn{
        font-size: 16px;
        line-height: 24px;
    }
    .green-btn{
        border-radius: 10px;
    }
}
/***** MODAL *****/
.popup-container {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s visibility ease-in, opacity 0.3s ease-out;
    visibility: hidden;
    opacity: 0;
}
.popup-container.show {
    visibility: visible;
    opacity: 1;
}
.popup {
    width: 60vw;
    max-height: 90vh;
    border-radius: 20px;
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(34, 34, 53, 0.1);
}
header.cc-popup {
    background-color: #0D1020;
    border-radius: 20px 20px 0 0;
    padding: 40px 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: end;
}
main.cc-popup {
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: unset;
    justify-content: unset;
    gap: 8px;
}
.inner-popup-container{
    max-height: 65vh;
    overflow: auto;
}
footer.cc-popup {
    padding: 0 40px 20px;
    display: flex;
    justify-content: right;
    align-items: center;
}
.popup-btn-container {
    display: flex;
    align-items: end;
    gap: 8px;
}