@font-face {
    font-family: 'KartriderExtraBold';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2312-1@1.1/KartriderExtraBold.woff2') format('woff2');
    font-style: normal;
}

@font-face {
    font-family: 'KartriderBold';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2312-1@1.1/KartriderBold.woff2') format('woff2');
    font-style: normal;
}

@font-face {
    font-family: 'KartriderMedium';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2312-1@1.1/KartriderMedium.woff2') format('woff2');
    font-style: normal;
}

@import url('https://fonts.googleapis.com/css2?family=BIZ+UDPGothic:wght@700&display=swap');
* {
    font-family: 'KartriderBold', 'BIZ UDPGothic', sans-serif;
}
body {
    margin: 0;
    background-color: black;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-group {
    display: flex;
    flex-direction: row;
}

.card {
    width: 155px;
    height: 145px;
    border-radius: 36px;
    margin: 10px 9px;
    overflow: hidden;
    font-family: "KartriderBold";
    font-size: 28px;
    background-color: rgba(242, 242, 242, 0.6);
    cursor: pointer;
    transition-duration: 300ms;
    position: relative;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.25);
    color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(22px);
}



.card-last {
    width: 326px;
    height: 220px;
    cursor: pointer;
}

.card:hover {
    transform: scale(1.03);
    transition-duration: 300ms;
    cursor: pointer;
    background-color: rgba(242, 242, 242, 0.9);

}

.card-text {
    position: absolute;
    top: 20px;
    left: 20px;
    text-align: left;
    font-weight: 900;
    line-height: 1.2;
    color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

#card-img-timer {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.2;
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.card-text-date-count-container {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 20px;
    left: 20px;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.7);
    font-weight: 900;
    line-height: 1.2;
}

.card-text-date-count-container:nth-child(2) {
    margin-top: 0;
}

.card-text-count-container {
    display: flex;
    flex-direction: row;
    position: absolute;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
}

.card-text-count,
.card-text-info {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.card-text-info.white {
    color: rgba(255, 255, 255, 0.7);
}

.card-text-count-container,
.card-text-count,
.card-text-info {
    font-size: 24px;
    color: rgba(24, 20, 124, 0.8);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
}

.video-section {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: -1;
    opacity: 0.6;
}

.video-section-frame {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
}

.nav {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
    height: 64px;
    padding: 0 27px;
    box-shadow: inset 0px 20px 15px -25px;
}

.logo {
    flex-direction: row;
    align-items: center;
}

.logo.mobile {
    display: none;
}

.logo.desktop {
    display: flex;
}

.logo-img {
    cursor: help;
    width: 43px;
}

.menu {
    font-family: 'KartriderBold';
    color: rgb(160, 160, 160);
    text-align: right;
}

.menu>li {
    cursor: pointer;
    margin: 30px 0px;
    font-size: 32px;
    transform-origin: right center;
    transition-duration: 300ms;
}

.menu>li:hover {
    transform: scale(1.05);
    transition-duration: 300ms;
    color: aliceblue;
}

.menu>li:hover:nth-child(1) {
    transform: none;
    transition-duration: 300ms;
}


.lang {
    letter-spacing: 0.07rem;
    cursor: pointer;
    font-family: 'KartriderExtraBold';
    font-size: 20px;
    color: rgb(160, 160, 160);
}

.lang>a:nth-child(2),
.lang>a:nth-child(3) {
    margin-left: 10px;
}

.active {
    position: relative;
    display: inline;
    color: rgb(255, 255, 255);
}


.active::after {
    content: '';
    position: absolute;
    width: 90%;
    height: 2px;
    background-color: rgb(255, 255, 255);
    left: 5%;
    bottom: -1.1px;
}

ul {
    list-style: none;
    padding-left: 0px;
}

.slide-menu {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.close-btn {
    display: none;
}

li a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    outline: none;
}

.drag-handle {
    display: none;
}

.scroll-indicator {
    display: none;
}

.e-e-t {
    font-family: 'KartriderBold';
    font-weight: 900;
    font-size: 20px;
    background: linear-gradient(90deg, 
        lightcoral,
        lightsalmon,
        lightyellow,
        lightgreen,
        lightblue,
        thistle,
        lavender
    );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.card-notification-container {
    top: 53.59px;
    bottom: 25px;
    position: absolute;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-notification-container::before {
    content: '';
    position: absolute;
    top: 1px;
    border-top: 2px solid rgba(50, 50, 50, 0.4);
    width: 90%;
    height: 1px;
}

.card-notification-container::after {
    content: '';
    position: absolute;
    bottom: 1px;
    border-top: 2px solid rgba(50, 50, 50, 0.4);
    width: 90%;
    height: 1px;
}

.notification-card {
    padding: 10px;
    margin: 10px 0;
    border-radius: 8px;
    background-color: inherit;
    width: 100%;
    height: 100%;
    display: none;
}

.notification-card.open {
    display: block;
}

.card-notification-dot-container {
    position: absolute;
    bottom: 10px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.card-notification-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
}

.card-notification-dot.current {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.card-noti-in-title {
    position: absolute;
    top: 10px;
    left: 20px;
    width: 292px;
    font-weight: 400;
    font-size: 26px;
    margin-bottom: 5px;
    color: rgba(0, 0, 0, 0.7);
}

.card-noti-content {
    position: absolute;
    top: 46px;
    left: 20px;
    width: 292px;
    font-size: 14px;
    margin-bottom: 10px;
    color: rgba(0, 0, 0, 0.6);
}

.card-noti-go-div {
    position: absolute;
    right: 20px;
    bottom: 8px;
    font-size: 24px;
    color: rgba(24, 20, 124, 0.8);
}

.shake {
    animation: shake 0.2s;
}

@keyframes shake {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    50% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
    100% { transform: rotate(0deg); }
}

@media (hover: none) {
    .menu>li:hover {
        transform: none;
    }

    .card:hover {
        transform: none;
    }

}

@media (max-width: 768px) {
    .menu {
        margin-top: calc(1em + 28px);
    }

    .menu>li {
        margin: 18px 0px;
        font-size: 28px;
    }

    .main-content {
        padding: 0 28px;
    }

    .logo.mobile {
        display: flex;
    }

    .logo.desktop {
        display: none;
    }

    .slide-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100%;
        width: 250px;
        background-color: white;
        box-shadow: -2px 0 30px rgba(0, 0, 0, 0.5);
        transition: right 0.3s ease;
        display: flex;
        flex-direction: column;
        padding: 16px;
        transition-duration: 800ms;
        width: 30%;
        flex-direction: column;
        justify-content: none;
        align-items: none;

    }

    .main-content {
        left: inherit;
    }

    .slide-menu ul {
        display: flex;
        flex-direction: column;
    }

    .slide-menu ul li {
        margin: 10px 0;
    }

    .slide-menu .lang {
        margin-top: 20px;
    }

    .slide-menu.open {
        right: 0;
        transition-duration: 800ms;
    }


    .menu-toggle {
        display: block;
    }

    .slide-menu {
        z-index: 999;
    }

    .active::after {
        bottom: -3px;
    }

    .nav {
        height: 75px;
        padding: 0 28px;
    }

    .logo-img {
        width: 44px;
    }

    .card-section {
        position: fixed;
        bottom: -100%;
        left: 0;
        right: 0;
        background-color: rgba(20, 20, 20, 0.6);
        height: 100%;
        transition: transform 0.7s cubic-bezier(0.27, 0.01, 0, 1);
        z-index: 1000;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        backdrop-filter: blur(5px);
    }

    .card-section.open {
        transform: translateY(-100%);
        /* 위로 올라가도록 설정 */
    }

    .card {
        width: 160px;
        height: 150px;
        font-size: 27px;
        background-color: rgba(255, 255, 255, 0.8);
    }

    .card-last {
        width: 332px;
        height: 220px;
        cursor: pointer;
    }

    #card-img-timer {
        font-weight: 900;
        font-size: 20px;
    }

    .card-text-count-container,
    .card-text-count,
    .card-text-info {
        font-size: 20px;
        color: rgba(47, 43, 156, 0.8);
        font-weight: 900;
    }

    .card-noti-in-title {
        top: 15px;
        font-size: 20px;
    }
    
    .card-noti-content {
        top: 40px;
        font-size: 14px;
    }
    
    .card-noti-go-div {
        bottom: 5px;
        font-size: 20px;
        color: rgba(47, 43, 156, 0.8);
    }

    .card-notification-container {
        top: 48px;
        bottom: 25px;
    }

    .card-notification-container::before {
        top: 1px;
        border-top: 1.5px solid rgba(50, 50, 50, 0.4);
    }
    
    .card-notification-container::after {
        bottom: 1px;
        border-top: 1.5px solid rgba(50, 50, 50, 0.4);
    }

    .card-notification-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.5);
        margin: 0 5px;
    }

    .drag-handle {
        /* display: block; */
        opacity: 0;
        transition-duration: 800ms;
        width: 60px;
        margin: 0 auto;
        text-align: center;
        padding-bottom: 10px;
        cursor: pointer;
        align-items: center;
        justify-content: center;

        top: 20px;
        display: flex;
        position: absolute;
    }

    .drag-handle.open {
        opacity: 1;
        transition-duration: 3000ms;
        animation: scroll-indicator-animation-down 2s 3;
    }

    .scroll-indicator {
        position: fixed;
        bottom: -14px;
        left: 0;
        width: 100vw;
        height: 60px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        animation: scroll-indicator-animation-up 7s infinite;
        opacity: 1;
        transition-duration: 5000ms;
    }

    @keyframes scroll-indicator-animation-up {
        0% {
            transform: translateY(0);
        }

        30% {
            transform: translateY(-8px);
        }

        50% {
            transform: translateY(-20px);
        }

        95% {
            transform: translateY(0);
        }

        100% {
            transform: translateY(0);
        }
    }

    @keyframes scroll-indicator-animation-down {
        0% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(10px);
        }

        100% {
            transform: translateY(0);
        }
    }

    .scroll-indicator.open {
        opacity: 0;
        transition-duration: 800ms;
    }

    .scroll-indicator-img {
        width: auto;
        height: 50px;
        object-fit: contain;
        opacity: 0.5;
        transition-duration: 800ms;
        cursor: pointer;
    }

    .scroll-indicator-text {
        font-family: 'KartriderBold';
        font-size: 12px;
        color: rgba(255, 255, 255, 0.6);
    }

    .e-e-t {
        font-size: 16px;
    }

}

@media (max-height: 625px) {
    .card-text,
    .card-text-date-count-container {
        top: 15px;
        left: 15px;
    }

    .drag-handle {
        padding-bottom: 0px;
        width: 25px;
    }

    .scroll-indicator-img {
        height: 20px;
    }

    .card {
        width: 150px;
        height: 150px;
        font-size: 18px;
    }

    .card-last {
        width: 320px;
        height: 180px;
    }

    .card-notification-dot {
        width: 5px;
        height: 5px;
    }

    #card-img-timer {
        font-weight: 900;
        font-size: 20px;
    }

    .card-text-count-container,
    .card-text-count,
    .card-text-info {
        font-size: 16px;
        font-weight: 900;
    }

    .card-noti-in-title {
        top: 12px;
        left: 15px;
        font-size: 16px;
    }
    
    .card-noti-content {
        left: 15px;
        top: 40px;
        font-size: 12px;
    }
    
    .card-noti-go-div {
        bottom: 5px;
        font-size: 16px;
    }

    .card-notification-container {
        top: 38px;
        bottom: 15px;
    }

    .card-notification-container::before {
        top: 1px;
    }
    
    .card-notification-container::after {
        bottom: 1px;
    }

    .card-notification-dot-container {
        bottom: 6px;
    }
}

@media (max-height: 520px) {
    .card-text,
    .card-text-date-count-container {
        top: 15px;
        left: 15px;
    }

    .drag-handle {
        padding-bottom: 0px;
        width: 25px;
    }

    .scroll-indicator-img {
        height: 20px;
    }

    .card {
        width: 130px;
        height: 130px;
        font-size: 18px;
    }

    .card-last {
        width: 280px;
        height: 160px;
    }

    .card-notification-dot {
        width: 5px;
        height: 5px;
    }

    #card-img-timer {
        font-weight: 900;
        font-size: 20px;
    }

    .card-text-count-container,
    .card-text-count,
    .card-text-info {
        font-size: 16px;
        font-weight: 900;
    }

    .card-noti-in-title {
        top: 10px;
        left: 15px;
        font-size: 16px;
    }
    
    .card-noti-content {
        left: 15px;
        top: 35px;
        font-size: 10px;
    }
    
    .card-noti-go-div {
        bottom: 5px;
        font-size: 16px;
    }

    .card-notification-container {
        top: 38px;
        bottom: 15px;
    }

    .card-notification-container::before {
        top: 0;
    }
    
    .card-notification-container::after {
        bottom: 0;
    }

    .card-notification-dot-container {
        bottom: 6px;
    }
}

@media (min-width: 769px) {

    /* 데스크탑 */
    .lang.mobile {
        display: none;
    }

    .slide-menu {
        justify-content: space-between;
    }
}

.nav {
    z-index: 1000;
    position: relative;
}
