/* @import "fontface.css"; */

@font-face {
    font-family: 'RacingMarkRace';
    src: url('../../fonts/RacingMarkRace-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html {
    font-size: 62.5%;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* scroll-behavior: smooth; */
    /* font-smoothing: antialiased; */
    /* scroll-padding-top: var(--scroll-padding, 160px); */
}

body {
    height: 100% !important;
    font-family: 'Poppins' !important;
    font-weight: 500 !important;
    font-size: 2rem !important;
    -webkit-font-feature-settings: "palt"1 !important;
    font-feature-settings: "palt"1 !important;
    color: #313131 !important;
    background: #040707 !important;
    line-height: 1.75 !important;
    letter-spacing: 0.1rem !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
    -webkit-box-sizing: border-box !important;
    box-sizing: border-box !important;

    min-height: 100vh;
}

body {
    /* scroll-behavior: smooth; */
    /* text-rendering: optimizeSpeed; */
    min-height: 100vh;
    line-height: 1.5;
}

body header,
body .wrapper {
    opacity: 1;
    -webkit-transition: opacity 240ms;
    transition: opacity 240ms;
}

@media screen and (max-width: 768px) {

    body {
        font-size: 1.4rem !important;
    }

}

.back-to-top {
    cursor: pointer;
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    z-index: 999;
    color: #00a0e9;
}

.back-to-top:hover {
    color: #0074aa;
}

img {
    opacity: 1;
    -webkit-transition: all 480ms;
    transition: all 480ms;
    display: block;
}

img {
    max-width: 100%;
    vertical-align: bottom !important;
}

img[src$=".svg"] {
    width: 100%;
    height: auto;
    vertical-align: bottom;
}

a:not([class]) {
    -webkit-text-decoration-skip: ink;
    text-decoration-skip-ink: auto;
}

a {
    color: #333;
    text-decoration: none !important;
}

body,
h1,
h2,
h3,
h4,
h5,
p,
ul[class],
ol[class],
li,
figure,
figcaption,
blockquote,
dl,
dd {
    margin: 0;
}

#facebox .close {
    top: -15px;
    right: -15px;
}

#facebox .btn-goHome {
    position: absolute;
    left: 35%;
    bottom: 5%;
}

.close {
    float: right;
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: unset;
    filter: unset;
    opacity: unset;
}

.close:focus,
.close:hover {
    filter: unset;
    opacity: unset;
}

@media(max-width: 768px) {

    #facebox .content {
        width: auto;
    }

    #facebox img {
        width: 100%;
    }

    #facebox .close {
        top: 15vh;
        right: 0px;
        width: 12%;
    }

    #facebox .btn-goHome {
        position: absolute;
        left: 12%;
        top: 90vh;
    }

    #facebox .btn-goHome img {
        max-width: 80%;
    }
}

.floating-home {
    position: absolute;
    display: block;
    top: 0.5%;
    right: 1%;
    z-index: 99;

    transition: 0.5s linear 0.6s;
    animation: milestoneHighlight 2.5s infinite ease-in-out;
}

.floating-home:hover,
.floating-home:active {
    animation: jiggle-top 0.35s ease-out forwards;
}

.floating-home img {
    width: 11vw;
}

@media screen and (max-width: 768px) {

    .floating-home img {
        width: 20vw;
    }

}

/* ------------------------------------------------- KEYFRAMES ------------------------------------------------ */

@keyframes jiggle-left {
    0% {
        transform: translateX(0) scale(1);
    }

    40% {
        transform: translateX(-22px) scale(1.1);
        filter: saturate(2);
    }

    65% {
        transform: translateX(-14px) scale(1.05);
        filter: saturate(2);
    }

    85% {
        transform: translateX(-18px) scale(1.08);
        filter: saturate(2);
    }

    100% {
        transform: translateX(-18px) scale(1.08);
        filter: saturate(2);
    }
}

@keyframes jiggle-right {
    0% {
        transform: translateX(0) scale(1);
    }

    40% {
        transform: translateX(22px) scale(1.1);
        filter: saturate(2);
    }

    65% {
        transform: translateX(14px) scale(1.05);
        filter: saturate(2);
    }

    85% {
        transform: translateX(18px) scale(1.08);
        filter: saturate(2);
    }

    100% {
        transform: translateX(18px) scale(1.08);
        filter: saturate(2);
    }
}

@keyframes jiggle-top {
    0% {
        transform: translateY(0) scale(1);
    }

    40% {
        transform: translateY(-22px) scale(1.1);
        filter: saturate(2);
    }

    65% {
        transform: translateY(-14px) scale(1.05);
        filter: saturate(2);
    }

    85% {
        transform: translateY(-18px) scale(1.08);
        filter: saturate(2);
    }

    100% {
        transform: translateY(-18px) scale(1.08);
        filter: saturate(2);
    }
}

@keyframes glitchBW {
    0% {
        filter: none;
        transform: translate(0);
    }

    4% {
        filter: grayscale(100%) contrast(200%);
        transform: translate(-1px, -1px);
    }

    20% {
        filter: grayscale(100%) contrast(200%);
        transform: translate(1px, 1px);
    }

    30% {
        filter: none;
        transform: translate(0);
    }

    100% {
        filter: none;
        transform: translate(0);
    }
}

@keyframes lightning {

    0%,
    82%,
    100% {
        opacity: 0.85;
        filter: contrast(1.2) brightness(1);
    }

    86% {
        opacity: 0.92;
        filter: contrast(1.4) brightness(1.05);
    }

    89% {
        opacity: 1;
        filter: contrast(1.6) brightness(1.1);
    }

    92% {
        opacity: 0.9;
        filter: contrast(1.35) brightness(1.03);
    }

    95% {
        opacity: 1;
        filter: contrast(1.5) brightness(1.08);
    }

    98% {
        opacity: 0.88;
        filter: contrast(1.25) brightness(1.02);
    }
}

@keyframes milestoneHighlight {
    0% {
        filter: brightness(1);
    }

    45% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.4) contrast(1.1) saturate(1.1);
    }

    60% {
        filter: brightness(1.1);
    }

    100% {
        filter: brightness(1);
    }
}

@keyframes topicHighlight {
    0% {
        filter: saturate(1);
    }

    20% {
        filter: saturate(10) contrast(1.1);
    }

    80% {
        filter: saturate(1.1);
    }

    100% {
        filter: saturate(1);
    }
}

@keyframes Bounce {
    0% {
        transform: translateY(0);
        filter: saturate(1);
    }

    80% {
        transform: translateY(0);
        filter: saturate(1);
    }

    85% {
        transform: translateY(-6px);
        filter: saturate(3) contrast(1.1);
    }

    90% {
        transform: translateY(0);
        filter: saturate(3) contrast(1.1);
    }

    95% {
        transform: translateY(-3px);
        filter: saturate(1.5);
    }

    100% {
        transform: translateY(0);
        filter: saturate(1);
    }
}

/* ------------------------------------------------ FLOATING ------------------------------------------------- */
#floating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 20px;
    position: absolute;
    margin-left: -89%;
    padding: 1rem 1rem;
    width: 100%;
    z-index: 2;
    box-sizing: border-box;
    margin-top: 0;
    z-index: 3;
}

#floating .float-btn {
    position: relative;
    height: auto;
    width: 10%;
    display: block;
}

#floating .float-btn img,
#floating .float-btn video {
    width: 80%;
    height: auto;
}

/* ------------------------------------------------ WRAPPER ------------------------------------------------- */

.wrapper {
    padding-top: 0px;
    overflow: hidden;
}

@media screen and (max-width: 1050px) {

    .wrapper {
        padding-top: 0px;
    }

}

/* -------------------------------------------------- MAIN --------------------------------------------------- */

#Home {
    position: relative;
    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5vw;

    background: url(../../images/guild/menu/bg.png);
    background-size: 100% 100%;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 2;
}


#Home .inner {
    position: relative;
    top: 0;
    z-index: 110;
    width: 100%;
    padding-top: 0;
}

#Home .inner:last-of-type {
    margin-bottom: 0px;
}

#Home .inner .innerContent {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    position: relative;
    margin-top: 0;
    margin-left: 0;
    padding: 0 0;
    width: 100%;
    box-sizing: border-box;
}

#Home .inner .innerContent .char {
    position: relative;
    height: auto;
    width: 40.2%;
    margin-top: 4.5%;
    left: 0;
    pointer-events: none;
}

#Home .inner .innerContent .logo {
    position: absolute;
    width: 29%;
    bottom: 3%;
    left: 0;
}

#Home .inner .innerContent .slash {
    position: absolute;
    max-width: 844px;
    width: 36%;
    bottom: 6%;
    left: 21%;
    animation: lightning 10s ease-in-out infinite;
}

#Home .inner .innerContent .containerContent {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 9px;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 0;
    padding: 3% 4rem;
    width: 100%;
}

#Home .inner .innerContent .containerContent .title {
    position: relative;
    height: auto;
    width: 67%;
    top: 0;
    z-index: 5;
    cursor: pointer;
    animation: glitchBW 1.5s infinite;
    animation-delay: 1.1s;
}

#Home .inner .innerContent .containerContent .btnWrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 0px;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 0;
}

#Home .inner .innerContent .containerContent .buttons {
    position: relative;
    height: auto;
    width: 17vw;
    cursor: pointer;
    filter: drop-shadow(2px 4px 6px #d5c18f);
    transition: ease 0.7s;
}

#Home .inner .innerContent .containerContent .buttons:hover {
    transform: scale(0.9);
    /* filter: saturate(2); */
}

.guildTable {
    min-height: 613px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #15140e42;
    border: 1px solid #ffc80047;
}

.guildTable .row {
    align-content: flex-start;
}

.guild-list {
    max-height: 615px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
}

.guild-list::-webkit-scrollbar {
    width: 8px;
}

.guild-list::-webkit-scrollbar-track {
    background: transparent;
}

.guild-list::-webkit-scrollbar-thumb {
    background: #9b7b2c;
    border-radius: 10px;
}

.guild-list::-webkit-scrollbar-thumb:hover {
    background: #c79d3d;
}

.guild-card .card-img-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Horizontal center */
    text-align: center;
    /* Text center */
}

.guild-card .card-title,
.guild-card .card-text {
    text-align: center;
}

.card.guild-card.shadow-sm {
    max-width: 100%;
    margin: auto;
    background: #ffffff00;
}

.card.guild-card.shadow-sm img {
    object-fit: cover;
}

.card-frame {
    width: 100%;
    display: block;
}

.guild-logo {
    width: 70%;
    height: 58%;
    position: absolute;
    top: 16%;
    left: 50%;
    transform: translateX(-50%);
}

h3.card-title {
    font-size: 0.92vw;
    color: #d0a530;
    font-family: fantasy;
    white-space: nowrap;

}

h5.card-title {
    margin-top: 89%;
    font-size: 1vw;
    color: #f7f7f7;
    font-family: fantasy;
    white-space: nowrap;

}

p.card-text {
    color: #d0a530;
    font-family: cursive;
    margin-top: -5%;
    font-size: 0.7vw;
}

@media (min-width: 2560px) {
    .guildTable {
        min-height: 756px;
    }
}

@media screen and (max-width: 1440px) {
    .guildTable {
        min-height: 498px;
    }

    .guild-list {
        max-height: 492px;
    }
}

@media screen and (max-width: 1024px) {
    .guildTable {
        min-height: 350px;
    }

    .guild-list {
        max-height: 344px;
    }
}

@media screen and (max-width: 768px) {

    #Home {
        position: relative;
        overflow: hidden;

        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5vw;

        background: url(../../assets/images/teaser/booster2026/main/Mbg.png);
        background-size: 100% 100%;
        background-position: center top;
        background-repeat: no-repeat;
    }

    #Home .HOME-VIDS-BG {
        display: none;
    }

    #Home .inner .innerContent {
        padding: 0;
    }

    #Home .inner .innerContent .char {
        display: none;
    }

    #Home .inner .innerContent .char-mobile {
        display: block;
        position: relative;
        height: auto;
        width: 100%;
        margin-top: 40%;
        margin-bottom: 13%;
        left: 0;
        z-index: 2;
        pointer-events: none;
    }
}

/* ------------------------------------------------- POPUP WRAPPER  --------------------------------------------------- */

.popup-wrap {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.popup-wrap.active {
    display: flex;
}

.popup-box {
    position: relative;
    width: min(78vw, 100%);
    aspect-ratio: 16 / 9;
}

.popup-frame,
.popup-frame-m {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(1px 2px 15px #b76c00);
}

.upload-box {
    display: flex;
    width: 100%;
    min-height: 120px;
    border: 1px solid #b48b21;
    border-radius: 8px;
    overflow: hidden;
    background: #11111100;
}

.upload-box.dragover {
    border: 2px dashed #FFD54A;
    background: rgba(255, 213, 74, .1);
    transition: .2s;
}

.logo-preview {
    width: 120px;
    border-right: 1px solid #b48b21;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #2d2d2d;
    flex-shrink: 0;
}

.logo-preview img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.upload-content {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.upload-title {
    color: #e8b400;
    font-size: 22px;
    font-weight: bold;
    line-height: 1.1;
}

.upload-desc {
    color: #bfbfbf;
    margin: 8px 0 14px;
    font-size: 14px;
}

.btn-upload {
    width: max-content;
    padding: 7px 16px;
    border-radius: 20px;
    background: #e7e0d2;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    margin: 0;
}

#logo {
    display: none;
}

.btn-close {
    position: absolute;
    top: 8%;
    right: 8%;
    width: 50px;
    cursor: pointer;
    z-index: 5;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.popup-form {
    position: relative;
    z-index: 3;
    width: 60%;
    margin: auto;
    top: 40%;
}

.form-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.form-label {
    background: #ffffff00;
    text-align: start;
    padding: 12px;
    font-weight: bold;
    font-family: 'RacingMarkRace';
    color: #fdfdfd;
}

.form-row input {
    height: 48px;
    font-size: 2rem;
}

.footer-text {
    margin-top: 16px;
    background: black;
    color: white;
    padding: 10px;
    text-align: center;
}

.customform {
    color: #ffffff;
    border: 1px solid #d0a530;
    background-color: #ffffff00;
    height: calc(5.25rem + 2px);
    font-size: 2rem;
}

.btn-row {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.btn-log-d,
.btn-fpw,
.btn-email {
    flex: 1;
    display: flex;
    justify-content: center;
}

.buttons-login {
    width: 100%;
    max-width: 260px;
    height: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.btn-close:hover,
.buttons-login:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.sweet-alert {
    background-color: #292929 !important;
    border: 6px solid #ffda00 !important;
}

.sweet-alert h2 {
    font-family: 'BonaNova' !important;
    color: white !important;
}

.sweet-alert button {
    background-color: #ff9600 !important;
    color: black !important;
}

.sweet-alert p {
    color: #ffffff !important;
    font-size: 16px;
    font-family: 'BonaNova' !important;
}

@media (min-width: 2560px) {
    .ggl-roc-letter-login {
        position: absolute;
        z-index: -1;
        max-width: 1296px;
        width: 68vw;
        top: 40%;
        left: 50%;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

@media (max-width: 1440px) {
    .ggl-roc-letter-login {
        position: absolute;
        z-index: -1;
        max-width: 1296px;
        width: 81vw;
        top: 40%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 1024px) {
    .ggl-roc-letter-login {
        width: 89vw;
        top: 33%;
    }
}

@media (max-width: 992px) {
    .form-row {
        grid-template-columns: 150px 1fr;
    }

    .form-label {
        font-size: 1.2rem;
    }
}

@media (max-width: 767px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-label {
        display: none;
    }

    .form-control {
        width: 100%;
    }

    .popup-box {
        aspect-ratio: 4 / 9;
    }

    .popup-form {
        width: 86%;
    }

    .btn-close {
        position: absolute;
        top: 17%;
        right: 4%;
        width: 38px;
        cursor: pointer;
        z-index: 5;
    }

    .btn-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .btn-log-d {
        grid-column: 1 / 3;
        /* LOGIN ambil 2 kolom */
    }

    .buttons-login {
        max-width: 230px;
        /* penting: kecilin tombol di HP */
    }

    .footer-text {
        margin-top: 16px;
        background: black;
        border: 1px solid #fdd901;
        color: white;
        padding: 19px;
        text-align: center;
    }
}

/* ------------------------------------------------- FOOTER --------------------------------------------------- */

footer {
    background: #040707;
    background-size: cover;
    border-top: 3px solid #f9b246;
    position: relative;
    overflow: hidden;
    z-index: 2;
    margin-top: -2.69%;
}

.row-logo {
    padding-top: 1%;
    margin-bottom: 0.5%;
}

.sosmed {
    font-size: 1.7vw;
}

.sosmed a {
    color: white;
    padding-right: 0;
    padding-left: 0;
    margin-right: 0.5%;
    margin-left: 0.5%;
}

.sosmed a:hover {
    color: #f49e3c;
}

.logo-footer {
    width: 10%;
    margin-bottom: 1%;
}

.text-footer {
    color: white;
    font-size: 1vw;
    margin-bottom: 1%;
}

.text-footer a {
    color: white;
}

.text-footer a:hover {
    color: #f49e3c;
}

@media screen and (max-width: 768px) {

    .sosmed {
        font-size: 4vw;
    }

    .logo-footer {
        width: 20%;
    }

    .text-footer {
        font-size: 2vw;
    }

}
