MediaWiki:Common.css: Różnice pomiędzy wersjami

Z Endore
Przejdź do nawigacji Przejdź do wyszukiwania
Linia 705: Linia 705:
}
}


/* sticky kontener */
/* ===== sticky kontener ===== */
.toggle-close {
.toggle-close {
   position: sticky;
   position: sticky;
   bottom: 12px;
   bottom: 12px;
  margin-top: 2em;
   text-align: center;
   text-align: center;
   z-index: 10;
   z-index: 10;
}
}


/* przycisk */
/* ===== link generowany przez MediaWiki ===== */
.toggle-close a {
.toggle-close a {
  position: relative;              /* KLUCZ */
   display: inline-block;
   display: inline-block;
   padding: 20px 40px;
   padding: 20px 40px;
Linia 724: Linia 726:
   text-transform: uppercase;
   text-transform: uppercase;
   text-decoration: none;
   text-decoration: none;
   overflow: hidden;
   overflow: hidden;               /* przycina animacje */
   box-shadow: 0 20px 50px rgba(0,0,0,.5);
   box-shadow: 0 20px 50px rgba(0,0,0,.5);
  position: relative;
}
}


/* ===== rozjaśnienie hover ===== */
.toggle-close a::before {
.toggle-close a::before {
   content: '';
   content: '';
Linia 735: Linia 737:
   background-color: #8592ad;
   background-color: #8592ad;
   opacity: 0;
   opacity: 0;
   transition: .2s opacity ease-in-out;
   transition: opacity .2s ease-in-out;
}}
}


.toggle-close a:hover::before {
.toggle-close a:hover::before {
Linia 742: Linia 744:
}
}


/* ===== animowane obramowanie ===== */
.toggle-close span {
.toggle-close span {
  position: absolute;
   pointer-events: none;
   pointer-events: none;
  z-index: 2;
}
}


/* górna linia */
.toggle-close span:nth-child(1) {
.toggle-close span:nth-child(1) {
   top: 0px;
   top: 0;
   left: 0px;
   left: 0;
   width: 100%;
   width: 100%;
   height: 2px;
   height: 2px;
  background: -webkit-gradient(linear, right top, left top, from(rgba(43, 8, 8, 0)), to(#d92626));
   background: linear-gradient(to left, rgba(43,8,8,0), #d92626);
   background: linear-gradient(to left, rgba(43, 8, 8, 0), #d92626);
   animation: animateTop 2s linear infinite;
   -webkit-animation: 2s animateTop linear infinite;
          animation: 2s animateTop linear infinite;
}
 
@keyframes animateTop {
  0% {
    -webkit-transform: translateX(100%);
            transform: translateX(100%);
  }
  100% {
    -webkit-transform: translateX(-100%);
            transform: translateX(-100%);
  }
}
}


/* prawa linia */
.toggle-close span:nth-child(2) {
.toggle-close span:nth-child(2) {
   top: 0px;
   top: 0;
   right: 0px;
   right: 0;
  width: 2px;
   height: 100%;
   height: 100%;
  width: 2px;
   background: linear-gradient(to top, rgba(43,8,8,0), #d92626);
  background: -webkit-gradient(linear, left bottom, left top, from(rgba(43, 8, 8, 0)), to(#d92626));
   animation: animateRight 2s linear -1s infinite;
   background: linear-gradient(to top, rgba(43, 8, 8, 0), #d92626);
   -webkit-animation: 2s animateRight linear -1s infinite;
          animation: 2s animateRight linear -1s infinite;
}
 
@keyframes animateRight {
  0% {
    -webkit-transform: translateY(100%);
            transform: translateY(100%);
  }
  100% {
    -webkit-transform: translateY(-100%);
            transform: translateY(-100%);
  }
}
}


/* dolna linia */
.toggle-close span:nth-child(3) {
.toggle-close span:nth-child(3) {
   bottom: 0px;
   bottom: 0;
   left: 0px;
   left: 0;
   width: 100%;
   width: 100%;
   height: 2px;
   height: 2px;
   background: -webkit-gradient(linear, left top, right top, from(rgba(43, 8, 8, 0)), to(#d92626));
   background: linear-gradient(to right, rgba(43,8,8,0), #d92626);
   background: linear-gradient(to right, rgba(43, 8, 8, 0), #d92626);
  animation: animateBottom 2s linear infinite;
   -webkit-animation: 2s animateBottom linear infinite;
}
          animation: 2s animateBottom linear infinite;
 
/* lewa linia */
.toggle-close span:nth-child(4) {
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
   background: linear-gradient(to bottom, rgba(43,8,8,0), #d92626);
   animation: animateLeft 2s linear -1s infinite;
}
 
/* ===== animacje ===== */
@keyframes animateTop {
  from { transform: translateX(100%); }
  to  { transform: translateX(-100%); }
}
}


@keyframes animateBottom {
@keyframes animateRight {
   0% {
   from { transform: translateY(100%); }
    -webkit-transform: translateX(-100%);
   to   { transform: translateY(-100%); }
            transform: translateX(-100%);
   }
   100% {
    -webkit-transform: translateX(100%);
            transform: translateX(100%);
  }
}
}


.toggle-close span:nth-child(4) {
@keyframes animateBottom {
   top: 0px;
   from { transform: translateX(-100%); }
  left: 0px;
   to  { transform: translateX(100%); }
  height: 100%;
   width: 2px;
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(43, 8, 8, 0)), to(#d92626));
   background: linear-gradient(to bottom, rgba(43, 8, 8, 0), #d92626);
  -webkit-animation: 2s animateLeft linear -1s infinite;
          animation: 2s animateLeft linear -1s infinite;
}
}


@keyframes animateLeft {
@keyframes animateLeft {
   0% {
   from { transform: translateY(-100%); }
    -webkit-transform: translateY(-100%);
   to   { transform: translateY(100%); }
            transform: translateY(-100%);
   }
   100% {
    -webkit-transform: translateY(100%);
            transform: translateY(100%);
  }
}
}

Wersja z 10:53, 23 gru 2025

/* Umieszczony tutaj kod CSS zostanie zastosowany we wszystkich skórkach */

body {
    background-color: #1e1e1e !important;
}
body #p-logo a {
    background-image: url(https://wiki.endore.pl/images/f/fe/Wikilogofinal.gif) !important;
    border-radius: 50%;
}

ul {
    list-style-type: disc;
    list-style-image: none;
}

.logo-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 0 auto;
}

/* === UKŁAD PODSTAWOWY: duże ekrany === */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 25px;
}

/* Uporządkowanie elementów */
.logo-left-wrapper   { order: 1; }
.logo-wrapper        { order: 2; } /* CENTER */
.logo-right-wrapper  { order: 3; }

/* === UKŁAD 2: ŚREDNIE EKRANY === */
/* center na górę, left + right pod spodem */
@media (max-width: 1200px) {
    .portal-grid {
        grid-template-columns: 1fr 1fr; /* 2 kolumny */
    }

    .logo-wrapper {
        grid-column: span 2; /* center na pełną szerokość */
        order: 1;
    }

    .logo-left-wrapper {
        order: 2;
    }

    .logo-right-wrapper {
        order: 3;
    }
}

/* === UKŁAD 3: MAŁE EKRANY — left i right znikają === */
@media (max-width: 768px) {
    .logo-left-wrapper,
    .logo-right-wrapper {
        display: none;
    }

    .portal-grid {
        grid-template-columns: 1fr; /* tylko center */
    }
}


/* Obracający się obrazek, np. w logo lub dowolnym miejscu */
.rotating-logo {
    width: 350px;
    height: 350px;
    margin: 0 auto;
    background-image: url("https://wiki.endore.pl/images/2/23/Main_page_header_circular_inscription.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0;
    pointer-events: none;
    filter: invert(1) brightness(0.76);

    animation-name: fadeAfterEnter, spin;
    animation-duration: 1.5s, 60s;
    animation-timing-function: ease, linear;
    animation-delay: 6.5s, 0s; /* fade-in po enter-logo, spin od razu */
    animation-fill-mode: forwards, none;
    animation-iteration-count: 1, infinite;
}

/* Definicja animacji */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Statyczny górny obraz */
.upper-logo {
    position: absolute;
    top: 35%;
    left: 50%;
    width: 200px;
    height: 28px;
    background-image: url("https://wiki.endore.pl/images/1/15/The_Fellowship_of_the_Ring_silhouette.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: invert(1) brightness(0.46);
}

/* Statyczny dolny obraz */
.bottom-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 48px;
    background-image: url("https://wiki.endore.pl/images/c/c5/Endore_wordmark_-_no_underline.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: invert(1) brightness(0.96);
}

/* Logo tekst */
.logo-text {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #F5DEB3;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5); /* lekki cień dla kontrastu */
    pointer-events: none;
    font-family: "Lora", "Lora-fallback", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    white-space: nowrap;
}

.mapa-block {
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,1);
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(20, 20, 20, 0.8);
}

.mapa-block img {
    /* Efekt glow */
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.7), 0 0 30px rgba(255, 215, 0, 0.4);
    /* Alternatywnie drop-shadow: */
    /* filter: drop-shadow(0 0 10px gold); */
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Efekt na hover */
.mapa-block img:hover {
    /* transform: scale(1.05); */
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.9), 0 0 40px rgba(255, 215, 0, 0.6);
}

.logo-left-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 0 auto;
}

.logo-right-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 0 auto;
}

.logo-left {
    width: 170px;
    height: 170px;
    margin: 20px auto 0 auto;
    background-image: url("https://wiki.endore.pl/images/f/ff/Gondor1.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.logo-right {
    width: 170px;
    height: 170px;
    margin: 20px auto 0 auto;
    background-image: url("https://wiki.endore.pl/images/8/81/Umbar1.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.logo-left, .logo-right {
    border-radius: 50%;
    z-index: 2;
}

/* miękka aura */
.logo-left::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    width: 170px;
    height: 170px;
    margin: 20px auto 0 auto;

    box-shadow:
        0 0 15px rgba(180, 200, 255, 0.8),
        0 0 35px rgba(150, 180, 255, 0.6),
        0 0 60px rgba(120, 160, 255, 0.4);
}

.logo-right::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    width: 170px;
    height: 170px;
    margin: 20px auto 0 auto;

    box-shadow:
        0 0 15px rgba(255, 200, 120, 0.75),
        0 0 35px rgba(255, 170, 70, 0.6),
        0 0 60px rgba(220, 160, 90, 0.45);
}

.bottom-logo-left {
    position: absolute;
    top: 70%;
    left: 50%;
    width: 250px;
    height: 75px;
    background-image: url("https://wiki.endore.pl/images/5/5f/Gondor_wordmark.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: translate(-50%, -50%);
    filter: invert(1) brightness(0.96);
}

.bottom-logo-right {
    position: absolute;
    top: 70%;
    left: 50%;
    width: 250px;
    height: 75px;
    background-image: url("https://wiki.endore.pl/images/6/6b/Umbar_wordmark.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: translate(-50%, -50%);
    filter: invert(1) brightness(0.96);
}

.enter-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 450px;
    height: 158px;
    background-image: url("https://wiki.endore.pl/images/d/dc/Takeside_wordmark.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: translate(-50%, -50%);
    filter: invert(1) brightness(0.96);
}

.logo-left, .logo-right {
    opacity: 0;
    animation: fadein 5s ease forwards;
}

.bottom-logo-left, .bottom-logo-right {
    opacity: 0;
    animation: fadein 5s ease forwards;
    animation-delay: 1.5s;
}

@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.enter-logo {
    opacity: 0;
    animation: enterFade 5s ease forwards;
    animation-delay: 1.5s; /* start razem z bottom-logo */
}

@keyframes enterFade {
    0%   { opacity: 0; }
    40%  { opacity: 1; }  /* koniec fade-in */
    80%  { opacity: 1; }  /* koniec widoczności */
    100% { opacity: 0; }  /* fade-out */
}

/* fade-in reszty elementów po enter-logo */
.upper-logo,
.bottom-logo,
.logo-text {
    opacity: 0;
    animation: fadeAfterEnter 1.5s ease forwards;
    animation-delay: 6.5s; /* start po zakończeniu enter-logo */
}

@keyframes fadeAfterEnter {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.inprogress, .inprogress a {
    color: #ff7b7b !important;
    text-shadow: 0 0 6px rgba(255, 50, 50, 0.7);
    font-weight: bold;
    animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.75;
        transform: scale(1.03);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* sidebar */

#t-whatlinkshere, #t-recentchangeslinked, #t-print, #t-permalink, #t-specialpages, #t-info { display:none; }

/* SNOWFLAKES */
.snowflakes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  pointer-events: none;
  z-index: 9999;
}

.snowflake {
  color: #fff;
  font-size: 1.4em;
  font-family: Arial, sans-serif;
  text-shadow: 0 0 1px #000;

  position: fixed;
  top: -10%;
  user-select: none;
  cursor: default;

  animation-name: snowflakes-fall, snowflakes-shake;
  animation-duration: 8s, 3s;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
}

/* Fall animation */
@keyframes snowflakes-fall {
  0% { top: -10%; }
  100% { top: 100%; }
}

/* Horizontal waving */
@keyframes snowflakes-shake {
  0% { transform: translateX(0px); }
  50% { transform: translateX(80px); }
  100% { transform: translateX(0px); }
}

/* Randomization per flake */
.snowflake:nth-of-type(1)  { left: 10%; animation-delay: 1s, 1s; }
.snowflake:nth-of-type(2)  { left: 20%; animation-delay: 6s, 0.5s; }
.snowflake:nth-of-type(3)  { left: 30%; animation-delay: 4s, 2s; }
.snowflake:nth-of-type(4)  { left: 40%; animation-delay: 2s, 2s; }
.snowflake:nth-of-type(5)  { left: 50%; animation-delay: 8s, 3s; }
.snowflake:nth-of-type(6)  { left: 60%; animation-delay: 6s, 2s; }
.snowflake:nth-of-type(7)  { left: 70%; animation-delay: 2.5s, 1s; }
.snowflake:nth-of-type(8)  { left: 80%; animation-delay: 1s, 0s; }
.snowflake:nth-of-type(9)  { left: 90%; animation-delay: 3s, 1.5s; }
.snowflake:nth-of-type(10) { left: 5%; animation-delay: 0s, 0s; }

.snowbox1, .snowbox2, .snowbox3, .snowbox4, .snowbox5, .snowbox6, .snowbox7, .snowbox8, .snowbox9 {
  position: relative;
}

.snowbox1::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 295px;
  height: 54px;
  background-image: url(https://wiki.endore.pl/images/6/66/Snowcap1.png);
  background-repeat: no-repeat;
  background-position: left top;
  background-size: contain;
  pointer-events: none;
}

.snowbox2::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 140px;
  height: 37px;
  background-image: url(https://wiki.endore.pl/images/e/e7/Snowcap3.png);
  background-repeat: no-repeat;
  background-position: left top;
  background-size: contain;
  pointer-events: none;
}

.snowbox3::before {
  content: "";
  position: absolute;
  top: -20px;
  right: 0;
  width: 143px;
  height: 39px;
  background-image: url(https://wiki.endore.pl/images/e/eb/Snowcap7.png);
  background-repeat: no-repeat;
  background-position: right top;
  background-size: contain;
  pointer-events: none;
}

.snowbox4::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 220px;
  height: 58px;
  background-image: url(https://wiki.endore.pl/images/7/70/Snowcap5.png);
  background-repeat: no-repeat;
  background-position: left top;
  background-size: contain;
  pointer-events: none;
}

.snowbox5::before {
  content: "";
  position: absolute;
  top: -8px;
  right: -8px;
  width: 48px;
  height: 41px;
  background-image: url(https://wiki.endore.pl/images/d/db/Snowcap6.png);
  background-repeat: no-repeat;
  background-position: right top;
  background-size: contain;
  pointer-events: none;
}

.snowbox6::before {
  content: "";
  position: absolute;
  top: -27px;
  left: 0;
  width: 106px;
  height: 43px;
  background-image: url(https://wiki.endore.pl/images/1/1b/Snowcap8.png);
  background-repeat: no-repeat;
  background-position: left top;
  background-size: contain;
  pointer-events: none;
}

.snowbox7::before {
  content: "";
  position: absolute;
  top: -20px;
  right: 0;
  width: 57px;
  height: 36px;
  background-image: url(https://wiki.endore.pl/images/6/6e/Snowcap2.png);
  background-repeat: no-repeat;
  background-position: right top;
  background-size: contain;
  pointer-events: none;
}

.snowbox8::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 74px;
  height: 33px;
  background-image: url(https://wiki.endore.pl/images/b/bf/Snowcap4.png);
  background-repeat: no-repeat;
  background-position: left top;
  background-size: contain;
  pointer-events: none;
}

.lightrope-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    white-space: nowrap;
    top: -30px;
}

.lightrope {
    position: relative;
    top: 0;
    left: 0;
    padding: 0;
    margin: 0 auto;
    text-align: center;
    overflow: hidden;
    pointer-events: none;
    height: 77px;
}

.lightrope li {
    list-style: none;
    display: inline-block;
    width: 12px;
    height: 28px;
    margin: 20px;
    border-radius: 50%;
    position: relative;

    background: rgba(0,247,165,1);
    box-shadow: 0px 4px 24px 3px rgba(0,247,165,1);

    transform-origin: top center;
    animation: flash-1 2s infinite both, sway 3s ease-in-out infinite;;
}

/* 2n+1 */
.lightrope li:nth-child(2n+1) {
    background: rgba(0,255,255,1);
    box-shadow: 0px 4px 24px 3px rgba(0,255,255,0.5);
    animation: flash-2 0.4s infinite both, sway 2.7s ease-in-out infinite;;
}

/* 4n+2 */
.lightrope li:nth-child(4n+2) {
    background: rgba(247,0,148,1);
    box-shadow: 0px 4px 24px 3px rgba(247,0,148,1);
    animation: flash-3 1.1s infinite both, sway 3.3s ease-in-out infinite;;
}

/* Dodatkowe nieregularności */
.lightrope li:nth-child(odd) { animation-duration: 1.8s; }
.lightrope li:nth-child(3n+1) { animation-duration: 1.4s; }

/* Trzonek */
.lightrope li:before {
    content: "";
    position: absolute;
    top: -4px;
    left: 1px;
    width: 10px;
    height: 10px;
    background: #222;
    border-radius: 3px;
}

/* Wiszący kabel */
.lightrope li:after {
    content: "";
    position: absolute;
    top: -14px;
    left: 9px;
    width: 52px;
    height: 20px;
    border-bottom: 2px solid #222;
    border-radius: 50%;
}

.lightrope li:last-child:after {
    content: none;
}

/* Animacje */
@keyframes flash-1 {
    0%, 100% { background: rgba(0,247,165,1); box-shadow: 0px 4px 24px 3px rgba(0,247,165,1); }
    50%      { background: rgba(0,247,165,0.4); box-shadow: 0px 4px 24px 3px rgba(0,247,165,0.2); }
}

@keyframes flash-2 {
    0%, 100% { background: rgba(0,255,255,1); box-shadow: 0px 4px 24px 3px rgba(0,255,255,1); }
    50%      { background: rgba(0,255,255,0.4); box-shadow: 0px 4px 24px 3px rgba(0,255,255,0.2); }
}

@keyframes flash-3 {
    0%, 100% { background: rgba(247,0,148,1); box-shadow: 0px 4px 24px 3px rgba(247,0,148,1); }
    50%      { background: rgba(247,0,148,0.4); box-shadow: 0px 4px 24px 3px rgba(247,0,148,0.2); }
}

@keyframes sway {
  0%   { transform: rotate(-4deg); }
  50%  { transform: rotate(4deg); }
  100% { transform: rotate(-4deg); }
}

/* =====================================================
   TOGGLE TEKSTU – MediaWiki, CSS-only
   ===================================================== */

/* Kotwice cofnięte w górę strony */
.top-anchor {
  display: block;
  height: 0;
  margin-top: -100vh;
  padding-top: 100vh;
}

/* Domyślnie: wszystko ukryte */
.toggle {
  display: none;
  opacity: 0;
}

/* Pokazuj tylko wybrany tekst */
#t1:target ~ .t1,
#t2:target ~ .t2 {
  display: block;
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.toggle-links a {
  display: inline-block;
  background: linear-gradient(-30deg, #3d0b0b 50%, #2b0808 50%);
  padding: 20px 40px;
  margin: 12px;
  display: inline-block;
  -webkit-transform: translate(0%, 0%);
          transform: translate(0%, 0%);
  overflow: hidden;
  color: #f7d4d4;
  font-size: 20px;
  letter-spacing: 2.5px;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  -webkit-box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
          box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.toggle-links a::before {
  content: '';
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background-color: #8592ad;
  opacity: 0;
  -webkit-transition: .2s opacity ease-in-out;
  transition: .2s opacity ease-in-out;
}

.toggle-links a:hover::before {
  opacity: 0.2;
}

/* aktywny przycisk */
#t1:target ~ .toggle-links a[href="#t1"],
#t2:target ~ .toggle-links a[href="#t2"] {
  background: linear-gradient(-30deg, #7a1a1a 50%, #541212 50%);
  transform: translateY(1px);
}

.toggle-links a[href="#top"] {
  display: none;
}

/* pokazuj tylko gdy coś jest otwarte */
#t1:target ~ .toggle-links a[href="#top"],
#t2:target ~ .toggle-links a[href="#top"] {
  display: inline-block;
}

/* ===== sticky kontener ===== */
.toggle-close {
  position: sticky;
  bottom: 12px;
  margin-top: 2em;
  text-align: center;
  z-index: 10;
}

/* ===== link generowany przez MediaWiki ===== */
.toggle-close a {
  position: relative;              /* KLUCZ */
  display: inline-block;
  padding: 20px 40px;
  margin: 12px;
  background: linear-gradient(-30deg, #3d0b0b 50%, #2b0808 50%);
  color: #f7d4d4;
  font-size: 20px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  overflow: hidden;                /* przycina animacje */
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
}

/* ===== rozjaśnienie hover ===== */
.toggle-close a::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #8592ad;
  opacity: 0;
  transition: opacity .2s ease-in-out;
}

.toggle-close a:hover::before {
  opacity: 0.2;
}

/* ===== animowane obramowanie ===== */
.toggle-close span {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

/* górna linia */
.toggle-close span:nth-child(1) {
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to left, rgba(43,8,8,0), #d92626);
  animation: animateTop 2s linear infinite;
}

/* prawa linia */
.toggle-close span:nth-child(2) {
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to top, rgba(43,8,8,0), #d92626);
  animation: animateRight 2s linear -1s infinite;
}

/* dolna linia */
.toggle-close span:nth-child(3) {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, rgba(43,8,8,0), #d92626);
  animation: animateBottom 2s linear infinite;
}

/* lewa linia */
.toggle-close span:nth-child(4) {
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, rgba(43,8,8,0), #d92626);
  animation: animateLeft 2s linear -1s infinite;
}

/* ===== animacje ===== */
@keyframes animateTop {
  from { transform: translateX(100%); }
  to   { transform: translateX(-100%); }
}

@keyframes animateRight {
  from { transform: translateY(100%); }
  to   { transform: translateY(-100%); }
}

@keyframes animateBottom {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

@keyframes animateLeft {
  from { transform: translateY(-100%); }
  to   { transform: translateY(100%); }
}