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

편집 요약 없음
편집 요약 없음
1번째 줄: 1번째 줄:
/* 기본 스타일 */
/* 기본 설정 */
body {
body {
   margin: 0;
   margin: 0;
   background: linear-gradient(to bottom, #1a1a1a, #101010);
  font-family: 'Arial', sans-serif;
   color: white;
   background-color: #000;
  overflow: hidden;
  color: #fff;
}
 
.vn-container {
   position: relative;
  width: 100%;
  height: 100vh;
   display: flex;
   display: flex;
   justify-content: center;
  flex-direction: column;
   justify-content: flex-end;
   align-items: center;
   align-items: center;
  height: 100vh;
  overflow-y: scroll;
}
}


header {
/* 배경 설정 */
   text-align: center;
.background {
   margin-bottom: 30px;
  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);
}
}


header h1 {
.character-name {
   font-size: 2.5rem;
   font-size: 1.2rem;
   font-weight: bold;
   font-weight: bold;
   color: #fff;
   margin-bottom: 10px;
   margin: 0;
   color: #ffcc00;
   text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
   text-shadow: 0 0 5px rgba(255, 204, 0, 0.8);
}
}


/* 타임라인 컨테이너 */
.dialogue-text label {
.timeline-container {
   display: block;
   max-width: 600px;
  font-size: 1rem;
   width: 90%;
   line-height: 1.5;
   padding: 20px;
  opacity: 0;
  animation: fadeIn 1s ease-in-out forwards;
   cursor: pointer;
}
}


/* 타임라인 스타일 */
input[type="radio"]:checked + label {
.timeline {
   opacity: 1;
   position: relative;
   color: #00ffcc;
   padding-left: 40px;
   text-shadow: 0 0 10px #00ffcc;
   border-left: 3px solid #f1c40f;
  animation: lineGlow 3s infinite alternate;
}
}


@keyframes lineGlow {
/* 선택지 */
   0% {
.choices {
    border-left-color: #f1c40f;
   display: flex;
   }
   gap: 20px;
  100% {
    border-left-color: #e74c3c;
  }
}
}


.event {
.choices label {
   position: relative;
   position: relative;
   margin-bottom: 40px;
   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;
}
}


.event:last-child {
.choices input[type="radio"] {
   margin-bottom: 0;
   display: none;
}
}


.event .year {
.choices input[type="radio"]:checked + span {
   position: absolute;
   background: #00ffcc;
   left: -30px;
   color: #000;
   top: 0;
   border-radius: 15px;
  font-size: 1.2rem;
   padding: 5px 10px;
   font-weight: bold;
   box-shadow: 0 0 10px #00ffcc;
  color: #f1c40f;
   text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  animation: fadeIn 1s ease-in;
}
}


/* 애니메이션 */
@keyframes fadeIn {
@keyframes fadeIn {
   from {
   from {
76번째 줄: 113번째 줄:
     opacity: 1;
     opacity: 1;
     transform: translateY(0);
     transform: translateY(0);
  }
}
.event p {
  background: #333;
  padding: 15px;
  border-radius: 5px;
  margin: 0;
  animation: fadeInText 1s ease-in-out;
}
@keyframes fadeInText {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(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);
  }
}