/* --- Base Reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Body --- */
body {
  background: #000;
  font-family: Arial, sans-serif;
  color: #000;
}

/* --- Header --- */
.site-header {
  text-align: center;
  margin-top: 16px;
  margin-bottom: 16px;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #ffffff;
}

/* --- Animated .FUN --- */
.dotfun {
  position: relative;
  display: inline-block;
  color: #4cc9ff;
  line-height: 1;
}

.dotfun::after {
  content: ".FUN";
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;

  background: linear-gradient(
    0deg,
    #001f3f 0%,
    #003f7f 25%,
    #0077ff 50%,
    #00cfff 75%,
    #a0f0ff 100%
  );

  background-size: 100% 200%;
  background-position: 0% 100%;

  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  filter: blur(4px);
  opacity: 0.9;

  animation: blueFlame 2.5s ease-in-out infinite alternate;
}

@keyframes blueFlame {
  0% {
    background-position: 0% 100%;
    transform: translateY(0px) scaleY(1);
  }
  100% {
    background-position: 0% 40%;
    transform: translateY(-4px) scaleY(1.08);
  }
}

/* --- Content Area --- */
.content {
  display: flex;
  justify-content: center;
  padding: 0 16px 32px 16px;
}

.content-inner {
  background: #2b2b2b;
  width: 100%;
  max-width: 900px;
  padding: 32px;
  border-radius: 4px;
}

/* --- Corner Logo --- */
.corner-logo {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1000;
}

.corner-logo img {
  width: min(220px, 35vw);
  height: auto;
}

/* --- Gallery --- */
.gallery {
  margin-top: 16px;
}

.gallery-title {
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 12px;
  border-bottom: 1px solid #333;
  padding-bottom: 6px;
}

.gallery-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 14px;
  color: #ccc;
}

.image-viewport {
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 16px;
}

.image-viewport img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.gallery-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.gallery-controls button {
  padding: 8px 16px;
  background: #111;
  color: #fff;
  border: 1px solid #444;
  cursor: pointer;
}

.gallery-controls button:hover {
  background: #222;
}

/* --- Ad Row --- */
.ad-row {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap; /* allows stacking on small screens */
}

/* Individual ad containers */
.ad-slot {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Prevent upscaling, allow downscaling */
.ad-slot img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
}


/* --- Responsive --- */
@media (max-width: 768px) {
  .logo {
    font-size: 22px;
  }

  .content-inner {
    padding: 20px;
  }

  .image-viewport {
    height: 60vw;
  }
}
