@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Poppins:wght@400;600&display=swap');

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: #7a6f7b;
  position: relative;
  overflow-x: hidden;
  z-index: 0;
}

/* Background animation */
.animated-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: radial-gradient(circle at 20% 20%, #ffeef1 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, #e0f7f1 0%, transparent 50%);
  background-size: 400% 400%;
  animation: bgmove 15s ease infinite;
  z-index: -1;
}

@keyframes bgmove {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

.site-header {
  text-align: center;
  padding: 1em 0 0.5em 0;
  position: relative;
  z-index: 1;
}

.header-image-container {
  width: 100%;
  max-width: 100%;
  margin: 2em auto;
  padding: 0 1em;
  box-sizing: border-box;
}

.header-img-rounded {
  width: 100%;
  height: auto;
  max-width: 1200px;
  border-radius: 20px 20px 36px 36px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  opacity: 0.96;
  transition: opacity 0.5s ease;
  display: block;
  margin: 0 auto;
}

/* Hover */
.header-img-rounded:hover {
  opacity: 1;
}

/* Small screens */
@media (max-width: 600px) {
  .header-img-rounded {
    border-radius: 16px;
  }
}

.nav-wrapper {
  background-color: rgba(251, 232, 237, 0.92);
  margin: 0.1em auto 0.1em auto;
  padding: 1em;
  border-radius: 2em;
  max-width: 1160px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.main-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 5em;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.5em;
  color: #c792b5;
  transition: all 0.3s ease;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #c792b5;
  transition: width 0.3s ease;
}

.main-nav a:hover {
  color: #86c5a3;
}

.main-nav a:hover::after {
  width: 100%;
}

@keyframes fadeInUp {
  0% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.content {
  max-width: 1140px;
  margin: 2em auto;
  padding: 2em;
  background: linear-gradient(
    to top right,
    #f9e4ea 0%,   
    #eef6f4 35%,
    #fcf6f9 100% 
  );
  border-radius: 2em;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(245, 230, 230, 0.08);
  position: relative;
  z-index: 1;
}


h1 {
  font-family: 'Great Vibes', cursive;
  font-size: 3em;
  color: #c26a95;
  text-align: center;
  text-shadow: 0 1px 2px #fff, 0 0 3px #c26a95;
  margin-bottom: 0.4em;
  animation: fadeInPop 1.2s ease;
}

h2, h3 {
  font-family: 'Poppins', sans-serif;
  text-align: center;
  color: #86c5a3;
  margin: 0.8em 0 0.4em;
  font-size: 1.7em;
  position: relative;
  animation: fadeInUp 1s ease;
}

h2::before, h2::after, h3::before, h3::after {
  content: "❦";
  color: #cbe2d8;
  margin: 0 0.5em;
  font-size: 0.9em;
  opacity: 0.6;
}

@keyframes fadeInPop {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

a {
  color: #c792b5;
  text-decoration: underline dotted;
  transition: all 0.3s ease;
}

a:hover {
  color: #86c5a3;
  text-decoration: underline solid;
}

b {
  color: #c792b5;
}

i, em {
  color: #86c5a3;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  row-gap: 36px;
  column-gap: 24px;
  justify-content: center;
  align-items: start;
  margin: 3em auto;
  max-width: 1100px;
  padding: 0 1em;
}

@media (max-width: 960px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Ships <3 */
.couple-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  border: 1px solid #f3d6e0;
  background-color: #fff;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 250px;
  height: 250px;
}

.couple-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.couple-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 0.6;
  border-radius: 16px;
}

.couple-card:hover img {
  transform: scale(1.05);
  opacity: 1;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-weight: 600;
  font-size: 0.95em;
  color: #555;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 16px;
  padding: 0 10px;
}

.overlay span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  line-height: 1.4;
}

.overlay small {
  font-size: 0.75em;
  color: #888;
  margin-top: 0.3em;
}

.couple-card:hover .overlay {
  opacity: 1;
}


.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.modal.open {
  opacity: 1;
  pointer-events: all;
}


.modal-content {
  background: #fff;
  padding: 2em;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  animation: fadeInUp 0.4s ease;

  /* scrollen */
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-thumb {
  background-color: rgba(200, 144, 176, 0.4);
  border-radius: 6px;
}


/* Modal: big pic */
.modal-content img {
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 1em;
}

.modal-content h3 {
  font-family: 'Great Vibes', cursive;
  color: #c792b5;
  margin-bottom: 0.3em;
  font-size: 2em;
  text-shadow: 0 1px 1px #fff;
}

.modal-content p {
  margin: 0.3em 0;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  color: #aaa;
  cursor: pointer;
}

.site-footer {
  text-align: center;
  padding: 2em;
  background: #f0f5f2;
  color: #888;
  font-size: 0.9em;
  position: relative;
  z-index: 1;
}

.ship-status {
  margin-top: 4px;
  padding: 2px 8px;
  font-size: 0.7em;
  border-radius: 8px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

/* Canon */
.ship-status.canon {
  background-color: #d5f4e6;
  color: #39936a;
}

/* Fanon */
.ship-status.fanon {
  background-color: #ffe0eb;
  color: #c85c7b;
}

/* Semi-canon */
.ship-status.semi-canon {
  background-color: #fff5cc;
  color: #b38f00;
}

/* Pattern roses */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: url('/ships/images/pattern.png') repeat;
  background-size: 300px;
  opacity: 0.15;
  z-index: -2;
  pointer-events: none;
}

.image-float {
  display: inline-block;
  opacity: 0.6;
  transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.image-float:hover {
  opacity: 1;
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* tooltip */
[data-tooltip] {
  position: relative;
  cursor: help;
  text-decoration: underline dotted #c26a95;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  color: #bb7e9e; 
  transition: color 0.3s ease;
}

[data-tooltip]:hover {
  color: #86c5a3; 
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  background-color: #ffeef1;
  color: #c26a95;
  font-size: 0.85em;
  padding: 6px 10px;
  border-radius: 12px;
  white-space: nowrap;
  z-index: 10000;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  max-width: 90vw;
  text-align: center;
}

[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(6px) scale(1);
}

@media (max-width: 500px) {
  [data-tooltip]::after {
    font-size: 0.8em;
    padding: 5px 8px;
    white-space: normal;
  }
}

.fancy-aside {
  background: linear-gradient(135deg, #e9f7f2, #fff0f5);
  border-left: 6px solid #c792b5;
  border-radius: 18px;
  padding: 1.5em;
  margin: 2em auto;
  max-width: 800px;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  position: relative;
}

.fancy-aside::before {
  content: "♡";
  position: absolute;
  top: -15px;
  left: 20px;
  font-size: 2em;
  color: #c792b5;
  animation: popHeart 2s infinite ease-in-out;
}

.aside-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.5em;
  margin-top: 0;
  color: #86c5a3;
  border-bottom: 1px dashed #c792b5;
  padding-bottom: 0.3em;
  margin-bottom: 0.8em;
}

.aside-text {
  color: #6c5f6e;
  font-size: 1em;
  line-height: 1.6;
}

@keyframes popHeart {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}

.back-to-top {
  position: fixed;
  bottom: 2em;
  right: 2em;
  background-color: #f8e6ec;
  color: #c26a95;
  font-size: 1.8em;
  padding: 0.5em 0.7em;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background-color: #f3dce4;
  transform: scale(1.1);
}