html,
body {
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
  margin: 0;
  padding: 0;
  touch-action: none; /* 모바일 터치 스크롤 방지 */
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #123458;
  font-family: "Noto Sans KR", sans-serif;
  overflow-x: hidden;
  overflow: hidden;
}

  .card {
    width: 1100px;
    height: 600px;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    overflow: hidden;
    padding: 40px;
    box-sizing: border-box;
  }

  .text-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .subtitle {
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(to right, #4f79a7, #799fd3);
    display: inline-block;
    padding: 5px 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: white;
  }

  .title {
    font-size: 35px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #222;
  }

  .description {
    font-size: 20px;
    color: #444;
    line-height: 1.6;
  }

  .image-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
  }

  .image-section::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #4f79a7 0%, #123458 100%);
    border-radius: 50%;
    z-index: 0;
  }

  .image-section img {
    position: relative;
    z-index: 1;
  }
  .image-section img {
    width: 90%;
    max-width: 350px;
    height: auto;
    border-radius: 20px; /* 모서리 둥글게 */
    transition: transform 0.3s ease;
  }

  .image-section img:hover {
    transform: scale(1.05); /* 호버 시 확대 */
  }

  @keyframes float {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px);
    }
  }

  .image-section img {
    animation: float 3s ease-in-out infinite;
  }

  .start-section {
    margin-top: 40px;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center; /* 세로 정렬을 중앙으로 맞춤 */
    flex-wrap: nowrap; /* 한 줄로 배치 */
    flex-direction: row; /* 수평 정렬 */
  }

  .name-input,
  .start-button {
    height: 50px; /* 버튼과 입력란의 높이를 맞춤 */
    padding: 12px 20px;
    font-size: 15px;
    border-radius: 12px;
    box-sizing: border-box;
  }

  .name-input {
    border: 2px solid #4f79a7;
    outline: none;
    width: 250px;
  }

  .name-input:focus {
    border-color: #799fd3;
  }

  .start-button {
    background: linear-gradient(to right, #4f79a7, #799fd3);
    color: white;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border: none; /* 테두리 제거 */
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    padding: 14px 28px;
  }

  .start-button:hover {
    transform: scale(1.05); /* 확대 효과만 적용 */
  }

  /* 팝업 */
  .popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    display: none;
  }

  .custom-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #4f79a7;
    padding: 24px 32px;
    border-radius: 16px;
    color: white;
    font-size: 20px;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: none;
    animation: fadeInUp 0.3s ease;
  }

  @keyframes fadeInUp {
    0% {
      transform: translate(-50%, -40%);
      opacity: 0;
    }
    100% {
      transform: translate(-50%, -50%);
      opacity: 1;
    }
  }


@media (max-width: 1080px) {
  .card {
    width: 1028px;
    height: 600px;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    overflow: hidden;
    padding: 40px;
    box-sizing: border-box;
  }

  .title {
    font-size: 32px;
  }

  .description {
    font-size: 18px;
  }
}