@import "./reset.css";

@font-face {
    src: url("https://www.axis-praxis.org/fonts/webfonts/MetaVariableDemo-Set.woff2")
        format("woff2");
    font-family: "Meta";
    font-style: normal;
    font-weight: normal;
    }
@property --hue {
    initial-value: 0;
    syntax: '<number>';
    inherits: false;
}

@property --eval {
    initial-value: 0;
    syntax: '<number>';
    inherits: false;
}


body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    transition: background-image 3s ease;
    animation: rotate 10s linear infinite, eval 20s ease-in-out infinite;
    background-image: 
    radial-gradient(farthest-corner at 0% calc(var(--eval) * 100%), hsla(calc(var(--hue) * 360deg), 70%, 90%, 1), hsla(calc(var(--hue) * 360deg), 70%, 90%, 0) 80%),
    radial-gradient(farthest-corner at calc(var(--eval) * 100%) 100%, hsla(calc((var(--hue) + 0.15) * 360deg), 65%, 92%, 1), hsla(calc((var(--hue) + 0.2) * 360deg), 65%, 92%, 0) 110%);
  
}
    



.grid-container {
    width: 100%;
    height : 100%;
    display: grid;
    grid-template-columns: repeat(8,1fr);
    grid-template-rows: repeat(8,1fr);
}

.flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white; /* 플래시 색상 */
    opacity: 0;
    z-index: 9999; /* 다른 요소 위에 나타나도록 */
    animation: flash 0.5s ease-out; /* 애니메이션 효과와 지속 시간 조정 */
}


@keyframes flash-animation {
0% { opacity: 1; }
25% { opacity: 0; }
75% { opacity: 0; }
100% { opacity: 1; }
}


#timer {
    position: absolute;
    color: #333333; /* 다크 그레이 톤으로 깔끔하게 */
    background-color: #f7f5ef; /* 아이보리 톤 배경 */
    padding: 15px 35px;
    border-radius: 50px; /* 둥근 모바일 앱 느낌 */
    top: 40px;
    left: 50%;
    transform: translateX(-50%); /* 정확히 중앙 정렬 */
    font-size: 55px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 800;
    letter-spacing: -2px;
    text-align: center;
    display: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-shadow: 0 1px 2px rgba(0,0,0,0.08);
    z-index: 10;
}
#timer span {
    font-size: 22px;
    font-weight: 500;
    opacity: 0.6;
    letter-spacing: 0px;
    margin-left: 5px;
    vertical-align: baseline;
}

#progress {
    position: absolute;
    top: 50px;
    right: 50px;
    background-color: #f7f5ef;
    color: #333333;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 24px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    letter-spacing: -1px;
    text-align: center;
    display : none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-shadow: 0 1px 2px rgba(0,0,0,0.08);
    z-index: 10;
}
#camera_div{
    width: 100%;
    height: auto;
    display:flex;
    justify-content: center;
    align-items: center;
    grid-column: 3 / 7;
    grid-row: 1 / 9; 
    position: relative; /* 자식 요소 절대 배치를 위해 추가 */
}
#camera {
    width: 100%;
    height: auto;
    display: none;
    border-radius: 15px; /* 약간의 둥근 모서리 추가 */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); /* 그림자 추가로 좀 더 선명하게 */
}
#photos {
    display: flex;
    flex-wrap: wrap;
}
.photo {
    width: 15px;
    height: 75px;
    margin: 5px;
}


#start-button {
    display: none;
    grid-column: 3 / 7;
    grid-row: 8 / 9;
    z-index: 5;
    
    /* 진한 다크 그라데이션 배경 */
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 60px;
    padding: 20px 70px;
    margin: -80px auto 0 auto; /* 위로 올리기 위해 음수 마진 적용 */
    width: fit-content;
    align-self: center;
    justify-self: center;
    
    /* 텍스트 스타일 */
    font-family: 'Pretendard', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 6px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
    cursor: pointer;
    
    /* 컬러 글로우 그림자 */
    box-shadow: 
        0 8px 30px rgba(15, 52, 96, 0.5),
        0 0 50px rgba(83, 120, 190, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    
    /* 쉬머 효과용 */
    position: relative;
    overflow: hidden;
    
    /* 부드러운 전환 */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* 은은한 펄스 애니메이션 */
    animation: startBtnPulse 2.5s ease-in-out infinite;
}

/* 쉬머(빛 반사) 효과 */
#start-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
    animation: startBtnShimmer 3s ease-in-out infinite;
}

/* 호버 시 밝아지며 글로우 강화 */
#start-button:hover {
    transform: scale(1.08);
    background: linear-gradient(135deg, #1a1a2e 0%, #1a3a5c 50%, #1565c0 100%);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 12px 40px rgba(21, 101, 192, 0.45),
        0 0 70px rgba(83, 120, 190, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    text-shadow: 0 2px 15px rgba(255, 255, 255, 0.4);
    letter-spacing: 10px;
}

/* 클릭 시 눌림 효과 */
#start-button:active {
    transform: scale(0.96);
    background: linear-gradient(135deg, #0f0f1e 0%, #0e1a2e 50%, #0a2a50 100%);
    box-shadow: 
        0 4px 16px rgba(15, 52, 96, 0.4),
        inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 은은한 펄스 애니메이션 */
@keyframes startBtnPulse {
    0%, 100% {
        box-shadow: 
            0 8px 30px rgba(15, 52, 96, 0.5),
            0 0 50px rgba(83, 120, 190, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
    50% {
        box-shadow: 
            0 8px 40px rgba(21, 101, 192, 0.4),
            0 0 70px rgba(83, 120, 190, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

/* 쉬머 빛 이동 애니메이션 */
@keyframes startBtnShimmer {
    0% { left: -100%; }
    50% { left: 150%; }
    100% { left: 150%; }
}
    





.div_center{
    display: flex;
    justify-content: center;
    align-items: center;
}

.canvas_grid{
    grid-column: 2 / 6;
    grid-row: 1 / 9; 
}

#canvas {

    display: none;
    width:500px;
    height:750px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.6);
}

#convertButton{
    display:none;
    grid-column: 6 / 8;
    grid-row : 7 / 8;
    margin-left : 67px;
}

.qr_grid{
    grid-column: 6 / 8;
    grid-row: 3 / 7; 

}
#imageUrl{
    display:none;
}

#frame-selection {
    grid-column:  6 / 8;
    grid-row: 2 / 6;
    display : flex;
    justify-content: center;
    align-items: center;

}
#frame-box{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    grid-auto-rows: auto;
    gap: 5px;
    align-items: center;
    justify-items: center;
}

.frame-button {
    display : none;
    margin : 10px;
    cursor: pointer;
    width: 100px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.6);
}


.letter {
    position: absolute;
    font-size: 24px;
    color: #000;
    pointer-events: none;
    transition: transform 0.05s ease-out;
    z-index: 1000;
}

#start{

    background-image: url('../초기화면.png');
    background-size: cover; /* 부모 요소에 맞게 이미지 크기를 조정 */
    background-position: center;
    grid-column: 1/9;
    grid-row: 1/9;
    z-index: 100;
}

/* 초기화면 하단 '화면을 클릭하세요' 깜빡이는 안내 텍스트 */
#start-hint {
    position: absolute;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%);
    
    font-family: 'Pretendard', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 8px;
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
    
    /* 글래스 배경 */
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 25px 80px;
    border-radius: 60px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    
    /* 깜빡이는 펄스 애니메이션 */
    animation: hintPulse 2s ease-in-out infinite;
    
    cursor: pointer;
    z-index: 101;
    white-space: nowrap;
}

@keyframes hintPulse {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
        box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
    }
    50% {
        opacity: 0.4;
        transform: translateX(-50%) scale(0.97);
        box-shadow: 0 4px 30px rgba(255, 255, 255, 0.25);
    }
}




#start {
    --box-width: 96rem;
    --box-height: 54rem;
    background-size: cover; /* 부모 요소에 맞게 이미지 크기를 조정 */
    background-position: center;
    --frag-width: calc(var(--box-width) / var(--col));
    --frag-height: calc(var(--box-height) / var(--row));
    --img-url: url('../카메라권한.png');
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    height: 100%;
    position: relative;

  }
  

  
  .fragment {
    --x-offset: calc(var(--x) * var(--frag-width) * -1);
    --y-offset: calc(var(--y) * var(--frag-height) * -1);
    --rotateX: rotateX(0);
    --rotateY: rotateY(0);
    width: var(--frag-width);
    height: var(--frag-height);
    background: var(--img-url) var(--x-offset) var(--y-offset) / var(--box-width) var(--box-height) no-repeat;
    backface-visibility: hidden;
    will-change: transform;
    transform: var(--rotateX) var(--rotateY) scale(0.8);
    animation: flip var(--duration) linear var(--delay) forwards;
  }























  @keyframes flip {
    0% { transform: var(--rotateX) var(--rotateY) scale(0.8); opacity: 0; }
    70% { transform: rotateX(0) rotateY(0) scale(0.8); opacity: 1; }
    100% { transform: rotateX(0) rotateY(0) scale(1); }
  }
  


  @keyframes rotate {
    from { --hue: 0; }
    to { --hue: 1; }
}

@keyframes eval {
    0% { --eval: 0; }
    50% { --eval: 1; }
    100% { --eval: 0; }
}












.button {
    float: left;
    min-width: 150px;
    max-width: 250px;
    display: block;
    margin: 1em;
    padding: 1em 2em;
    border: none;
    background: none;
    color: inherit;
    vertical-align: middle;
    position: relative;
    z-index: 1;
    -webkit-backface-visibility: hidden;
    -moz-osx-font-smoothing: grayscale;
  }
  .button:focus {
    outline: none;
  }
  .button--size-s {
    font-size: 14px;
  }
  .button--text-upper {
    letter-spacing: 2px;
    text-transform: uppercase;
  }
  .button--text-thick {
    font-weight: 600;
  }
  .button--moema {
    padding: 1.5em 3em;
    border-radius: 50px;
    background: #7986cb;
    color: #fff;
    -webkit-transition: background-color 0.3s, color 0.3s;
    transition: background-color 0.3s, color 0.3s;
  }
  .button--moema.button--inverted {
    background: #ECEFF1;
    color: #37474f;
  }
  .button--moema::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    bottom: -20px;
    right: -20px;
    background: inherit;
    border-radius: 50px;
    z-index: -1;
    opacity: 0.4;
    -webkit-transform: scale3d(0.8, 0.5, 1);
    transform: scale3d(0.8, 0.5, 1);
  }
  .button--moema:hover {
    -webkit-transition: background-color 0.1s 0.3s, color 0.1s 0.3s;
    transition: background-color 0.1s 0.3s, color 0.1s 0.3s;
    color: #ECEFF1;
    background-color: #3f51b5;
    -webkit-animation: anim-moema-1 0.3s forwards;
    animation: anim-moema-1 0.3s forwards;
  }
  .button--moema.button--inverted:hover {
    color: #ECEFF1;
    background-color: #7986cb;
  }
  .button--moema:hover::before {
    -webkit-animation: anim-moema-2 0.3s 0.3s forwards;
    animation: anim-moema-2 0.3s 0.3s forwards;
  }
  @-webkit-keyframes anim-moema-1 {
    60% {
      -webkit-transform: scale3d(0.8, 0.8, 1);
      transform: scale3d(0.8, 0.8, 1);
    }
    85% {
      -webkit-transform: scale3d(1.1, 1.1, 1);
      transform: scale3d(1.1, 1.1, 1);
    }
    100% {
      -webkit-transform: scale3d(1, 1, 1);
      transform: scale3d(1, 1, 1);
    }
  }
  @keyframes anim-moema-1 {
    60% {
      -webkit-transform: scale3d(0.8, 0.8, 1);
      transform: scale3d(0.8, 0.8, 1);
    }
    85% {
      -webkit-transform: scale3d(1.1, 1.1, 1);
      transform: scale3d(1.1, 1.1, 1);
    }
    100% {
      -webkit-transform: scale3d(1, 1, 1);
      transform: scale3d(1, 1, 1);
    }
  }
  @-webkit-keyframes anim-moema-2 {
    to {
      opacity: 0;
      -webkit-transform: scale3d(1, 1, 1);
      transform: scale3d(1, 1, 1);
    }
  }
  @keyframes anim-moema-2 {
    to {
      opacity: 0;
      -webkit-transform: scale3d(1, 1, 1);
      transform: scale3d(1, 1, 1);
    }
  }
  



















  #loading {
    display: none;
    font-size: 18px;
    grid-column: 7 / 8;
    grid-row : 5 / 6;
}


  *,
*:before,
*:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.wrapper {
  left: 50%;
  top: 50%;
  margin: -100px;
  width: 200px;
  height: 200px;
  background-color: transparent;
  border: none;
  -webkit-user-select: none;
}

.wrapper .box-wrap {
  width: 140px; /* 70% of 200px */
  height: 140px; /* 70% of 200px */
  margin: calc((100% - 140px) / 2) calc((100% - 140px) / 2);
  position: relative;
  transform: rotate(-45deg);
}

.wrapper .box-wrap .box {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background: rgba(135, 0, 0, .6);
  background: linear-gradient(to right, #141562, #486FBC, #EAB5A1, #8DD6FF, #4973C9, #D07CA7, #F4915E, #F5919E, #B46F89, #141562, #486FBC);
  background-position: 0% 50%;
  background-size: 1000% 1000%;
  visibility: hidden;
}

.wrapper .box-wrap .box.one {
  animation: moveGradient 15s infinite, oneMove 3.5s infinite;
}

.wrapper .box-wrap .box.two {
  animation: moveGradient 15s infinite, twoMove 3.5s .15s infinite;
}

.wrapper .box-wrap .box.three {
  animation: moveGradient 15s infinite, threeMove 3.5s .3s infinite;
}

.wrapper .box-wrap .box.four {
  animation: moveGradient 15s infinite, fourMove 3.5s .575s infinite;
}

.wrapper .box-wrap .box.five {
  animation: moveGradient 15s infinite, fiveMove 3.5s .725s infinite;
}

.wrapper .box-wrap .box.six {
  animation: moveGradient 15s infinite, sixMove 3.5s .875s infinite;
}

@keyframes moveGradient {
  to {
    background-position: 100% 50%;
  }
}

@keyframes oneMove {
  0% {
    visibility: visible;
    clip-path: inset(0% 35% 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  14.2857% {
    clip-path: inset(0% 35% 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  28.5714% {
    clip-path: inset(35% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  42.8571% {
    clip-path: inset(35% 70% 35% 0 round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  57.1428% {
    clip-path: inset(35% 70% 35% 0 round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  71.4285% {
    clip-path: inset(0% 70% 70% 0 round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  85.7142% {
    clip-path: inset(0% 70% 70% 0 round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  100% {
    clip-path: inset(0% 35% 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
}

@keyframes twoMove {
  0% {
    visibility: visible;
    clip-path: inset(0% 70% 70% 0 round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  14.2857% {
    clip-path: inset(0% 70% 70% 0 round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  28.5714% {
    clip-path: inset(0% 35% 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  42.8571% {
    clip-path: inset(0% 35% 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  57.1428% {
    clip-path: inset(35% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  71.4285% {
    clip-path: inset(35% 70% 35% 0 round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  85.7142% {
    clip-path: inset(35% 70% 35% 0 round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  100% {
    clip-path: inset(0% 70% 70% 0 round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
}

@keyframes threeMove {
  0% {
    visibility: visible;
    clip-path: inset(35% 70% 35% 0 round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  14.2857% {
    clip-path: inset(35% 70% 35% 0 round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  28.5714% {
    clip-path: inset(0% 70% 70% 0 round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  42.8571% {
    clip-path: inset(0% 70% 70% 0 round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  57.1428% {
    clip-path: inset(0% 35% 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  71.4285% {
    clip-path: inset(0% 35% 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  85.7142% {
    clip-path: inset(35% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  100% {
    clip-path: inset(35% 70% 35% 0 round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
}

@keyframes fourMove {
  0% {
    visibility: visible;
    clip-path: inset(35% 0% 35% 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  14.2857% {
    clip-path: inset(35% 0% 35% 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  28.5714% {
    clip-path: inset(35% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  42.8571% {
    clip-path: inset(70% 35% 0% 35% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  57.1428% {
    clip-path: inset(70% 35% 0% 35% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  71.4285% {
    clip-path: inset(70% 0 0 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  85.7142% {
    clip-path: inset(70% 0 0 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  100% {
    clip-path: inset(35% 0% 35% 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
}

@keyframes fiveMove {
  0% {
    visibility: visible;
    clip-path: inset(70% 0 0 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  14.2857% {
    clip-path: inset(70% 0 0 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  28.5714% {
    clip-path: inset(35% 0% 35% 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  42.8571% {
    clip-path: inset(35% 0% 35% 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  57.1428% {
    clip-path: inset(35% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  71.4285% {
    clip-path: inset(70% 35% 0% 35% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  85.7142% {
    clip-path: inset(70% 35% 0% 35% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  100% {
    clip-path: inset(70% 0 0 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
}

@keyframes sixMove {
  0% {
    visibility: visible;
    clip-path: inset(70% 35% 0% 35% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  14.2857% {
    clip-path: inset(70% 35% 0% 35% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  28.5714% {
    clip-path: inset(70% 0 0 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  42.8571% {
    clip-path: inset(70% 0 0 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  57.1428% {
    clip-path: inset(35% 0% 35% 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  71.4285% {
    clip-path: inset(35% 0% 35% 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  85.7142% {
    clip-path: inset(35% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  100% {
    clip-path: inset(70% 35% 0% 35% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
}

/* 사진 선택 UI 관련 스타일 */
.photo-selectable {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    cursor: pointer;
    border: 4px solid transparent;
    transition: all 0.2s ease-in-out;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
    box-sizing: border-box;
}

.photo-selectable:hover {
    transform: scale(1.03);
}

.photo-wrapper {
    position: relative;
    width: 120px;
    height: 180px;
    transition: all 0.2s ease-in-out;
}

.photo-wrapper.selected {
    transform: scale(1.05);
}

.photo-wrapper.selected .photo-selectable {
    border-color: #000000;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.8);
}

.photo-wrapper canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.selection-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #000000;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0px 2px 5px rgba(0,0,0,0.5);
    z-index: 10;
    font-family: 'Pretendard', sans-serif;
    pointer-events: none;
}

/* 규격 선택 단계 스타일 */
#step-type-select {
    background: #2a2a2a;
    color: white;
}
.type-card {
    background: #333;
    padding: 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.type-card:hover {
    transform: translateY(-10px);
    background: #444;
}
.type-card.selected {
    border-color: #ff4757;
    background: #3a2e30;
}
.type-name {
    margin-top: 20px;
    font-size: 24px;
    font-weight: bold;
}
.type-desc {
    margin-top: 10px;
    font-size: 14px;
    color: #aaa;
}




.step-title {
    text-align: center;
    color: white;
    text-shadow: 1px 1px 3px black;
    font-family: 'Pretendard', sans-serif;
}

.step-title h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.step-title p {
    font-size: 1.5rem;
    color: #ddd;
    font-weight: 500;
}

