
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Noto Sans KR', Arial, sans-serif;
  color: white;
  background: #000;
  overflow-x: hidden;
}

.background-container {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.3);
  overflow: hidden;
  max-width: 600px;
}

.background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  border-radius: 15px;
}

.content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: none;
}

.card {
  background: linear-gradient(135deg,
  rgba(0, 0, 0, 0.2),
  rgba(0, 0, 0, 0.15)
  );
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  padding: 25px;
  width: 100%;
  max-width: 500px;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  background: linear-gradient(135deg,
  rgba(0, 0, 0, 0.25),
  rgba(0, 0, 0, 0.2)
  );
}

.card h2 {
  font-size: 1.6em;
  margin-bottom: 15px;
  text-align: center;
  color: #fff;
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

.card p {
  font-size: 1em;
  line-height: 1.6;
  margin: 12px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
  font-weight: 600;
}

.middle-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 500px;
  margin: 20px auto;
  padding: 0 20px;
  transform: translateX(-2px);
}

.middle-buttons a {
  flex: 1;
  max-width: 350px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff3366, #ff5555);
  color: white;
  text-decoration: none;
  border-radius: 999px;
  font-size: 1.5em;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 20px rgba(255, 51, 102, 0.3);
}

.middle-buttons a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 51, 102, 0.4);
}

.button-icon {
  width: 40px;
  height: 40px;
  margin-right: 5px;
}

.code-text {
  background: linear-gradient(135deg,
  rgba(0, 0, 0, 0.2),
  rgba(0, 0, 0, 0.15)
  );
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  width: 100%;
  max-width: 450px;
  font-family: 'Noto Sans KR', Arial, sans-serif;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  font-size: 1.1em;
  font-weight: 600;
  margin-top: -10px;
  margin-bottom: 10px;
}

.code-text:hover {
  background: linear-gradient(135deg,
  rgba(0, 0, 0, 0.25),
  rgba(0, 0, 0, 0.2)
  );
}

.code-text span {
  display: inline-block;
  font-size: 2.2em;
  font-weight: 900;
  color: #ff3366;
  margin-left: 10px;
  text-shadow: 2px 2px 4px rgba(255, 51, 102, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.code-text span:hover {
  transform: scale(1.05);
  color: #ff4477;
}

.card h2, .card p {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

.code-text, .code-text span {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

@media (max-width: 768px) {
  .content {
      margin: 50px auto 0;
      padding: 15px;
  }

  .card {
      padding: 20px;
  }

  .card h2 {
      font-size: 1.4em;
  }

  .card p {
      font-size: 0.95em;
  }

  .middle-buttons {
      flex-direction: row; 
      padding: 0 0px;
  }

  .middle-buttons a {
      height: 70px;
      font-size: 1.5em;
      padding: 0 0px;
  }

  .background-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
  }

  .code-text {
      margin-top: -5px;
  }

  .card:last-of-type {
      margin-top: -10px;
  }
}

@media (max-width: 480px) {
  .content {
      margin: 20px auto 0;
  }

  .middle-buttons {
      gap: 15px;
  }

  .middle-buttons a {
      height: 80px;
      padding: 0 15px;
  }

  .button-icon {
      width: 40px;
      height: 40px;
      margin-right: 5px;
  }

  .code-text {
      margin-top: 0;
  }

  .card:last-of-type {
      margin-top: -15px;
  }

  .background-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
  }
}

@media (max-width: 360px) {
  .content {
      margin: 10px auto 0;
      padding: 10px;
  }
}

.card h2.primary-title {
  background: linear-gradient(45deg, #00bcd4, #03a9f4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2.2em;
  font-weight: 900;
  letter-spacing: 1.5px;
  margin-bottom: 25px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.card:hover h2.primary-title {
  background: linear-gradient(45deg, #03a9f4, #00bcd4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.code-number {
  display: inline-block;
  font-size: 2.2em;
  font-weight: 900;
  color: #ff3366;
  margin-left: 10px;
  text-shadow: 2px 2px 4px rgba(255, 51, 102, 0.3);
}

.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.card:first-of-type p {
  font-size: 1.2em;
  line-height: 1.8;
  margin: 15px 0;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
  .card h2.primary-title {
      font-size: 2em;
  }

  .card:first-of-type p {
      font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .card h2.primary-title {
      font-size: 1.8em;
  }

  .card:first-of-type p {
      font-size: 1em;
  }
}