틀:연습장:아바투르너마저/2/styles.css: 두 판 사이의 차이

편집 요약 없음
편집 요약 없음
50번째 줄: 50번째 줄:
}
}


.dialogue-text label {
.dialogue-text {
   display: block;
   position: relative;
  font-size: 1rem;
}
  line-height: 1.5;
 
.dialogue-line {
   opacity: 0;
   opacity: 0;
   animation: fadeIn 1s ease-in-out forwards;
   transform: translateY(10px);
   cursor: pointer;
   transition: opacity 0.5s ease, transform 0.5s ease;
}
}


input[type="radio"]:checked + label {
.dialogue-line.active {
   opacity: 1;
   opacity: 1;
   color: #00ffcc;
   transform: translateY(0);
  text-shadow: 0 0 10px #00ffcc;
}
}


71번째 줄: 71번째 줄:
}
}


.choices label {
.choice {
   position: relative;
   position: relative;
   display: flex;
   display: inline-block;
  align-items: center;
  justify-content: center;
   padding: 10px 20px;
   padding: 10px 20px;
   background: #333;
   background: #333;
86번째 줄: 84번째 줄:
}
}


.choices label:hover {
.choice:hover {
   background: #444;
   background: #444;
   border-color: #00ffcc;
   border-color: #00ffcc;
92번째 줄: 90번째 줄:
}
}


.choices input[type="radio"] {
/* 선택 클릭 효과 */
  display: none;
.choice:active {
}
 
.choices input[type="radio"]:checked + span {
   background: #00ffcc;
   background: #00ffcc;
   color: #000;
   color: #000;
   border-radius: 15px;
   transform: scale(0.95);
  padding: 5px 10px;
  box-shadow: 0 0 10px #00ffcc;
}
 
/* 애니메이션 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
}

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);
}