@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&display=swap');

@font-face {
  font-family: 'KoreanKPNBR';
  src: url('../font/KoreanKPNBR.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'KoreanKPNBR', sans-serif;
}

body, html {
  height: 100%;
  width: 100%;
  background: #D1E1EB;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  padding: 0;
}

/* Navigation Links */
.nav-links {
  position: absolute;
  top: 20px;
  right: 30px;
  display: flex;
  gap: 20px;
  z-index: 10;
}

.nav-link {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 18px;
  font-weight: 400;
  transition: opacity 0.3s;
}

.nav-link:hover {
  opacity: 0.7;
}

/* Main Container */
.container {
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-width: 100vw;
}

/* Main Title */
.main-title {
  font-family: 'Playfair Display', serif;
  font-size: 96px;
  font-weight: 900;
  color: #FFE797;
  text-align: center;
  margin-top: -120px;
  margin-bottom: 60px;
  z-index: 5;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0;
}


/* Play Button */
.play-button {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 20%;
  background-color: #FFB6C1;
  color: #FF1493;
  padding: 15px 50px;
  border-radius: 15px;
  text-decoration: none;
  font-size: 24px;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 5;
  white-space: nowrap;
}

.play-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Decorative Dog Characters */
.decorative-dog {
  position: absolute;
  width: 80px;
  height: 80px;
  object-fit: contain;
  z-index: 3;
  opacity: 0.8;
  animation: float 3s ease-in-out infinite;
  max-width: 80px;
  max-height: 80px;
}

.dog-1 {
  top: 15%;
  right: 10%;
  animation-delay: 0s;
}

.dog-2 {
  top: 25%;
  right: 5%;
  animation-delay: 0.5s;
}

.dog-3 {
  bottom: 25%;
  right: 8%;
  animation-delay: 1s;
}

.dog-4 {
  bottom: 15%;
  right: 12%;
  animation-delay: 1.5s;
}

.dog-5 {
  top: 50%;
  right: 3%;
  animation-delay: 2s;
}

.dog-6 {
  bottom: 35%;
  right: 15%;
  animation-delay: 2.5s;
}

.dog-7 {
  top: 15%;
  left: 8%;
  animation-delay: 0s;
}

.dog-8 {
  top: 25%;
  left: 5%;
  animation-delay: 0.5s;
}

.dog-9 {
  bottom: 25%;
  left: 8%;
  animation-delay: 1s;
}

.dog-10 {
  bottom: 15%;
  left: 10%;
  animation-delay: 1.5s;
}

.dog-11 {
  top: 50%;
  left: 5%;
  animation-delay: 2s;
}

.dog-12 {
  bottom: 35%;
  left: 12%;
  animation-delay: 2.5s;
}

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

/* Responsive Design */
@media screen and (max-width: 768px) {
  .main-title {
    font-size: 48px;
    margin-top: -50px;
  }
  
  .nav-link {
    font-size: 16px;
  }
  
  .game-rule {
    font-size: 18px;
    left: 10%;
  }
  
  .play-button {
    font-size: 20px;
    padding: 12px 30px;
    left: 5%;
  }
  
  .dog {
    width: 80px;
    height: 80px;
    right: 5%;
  }
  
  .dog::before {
    width: 8px;
    height: 8px;
    box-shadow: 25px 0 0 #FFFFFF;
  }
  
  .dog::after {
    width: 6px;
    height: 6px;
  }
}

@media screen and (max-width: 480px) {
  .main-title {
    font-size: 36px;
  }
  
  .game-rule {
    font-size: 16px;
  }
  
  .play-button {
    font-size: 18px;
    padding: 10px 25px;
  }
  
  .dog {
    width: 60px;
    height: 60px;
  }
}

/* Fade animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

.fade-out {
  animation: fadeOut 0.5s ease-out;
}
