/* =========================
   GOOGLE FONTS
========================= */
@import url("https://fonts.googleapis.com/css2?family=Gowun+Batang:wght@400;700&family=Dancing+Script:wght@400;600;700&display=swap");

/* =========================
   ROOT VARIABLES
========================= */
:root {
  --primary: #678fd3;
  --dark: #000f2a;
  --white: #ffffff;
}

/* =========================
   RESET & GLOBAL
========================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Gowun Batang", serif;
  background-color: var(--dark);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
}

section {
  width: 100vw;
  height: 100vh;
  background: url("../images/bg1.gif") center / cover no-repeat;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  transition: all 0.8s ease-in-out;
}

/* =========================
   IMAGE
========================= */
.pengantin {
  width: 260px;
  height: 260px;
  object-fit: cover;
  margin-bottom: 16px;
  padding: 4px;
  border: 4px solid var(--primary);
  border-radius: 40px 0;
}

/* =========================
   COVER
========================= */
.cover {
  width: 100%;
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: all 0.8s ease-in-out;
}

.cover p {
  font-size: 20px;
  color: var(--white);
}

.cover h1 {
  font-family: "Dancing Script", cursive;
  font-size: 40px;
  font-weight: 500;
  color: var(--primary);
  margin: 18px 0;
}

.cover div {
  font-size: 16px;
  color: var(--white);
  margin-bottom: 22px;
}

/* =========================
   BUTTON
========================= */
.open {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), #4a6fb3);
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.open:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(103, 143, 211, 0.5);
}

/* =========================
   ANIMATION
========================= */
.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* =========================
   RESPONSIVE
========================= */
@media (min-width: 768px) {
  section {
    width: 360px;
    border-radius: 14px;
  }

  .cover p {
    font-size: 18px;
  }

  .cover h1 {
    font-size: 46px;
  }

  .cover div {
    font-size: 15px;
  }

  .open {
    font-size: 15px;
    padding: 10px 24px;
  }

  .slide-out {
    transform: translateX(380px);
  }
}
