/*** font ***/
@import url('https://fonts.googleapis.com/css2?family=Montserrat&family=Noto+Sans+KR&family=Orbitron:wght@700&display=swap');


:root {
  --r: 20px;
  --c: #171717;
  --light-reflect: inset -5px 20px 2px -20px #fff, inset 5px -20px 2px -20px #fff;
  --shadow-reflect: inset -19px 1px 2px -20px #000,inset 19px 1px 2px -20px #000, inset 19px 1px 2px -20px #000, inset -15px -26px 3px -30px #000;
  --hh: 8rem;
}

body {
  display: flex;
  padding: 0 2rem;
  color: var(--c);
  
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  background: radial-gradient(#ffffff54 2px, transparent 0) 0 0/40px 40px, radial-gradient(#00000026 2px, transparent 0) -1px 1px/40px 40px, radial-gradient(ellipse at 150% -50%, #6d788f, #fff);
}

.form {
  position: relative;
  --gap: .5rem;
  max-width: 50rem;
  flex: 1 1 auto;
  height: var(--hh);
  transition: 250ms ease all;
  animation: slideUp 1.3s ease-out forwards;
  margin-top: 30px;
}

@keyframes slideUp {
  from {
    transform: translateY(300px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.form.open {
  height: calc(var(--hh) * 4.0 + var(--gap));
  margin-top: 60px;
}

button {
  appearance: none;
  border: none;
  background: none;
}


@keyframes text {
  0% {
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}
.form-title {
  margin-left: 80px;
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  animation: text linear 1s forwards;
  animation-delay: 1s;
}

@keyframes gradient {
  0% {
    background-size: 100%;
  }
  50% {
    background-size: 150%;
  }
  100% {
    background-size: 100%;
  }
}
.glass {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 4rem;
  border-radius: var(--r);
  border: none;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(2px);
  text-shadow: 0.25em 0.25em 1px #00000010;
  --shadow-color: 0deg 0% 64%;
  --shadow-elevation-high:
    0.5px 1px 1.1px hsl(var(--shadow-color) / 0.28),
    1.4px 3.1px 3.4px -0.4px hsl(var(--shadow-color) / 0.27),
    2.5px 5.3px 5.9px -0.7px hsl(var(--shadow-color) / 0.25),
    3.9px 8.4px 9.3px -1.1px hsl(var(--shadow-color) / 0.24),
    6px 12.9px 14.3px -1.5px hsl(var(--shadow-color) / 0.23),
    9px 19.5px 21.6px -1.8px hsl(var(--shadow-color) / 0.21),
    13.4px 28.9px 32px -2.2px hsl(var(--shadow-color) / 0.2),
    19.3px 41.7px 46.2px -2.6px hsl(var(--shadow-color) / 0.19),
    27.1px 58.5px 64.8px -2.9px hsl(var(--shadow-color) / 0.17),
    37.1px 80px 88.6px -3.3px hsl(var(--shadow-color) / 0.16);
  --inner-light: inset 0 -6px 2px -5px #ffffff24, inset 0 -8px 3px -5px #ffffff3b, inset 0 -20px 10px -15px #ffffff5c, inset 7px 25px 10px -20px #ffffff5c;
  --inner-shadow: inset -20px 5px 10px -20px #00000021, inset -40px 50px 7px -55px #00000021;
  --external-light: 5px -30px 30px -20px #ffffff70, 5px 10px 30px -20px #ffffff70;
  --default: var(--external-light), var(--shadow-elevation-high), var(--inner-light), var(--inner-shadow);
  box-shadow: var(--default);
}
.glass:focus {
  outline: none;
}
.glass--gradient {
  background-position: center;
  animation: gradient 10s linear infinite;
  background: linear-gradient(45deg, #85d5e757, #7a9ed254, #ba6ac93d, #de54c217, #f86b2d4f);
}
.glass--heading {
  font-size: 1.1rem;
}
.glass--heading:before {
  --i: 2px;
  opacity: 0.6;
}
.glass--heading:after {
  --i: 4px;
}
.glass--heading:before, .glass--heading:after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: var(--i);
  border-radius: calc(var(--r) - var(--i));
  box-shadow: var(--light-reflect), var(--shadow-reflect);
}
.glass > * {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%; /* 높이를 100%로 설정 */
  z-index: 1;
}
.glass:before {
  --r: 20px;               /* 변수 --r을 20px로 설정 */
  --bp: 50px;              /* 변수 --bp를 50px로 설정 */
  --s: calc(0% + var(--bp) + var(--r));  /* 변수 --s를 계산한 값으로 설정 */
  --e: calc(100% - var(--bp) - var(--r)); /* 변수 --e를 계산한 값으로 설정 */
  --z: calc(0% + var(--bp));   /* 변수 --z를 계산한 값으로 설정 */
  --h: calc(100% - var(--bp)); /* 변수 --h를 계산한 값으로 설정 */
  content: "";  /* 가상 요소에 내용 없음 */
  position: absolute; /* 절대 위치로 설정 */
}


.form-header {
  height: var(--hh);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

@keyframes icon {
  0% {
    rotate: 0deg;
    scale: 0.8;
    filter: hue-rotate(0deg);
  }
  50% {
    rotate: 180deg;
    scale: 1.2;
    filter: hue-rotate(90deg);
  }
  100% {
    rotate: 360deg;
    scale: 0.8;
    filter: hue-rotate(0deg);
  }
}
.form-icon {
  position: relative;
  background: transparent;
  display: block;
  aspect-ratio: 1/1; /* 수정된 aspect-ratio 값 */  
  border-radius: 0px;
  height: 8rem;
  /****** box-shadow: var(--light-reflect), var(--shadow-reflect);****/
}
.form-icon:before {
  /******************** animation: icon 5000ms cubic-bezier(0.22, 0.61, 0.36, 1) infinite;******/

  content: "";
  position:absolute;
  inset: 0;
  width: 300px;
  background: url(./ia.png) center/70% 50% no-repeat; /* 수정된 background 값 */
  background-position: 10% 50%; /* 이미지를 가운데 위치시킴 */
}

.form-close-button {
  position: absolute;
  color: var(--c);
  background: rgba(255, 255, 255, 0.3);
  top: 0.75rem;
  right: 0.75rem;
  box-shadow: var(--light-reflect), var(--shadow-reflect);
  display: grid;
  place-content: center;
  height: 1.5rem;
  width: 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  visibility: hidden;
  opacity: 0;
  transition: 250ms ease opacity;
}

.open .form-close-button {
  visibility: visible;
  opacity: 1;
}

[id=heading] {
  transition: 250ms ease all;
  cursor: pointer;
}
.form:not(.open) [id=heading]:hover {
  scale: 0.99;
  filter: brightness(0.95);
}
.form:not(.open) [id=heading]:active {
  scale: 0.98;
  filter: brightness(0.8);
}

/*************** input *******************/
.choice {
  position: absolute;
  top: 0;
  left: 30%;
  z-index: 5;
  height: var(--hh);
  transition: 500ms ease all;
  transform: translateY(0);
  opacity: 0;
}

.choice p {
  position: relative;
  padding: 0 30px 0 50px;
  text-align: left;
  font-weight: 600;
  overflow-wrap: break-word;
  word-wrap: break-word;
  z-index: 50;
}

.open #choice1 { 
  transform: translateY(var(--hh) + var(--gap));
  height: calc(var(--hh) / 2);
  opacity: 1;
  z-index: 2;
}

.open #choice2 {

  transform: translateY(calc((var(--hh) + 5px) * 2)); /* 변경된 부분 */
  height: calc(var(--hh) / 2);
  opacity: 1;
  z-index: 2;
}

.open #choice3 {

  transform: translateY(calc((var(--hh) + 5px) * 3)); /* 변경된 부분 */
  height: calc(var(--hh) / 2);
  opacity: 1;
  z-index: 2;
}

choice:focus {
  outline: none;
}
choice::placeholder {
  opacity: 1;
}

[id=choice1] {
  position: absolute;
  top: 10px;
  left: 0;
  z-index: -1;
  height: var(--hh);
  transition: 500ms ease all;
  translate: 0 0;
  opacity: 0;
}
.open [id=choice1] {
  translate: 0 calc(var(--hh) + var(--gap));
  height: calc(var(--hh) / 2);
  opacity: 1;
  z-index: 2;
  border-radius: 8px;
}

[id=choice2] {
  position: absolute;
  top: -35%;
  left: 0;
  z-index: -1;
  height: var(--hh);
  transition: 500ms ease all;
  translate: 0 0;
  opacity: 0;
}
.open [id=choice2] {
  translate: 0 calc(var(--hh) + var(--gap));
  height: calc(var(--hh) / 2);
  opacity: 1;
  z-index: 2;
  border-radius: 8px;
}

[id=choice3] {
  position: absolute;
  top: -46.0%;
  left: 0;
  z-index: -1;
  height: var(--hh);
  transition: 500ms ease all;
  translate: 0 0;
  opacity: 0;  
}
.open [id=choice3] {
  translate: 0 calc(var(--hh) + var(--gap));
  height: calc(var(--hh) / 2);
  opacity: 1;
  z-index: 2;
  border-radius: 8px;
}

[id=choice4] {
  position: absolute;
  top: 45.0%;
  left: 0;
  z-index: -1;
  height: var(--hh);
  transition: 500ms ease all;
  translate: 0 0;
  opacity: 0;
}
.open [id=choice4] {
  translate: 0 calc(var(--hh) + var(--gap));
  height: calc(var(--hh) / 2);
  opacity: 1;
  z-index: 2;
  border-radius: 8px;
}

[id=choice5] {
  position: absolute;
  top: 60.0%;
  left: 0;
  z-index: -1;
  height: var(--hh);
  transition: 500ms ease all;
  translate: 0 0;
  opacity: 0;
}
.open [id=choice5] {
  translate: 0 calc(var(--hh) + var(--gap));
  height: calc(var(--hh) / 2);
  opacity: 1;
  z-index: 2;
  border-radius: 8px;
}

[id=choice6] {
  position: absolute;
  top: 75.0%;
  left: 0;
  z-index: -1;
  height: var(--hh);
  transition: 500ms ease all;
  translate: 0 0;
  opacity: 0;
}
.open [id=choice6] {
  translate: 0 calc(var(--hh) + var(--gap));
  height: calc(var(--hh) / 2);
  opacity: 1;
  z-index: 2;
  border-radius: 8px;
}



.glass.choice a {
  text-decoration: none;
  color: inherit;  
}

.glass.choice a:hover {
  text-decoration: none;
  color:white;   
}

.glass.choice:hover{
  background-color: rgba(255, 0, 123, 0.437);
}

footer {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: transparent; /* 배경 색상 설정 */
  color: rgb(123, 123, 123); /* 텍스트 색상 설정 */
  font-size: 0.7em;
  padding: 20px 0px 20px 60px; /* 안쪽 여백 설정 */
  text-align: center; /* 텍스트 가운데 정렬 */
  position: fixed; /* 화면에 고정 */
  width: 100%; /* 전체 너비로 설정 */
  bottom: 0; /* 화면 하단에 위치 */
}

footer a {
  color: dimgrey;
  font-size: 2.5em;
  line-height: 0.5em;
  margin-top: 0px;
  padding-top: 0px;
}

footer a i:hover {
  color: rgb(59, 59, 59);
}

.headlink a,
.headlink a:hover,
.headlink a:visited {
  text-decoration: none; /* 링크의 언더바 제거 */
  color: rgb(255, 255, 255);
}

.headlink {
   display:flex;
   flex-direction: column;
   position:fixed;
   top: 0;
   border-radius: 0 0 0px 0px;
   align-content: center;
   align-items: center;
   color:#fff;
   background-color:rgba(94, 94, 94, 0.0);
   width: 100%;
      
}

.headlink:hover {
  background-color:#c00628;
}

.headlink h1 {
  color: rgb(213, 213, 213);
  margin: 0 40px 40px 40px;
  max-width: 800px;
  padding: auto;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6rem;
  text-align: left;
  align-content: center;
  word-spacing: -2.0px;
}

.headlink p {
  color: rgb(255, 255, 255);
  margin-top: 40px;
  font-weight: 600;
  align-content: center;
}

.headlink p:hover {
  color: rgb(0, 0, 0);
  font-weight: 600;
  align-content: center;
}

/************* 모바일적용 **************************************/

/* 스크린 너비가 768px 이하일 때 햄버거 메뉴 보이기 */
@media screen and (max-width: 768px) {
  .headlink {
    display:flex;
    flex-direction: column;
    position:fixed;
    top: 0;
    border-radius: 0 0 0px 0px;
    align-content: center;
    align-items: center;
    color:#fff;
    background-color:rgb(149, 82, 63);
    width: 100%;
      
 }

 .headlink h1 {
   color: rgb(213, 213, 213);
   margin: 0 40px 40px 40px;
   padding: auto;
   font-size: 0.8rem;
   font-weight: 400;
   line-height: 1.2rem;
   align-content: center;
   word-spacing: -2.0px;
 }

 .headlink:hover {
  background-color:#ad0431;
 }

 .headlink p:hover {
   color: rgb(255, 200, 0);
   font-weight: 600;
   align-content: left;
 }

 .form-header {
  height: var(--hh);
  padding: auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.form-icon {
  display: none;
  /****** box-shadow: var(--light-reflect), var(--shadow-reflect);****/
}

.form-title {
  margin-left: 10px;
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  animation: text linear 1s forwards;
  animation-delay: 1s;
}
.choice p {
  position: relative;
  padding: 0 10px 0 10px;
  text-align: left;
  font-weight: 400;
  z-index: 50;
  overflow-wrap: break-word;
  word-wrap: break-word;
  line-height: 1.5rem;
}

}

