편집 요약 없음 |
편집 요약 없음 |
||
1번째 줄: | 1번째 줄: | ||
/* 기본 | /* 기본 설정 */ | ||
body { | body { | ||
margin: 0; | margin: 0; | ||
background: | font-family: 'Arial', sans-serif; | ||
background-color: #000; | |||
overflow: hidden; | |||
color: #fff; | |||
} | |||
.vn-container { | |||
position: relative; | |||
width: 100%; | |||
height: 100vh; | |||
display: flex; | display: flex; | ||
justify-content: | flex-direction: column; | ||
justify-content: flex-end; | |||
align-items: center; | align-items: center; | ||
} | } | ||
/* 배경 설정 */ | |||
text-align: | .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: | font-size: 1.2rem; | ||
font-weight: bold; | font-weight: bold; | ||
margin-bottom: 10px; | |||
color: #ffcc00; | |||
text-shadow: 0 0 | text-shadow: 0 0 5px rgba(255, 204, 0, 0.8); | ||
} | } | ||
.dialogue-text label { | |||
. | display: block; | ||
font-size: 1rem; | |||
line-height: 1.5; | |||
opacity: 0; | |||
animation: fadeIn 1s ease-in-out forwards; | |||
cursor: pointer; | |||
} | } | ||
input[type="radio"]:checked + label { | |||
opacity: 1; | |||
color: #00ffcc; | |||
text-shadow: 0 0 10px #00ffcc; | |||
} | } | ||
/* 선택지 */ | |||
.choices { | |||
display: flex; | |||
gap: 20px; | |||
} | } | ||
. | .choices label { | ||
position: relative; | position: relative; | ||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
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; | |||
} | |||
.choices label:hover { | |||
background: #444; | |||
border-color: #00ffcc; | |||
color: #00ffcc; | |||
} | } | ||
. | .choices input[type="radio"] { | ||
display: none; | |||
} | } | ||
. | .choices input[type="radio"]:checked + span { | ||
background: #00ffcc; | |||
color: #000; | |||
border-radius: 15px; | |||
padding: 5px 10px; | |||
box-shadow: 0 0 10px #00ffcc; | |||
} | } | ||
/* 애니메이션 */ | |||
@keyframes fadeIn { | @keyframes fadeIn { | ||
from { | from { | ||
76번째 줄: | 113번째 줄: | ||
opacity: 1; | opacity: 1; | ||
transform: translateY(0); | transform: translateY(0); | ||
} | } | ||
} | } |
2024년 12월 18일 (수) 16:31 판
/* 기본 설정 */
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 label {
display: block;
font-size: 1rem;
line-height: 1.5;
opacity: 0;
animation: fadeIn 1s ease-in-out forwards;
cursor: pointer;
}
input[type="radio"]:checked + label {
opacity: 1;
color: #00ffcc;
text-shadow: 0 0 10px #00ffcc;
}
/* 선택지 */
.choices {
display: flex;
gap: 20px;
}
.choices label {
position: relative;
display: flex;
align-items: center;
justify-content: center;
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;
}
.choices label:hover {
background: #444;
border-color: #00ffcc;
color: #00ffcc;
}
.choices input[type="radio"] {
display: none;
}
.choices input[type="radio"]:checked + span {
background: #00ffcc;
color: #000;
border-radius: 15px;
padding: 5px 10px;
box-shadow: 0 0 10px #00ffcc;
}
/* 애니메이션 */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}