@import url('https://fonts.googleapis.com/css2?family=Hahmlet:wght@100..900&family=Noto+Sans+KR:wght@100..900&display=swap');

body{
    width: 100%;
    margin: 0;
    position: fixed;
    font-family: 'Hahmlet', sans-serif;
    background: linear-gradient(180deg, #0C0B30 0%, #30205B 100%);
    background: url(../images/starBG.png) no-repeat center center fixed;
    color: white;
    text-align: center;
}

.wrapper{
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.nicknameWrapper{
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.title{
    display:none;
}

.titleImg{
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
}

.welcome{
    font-size: 1rem;
    font-weight: 500;
    margin-top: 40%;
}

.characterImg{
    height: 40vh;
}

.notice{
    opacity: 0;
    transition: 0.5s ease;
    font-size: .8em;
    color: #79D7FF;
    margin-bottom: 2%;
}

.notice.show{
    opacity: 1;
}

.start-btn{
    padding: 5% 4%;
    width: 70%;
    font-family: 'Hahmlet', sans-serif;
    font-weight: 700;
    text-align: center;
    font-size: 1.2rem;
    color: white;
    border-radius: 100px;
    border: 2px solid #FFF;
    background: linear-gradient(180deg, #79D7FF 0%, #DB80FF 100%);
}


.back-btn{
    width: 32px;
    height: 32px;
    position: absolute;
    top: 20px;
    left: 10px;
    z-index: 100;
    cursor: pointer;
    object-fit: contain;
    pointer-events: auto;
}

.category-list{
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    height: 35vh;
}

.category-item{
    display: flex;
    width: 18vh;
    height: 30vh;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    border: 1px solid #FFF;
    background: linear-gradient(180deg, #3a6679 0%, #704183 100%);    
    cursor: pointer;
    transition: all 0.2s ease;
    flex-direction: column;
    position: relative;
}

.hoverImg{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: all 0.3 ease;
    pointer-events: none;
    width: 40%;
}

.hoverImg.top{
    top: 20%;
    transform: translate(-50%, -10px);
}

.hoverImg.bottom{
    bottom: 20%;
    transform: translate(-50%, 0);
}

.category-item.selected .hoverImg{
    opacity: 1;
    transform: translate(-50%, 0);
}

.category-item.selected{
    background: linear-gradient(180deg, #79D7FF 0%, #DB80FF 100%);
}

.chooseCard{
    font-size: 1em;
    font-weight: 300;
}

.tarot-container{
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: 8px;
    max-width: 90%;
}

.tarot-card{
    width: 100%;
    aspect-ratio: 3/5;
    object-fit: cover;
    cursor: pointer;
}

.devider{
    width: 20%;
    margin-top: 5%;
}

.cardImg{
    width: 50%;
}

.cardText{
    max-width: 80%;
    margin: 0 auto;
    margin-top: 5%;
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
}

#cardText4{
    font-size: .7rem;
    margin-bottom: 10%;
}

.orb{
    margin-top: -60%;
    width: 100%;
    z-index: -1;
}

.orbWelcome{
    margin-top: 60%;
    font-size: 1rem;
    font-weight: 500;
    color: #0C0B30;
    text-align: center;
}

#nicknameInput{
    margin-top: -25%;
    padding: 10px 15px;
    font-size: 1.2rem;
    border-radius: 8px;
    background-color: #040324;
    stroke-width: 10px;
    border: 1px solid #FFF;
    outline: none;
    color: #FFF;
    text-align: center;
}

.pointNotice{
    font-size: .8rem;
    color: #D8B5F8;
    margin: 0 0 5% 0;
}

.nickname-modal{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-backgrop{
    position: absolute;
    width: 100%;
    height: 100%;
    background: rbga(0, 0, 0, 0.6);
    top: 0;
    left: 0;
}

.modal-content{
    position: relative;
    background: #222145;
    color: #FFF;
    padding: 20px 24px;
    border-radius: 16px;
    text-align: center;
    max-width: 300px;
    width: 80%;
    box-shadow: 0 0 10px #999;
}

.modal-buttons{
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.modal-buttons button{
    flex: 1;
    margin: 0 6px;
    padding: 10px 0;
    border-radius: 999px;
    border: 1px solid #FFF;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
}

.cancel-btn{
    background: #222145;
    color: #FFF;
}

.confirm-btn{
    background: #FFF;
    color: #0C0B30;
}