@charset "UTF-8";
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Lucida Sans Unicode", sans-serif;
}

body {
    height: 100vh;
    overflow: hidden;
}

/* ======================
   배경
====================== */
.login-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    overflow: hidden;
}

/* 별 */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
            radial-gradient(2px 2px at 20px 30px, #fff, transparent),
            radial-gradient(1.5px 1.5px at 80px 120px, #fff, transparent),
            radial-gradient(2px 2px at 150px 200px, #fff, transparent);
    background-size: 250px 250px;
    animation: starsMove 120s linear infinite;
}

/* ======================
   별똥별
====================== */
.shooting-stars {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.shooting-star {
    position: absolute;
    top: -20%;
    right: -20%;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 15px white;

    transform-origin: left center;
    transform: rotate(-45deg);

    opacity: 0;
    animation: shooting 3.5s linear infinite;
}

/* 꼬리 */
.shooting-star::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 50%;
    width: 160px;
    height: 2px;
    background: linear-gradient(to right, white, transparent);
    transform: translateY(-50%);
}

/* 기존 3개 */
.shooting-star:nth-child(2) {
    top: -10%;
    right: 10%;
    animation-delay: 1.5s;
}

.shooting-star:nth-child(3) {
    top: 10%;
    right: 30%;
    animation-delay: 3s;
}

/* ⭐ 추가된 3개 */
.shooting-star:nth-child(4) {
    top: -25%;
    right: 50%;
    animation-delay: 4.5s;
}

.shooting-star:nth-child(5) {
    top: -5%;
    right: 65%;
    animation-delay: 6s;
}

.shooting-star:nth-child(6) {
    top: 15%;
    right: 80%;
    animation-delay: 7.5s;
}

/* ======================
   카드 묶음 컨테이너
====================== */
.cards-container {
    position: relative;
    height: 100vh;

    display: flex;
    justify-content: center;   /* 좌우 중앙 */
    align-items: center;       /* 상하 중앙 */

    gap: 40px;                 /* 카드 사이 간격 */
    padding: 0 40px;
}


/* ======================
   로그인 카드
====================== */
.login-card {
    width: 360px;
    padding: 40px;
    border-radius: 20px;

    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 0 40px rgba(255,255,255,0.3);

    z-index: 5;
    text-align: center;
}

.login-title {
    font-size: 36px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 30px;
    text-shadow: 0 0 15px rgba(255,255,255,0.7);
}

.login-input {
    width: 100%;
    height: 42px;
    margin-bottom: 18px;
    padding-left: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(0,0,0,0.45);
    color: #fff;
}

/* ======================
   오늘의 한자
====================== */
.today-container {

    width: 350px;

    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 0 40px rgba(255,255,255,0.3);
    border-radius: 12px;

    text-align: center;
    overflow: hidden;
}

/* 특정 크기 이상으로 창이 작아졌을 경우에 오늘의 한자 창을 숨김 */
@media (max-width: 768px) {
    .cards-container {
        justify-content: center;
    }

    .today-container {
        display: none;
    }
}

.today-title {
    font-size: 1.7rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255,255,255,0.7);
}

.today-kanji-meaning {
    font-size: 1.1rem;
    color: #ffffff;
    margin: 0 35px 30px 35px;
    text-align: left;
    height: 46%;
    overflow-y: auto;
    list-style-position: inside;
}

.today-main {
    font-size: 3rem;
    font-weight: bold;
    color: #ffffff;
    height: 22%;
}

.today-prev,
.today-next {
    width: 10%;
    height: 15%;
    border-radius: 14px;
    border: 2px solid transparent;

    background: #3f4db8;
    color: #ffffff;
    font-weight: bold;
    font-size: 20px;

    cursor: pointer;
    transition: all 0.25s ease;

    transform: translateY(-10px);
}

.today-left:hover,
.today-right:hover {
    transform: scale(1.05);
    border: 2px solid #ffffff;
    background: #5b6cff;
}


.login-card,
.today-container {
    height: 450px;   /* 원하는 값으로 통일 */
}

/* ======================
   버튼 (심플 버전)
====================== */

.login-btn,
.join-btn,
.credits-btn {
    width: 100%;
    height: 45px;
    margin-top: 10px;

    border-radius: 14px;
    border: 2px solid transparent;

    background: #3f4db8;
    color: #ffffff;
    font-weight: bold;
    font-size: 15px;

    cursor: pointer;

    transition: all 0.25s ease;
}

/* 마우스 올렸을 때 */
.login-btn:hover,
.join-btn:hover,
.credits-btn:hover{
    transform: scale(1.05);
    border: 2px solid #ffffff;
    background: #5b6cff;
}

/* 클릭 시 */
.login-btn:active,
.join-btn:active,
.credits-btn:active {
    transform: scale(0.97);
}


/* ======================
   애니메이션
====================== */
@keyframes shooting {
    0%   { transform: translate(0,0) rotate(-45deg); opacity: 0; }
    10%  { opacity: 1; }
    100% { transform: translate(-900px, 900px) rotate(-45deg); opacity: 0; }
}

@keyframes starsMove {
    from { background-position: 0 0; }
    to   { background-position: 1000px 500px; }
}

/* ======================
	크레딧
====================== */
.credits-wrapper {
    display: relative;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    overflow: hidden;
}

.credits-card {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40%;
    min-width: 450px;
    height: 70%;
    min-height:750px;
    padding: 40px;
    border-radius: 20px;

    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 0 40px rgba(255,255,255,0.3);

    z-index: 5;
    text-align: center;

    /* 핵심 속성 추가 */
    overflow:hidden;  /* 세로 내용이 길어지면 카드 안에서 스크롤 생성 */
}

.credits-title {
    font-size: 3.3rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(255,255,255,0.7);
}

.credits-main {
    font-size: 30px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(255,255,255,0.7);
}

.credits-main-list {
    width: fit-content;
    margin: 0 auto;

    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 30px;
    text-shadow: 0 0 5px rgba(255,255,255,0.7);
    text-align: left;
}

.credits-thanks {
    font-size: 25px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(255,255,255,0.7);
}

.credits-thanks-list {
    width: fit-content;
    margin: 0 auto;

    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 0 5px rgba(255,255,255,0.7);
    text-align: left;
}

.prev-btn{
    position: sticky;
    width: 350px;
    height: 45px;

    border-radius: 14px;
    border: 2px solid transparent;

    background: #3f4db8;
    color: #ffffff;
    font-weight: bold;
    font-size: 15px;

    cursor: pointer;

    transition: all 0.25s ease;
    z-index:10;
}

.prev-btn:hover{
    transform: scale(1.05);
    border: 2px solid #ffffff;
    background: #5b6cff;
}


.prev-btn:active{
    transform: scale(0.97);
}