.term-page {

}

.logo-header {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
}

.logo-header img {
    width: 100%;
    height: auto;
}

.term-page::before {
    content: "";
    display: block;
    height: 100%;
    width: 100%;
    background: #ED1112;
    background: radial-gradient(circle,rgba(237, 17, 18, 1) 0%, rgba(188, 4, 5, 1) 41%, rgba(161, 0, 1, 1) 74%);
    z-index: 1;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.frame-wrapper {
    position: absolute;
    top: 95px;
    left: 5%;
    right: 5%;
    bottom: 0;
    z-index: 5;
}

.frame-wrapper img {
    width: 100%;
    height: 100%;
}

.bottom-image {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1024px;
    z-index: 5;
}

.bottom-image img {
    width: 100%;
    height: auto;
}

.scroll-frame {
    position: relative;
    z-index: 20;
    top: 60px;
    top: calc(60px - env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
}

.how-to-play-scroll-block {
    overflow-y: scroll;
    max-height: 65vh;
    scrollbar-color: #FDBF0D #f1f1f1;
    scrollbar-width: thin; 
    padding: 0 0.25rem;
}

.how-to-play-scroll-block::-webkit-scrollbar {
    width: 8px; 
    height: 8px;
}

.how-to-play-scroll-block::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 10px; 
}

.how-to-play-scroll-block::-webkit-scrollbar-thumb {
    background: #FDBF0D; 
    border-radius: 10px;
    border: 2px solid #f1f1f1
}

.how-to-play-scroll-block::-webkit-scrollbar-thumb:hover {
    background: #FDBF0D;
    border-radius: 10px; 
}

.scroll-frame-header {
    font-family: 'Db-Adman-x';
    text-align: center;
    font-weight: 600;
    font-size: 1.9rem;
    color: #ffffff;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.note {
    margin-top: 0.5rem;
}

.rule-container {
    font-family: 'Db-Adman-x';
    color: #000;
    line-height: 1.1;
    padding: 0 0.5rem;
  }
  
  .rule-item {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
  }

  .mark-rule {
    margin: 1.5rem 0 0.5rem;
  }

  .rule-title {
    display: flex;
  }

  .rule-title {
    font-family: 'Db-Adman-x';
    color: #ffffff;
    font-weight: bold;
    font-size: 22px;
    margin-bottom: 0.25rem;
    text-decoration: underline;
  }

  .rule-title-small {
    font-family: 'Db-Adman-x';
    color: #ffffff;
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 0.25rem;
  }

  .rule-title span {
    font-family: 'Db-Adman-x';
    color: #ffffff;
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 0.25rem;
  }

  .rule-title span:last-child {
    margin-left: 0.25rem;
  }

  .rule-details {
    font-family: 'Db-Adman-x';
    color: #ffffff;
    font-size: 18px;
    font-weight: 300;
    display: block;
    margin-top: 0.5rem;
  }
  

  .rule-details li {
    margin-left: 1.25rem;
  }

  .btn-cta {
    position: relative;
    border: none;
    background-color: transparent;
    z-index: 10;
    width: 250px;
    max-width: 250px;
    left: 50%;
    bottom: 20%;
    transform: translateX(-50%)  scale(1);
    transition: 0.4s all cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-cta img {
    width: 100%;
    height: 100%;
}

.btn-cta p {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    font-size: 24px;
    color: #000000;
    font-weight: bold;
}

.btn-cta:active {
    transform: translateX(-50%) scale(0.95);
    transition: 0.1s all linear;
}

#how-to-play-back-btn {
    display: none;
}


@media only screen and (max-height: 1024px) and (orientation: landscape) {

    .campain-main-logo.animation {
        top: 28.5%;
        left: 50%;
        transform: translateX(-50%) translateY(-50%) scale(1);
    }
}

@media only screen and (max-height: 991px) {
    .how-to-play-scroll-block {
        max-height: 65vh !important;
    }
}

@media only screen and (max-height: 991px) and (orientation: landscape) {

    .campain-main-logo.animation {
        top: 28.5%;
        left: 50%;
        transform: translateX(-50%) translateY(-50%) scale(1);
    }

    .how-to-play-scroll-block {
        max-height: 55vh !important;
    }
}

@media only screen and (max-height: 768px) {
    .how-to-play-scroll-block {
        max-height: 60vh !important;
    }

    .landing-page .btn-cta.animation {
        top: 88.5%;
        transform: translateY(-220%) translateX(-50%) scale(1);;
    }
    .landing-page .condition-cta.animation {
        top: 90.5%;
        transform: translateY(-220%) translateX(-50%) scale(1);;
    }
}

@media only screen and (max-height: 650px) {
    .how-to-play-scroll-block {
        max-height: 50vh !important;
    }
}

@media only screen and (max-height: 768px) and (orientation: landscape) {

    .campain-main-logo.animation {
        top: 28.5%;
        left: 50%;
        transform: translateX(-50%) translateY(-50%) scale(1);
    }

    .close-popup-btn-cta {
        bottom: 10%;
    }

    .how-to-play-scroll-block {
        max-height: 40vh !important;
    }

}

@media only screen and (max-height: 460px) {
    .how-to-play-scroll-block {
        max-height: 40vh !important;
    }
}


@media only screen and (max-height: 460px) and (orientation: landscape) {
    .campain-main-logo.animation {
        width: 30%;
        min-width: 250px;
        max-width: 270px;
        left: 50%;
        top: 0;
        transform: translateX(-50%) scale(1);
    }

    .how-to-play-scroll-block {
        max-height: 40vh !important;
    } 

    .horse-b {
        right: -4.5%;
        bottom: 0;
    }

    .horse-t {
        width: 130px;
    }

    .um-l,
    .um-rt {
        width: 170px;
    }

    .um-lt {
        width: 200px;
    }

    .um-rb {
        width: 190px;
    }

    .landing-page .btn-cta.animation {
        top: 95.5%;
        max-width: 200px;
        height: 40px;
    }

    .landing-page .condition-cta.animation {
        top: 100%;
    }

    .logo-header {
        top: 0;
        width: 170px;
    }

    .frame-wrapper {
        top: 50px;
    }

    .scroll-frame {
        top: 120px;
    }

    .scroll-frame-header.termfirst {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .rule-title {
        font-size: 20px;
    }

    .rule-title-small {
        font-size: 18px;
    }

    .rule-details {
        font-size: 16px;
    }


    .close-popup-btn-cta {
        height: 40px !important;
        width: 200px !important;
        bottom: 7.5% !important;
    }

    .how-to-play-scroll-block {
        max-height: 25vh !important;
    }

    .scroll-frame-header {
        font-size: 1.6rem;
    }

    .scroll-frame {
        top: 30px;
    }
}

@media only screen and (max-height: 400px) and (orientation: landscape) { 
    .scroll-frame {
        top: 30px;
    }

    .how-to-play-scroll-block {
        max-height: 35vh !important;
    } 
}