/* Legend-block natychmiastowe pojawianie/znikanie bez animacji */
.legend-block {
  transition: none !important;
}
.lang:not(.expanded) .legend-block {
  opacity: 0 !important;
  transition: none !important;
}
.lang.expanded .legend-block {
  opacity: 1 !important;
  transition: none !important;
}
/* Download-btn natychmiastowe pojawianie/znikanie bez animacji */
.download-btn {
  transition: none !important;
}
.lang:not(.expanded) .download-btn {
  opacity: 0 !important;
  transition: none !important;
}
.lang.expanded .download-btn {
  opacity: 1 !important;
  transition: none !important;
}
/* Download button natychmiastowe pojawianie/znikanie */
.download-btn {
  display: none;
}
.lang.expanded .download-btn {
  display: flex;
}
.legend-block {
  width: 100%;
  max-width: 700px;
  margin: 0.2rem auto 0.1rem auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.legend-block {
  width: 100%;
  max-width: 700px;
  margin: 0.2rem auto 0.1rem auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.legend {
  font-size: 0.74rem;
  color: #b8e0ff;
  margin-top: 0.1rem;
  margin-bottom: 0;
  text-align: right;
  width: 100%;
  max-width: 700px;
  padding-right: 0.5rem;
  font-family: inherit;
}
.legend-blue {
  color: #3cf;
}
.legend-red {
  color: #f66;
  margin-top: 0.1rem;
}
.panel {
  pointer-events: none;
}
.lang-image-container, .lang-image {
  pointer-events: auto;
}

/* Overlay do powiększania obrazka */
.image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
  transition: background 0.2s;
}
.image-overlay img {
  max-width: 96vw;
  max-height: 92vh;
  border-radius: 10px;
  box-shadow: 0 0 32px #000a;
  background: #222;
  display: block;
}
.lang.expanded .panel {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: opacity 320ms ease, transform 420ms cubic-bezier(.2,.9,.23,1);
}
/* --- Stylowanie kontenera na obrazek i obrazka --- */
.lang-image-container {
  display: none;
  width: 100%;
  max-width: 700px;
  background: #111;
  align-items: center;
  justify-content: center;

  margin: 0.4rem auto 0 auto;
  border-radius: 8px;
  box-shadow: 0 0 8px #000a;
.lang-image-container {
  display: none;
  width: 100%;
  max-width: 700px;
  background: #111;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  margin: 0.4rem auto 0 auto;
  border-radius: 8px;
  box-shadow: 0 0 8px #000a;
}
}
.panel {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lang.expanded .panel .lang-image-container {
  display: flex;
}

.lang-image {
  max-width: 100%;
  max-height: 180px;
  height: auto;
  width: auto;
  display: block;
  object-fit: contain;
  cursor: zoom-in;
  border-radius: 4px;
  box-shadow: 0 0 4px #0006;
  transition: box-shadow 0.2s;
}
.lang-image:hover {
  box-shadow: 0 0 12px #1ea7fd;
}
#particles-js {
  pointer-events: auto;
}
.footer, .lang, .toggle, .panel {
  position: relative;
  z-index: 1;
  pointer-events: auto;
}
.toggle {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: auto;
  padding-top: 0;
  pointer-events: auto;
}
.lang.left .toggle {
  flex-direction: row;
}
.lang.right .toggle {
  flex-direction: row-reverse;
}
.lang.left .chev {
  margin-left: auto;
  margin-right: 0;
}
.lang.right .chev {
  margin-right: auto;
  margin-left: 0;
}
:root{
  --bg: #0f1720;
  --card: #0b1a2b;
  --accent: #1ea7fd;
  --muted: #9aa6b2;
}

html,body{
  height:100%;
  margin:0;
  background:var(--bg);
  font-family:Inter,Segoe UI,Roboto,Arial,sans-serif;
  color: #e6eef6;

}
.coming-soon {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 0.2rem 0;
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 0 0 10px turquoise;
  text-shadow: 0 0 3px #00ff37;
  font-family: "Lato", sans-serif;
}

.tajmerlol {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* width: auto; */
  /* max-width: 90vw; */
  line-height: 1;
}

.rok {
  color: #fff;
  font-size: 4.5rem;
  font-weight: bold;
  text-align: center;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.countdown {
.legend {
  font-size: 1rem;
  color: #b8e0ff;
  margin-top: 0.3rem;
  margin-bottom: 0;
  text-align: right;
  align-self: flex-end;
  width: auto;
  max-width: 95%;
  padding-right: 0.5rem;
  font-family: inherit;
}
  color: #fff;
  display: flex;
  justify-content: center;
  gap: 1.7rem;
  text-align: center;
  flex-wrap: wrap;
}

.container-day,
.container-hour,
.container-minute,
.container-second {
  font-size: 0.7rem;
  margin: 0;
  padding: 0;
}

.container{
  height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events: auto;
  
}
.languages{
  width:80vw; /* left + gap + right = 35vw + 10vw + 35vw = 80vw */
  max-width:1400px;
  height:86vh;
  display:grid;
  grid-template-columns: 35vw 35vw; /* each column ~35% of viewport */
  grid-auto-rows: var(--collapsed-height); /* rows set to collapsed height */
  align-content: start; /* prevent rows from stretching to fill container */
  column-gap: 10vw; /* space between left and right columns (~10% viewport) */
  row-gap: 50px !important; /* uniform 50px vertical spacing between rows (forced for debugging) */
  position:relative;
  --inner-gap: 24px; /* padding inside each card from its outer edge */
  margin: -2.4rem auto 0 auto; /* przesunięcie całości o 20px do góry */

  justify-content:center;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 1;
  position: relative;
}
/* DEBUG helpers — remove when confirmed working */
/* debug outlines removed */
.lang{
  --collapsed-height:120px; /* significantly larger collapsed items */
  position:relative;
  left:0; /* baseline for per-column nudges */
  height:var(--collapsed-height);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  box-shadow: 0 0 10px turquoise;
  /* padding: clamp(1rem, 4vw, 3rem);  <- padding zostaje na .toggle */
  display: flex;
  align-items:center;
  transition:transform 420ms cubic-bezier(.2,.9,.23,1), height 420ms cubic-bezier(.2,.9,.23,1), z-index 0ms linear 420ms, opacity 320ms ease;
  overflow:visible;
  padding: 0; /* inner padding is on .toggle for consistent alignment */
  box-sizing: border-box;
  border-radius: 16px;
  pointer-events: auto;
}

/* Vertical spacing control: make left-column stacked gaps ~50px
   (Belarusian (1) -> Kazakh (3) -> Russian (5)). We add margin-bottom
   to the first two left-column items to get ~50px spacing. */


/* Nudge left and right columns toward center by 50px each: left column -> right 50px, right column -> left 50px */
.lang.left{ left:50px; transition:left 360ms cubic-bezier(.2,.9,.23,1); }
.lang.right{ left:-50px; transition:left 360ms cubic-bezier(.2,.9,.23,1); }
.lang .toggle{
  all:unset;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  gap:14px;
  padding:18px var(--inner-gap);
  width:100%;
  cursor:pointer;
}
.flag{
  width:56px;
  height:38px;
  object-fit:cover;
  border-radius:6px;
  flex:0 0 auto;
}
.name{
  font-size:2.04rem;
  font-weight:700;
  background: linear-gradient(90deg, #b074ff 0%, #9b40c5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}
.chev{
  margin-left:auto;
  font-size:20px;
  color:var(--muted);
  transition:transform 320ms ease;
  pointer-events: auto;
}
.panel{
  position:absolute;
  left:16px;
  right:16px;
  top:calc(var(--collapsed-height) - 30px);
  width:auto;

  background:rgba(0, 0, 0, 0);
  padding:20px;
  border-radius:10px;
  box-shadow:0 12px 34px rgba(0,0,0,0.6);
  opacity:0;
  transform-origin:top center;
  transform:scale(0.98) translateY(-6px);
  transition:opacity 320ms ease, transform 420ms cubic-bezier(.2,.9,.23,1);
  pointer-events:none;
}
  
.lang.expanded{
  height:44vh; /* slightly taller when expanded (within its column) */
  z-index:50;
  transition:z-index 0ms linear 0ms, transform 420ms cubic-bezier(.2,.9,.23,1), height 420ms cubic-bezier(.2,.9,.23,1);
  /* no grid-column: expanded stays inside its own column */
  align-items: flex-start; /* place header (toggle) at the top */
  padding-top: 1.4rem;
}
.lang.expanded .chev{ transform:rotate(180deg); }


/* Shift other items when one is expanded - they will translate slightly */
.lang:not(.expanded){
  transition:transform 450ms cubic-bezier(.2,.9,.23,1), opacity 350ms ease;
}
.lang.shrunk{
  transform: scale(1);
  opacity:0.9;
}



/* Każdy .lang zawsze ma width:100% swojej kolumny, niezależnie od stanu */
.languages .lang {
  width: 100% !important;
}


/* Right-column items: invert content order so flag+name appear on the right, toggle (chev) on left */
.lang.right .toggle{ flex-direction: row-reverse; }
.lang.right .chev{ margin-left:0; margin-right:auto; }

/* Left/right specific name alignment */
.lang.left .name { text-align: left }
.lang.right .name { text-align: right }



/* Keep inverted order after expansion (they retain nth-child positioning) */
.lang.expanded .toggle{ padding-left:var(--inner-gap); padding-right:var(--inner-gap) }

.install{
  background:var(--accent);
  color:#08202b;
  border:none;
  padding:10px 14px;
  border-radius:6px;
  cursor:pointer;
  pointer-events: auto;
}

.visually-hidden{ position:absolute!important; height:1px; width:1px;  clip:rect(1px,1px,1px,1px); white-space:nowrap }



/* =============================================================================
   HTML5 CSS Reset Minified - Eric Meyer
   ========================================================================== */

html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,b,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}
body{line-height:1}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}
nav ul{list-style:none}
blockquote,q{quotes:none}
blockquote:before,blockquote:after,q:before,q:after{content:none}
a{margin:0;padding:0;font-size:100%;vertical-align:baseline;background:transparent;text-decoration:none}
mark{background-color:#ff9;color:#000;font-style:italic;font-weight:bold}
del{text-decoration:line-through}
abbr[title],dfn[title]{border-bottom:1px dotted;cursor:help}
table{border-collapse:collapse;border-spacing:0}
hr{display:block;height:1px;border:0;border-top:1px solid #ccc;margin:1em 0;padding:0}
input,select{vertical-align:middle}
li{list-style:none}


/* =============================================================================
   My CSS
   ========================================================================== */

/* ---- base ---- */

html,body{ 
	width:100%;
	height:100%;
	background:#200420;
}

html{
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body{
  font:normal 75% Lato, sans-serif;
}

canvas{
  display:block;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;

  pointer-events: auto;
}

#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: auto;
}

.coming-soon {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 0.2rem 0;
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 0 0 10px turquoise;
  text-shadow: 0 0 3px #00ff37;
  font-family: "Lato", sans-serif;
}

.tajmerlol {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* width: auto; */
  max-width: 90vw;
  line-height: 1;
}

.rok {
  color: #fff;
}
.rok a {
  color: #fff !important;
  text-decoration: none;
}
.rok a:visited, .rok a:active, .rok a:focus, .rok a:hover {
  color: #fff !important;
  text-decoration: none;
}
.rok {
  color: #fff;
  font-size: 4.5rem;
  font-weight: bold;
  text-align: center;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.countdown {
  color: #fff;
  display: flex;
  justify-content: center;
  gap: 1.7rem;
  text-align: center;
  flex-wrap: wrap;
}

.container-day,
.container-hour,
.container-minute,
.container-second {
  font-size: 0.7rem;
  margin: 0;
  padding: 0;
}
  /* .keyboard-accordion {
    margin: 40px auto;
    border-radius: 10px;
    background: #181c20;
    box-shadow: 0 2px 16px #000a;
    font-family: 'Lato', sans-serif;

  } */
  .keyboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    font-size: 1.2rem;
    color: #fff;
    background: #23272b;
    border-bottom: 1px solid #222;
    user-select: none;
    gap: 10px;
  }
  .flag-icon {
    width: 32px;
    height: 20px;
    margin-right: 12px;
    border-radius: 3px;
    border: 1px solid #444;
    object-fit: cover;
  }
  .keyboard-content {
    display: none;
    padding: 18px;
    background: #22262a;
    color: #eee;
    font-size: 1rem;
    transition: max-height 0.3s;
  }
  .keyboard-accordion.expanded .keyboard-content {
    display: block;
  }
    .expand-symbol {
      cursor: pointer;
      font-size: 2rem;
      color: #00ffe7;
      user-select: none;
      transition: color 0.2s, transform 0.2s;
      margin-left: 10px;
      line-height: 1;
      display: flex;
      align-items: center;
    }
    .expand-symbol:active {
      color: #00bfae;
      transform: scale(1.2);
    }

    .download-btn {
      margin-right: 22.9vw;
  margin-top: 2rem;
  position: relative;
  
  left: 24px;
  bottom: 24px;
  padding: 1.1rem 2.6rem;
  font-size: 1.5rem;
  font-weight: bold;
  background: #1100ff;
  color: #fff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 16px #1ea7fd44;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  z-index: 10;
  display: flex;
  align-items: left;
  justify-content: left
}
.download-btn:hover {
  background: #070064;
  color: #e6eef6;
  box-shadow: 0 4px 24px #08005088;
}
  /* .keyboard-accordion.expanded {
    min-height: 350px;
  } */

.footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 0 0 10px turquoise;
  color: white;
  text-align: right;
  font-family: "Lato", sans-serif;
  display: flex;
  justify-content: space-between;
}

.logodiscord {
  margin: 0 0.3vw 0 0;
  height: 1.5em;
}
.discord {
  color: white;
  text-align: right;
  padding: 0.1rem;
  margin-right: 0.1rem;
  text-shadow: 0 0 2px turquoise;
}

.footer-left {
  display: flex;
  align-items: center;
  position: relative;
  font-family: "Lato", sans-serif;
}
.footer-left::after {
  content: "";
  display: block;
  position: absolute;
  right: -0.7rem;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 1px;
  box-shadow: 0 0 5px 1px turquoise;
}

.footer-right {
  display: flex;
  align-items: center;
  color: white;
  font-family: "Lato", sans-serif;
  position: relative;
}
.footer-right::before {
  content: "";
  display: block;
  position: absolute;
  left: -0.7rem;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 1px;
  box-shadow: 0 0 5px 1px turquoise;
}

.footer-link {
  color: white;
  font-family: "Lato", sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  margin-left: 0.5rem;
}
  
.footer-link:hover {
  text-decoration: underline;
}
.footer-left {
  justify-content: left;
  color: white;
}

.logodiscord {
  margin-top: 0.04rem;
  margin-right: 0.1rem;
  max-height: 1.2em;
}

.discord {
  color: white;
  text-align: right;
  font-family: "Lato", sans-serif;
  padding: 0.1rem;
  margin-right: 0.2rem;
  text-shadow: 0 0 2px turquoise;
}

/* Responsive: keep within screen */
@media (max-width:720px){
  .panel{ left:20px; right:20px; }
  .lang.expanded{ height:46vh }
}

/* Tablet: reduce sizes and nudges for medium screens */
@media (max-width:1024px){
  .languages{
    /* padding-bottom na .languages tylko w media query! */
    column-gap: 8vw;
  }
  .lang{ --collapsed-height:100px; }
  .languages{ row-gap:32px; }
  .lang.left{ left:30px; }
  .lang.right{ left:-30px; }
  .lang.expanded .panel{ }
}

/* Mobile: single-column layout, remove horizontal nudges */
@media (max-width:720px){
  .languages{
    width:92vw;
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap:20px;
    transform: none; /* reset any translate nudges */
  }
  .lang{ --collapsed-height:84px; }
  .lang.left, .lang.right{ left:0; }
  .lang.expanded{ grid-column: auto; }
  .lang.expanded .panel{ left:20px; right:20px }
}

@media (max-width: 720px), (pointer: coarse) {
  .languages:has(.lang.expanded) {
    padding-bottom: 220px !important;
  }
  .languages {
     /* padding-bottom removed outside media query */
  }
  .lang {
    overflow: hidden;
  }
  .panel {
    box-sizing: border-box;
    width: 80%;
    max-width: 80%;
    min-width: 0;
    margin-top: 25px;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
  }
    .lang-image-container {
      box-sizing: border-box;
      width: 80%;
      max-width: 80%;
      min-width: 0;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      margin: 80px auto 0 auto;
    }
  .legend-block,
  .download-btn {
    margin-left: auto;
    margin-right: auto;
  }
  .lang-image {
    max-width: 100%;
    max-height: 120px;
    width: 100%;
    height: auto;
    display: block;
    position: relative;
  }
  .download-btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    left: 0;
    right: 0;
    margin: 100px 0 0 0;
    padding: 1rem 0.5rem;
    font-size: 1.1rem;
    border-radius: 10px;
    position: static;
    justify-content: center;
    align-items: center;
    display: flex;
  }
  .legend-block {
    align-items: flex-end;
    font-size: 0.9rem;
    width: 100%;
    max-width: 100%;
  }
  .lang-image-container,
  .legend-block,
  .download-btn {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    position: relative;
  }
}

  html, body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    min-height: 100vh !important;
    -webkit-overflow-scrolling: touch !important;
  }
  

