@import url("./_config.css");

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--titleWeight);
  color: var(--titleColor);
  font-family: var(--fontTitle);
  margin: 30px 0 20px;
}
b,
strong {
  font-weight: var(--titleWeight);
  font-family: var(--fontTitle);
}

.container {
  max-width: 90%;
  width: var(--containerWidth);
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: all 0.3s;
  will-change: auto;
}

a:hover {
  color: var(--primaryLight);
}

*:focus {
  outline: 2px dashed var(--primary) !important;
}

/*
			N A V B A R
*/

.navbar {
  background-color: #fff;
  position: relative;
  top: 0;
  width: 100%;
  z-index: 999;
  transition: all 0.3s;
}

/* .affix {
	top: -50px;
	box-shadow: 0 0 30px hsl(0, 0%, 0%, .1);
} */

.navbar-top {
  height: 50px;
  background: var(--bgLight);
}

.links a {
  font-size: 0.75rem;
  color: hsl(0, 0%, 0%, 0.5);
}

.links a:hover {
  color: var(--primary);
}

.bip {
  margin-right: 20px;
  padding-left: 20px;
  border-left: 1px solid var(--borderColor);
}

.epuap {
  margin-right: 20px;
}

.social-media {
  padding: 4px 20px;
  margin: 0 20px;
  border-left: 1px solid var(--borderColor);
  border-right: 1px solid var(--borderColor);
}

.social-media a:not(:last-child) {
  margin-right: 10px;
}

.has-dropdown {
  position: relative;
  z-index: 100;
}

.has-dropdown .dropdown {
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  padding: 15px;
  background-color: white;
  box-shadow: 0 10px 30px -5px hsl(0, 0%, 0%, 0.2);
}

.has-dropdown .dropdown input {
  width: 350px;
  padding: 1rem 0;
  border: 0;
  color: var(--primary);
  border-bottom: 2px solid var(--borderColor);
  outline: none !important;
  font-size: 1.3rem;
}

textarea,
select,
input {
  transition: all 0.3s ease;
}

textarea:hover,
select:hover,
input:hover {
  border-color: var(--textColor);
}

textarea:focus,
select:focus,
input:focus {
  border-color: var(--primary);
}

.navbar-logo {
  margin: 20px 0;
  display: flex;
  align-items: center;
  transition: all 0.3s;
}

.affix .navbar-logo {
  margin: 10px 0;
}

.navbar-logo-image {
  display: block;
  height: 100px;
  transition: all 0.3s;
}

.affix .navbar-logo-image {
  height: 50px;
}

/*
			N A V B A R   N A V
*/

.navbar-nav {
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
}

.navbar-nav li {
  list-style: none;
  display: block;
  margin: 0;
  padding: 0;
}

.navbar-nav > li:not(:first-child) {
  padding-left: var(--navMargin);
}

.navbar-nav > li:first-child > ul {
  left: 0;
}

.navbar-nav > li > a {
  color: hsl(0, 0%, 11%);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: var(--titleWeight);
  display: inline-flex;
  text-decoration: none;
  padding: 10px 0;
  transition: all 0.2s;
  outline: none;
}
/*
.nav-dropdown > a::after {
	filter: invert(1);
} */

.navbar-nav a::before {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: var(--navMargin);
  width: calc(100% - var(--navMargin));
  height: 2px;
  will-change: transform;
  background-color: var(--primary);
  transition: all 0.4s ease-out, visibility 0s 0.2s ease-out;
  visibility: hidden;
}

.navbar-nav > li:first-child > a::before {
  left: 0;
  width: 100%;
}

.navbar-nav:hover a::before {
  transform: translateX(100%);
}

.navbar-nav:hover li:hover ~ li > a::before {
  transform: translateX(-100%);
}

.navbar-nav:hover li:hover > a::before {
  transform: none;
  visibility: visible;
  transition-delay: 0s;
}

.navbar-nav a:focus::before,
.navbar-nav a:hover::before,
.navbar-nav .nav-active::before {
  transform: translateX(0);
}

.navbar-nav .nav-active {
  color: var(--primary);
}

/* .navbar-nav ul {
	position: absolute;
	display: none;
	top: 100%;
	left: var(--navMargin);
	margin: 0;
	padding: 10px;
	min-width: 250px;
	background-color: white;
	box-shadow: 0 10px 30px hsla(0, 0%, 0%, .2);
} */

.navbar-nav > li > ul {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  display: none;
  background-color: #fff;
}

.navbar-nav > li > ul ul li {
  position: relative;
}

.navbar-nav ul a {
  padding: 5px 10px;
  line-height: 1.2;
  display: flex;
  font-size: 0.875rem;
  color: var(--textColor);
  justify-content: space-between;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.3s ease;
}

.navbar-nav ul a::after {
  transform: rotate(-90deg);
  display: none;
}

.navbar-nav ul a::before {
  content: ">";
  font-family: monospace;
  font-weight: normal;
  font-size: 0.75rem;
  width: auto;
  height: auto;
  display: block;
  transform: translateX(0) !important;
  visibility: visible;
  background: none;
  position: absolute;
  top: 4px;
  left: 0;
  opacity: 0;
  color: var(--primary);
}

.navbar-nav ul a:hover::before {
  transform: translateX(10px) !important;
  opacity: 1;
}
.navbar-nav ul a:hover {
  padding-left: 25px;
  padding-right: 5px;
}

.navbar-nav ul ul a:hover {
  padding-left: 20px;
  padding-right: 0;
}

.navbar-nav ul .active > a,
.navbar-nav ul a.active {
  color: var(--primary);
}

.navbar-nav > li > .open {
  display: flex;
  flex-wrap: wrap;
  animation: showDropdown 0.3s 1 forwards;
}

.navbar-nav > li > ul {
  padding: 10px 5vw;
}

.navbar-nav > li > ul > li {
  flex-basis: calc(20% - 10px);
  margin-right: 10px;
}

.navbar-nav > li > ul > li > a {
  font-weight: bold;
  font-size: 1rem;
  line-height: 1.1;
  padding: 5px 0 !important;
  margin-bottom: 5px;
  border-bottom: 1px solid var(--borderColor);
}

.navbar-nav > li > ul > li > a::before {
  display: none;
}

.navbar-nav ul ul {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  box-shadow: none;
  margin: 0 0 10px;
  padding: 0;
}

.navbar-nav ul ul a {
  font-size: 0.75rem;
  line-height: 1.1;
  padding: 4px 10px;
}

.navbar-nav ul ul ul {
  display: none;
}

/* mobile menu */

.mobile-menu-toggler {
  width: 32px;
  height: 24px;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  background: none;
  transition: all var(--fastSpeed) var(--easeOutBack);
  outline: none;
}

.mobile-menu-toggler div {
  display: block;
  height: 2px;
  width: 32px;
  background-color: var(--primary);
  transition: all var(--fastSpeed) var(--easeOutBack);
  transform-origin: right;
}

.mobile-menu-toggler div:last-child {
  width: 70%;
}

.mobile-menu-toggler.active-toggler div:first-of-type {
  transform: rotate(-45deg);
}

.mobile-menu-toggler.active-toggler div:last-child {
  transform: rotate(45deg);
  width: 100%;
}

.mobile-menu-toggler.active-toggler div:nth-of-type(2) {
  display: none;
}

.mobile-nav {
  transition: transform var(--fastSpeed) var(--easeOutQuart);
  transform: translateX(-100%);
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  max-width: 80vw;
  width: 300px;
  /* background-color: hsla(0, 0%, 0%, 0.8);
	backdrop-filter: blur(10px); */
  background-color: var(--primary);
  margin: 0;
  padding: 0;
  z-index: 99999;
  overflow-y: auto;
}

.mobile-nav.show {
  transform: translateX(0);
}

.mobile-nav ul,
.mobile-nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav ul {
  background-color: hsla(0, 0%, 0%, 0.3);
}

.mobile-nav a {
  display: block;
  font-size: 1rem;
  text-decoration: none;
  font-weight: 700;
  color: white;
  box-sizing: border-box;
  padding: 10px 15px;
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.2);
}

.mobile-nav ul a {
  font-size: 0.875rem;
  font-weight: normal;
  padding-left: 30px;
}

.mobile-nav ul ul a {
  padding-left: 45px;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--primary);
  background-color: #fff;
}

/*
			M A I N   S E C T I O N S
*/

.btn {
  padding: 1em 2em;
  text-align: center;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  background-color: transparent;
  overflow: hidden;
  position: relative;
  z-index: 20;
  color: white !important;
  font-family: var(--fontTitle);
  font-weight: var(--titleWeight);
}

.btn::before {
  content: "";
  display: block;
  position: absolute;
  z-index: -2;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--primary);
}

.btn::after {
  content: "";
  display: block;
  position: absolute;
  z-index: -1;
  width: 100%;
  aspect-ratio: 1 /1;
  border-radius: 50%;
  background: hsl(0, 0%, 100%, 0.1);
  transform: scale(0);
}

.btn:focus::after {
  animation: click 0.3s linear 1 forwards;
}

.skrot {
  text-align: center;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--titleColor);
}

.skrot-icon {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 70px;
  aspect-ratio: 1 / 1;
}

.skrot-icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  object-position: center;
}

.skrot-icon::before {
  content: "";
  display: block;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.06;
  width: 60px;
  height: 60px;
  position: absolute;
  top: 20px;
  z-index: -1;
}

.skrot img {
  transition: transform 0.3s var(--easeOutBack);
}

.skrot strong {
  transition: color 0.3s;
}

.skrot:hover img {
  transform: scale(0.94);
}

.skrot:hover strong {
  color: var(--primary);
}

#news .card:first-child {
  grid-column: span 2;
}

#news .btn.w-full {
  margin-top: 20px;
}

.card.over {
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}

.card-image img {
  transition: transform 0.3s ease;
}

.card.over:hover .card-image img {
  transform: scale(1.1);
}

.card.over .card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  color: white;
  background: linear-gradient(transparent, hsl(0, 0%, 0%, 0.7));
}

.card.over .card-title {
  margin: 10px 0 0 0;
  line-height: 1.1;
}

.card.over .card-title--link {
  color: white;
}

.card .card-title {
  font-size: 1.39375rem;
}
.card.over:first-child .card-title {
  font-size: 1.85625rem;
}

.card-date {
  font-size: 0.875rem;
}

.home .flatpickr-calendar {
  width: 90%;
}

.home .flatpickr-months {
  margin-bottom: 30px;
}

.home .flatpickr-current-month .flatpickr-monthDropdown-months {
  border: 1px solid white;
}
/* .flatpickr-calendar.inline {
	top: 0;
	width: 100%;
	background-color: var(--bgLight);
	border-radius: 8px 8px 0 0;
	border: 0;
	overflow: hidden;
	box-shadow: none;
} */

.home .flatpickr-calendar.inline {
  border: 0;
  box-shadow: none;
}

/* .flatpickr-months {
	background-color: hsl(0, 0%, 0%, .1);
} */

.home .flatpickr-innerContainer,
.home .flatpickr-rContainer,
.home .flatpickr-days,
.home .dayContainer {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
}

.home .flatpickr-day.flatpickr-disabled,
.home .flatpickr-day.flatpickr-disabled:hover {
  color: hsla(0, 0%, 0%, 0.8) !important;
}

.home .flatpickr-day.prevMonthDay,
.home .flatpickr-day.nextMonthDay {
  color: hsla(0, 0%, 0%, 0.3) !important;
}

.home .flatpickr-day:not(.flatpickr-disabled) {
  color: var(--primary);
  font-family: var(--fontTitle);
  font-weight: var(--titleWeight);
  transition: all 0.3s;
}

.home .flatpickr-day {
  border-radius: 4px !important;
}

.home .flatpickr-day:not(.flatpickr-disabled):hover {
  background-color: var(--primary) !important;
  color: white;
}

.home .flatpickr-day.today {
  color: var(--primary);
  background-color: white;
  border-color: var(--primary) !important;
  border-radius: 6px !important;
}

.home .flatpickr-day {
  flex-basis: 14.285%;
  width: 14.285%;
  max-width: 14.285%;
  min-width: 14.285%;
  height: 43px;
  line-height: 43px;
}


.home .flatpickr-current-month .flatpickr-monthDropdown-months,
.home .flatpickr-current-month input.cur-year {
  font-family: var(--fontTitle) !important;
  font-weight: bold !important;
  font-size: 1.375rem !important;
}

.home .flatpickr-months .flatpickr-prev-month svg,
.home .flatpickr-months .flatpickr-next-month svg {
  width: 13px !important;
  height: 21px !important;
}

.home .flatpickr-months .flatpickr-prev-month svg path,
.home .flatpickr-months .flatpickr-next-month svg path {
  fill: hsl(208, 100%, 30%);
  transform: scale(1.04);
}

#wydarzenia .swiper-pagination {
  justify-content: flex-start;
  width: auto;
  bottom: 0;
}

#wydarzenia .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  margin-right: 10px;
  outline: none !important;
}

#wydarzenia .swiper-pagination-bullet-active {
  background-color: var(--primary);
}

#wydarzenia .swiper-slide {
  overflow: visible !important;
}

#wydarzenia .swiper-slide a {
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 2/3;
}

#wydarzenia .swiper-slide a img {
  transition: all .3s ease-out;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#wydarzenia .swiper-slide a:hover img {
  transform: scale(1.03);
  /* box-shadow: 0 5px 15px hsl(0, 0%, 0%, 0.1); */
}

/*
			F O O T E R
*/

.madeby {
  color: var(--textColor);
  text-decoration: none;
  line-height: 1;
  display: inline-block;
}

.madeby small {
  float: left;
  margin: 4px 4px 0 0;
  font-size: 0.6875rem;
}

address {
  font-style: normal;
  font-size: var(--leadSize);
}

footer {
  background-color: var(--bgLight);
}

footer hr {
  opacity: 0.2;
  width: auto;
  margin: 0 30px;
  background-color: black;
}

footer .md\:w-4-12 a {
  font-family: var(--fontTitle);
  color: var(--titleColor);
  font-size: var(--leadSize);
  transition: color 0.2s;
}

footer .md\:w-4-12 a:hover {
  color: var(--primary);
}

/*
			K E Y F R A M E S
*/

@keyframes showDropdown {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes showNextDropdown {
  0% {
    opacity: 0;
    transform: translateX(-10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes click {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(0.5);
  }

  100% {
    opacity: 0;
    transform: scale(1);
  }
}

.events {
  left: 15px;
  right: 15px;
  padding: 5px 5px 50px;
  background-color: hsl(0, 0%, 100%, 0.8);
  backdrop-filter: blur(5px);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--primary);
}

.events .next-event,
.events .prev-event {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 40px;
  padding-bottom: 10px;
  position: absolute;
  bottom: 36px;
  color: white;
  font-size: 1rem;
  font-family: monospace;
  background-color: var(--primary);
}

.events .prev-event {
  left: -1px;
  border-radius: 0 1rem 0 0;
  -webkit-border-radius: 0 1rem 0 0;
  -moz-border-radius: 0 1rem 0 0;
  -ms-border-radius: 0 1rem 0 0;
  -o-border-radius: 0 1rem 0 0;
}

.events .next-event {
  right: -1px;
  border-radius: 1rem 0 0 0;
  -webkit-border-radius: 1rem 0 0 0;
  -moz-border-radius: 1rem 0 0 0;
  -ms-border-radius: 1rem 0 0 0;
  -o-border-radius: 1rem 0 0 0;
}

.events .card {
  padding: 10px;
}

.events .card-image {
  width: 100px;
}

.events .card-image img {
  width: 100%;
  display: block;
}

.events .card-title--link {
  text-decoration: none;
}

.events .btn {
  position: absolute;
  bottom: 0;
  left: 0;
}

.event-list {
  max-height: 99%;
  overflow-y: auto;
}

.event-list .card-image {display: none;}

.event-list .card-body .card-title {margin-top: 0; margin-bottom: 5px; font-size: 1.125rem;}


#bottom-boxes .swiper-button-prev {left: 0;}
#bottom-boxes .swiper-button-next {right: 0;}

#bottom-boxes .swiper-button-prev,
#bottom-boxes .swiper-button-next {
  background-color: var(--primary);
  color: white;
  height: 100%;
  top: 0;
  bottom: 0;
  margin: 0;
  width: auto;
  padding: 0 15px !important;
  font-size: 1rem;
  transition: all .3s;
}

#bottom-boxes .swiper-button-prev:hover,
#bottom-boxes .swiper-button-next:hover {
  background-color: var(--primaryLight);
}

#bottom-boxes .swiper-button-next:after,
#bottom-boxes .swiper-button-prev:after {
  font-size: 1.5rem;
  font-weight: normal;
}




/*

			M E D I A
			Q U E R I E S

*/

@media screen and (max-width: 1199px) {
  .navbar-nav > li:not(:first-child) {
    padding-left: 30px;
  }

  .navbar-nav > li > a {
    letter-spacing: 1px;
  }

  .card.over:not(:first-child) .card-title {
    font-size: var(--h6);
    margin-top: 5px;
  }

  .card.over .card-body {
    padding: 15px;
  }

  #wydarzenia h3 {
    margin-bottom: 0;
  }
}

@media screen and (max-width: 1000px) {
  .navbar-logo-image {
    height: 70px;
  }

  .mobile-nav .dropdown {
    position: relative;
    top: auto;
    right: 0;
    padding: 0;
    background-color: white;
    box-shadow: none;
    background-color: hsl(0, 0%, 0%, 0.2);
  }

  #skroty a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .home #news .card:first-child {
    grid-row: span 2;
  }

  #news .sm\:grid {
    grid-auto-rows: 257px;
  }

  #news .card-image {
    width: 100%;
    height: 100%;
  }

  #news .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  #wydarzenia .container > .flex {
    flex-direction: column-reverse;
  }

  #wydarzenia .md\:w-4-12 {
    display: flex;
    justify-content: center;
  }

  footer .w-full {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .w-full {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  footer .flex {
    flex-direction: column;
  }

  footer .w-full:not(:first-of-type) {
    margin-top: 30px;
  }

  footer .w-full img {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .mobile-nav form,
  .mobile-nav input {
    width: 100%;
    padding: 15px;
  }

  .mobile-nav input {
    padding: 10px 15px;
  }

  .mobile-nav .flex {
    justify-content: center;
  }

  .mobile-nav li .flex a {
    padding: 10px 0;
    border: 0;
  }

  .social-media {
    border: 0;
    margin: 0;
  }

  .social-media a {
    padding: 0 !important;
    border-radius: 50%;
    background-color: #fff;
  }

  .navbar {
    position: sticky;
  }

  .affix {
    box-shadow: 0 0 30px hsl(0, 0%, 0%, 0.1);
  }
}

@media screen and (max-width: 920px) {
  .navbar-logo-image {
    height: 60px;
  }
  .navbar-logo {
    margin: 10px 0;
  }
}

@media screen and (max-width: 640px) {
  #wydarzenia .md\:w-4-12 {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

@media screen and (max-width: 600px) {
  #news .card {
    margin-bottom: 30px;
  }

  #news .card-image {
    height: 300px;
  }

  .card.over h3.card-title {
    font-size: var(--h5);
  }

  #wydarzenia .swiper-pagination {
    display: none;
  }

  #wydarzenia h3 {
    margin-bottom: 20px;
    text-align: center;
  }
}

@media screen and (max-width: 435px) {
}
