body, html {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
  }

  body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    cursor: url('1.png'), auto;
    background-color: #ffffff;
    background-size: cover;
    color:#000000;
  }

  ::selection {
    color: #000000;
    background: #d6fff8;
    
  }

  ::-moz-selection { 
    color: #000000;
    background: #d6fff8;
  }

  .news {
    background-color: #ffffff;
    border-radius: 15px;
    display: inline-block;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
    margin-top: 20px;
    width: 240px;
    overflow-wrap: break-word;
    color: #000000;
    font-family: "Inter", serif;
    border: 1px solid #5164BE;
    margin: 4px;
    font-size:13px;
    vertical-align:text-top;
  }
  
@media only screen and (max-width: 844px) {
.clicker2{
  align-self:center;
        display: flex !important;;
      background: #ffffff!important;
      border: 1px solid #000!important;
      padding: 8px 12px;
      cursor: pointer;
      font-size: 16px;
      border-radius: 4px;
      position: fixed;
      border-radius:15px!important;
      padding-top:12px;
      width:max-content;
      top:10px;
          justify-self: anchor-center;
          z-index:1;
  }
}

  .clicker2 {
    display:none ;
  }

  
  .news:hover {
    border: 1px solid #000;
    margin:-1px;
  }




  .menu {
    font-family: "Inter", serif;
    font-size: 13px;
    line-height: 1;
    margin: auto;
    padding: 15px;
    word-spacing: 5px;
    color: #000000;
    text-underline-offset: 9px;
    text-decoration-thickness: 2px;
    z-index: 1;
    border-radius: 15px;
    background-color: #ffffff;
    margin-top:13px;
    margin-left:13px;
    position: fixed;
    width:min-content;
    min-width:56px;
    display:block;
    grid-template-columns: 100px 100px 100px;
    border-style: solid;
    border-width: 1px;
  }

  /* Szerokosc = najdluzsze slowo, a nie sztywne 56px – polskie "Wiadomości"
     wystawalo poza ramke (2026-09-27). Pozycje plywaja, wiec clear trzyma je
     jedna pod druga, gdy menu jest szersze. Pigulka zabiera po 10px z paddingu
     menu z obu stron, zeby nie poszerzala ramki (ta sama szerokosc na kazdej
     stronie). */
  .menu .icon {
    clear: both;
  }

  .menu .amenu_open {
    margin-right: -10px;
  }

  @media screen and (max-width: 1599px) {
    .menu {
        grid-template-columns: 100px 100px ;
    }
}

  @media screen and (max-width: 1139px) {
    .menu {
        grid-template-columns: 100px ;
    }
}
 
@media screen and (max-width: 844px) {
    .menu {
        display: none;
    }
}



@media only screen and (max-width: 844px) {
  #dynamicMenu {
    display:none;
    margin:0 !important;
    width: -webkit-fill-available;
        position-area: center;
        height: -webkit-fill-available;
        align-content: baseline;
        padding-top: 105px;
        overflow: auto;
                backdrop-filter: blur(10px);
  }
}

@media only screen and (max-width: 844px) {
  .menu2 {
    display:none;
  }
}
@media only screen and (max-width: 844px) {
  .menu2 {
    display:none;
  }
}

@media only screen and (max-width: 2040px) {
  .menu2 {
    margin-right:790px!important;
  }
}

@media only screen and (max-width: 1364px) {
  .menu2 {
    margin-right:524px!important;
  }
}

@media screen and (max-width: 844px) {
    .clicker {
        display: flex !important;;
      background: #ffffff!important;
      border: 1px solid #000!important;
      padding: 8px 12px;
      cursor: pointer;
      font-size: 16px;
      border-radius: 4px;
      position: fixed;
      border-radius:15px!important;
      padding-top:12px;
      width:max-content;
      top:10px;
      left:20px;
      z-index: 1;
    }
}

.clicker {
  display: none;
}

@media screen and (max-width: 844px) {
.menu_telefon {
  place-content:center!important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  place-content: center !important;
  min-height:-webkit-fill-available!important;
  background-color: #ffffff;
}}
.menu_telefon {
    display: none;
}

  .menu2 {
    display:grid;
    text-align:center;
    height:fit-content;
    background-color:#ffffff;
    border: 1px solid #000!important;
    padding:12px;
    border-radius:15px;
    margin-right:1082px;
    position: fixed;
    font-family: "Inter", serif;
    font-size: 13px;

  }

.icon {
float: inline-start;
text-align: left;
padding-bottom:5px;
padding-top: 5px;
justify-content: center;
flex-wrap: wrap;
flex-direction:row-reverse;
align-content:flex-start;
}

  @media only screen and (max-width: 844px) {
  .container {
    padding-left:0!important ;
    padding-right:0!important ;
  }
}

@media only screen and (max-width: 844px) {
  .container {
    padding-top: 74px!important;
  }
}

@media only screen and (max-width: 2040px) {
  .container {
    width: 800px!important;
  }
}
@media only screen and (max-width: 1364px) {
  .container {
    width: 567px!important;
  }
}
  .container {
    width: 1130px;
    margin: 0 auto;
    padding: 13px;
    justify-items: center;
    grid-auto-flow:column;
    padding-left:185px;
    padding-right:151px;
    }

.custom-scrollbar{
  right: 10px;
}
.container0::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.container0 {
  overflow: auto;              /* pozwala na scrollowanie */
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;   
  height:100vh;
  text-align:center;
  font-family: "Inter", serif;
  font-size: 13px;
  }

  @media only screen and (max-width: 844px) {
  .container0 {
    align-self:center!important ;
  }
}


  .item:first-child {
    flex: 0 0 100vw !important;
    margin-right: 0;
    position: relative;
    left: -1px;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .item2 {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 100px;
    display: block;
    text-align:center;
    line-height:31px;
    color:#000000;
  }

  .item2:last-child {
    margin-right: 50px;
  }

  .tekst {
    font-family: "EB Garamond", serif;
    font-size: 25px;
    text-align: center;
    max-width: 80%;
    color: #000000;
    padding: 0 20px;
  }

  .image {
    max-height: 90vh;
    max-width: 80vw;
    object-fit: contain;

  }

  .amenu_open {
    color: #000000;
    cursor: url('2.png'), auto;
    border-radius: 15px!important ;
    inline-size:-webkit-fill-available;
    text-decoration: none;
    background-color:#fff !important;
    border-style: solid;
    border-spacing: 0px 4px;
    display:table;
    border-width:1px;
    text-align: left!important;
    margin-left: -10px;
    padding-left: 10px;
    padding-right: 10px;
  }


  
@media only screen and (max-width: 844px) {
  .amenu_open {
  }
}
  
@media only screen and (max-width: 844px) {
  .amenu {
  }
}
  .amenu {
    color: #000000;
    text-decoration: none;
    cursor: url('2.png'), auto;
  }

  .mail_font {
    color: #000000;
    font-family: "EB Garamond", serif;
    font-size: 13px;
  }

  

    body { margin:0; font-family: Inter; }
    h1 { padding:16px; font-size:24px; }
    #news-container { padding:0 16px; }
    .news {  cursor:pointer; }
    

  @media only screen and (max-width: 844px) {
  #pager {
    justify-self:center;
  }
}

    #pager { display:flex; gap:8px; justify-content:center; padding:16px;width: 100%; }

    #pager button {
    padding:6px 12px;
    background-color:#fff;
    border-radius:15px;
    border-style: solid;
    border-width: 1px;
    border-color: #000;
    }


    #modalOverlay { position:fixed; inset:0; background:rgba(0,0,0,0.25); display:none; justify-content:center; align-items:flex-start; padding-top:24px; z-index:9999;backdrop-filter:blur(21px);}
    #modalBox { background:#ffffff; width:90%; max-width:600px; max-height:89vh; overflow:hidden; padding:16px 16px 8px 16px; position:relative;border-radius:25px; color: #000000; display:flex; flex-direction:column;}
    #closeModal {  top:8px; left:8px; background:none; border:none; font-size:40px; cursor:pointer;color:#000000;float:left;}
    #modalContent { 
      overflow-y:scroll; 
      overflow-x:hidden; 
      flex:1 1 auto; 
      min-height:0;
      max-height:100%;
      padding:8px 16px 32px 8px; 
      scrollbar-width: none; 
      -ms-overflow-style: none; 
    }
    #modalContent::-webkit-scrollbar { display: none; }
    #modalTitle { margin-top:0; margin-bottom:12px; }
    #modalBody {  margin-top:0; }
    #modalLink { margin-top:12px; margin-bottom:0; }
    .content-date { 
      color: #000000; 
      font-size: 12px; 
      margin-bottom: 12px; 
      font-style: italic;
      font-family: "Inter", serif;
    }
    .content-summary {
      font-size: 16px;
      line-height: 1.6;
      font-family: "Inter", serif;
    }
    #modalLink { margin-top:12px; font-size:14px; word-break:break-all; }
a {
  color: #000000;
}

    .language-switcher {
      position: absolute;
      top: 13px;
      right: 13px;
      z-index: 1;
    }
    
    .lang-icon {
      background: #ffffff!important;
      padding: 8px 12px;
      cursor: pointer;
      font-size: 16px;
      border-radius: 4px;
      transition: all 0.3s;
      position: relative;
      border-radius:15px!important;
      padding-top:12px;
      border-style: solid;
      border-width: 1px;
      border-color: #000!important;
    }
    

    
    .lang-dropdown {
      position: absolute;
      top: 100%;
      right: 0;
      background: #ffffff;
      border: 1px solid #ccc;
      border-radius: 4px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
      display: none;
      min-width: 120px;
      color: #000000;
    font-family: "Inter", serif;
    border: 1px solid #5164BE;
        border-radius: 15px;
        font-size: 13px;
    }
    
    .lang-dropdown.show {
      display: block;
    }
    
    .lang-option {
      padding: 8px 12px;
      cursor: pointer;
      transition: background 0.2s;
      display: block;
      text-decoration: none;
      color: #000000;
    }
    

    .lang-option.active {
      background: #b2afd7;
      color: #000000;
      border-radius: 15px;
    }


/* ── Auth button & modal ──────────────────────────────────────── */
.auth-switcher {
  position: fixed;
  top: 13px;
  right: 62px;
  z-index: 10;
}
.auth-icon {
  background: #ffffff;
  padding: 10px 12px 7px 12px;
  cursor: pointer;
  display: inline-block;
  border-style: solid;
  border-width: 1px;
  border-color: #000!important;
}
.auth-icon:hover { background: #dce0f0; }

#authModalOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  justify-content: center;
  align-items: flex-start;
  padding-top: 60px;
  z-index: 9999;
  backdrop-filter: blur(14px);
}
#authModalBox {
  background: #ffffff;
  border: 1px solid #5164BE;
  border-radius: 20px;
  padding: 24px;
  width: 90%;
  max-width: 380px;
  position: relative;
  color: #000000;
  font-family: "Inter", serif;
}
#closeAuthModal {
  position: absolute;
  top: 8px;
  left: 12px;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: #000000;
  line-height: 1;
}
.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  justify-content: center;
  padding-top: 10px;
}
.auth-tab {
  background: none;
  border: 1px solid #5164BE;
  color: #000000;
  padding: 7px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-family: "Inter", serif;
  font-size: 13px;
  transition: all 0.2s;
}
.auth-tab.active, .auth-tab:hover {
  background: #e8ecf8;
  color: #000000;
}
.auth-pane { display: none; }
.auth-pane.active { display: block; }
.auth-input {
  width: 100%;
  box-sizing: border-box;
  background: #f5f5f5;
  border: 1px solid #5164BE;
  border-radius: 10px;
  color: #000000;
  padding: 10px 12px;
  font-size: 14px;
  font-family: "Inter", serif;
  margin-bottom: 10px;
  outline: none;
}
.auth-input:focus { border-color: #B2AFD7; background: #eeeeee; }
.auth-input::placeholder { color: #666666; }
.auth-btn {
  width: 100%;
  background: #e8ecf8;
  border: 1px solid #5164BE;
  border-radius: 10px;
  color: #000000;
  padding: 11px;
  font-size: 14px;
  font-family: "Inter", serif;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.2s;
}
.auth-btn:hover { background: #dce0f0; }
.auth-btn:disabled { background: #e0e0e0; cursor: default; }
.auth-error {
  color: #000000;
  font-size: 12px;
  margin-bottom: 8px;
  display: none;
}
.auth-success {
  color: #000000;
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
}
.auth-hint {
  color: #000000;
  font-size: 12px;
  margin-bottom: 12px;
  text-align: center;
}

/* ── Account button (top-right) ─────────────────────────────── */
.account-switcher {
  position: fixed; top: 13px; right: 108px; z-index: 10;
}
.account-icon {
  background: #ffffff; border: 1px solid #5164BE;
  padding: 10px 12px 7px 12px; cursor: pointer;
  border-radius: 15px; transition: background 0.2s;
  display: inline-block; text-decoration: none;
}
.account-icon:hover { background: #dce0f0; }
