/* ===== RESET ===== */
@font-face {
  font-family: 'Postamt';
  src: url('/Postamt.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Classica';
  src: url('/Classica.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Classica', sans-serif;
  color: #35261a;
  background: black;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: #e5c99d;
}

#podstrona {
  text-decoration: none;
  color: rgb(224, 175, 112);
  padding: 2em clamp(0rem, 20vw - 10rem, 25em);
  text-align: center;
}

#podstrona h1 {
  text-align: center;
  font-size: xx-large;
  color: rgb(224, 175, 112);
  margin-top: 2em;
}

.srogiLink {
  font-family: 'Classica', sans-serif;
  position: relative;
  text-decoration: none;
  color: #35261a;
  transition: color 180ms ease;
    font-size: x-large;
    text-align: right;
    margin: 20px;
    text-align: center;
}

.srogiLink::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 10px;

  background:
    linear-gradient(currentColor, currentColor)
      center 0 / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor)
      center 4px / 65% 2px no-repeat;

  opacity: 0.65;
  transition: opacity 180ms ease;
}

.srogiLink::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -23px;
  transform: translateX(-50%);

  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid currentColor;

  opacity: 0.65;
  transition:
    transform 250ms ease,
    opacity 180ms ease;
}

.srogiLink:hover {
  color: #6d5b4d;
}

.srogiLink:hover::after,
.srogiLink:hover::before {
  opacity: 0.75;
}

.srogiLink:hover::before {
  transform: translate(-50%, 4px);
}

#stars {
  position: fixed;
  inset: 0;
  z-index: -1;
}

.bright-stars {
  position: fixed;
  inset: 0;
  z-index: -1;        /* above nebula/galaxy, below content */
  pointer-events: none;
}

.bright-star {
  position: absolute;
  width: var(--s, 2px);
  height: var(--s, 2px);
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(255,255,255,0.9) 40%, transparent 70%);
  /* glow */
  box-shadow:
    0 0 calc(var(--glow, 60px) * 0.5) rgba(255,255,255,0.8),
    0 0 var(--glow, 60px) rgba(255,255,255,0.35);
}

/* optional very subtle twinkle (kept gentle) */
@keyframes twinkle {
  0%,100% { opacity: 0.9; transform: scale(1); }
  50%     { opacity: 1;   transform: scale(1.08); }
}

.bright-star {
  animation: twinkle 6s ease-in-out infinite;
}

.nebula {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 30%, rgba(120, 80, 255, 0.18), transparent 22%),
    radial-gradient(circle at 75% 25%, rgba(255, 80, 160, 0.12), transparent 18%),
    radial-gradient(circle at 60% 70%, rgba(80, 180, 255, 0.14), transparent 24%),
    radial-gradient(circle at 35% 80%, rgba(180, 90, 255, 0.10), transparent 20%);
  filter: blur(30px);
}

.galaxy {
  position: fixed;
  top: 10%;
  right: 8%;
  width: 420px;
  height: 220px;
  z-index: -2;
  pointer-events: none;
  opacity: 0.22;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center,
      rgba(255,255,255,0.45) 0%,
      rgba(180,140,255,0.22) 20%,
      rgba(100,120,255,0.10) 45%,
      transparent 75%);
  transform: rotate(-25deg);
  filter: blur(18px);
}
/* ===== HERO ===== */
.hero {
  height: 100vh;
  display: grid;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  font-size: 4rem;
  letter-spacing: 2px;
  text-align: center;
  font-family: 'Postamt', sans-serif;
  color: #e0af70;
  margin-bottom: 20vh;
}
.hero img {
  margin-top: 20vh;
}

#logo {
  text-align:center;
}

/* ===== SCROLL SPACE ===== */
.spacer {
  height: 20vh;
}

/* ===== PLANET SECTION ===== */
.planet-section {
  height: 320vh;
  position: relative;
}

.scene {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* planet is now absolutely positioned inside the sticky scene */
.planet-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translate(-50%, -50%) scale(0.6);
  will-change: transform;
}

/* right side container */
.info-panel {
  position: absolute;
  top: 50%;
  right: 8%;
  width: min(38vw, 600px);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: #e0af70;
  font-size: xx-large;
}

/* both boxes start hidden */
.info-box {
  padding: 24px;
  background: transparent;
  opacity: 0;
  transform: none;
  will-change: opacity, transform;
}

.info-box h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
  font-family: 'Postamt', sans-serif;
}

.info-box p {
  line-height: 1.5;
}

/* ===== PLANET ===== */
.planet {
  width: 300px;
  height: 300px;
  border-radius: 50%;

  /* IMPORTANT: use a seamless horizontal texture */
  background: url('/duna.jpg') repeat-x;
  background-size: auto 100%;

  animation: rotatePlanet 120s linear infinite;

  /* lighting */
  box-shadow:
    inset -60px 0 120px rgba(0,0,0,0.8),
    inset 30px 0 60px rgba(255,255,255,0.1),
    0 0 80px rgba(100,150,255,0.4);

  transform: rotate(-10deg);
}

@keyframes rotatePlanet {
  from { background-position: 0 0; }
  to   { background-position: -1200px 0; }
}

/* ===== CONTENT AFTER ===== */
.downo {
/*  height: 80vh;*/
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f4e8d2;
  padding: 2em 0;
  border-top:1px solid #54381e;
  border-bottom:1px solid #54381e;
  /*background-image: url('duna.avif');
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center;*/
}

.downoWrap {
  padding: 2em;
  background-color: #f4e8d2;
}

.lewy {
  width: 50%;
  display: block;
  align-items: center;
  justify-content: center;
}

.prawy {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.autorzi {
  padding: 2em 0;
  display: flex;
  justify-content: center;
  background-color: #e5c99d;
  /*background-image: url('duna.avif');
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center;*/
}

.lewy-autorzi {
  width: 50%;
  display: block;
  align-items: left;
  justify-content: center;
}

.prawy-autorzi {
  width: 50%;
  align-items: left;
  justify-content: center;
}

.lewy-autorzi img {
  max-width: 100%;
}

.lewy-autorzi h2 {
 width: 90%;
 margin: auto;
  font-family: 'Postamt', sans-serif;
}

.prawy-autorzi img {
 max-width: 100%;
}

.prawy-autorzi h2 {
 width: 90%;
 margin: auto;
  font-family: 'Postamt', sans-serif;
}

.content {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lewy img {
 width: 90%;
}

.lewy h2 {
 width: 90%;
 margin: auto;
  font-family: 'Postamt', sans-serif;
}

.prawy img {
 max-width: 90%;
 height: 70vh;
 object-fit: contain;
}
.abzac {
  width: 80%;
  margin: 5vh auto;
  line-height: 1.5;
  font-size: large;
}

.newsletter {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e5c99d;
  padding: 3em;
}

.newsSub {
    background-color:#7d5d3b;
    border-radius:3px;
    border:1px solid #54381e;
    display:inline-block;
    cursor:pointer;
    color:#ffffff;
    font-size:13px;
    text-decoration:none;
    padding: 5px;
    margin: 5px auto 0 auto;
    width: 50%;
    text-align: center;
    font-size: large;
}
.newsSub:hover {
    background-color:#634b30;
}
.newsSub:active {
    position:relative;
    top:1px;
}
form {
    line-height: 2;
    text-align: center;
}
.input {
    font-size: 1.4em;
    font-weight: 600;
    border: solid 1px rgba(244, 207, 139, 0.3);
    padding: 5px;
    margin: 5px auto 0 auto;
    width: 50%;
    text-align: center;
}
.pisanie {
    background-color: #24201d;
    border: 0;
    width: 100%;
    height: 100%;
    color: #fff;
    padding: 0.5em;
    font-family: 'Classica', sans-serif;
    font-size: large;

}
.zaznacz {
    margin-right: 5px;
}


#news-list {
    display: flex;
    gap: 30px;
    padding: 30px;
}

#news-list-full {
    gap: 30px;
}

.obrozek {
  width: 60%
}
.tytul {
  text-align: center;
  width: 40%;
  padding-top: 4em;
  font-size: x-large;
}
.news-item-full {
  display: flex;
  border-top: 1px solid rgb(244, 232, 210);
  padding: 1em 0 0.6em 0;
}
.news-item-full img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

#news-list > a {
    flex: 1;
    width: 33%;
    text-align: center;
    font-family: 'Classica', sans-serif;
    color: #e0af70;
    text-decoration: none;
}

.news-item img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}


#more-news {
    font-family: 'Classica', sans-serif;
    color: #e0af70;
    text-decoration: none;
    text-align: center;
    margin: 35px;
}
#more-news a {
    font-family: 'Classica', sans-serif;
    color: #e0af70;
    font-size: larger;
    text-decoration: none;
    text-align: right;
    margin: 20px;
}
#news-content {
    width: 80%;
    margin: auto;
}

li {
    margin-left: 30px;
}

#events-list {
    gap: 30px;
    padding: 30px 0 30px 0;
}

#events-list > a {
    flex: 1;
    width: 33%;
    text-align: center;
    font-family: 'Classica', sans-serif;
    text-decoration: none;
}

#more-events {
    font-family: 'Classica', sans-serif;
    text-decoration: none;
    text-align: center;
    margin: 20px;
}
/*#more-events a {
    font-family: 'Classica', sans-serif;
    font-size: x-large;
    text-decoration: none;
    text-align: right;
    margin: 20px;
}*/
.event-item {
    width: 100%;
    margin: 1em 0;
    font-size: x-large;
}
#wydarzynia {
    background: #e5c99d;
    padding: 2em;
}

#wydarzyniaWrap {
  width: 66%;
}

#wydarzyniaOwijka {
  display: flex;
  padding: 2em clamp(0rem, 20vw - 10rem, 17em);
  border-top: 1px solid #54381e;
  border-bottom: 1px solid #54381e;
}


.stopkaWrap {
  padding: 2em;
  background: #c96f2a;
  background-image: url("/images/pustynia.avif");
  background-position: bottom;
}

.stopka {
  border-top: 1px solid #533312;
  display: flex;
}

/*.stopkaLewy {
  padding: 2em;
  width: 66%;
  border-right: 1px solid #533312;
  color: #e5c99d;
}*/
.stopkaPrawy {
  position: relative;
  padding: 2em;
  width: 100%;
  color: #e5c99d;
  text-align: center;
}

#copy {
/*  position:absolute;
  bottom:0;*/
}

.social-links {
  display: flex;
  gap: 16px;
  align-items: center;
  width: fit-content;
  margin: 20px auto 10px auto
/*  position:absolute;
  bottom:2em;*/
}

.social-links a {
  display: flex;
  width: 24px;
  height: 24px;
  transition: opacity 0.2s ease;
}

/*.social-links img {
  width: 100%;
  height: 100%;
}*/

.social-links a:hover {
  opacity: 0.7;
}

.frame {
  width: 100%;
  height: 400px;
}

.fragmynt {
padding: 2em clamp(0rem, 20vw - 10rem, 17em);

  color: #e5c99d;
  display: flex;
}
@media (max-width: 980px) {
  /* Zwiększa czcionkę każdego elementu o 20% w stosunku do jego bazy */
  * {
    font-size: 1.2rem; 
  }
  .downo, .fragmynt {
    flex-direction: column-reverse;
    padding: 2em;
}
  #wydarzyniaOwijka, #news-list {
    display: block;
}
  #wydarzyniaWrap {
    width: 100%;
}
  .lewy, .prawy {
    width: 100%;
    padding: 2em 0;
}
  #events-list {
    text-align: center;
}
  #news-list > a {
    padding: 2em;
}
}
