/* === Fullscreen Swift-Inspired Styling with Adaptations === */
html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Comic Sans MS', cursive, 'Courier New', monospace;
  color: #fff;
  cursor: url('./src/cursor-32x32.webp'), auto;
  box-sizing: border-box;
  overflow-x: hidden;
}

#space, .stars {
  overflow: visible; /* allow overflow */
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1; /* behind everything */
  background-color: black;
}

.stars {
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #eee, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 40px 70px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 50px 160px, #ddd, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 130px 80px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 160px 120px, #ddd, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: zoom 5s infinite;
  opacity: 0;
}

.stars:nth-child(1) {
  background-position: 50% 50%;
  animation-delay: 0s;
}
.stars:nth-child(2) {
  background-position: 20% 60%;
  animation-delay: 1s;
}
.stars:nth-child(3) {
  background-position: -20% -30%;
  animation-delay: 2s;
}
.stars:nth-child(4) {
  background-position: 40% -80%;
  animation-delay: 3s;
}
.stars:nth-child(5) {
  background-position: -20% 30%;
  animation-delay: 4s;
}

@keyframes zoom {
  0% {
    opacity: 0;
    transform: scale(0.5);
    animation-timing-function: ease-in;
  } 
  85% {
    opacity: 1;
    transform: scale(2.8);
    animation-timing-function: linear;
  }
  100% {
    opacity: 0;
    transform: scale(3.5);
  }
}

/* Container to hold content full width and height */
.swift-container {
  width: 100vw;
  min-height: 100vh;
  padding: 40px 20px 60px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* Header styles */
.site-header {
  position: relative;
  width: 100vw;
  height: 80px;
  left: 50%;
  margin-left: -50vw;
  background: url('/src/astolfo_minimalist_header_by_justthemir_de197d5-fullview.jpg') center/cover no-repeat;
  border-bottom: 3px dotted #ff6699;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 15vw;
  max-height: 387px;
}

.header-content h1 {
  color: #ff0066;
  font-size: 5vw;
  text-shadow: 2px 2px 0 #ffcc00;
  margin: 40px 0 0 0;
  font-family: 'Comic Sans MS', cursive, 'Courier New', monospace;
}

nav {
  position: absolute;
  bottom: 5px;
  display: flex;
  gap: 12px;
}

nav a {
  background: #ffe6fa url('https://pixelglade.net/misc/img/xstars.gif');
  border: 2px solid #ff66cc;
  border-radius: 6px;
  color: #ff0066;
  font-family: 'Courier New', Courier, monospace;
  font-size: 18px;
  padding: 6px 18px;
  text-decoration: none;
  box-shadow: 2px 2px 0 #ffccff;
  transition: background 0.2s, box-shadow 0.2s;
}

nav a:hover {
  background: #ffccff;
  box-shadow: 0 0 8px #ff66cc;
}

/* Marquee styles */
.marquee {
  background-color: #ff9966;
  color: #fff;
  padding: 10px;
  font-weight: bold;
  margin: 20px 0 40px 0;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  border-radius: 8px;
  box-shadow: 0 0 12px #ff66cc;
}

.marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 60s linear infinite;
}

@keyframes marquee {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-100%, 0); }
}

/* Cat rows */
.cat-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0;
  width: 100%;
  max-width: 960px;
}

.cat {
  width: 100px;
  height: 100px;
  border: 3px solid #ff00ff;
  padding: 5px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 2px 2px 8px #ff66cc;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.cat:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 14px #ff66cc;
}

/* Paragraph styles */
p {
  max-width: 960px;
  font-size: 18px;
  line-height: 1.5;
  color: #fff;
  margin: 0 auto 20px auto;
  text-align: center;
}

/* Blink animation for hearts */
.blink {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Signature */
.signature {
  font-family: 'Brush Script MT', cursive;
  font-size: 28px;
  color: #ff0066;
  text-align: right;
  max-width: 960px;
  margin: 40px auto 0 auto;
  user-select: none;
}

/* Elfsight visitor counter container */
.elfsight-app-358cf307-84ca-457b-927f-4147163626f5 {
  max-width: 960px;
  margin: 40px auto 20px auto;
  box-shadow: 0 0 20px #ff00ff;
  border: 2px dotted #ff66cc;
  border-radius: 10px;
  background: #111;
}

/* Responsive adjustments */
@media (max-width: 700px) {
  .cat {
    width: 70px;
    height: 70px;
  }
  p {
    font-size: 16px;
    margin: 0 10px 15px 10px;
  }
  .signature {
    font-size: 22px;
    margin: 20px 10px 0 10px;
  }
  nav {
    bottom: 10px;
    gap: 8px;
  }
  nav a {
    font-size: 14px;
    padding: 4px 10px;
  }
}
