편집 요약 없음 |
편집 요약 없음 |
||
50번째 줄: | 50번째 줄: | ||
} | } | ||
.dialogue-text | .dialogue-text { | ||
position: relative; | |||
} | |||
.dialogue-line { | |||
opacity: 0; | opacity: 0; | ||
transform: translateY(10px); | |||
transition: opacity 0.5s ease, transform 0.5s ease; | |||
} | } | ||
.dialogue-line.active { | |||
opacity: 1; | opacity: 1; | ||
transform: translateY(0); | |||
} | } | ||
71번째 줄: | 71번째 줄: | ||
} | } | ||
. | .choice { | ||
position: relative; | position: relative; | ||
display: | display: inline-block; | ||
padding: 10px 20px; | padding: 10px 20px; | ||
background: #333; | background: #333; | ||
86번째 줄: | 84번째 줄: | ||
} | } | ||
. | .choice:hover { | ||
background: #444; | background: #444; | ||
border-color: #00ffcc; | border-color: #00ffcc; | ||
92번째 줄: | 90번째 줄: | ||
} | } | ||
/* 선택 클릭 효과 */ | |||
.choice:active { | |||
. | |||
background: #00ffcc; | background: #00ffcc; | ||
color: #000; | color: #000; | ||
transform: scale(0.95); | |||
} | } |
2024년 12월 18일 (수) 16:33 판
/* 기본 설정 */
body {
margin: 0;
font-family: 'Arial', sans-serif;
background-color: #000;
overflow: hidden;
color: #fff;
}
.vn-container {
position: relative;
width: 100%;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: flex-end;
align-items: center;
}
/* 배경 설정 */
.background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 0;
}
/* 대화 상자 */
.dialogue-box {
width: 80%;
max-width: 900px;
background: rgba(0, 0, 0, 0.8);
border: 2px solid #fff;
padding: 20px;
margin-bottom: 20px;
border-radius: 15px;
z-index: 2;
text-align: left;
box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
.character-name {
font-size: 1.2rem;
font-weight: bold;
margin-bottom: 10px;
color: #ffcc00;
text-shadow: 0 0 5px rgba(255, 204, 0, 0.8);
}
.dialogue-text {
position: relative;
}
.dialogue-line {
opacity: 0;
transform: translateY(10px);
transition: opacity 0.5s ease, transform 0.5s ease;
}
.dialogue-line.active {
opacity: 1;
transform: translateY(0);
}
/* 선택지 */
.choices {
display: flex;
gap: 20px;
}
.choice {
position: relative;
display: inline-block;
padding: 10px 20px;
background: #333;
color: #fff;
border: 2px solid #fff;
border-radius: 15px;
font-size: 1rem;
cursor: pointer;
transition: all 0.3s ease-in-out;
}
.choice:hover {
background: #444;
border-color: #00ffcc;
color: #00ffcc;
}
/* 선택 클릭 효과 */
.choice:active {
background: #00ffcc;
color: #000;
transform: scale(0.95);
}