body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body p,
body span,
body button,
body input,
body option,
body select,
body div {
    font-family: 'Nunito', sans-serif;
}

.h1-title {
    white-space: nowrap;
}

.primary-button {
    color: #ffeacb;
    background: #F3703D;
    padding: 12px 20px !important;
    box-shadow:
        inset 0 -2px 4px rgba(0, 0, 0, 0.12),
        0 6px 18px rgba(243, 112, 61, 0.28);
    border-radius: 50px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: normal;
    transition: all 0.3 ease-in-out;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button:hover {
    transform: translateY(-3px);
    box-shadow:
        inset 0 -2px 4px rgba(0, 0, 0, 0.15),
        0 10px 24px rgba(243, 112, 61, 0.35);
}

.danger-button {
    color: #fff;
    background: #ef4444;
    padding: 10px 20px !important;
    box-shadow:
        inset 0 -2px 4px rgba(0, 0, 0, 0.12),
        0 6px 18px rgba(239, 68, 68, 0.28);
    border-radius: 50px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: normal;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.danger-button:hover {
    transform: translateY(-3px);
    box-shadow:
        inset 0 -2px 4px rgba(0, 0, 0, 0.15),
        0 10px 24px rgba(239, 68, 68, 0.35);
}

.secondary-button {
    color: #F3703D;
    background: transparent;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: normal;
    padding: 10px 20px !important;
    border: 1px solid #F3703D;
    transition: all 0.3 ease-in-out;
    box-shadow:
        inset 0 -2px 4px rgba(0, 0, 0, 0.06),
        0 6px 16px rgba(243, 112, 61, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.secondary-button:hover {
    background: #F3703D;
    color: #FFEACB;
    transform: translateY(-3px);
    box-shadow:
        inset 0 -2px 4px rgba(0, 0, 0, 0.15),
        0 10px 24px rgba(243, 112, 61, 0.32);
}

.input {
    background: #FFFFFF;
    color: #1A1A1A;
    border: 1px solid rgba(136, 144, 151, 1);
    border-radius: 50px;
    padding: 9px 14px;
    font-size: 15px;
    font-weight: 500;
    line-height: normal;
    transition: all 0.3 ease-in-out;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.textarea {
    border-radius: 28px;
    min-height: 120px;
    background: #FFFFFF;
    color: #1A1A1A;
    border: 1px solid rgba(136, 144, 151, 1);
    padding: 9px 14px;
    font-size: 15px;
    font-weight: 500;
    line-height: normal;
    transition: all 0.3 ease-in-out;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    resize: none;
}

.input-select {
    background: #FFFFFF;
    color: #1A1A1A;
    border: 1px solid rgba(136, 144, 151, 1);
    border-radius: 50px;
    padding: 9px 14px;
    font-size: 15px;
    font-weight: 500;
    line-height: normal;
    transition: all 0.3 ease-in-out;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
}

.input-select:focus {
    border: 1px solid rgba(136, 144, 151, 1);
}

.input:focus,
.textarea:focus {
    border-color: transparent;
    box-shadow: 0 0 0 2px rgba(0, 61, 180, 0.4);
    outline: none;
}

.input-icon {
    width: 17px;
    color: rgba(136, 144, 151, 1);
    position: absolute;
    left: 10px;
    transform: translateY(-50%);
    top: 50%;

}

.input-with-icon {
    padding-left: 30px;
}

.card {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 16px;
    border-radius: 20px;
}

.icon-btn {
    width: 38px !important;
    height: 38px !important;
    display: flex;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease-in-out;
}

.icon-btn:hover svg,
.icon-btn:hover i,
.icon-btn:hover img {
    transform: scale(1.1);
}

.header-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.empty-container {
    position: relative;
    overflow: hidden;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.soft-blue-icon {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    font-size: 48px;
}

.bg {
    background: #FFF8F3;
}

.bg-opacity {
    background: rgba(255, 248, 243, 0.6);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}


.card-color {
    background: #FFFFFF;
}

.card-color-opacity {
    background: #ffffff94;
}

.blue-color {
    background-color: #EEF3FF;
    border: 1px solid #D6E2FF;
    box-shadow:
        0 6px 16px rgba(98, 139, 249, 0.12);
}

.title-color {
    color: rgb(50 67 95);
}

.subtitle-color {
    color: rgb(100 116 139);
}

.subtitle {
    font-size: 17px;
    line-height: 23px;
}

.hero-subtitle {
    font-size: 19px;
    line-height: 23px;
}

.header-title {
    font-size: 32px;
    font-weight: 800;
}

.hero-title {
    font-size: 45px;
    line-height: 48px;
    font-weight: 800;
}

.third-title {
    font-size: 23px;
    line-height: 26px;
    font-weight: 600;
}

.empty-card-title {
    text-align: center;
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 8px;
}

.empty-card-subtitle {
    font-size: 17px;
    text-align: center;
    max-width: 470px;
    line-height: 23px;
    margin-bottom: 24px;
}

.light-dark-cont .hidden {
    display: none;
}

.dark\:hidden:is(.dark *) {
    display: none;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-overlay.hidden {
    display: none !important;
}

.toggle-button {
    display: flex;
    padding: 3px 8px;
    border-radius: 32px;
    background-color: #EEF3FF;
    color: #003DB4;
}

.label {
    font-size: 16px;
    padding-left: 9px;
    padding-bottom: 5px;
    display: inline-block;
    color: rgb(50 67 95);
}

.modal-card {
    padding: 40px 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.modal-form-container {
    display: flex;
    flex-direction: column;
    align-items: start;
    margin-top: 24px;
}

.modal-form-buttons {
    display: flex;
    width: 100%;
    gap: 8px;
    margin-top: 24px;
}

.modal-form-buttons button,
.modal-form-buttons a {
    width: 100%;
}

.secondary-title {
    font-size: 28px;
    line-height: 32px;
    font-weight: 700;
}

.secondary-subtitle {
    font-size: 14px;
    line-height: 22px;
}

.third-subtitle {
    font-size: 12px;
    line-height: 14px;
}

.small-button {
    height: 40px !important;
}

.red-button {
    color: rgb(239 68 68) !important;
    background-color: #ffcece;
    border: 1px solid #ffcece;
    padding: 12px 20px !important;
    box-shadow:
        inset 0 -2px 4px rgba(0, 0, 0, 0.10),
        0 2px 14px rgba(239, 68, 68, 0.25) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: normal;
    transition: all 0.3 ease-in-out;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.red-button:hover {
    transform: translateY(-3px);
    box-shadow:
        inset 0 -2px 4px rgba(0, 0, 0, 0.15),
        0 4px 14px rgba(239, 68, 68, 0.35) !important;
}

.red-color {
    color: red;
}

.red-bg-color {
    background: rgb(255 170 170 / 52%);
}

.orange-color {
    color: #F3703D;
}

.orange-bg-color {
    background: #F3703D;
}

.blue-bg-color {
    background-color: #C9D8FF;
    box-shadow: 0 4px 12px rgba(48, 81, 223, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.secondary-blue-color {
    color: #C9D8FF;
}

.active-toggle-blue {
    color: #618bf9;
}

.game-card:hover {
    background-color: #EEF3FF;
    border: 1px solid #618bf9;
}

.game-card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    border-radius: 50%;
}

.game-card-container img,
.game-card-container i {
    width: 35px;
    height: 35px;
    text-align: center;
    object-fit: contain;
}

.nav-items {
    font-size: 16px;
    font-weight: 600;
    color: rgb(71 85 105);
    transition: all 0.3s ease-in-out;
}

.nav-items:hover,
.nav-items.active {
    color: #618bf9 !important;
}

.nav-scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.dark .nav-scrolled {
    background: rgba(22, 26, 35, 0.85);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.dark .bg {
    background: #161A23;
}

.dark .bg-opacity {
    background: rgba(22, 26, 35, 0.8);
}

.dark .card-color,
.dark .card-color-opacity{
    background: #1B1F2A;
}

.dark .input,
.dark .textarea,
.dark .input-select {
    background: #222633;
    color: #E6EAF2;
    border: 1px solid #2E3445;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dark .input:focus,
.dark .textarea:focus {
    border-color: #4F8CFF;
    box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.15);
}

.dark .title-color,
.dark label {
    color: #E6EAF2;
}

.dark .subtitle-color {
    color: #9AA4B2;
}

.dark .toggle-button {
    background-color: rgba(79, 140, 255, 0.12);
    color: #6EA8FF;
    border: 1px solid rgba(79, 140, 255, 0.25);
}

.dark .secondary-blue-color {
    color: #8FAEFF;
}

.dark .active-toggle-blue {
    color: #6EA8FF;
}

.dark .game-card:hover {
    background-color: #222633;
    border: 1px solid rgba(110, 168, 255, 0.6);
    box-shadow: 0 0 0 1px rgba(110, 168, 255, 0.15);
}

.dark .blue-color {
    background-color: rgba(79, 140, 255, 0.08);
    border: 1px solid rgba(79, 140, 255, 0.25);
}

.dark .blue-bg-color {
    background-color: rgba(79, 140, 255, 0.18);
}

.dark .red-bg-color {
    background: rgba(255, 90, 90, 0.22);
}

.dark .nav-items {
    color: #E6EAF2;
}

.transitionCard {
    transition: transform 0.25s ease,
        box-shadow 0.25s ease;
}

.transitionCard:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.home_img {
    display: flex;
    justify-content: center;
}

.home_img img {
    height: 250px;
    width: 250px;
}

.empty-image {
    height: 250px;
    width: 250px;
    object-fit: contain;
}

.empty-title {
    text-align: center;
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 0px;
}

.text-link {
    color: rgb(100 116 139);
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
}

.text-link:hover {
    color: #618bf9 !important;
}

.dark .text-link {
    color: #9AA4B2;
}

.social-link i {
    color: rgb(100 116 139);
    font-size: 20px;
    transition: all 0.3s ease-in-out;
}

.social-link i:hover {
    color: #618bf9 !important;
}

.discovery-img {
    width: 50%;
}

.discovery-img img {
    width: 100%;
}

.switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #334155;
    border-radius: 9999px;
    transition: background-color 0.3s ease;
}

.slider::before {
    content: "";
    position: absolute;
    height: 24px;
    width: 24px;
    left: 4px;
    top: 2px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}


.switch input:checked+.slider {
    background-color: #618bf9;
}

.switch input:checked+.slider::before {
    transform: translateX(25px);
}

.p-45 {
    padding: 45px !important;
}

@keyframes bounce-slow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 3s infinite ease-in-out;
}

.upload-box {
    position: relative;
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 2px dashed rgba(97, 139, 249, 0.5);
    background-color: rgba(97, 139, 249, 0.1);
    transition: all 0.3s ease;
}

.upload-box:hover {
    border-color: #618bf9;
    background-color: rgba(97, 139, 249, 0.2);
}

.custom-radio {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.custom-radio input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-mark {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background-color: transparent;
}

.custom-radio:hover .radio-mark {
    border-color: #94a3b8;
}

.radio-mark::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #618bf9;
    transform: scale(0);
    transition: transform 0.2s ease;
}

.custom-radio input:checked+.radio-mark {
    border-color: #618bf9;
    background-color: rgba(97, 139, 249, 0.1);
}

.custom-radio input:checked+.radio-mark::after {
    transform: scale(1);
}

.hamburger {
    display: none;
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu {
    display: none;
}

.cw-control-btn {
    transition: all 0.2s ease;
}

.cw-control-btn:hover {
    background: #EEF2FF;
    color: #6366f1;
}

.dark .cw-control-btn:hover {
    background: rgba(99, 102, 241, .65);
        color: #EEF2FF;
}

.dark .cw-control-btn i {
    color: white;
}

.cw-control-btn:hover i {
    transform: scale(1.1);
}

.cw-control-btn i {
    transition: transform 0.2s ease;
}

.clue-item {
    transition: all 0.2s ease;
}

.clue-item:hover p {
    color: #6366f1;
}

#game-container .game-card-box{
    height: 370px;
    perspective: 1000px;
}

#game-container .game-card-inner{
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

#game-container .game-card-box:hover .game-card-inner{
    transform: rotateY(180deg);
}

#game-container .game-card-front{
    position: relative;
}

#game-container .premium-badge{
    position: absolute;
    right: -6px;
    top: 22px;
    transform: rotate(45deg);
}

#game-container .premium-badge img{
    width: 80px;
}
#game-container .game-card-front,
#game-container .game-card-back{
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: white;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow:
        0 8px 20px rgba(98,139,249,0.12),
        0 2px 6px rgba(0,0,0,0.06);

    transition: box-shadow .3s ease, transform .3s ease;
}

#game-container .game-card-front::before{
    content:"";
    position:absolute;
    inset:0;
    border-radius:18px;
    background: linear-gradient(
        140deg,
        rgba(255,255,255,0.7) 0%,
        rgba(255,255,255,0) 40%
    );
    pointer-events:none;
}

#game-container .game-card-back{
    transform: rotateY(180deg);
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 25px;
}

#game-container .card-img{
    width: 100%;
    height: 180px;
    object-fit: contain;
}

#game-container .card-content{
    padding: 20px;
}

.dark #game-container .game-card-front,
.dark #game-container .game-card-back {
    background: linear-gradient(145deg, #2a2c38, #1a1b23);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.5),
        0 4px 6px rgba(255, 255, 255, 0.05) inset;
}

.dark #game-container .game-card-front::before {
    background: linear-gradient(
        140deg,
        rgba(255,255,255,0.15) 0%,
        rgba(255,255,255,0) 40%
    );
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden !important;
    }

    .hamburger {
        display: block;
        color: #475569;
        z-index: 1000;
    }

    header {
        z-index: 10000 !important;
    }

    #navContent {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #FFF8F3;
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        padding: 170px 20px 30px 16px;
        gap: 25px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .dark #navContent {
        background: #161A23;
    }

    #navContent.active {
        transform: translateX(0);
    }

    #navContent>div {
        width: 100%;
    }

    .header-title {
        font-size: 27px;
    }

    .modal-card {
        padding: 30px 20px;
    }
}