:root {
  --primary-bg-color: rgba(0, 0, 0, 0.9);
  /* global scope */
}



* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  background: #000;
  position: relative;
}

body {
  height: 90vh;
  margin-bottom: 10%;
}


body::before {
  content: '';
  z-index: -2;
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: var(--bg-color, #000);
  background-size: 100% 100%, 100% 100%, auto 100vh;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-attachment: fixed;
}

@media (min-width: 769px) {
  body::before {
    background-image:
      linear-gradient(to right, transparent 85%, var(--primary-bg-color) 100%),
      linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
      var(--bg-desktop-fallback) top left / cover no-repeat;
  }
}

@media (max-width: 768px) {
  body::before {
    background-image:
      linear-gradient(to right, transparent 85%, var(--primary-bg-color) 100%),
      linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
      var(--bg-mobile, url('images/profilowe 2.jpeg')) top left / auto 100vh no-repeat;
  }
}


h1,
h2 {
  font-family: 'Playfair Display', serif;
  letter-spacing: 1px;
}

#footer {
  position: fixed;
  bottom: 0;
  /* right: 0; */
  left: 0;
  width: 100%;
  height: vh;
}

.site-header {
  position: fixed;
  top: 0;
  right: 1.5rem;
  width: auto;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 1rem 0.1rem;
}

/* MENU */
.menu {
/* position: fixed; */
  line-height: 1;
  top: 1.5rem;
  /* left: 50%; */
  /* transform: translateX(-50%); */
 
  /* width: auto;
  background: transparent;
  padding-top: 0.6rem;
  padding-left: 5rem; */
  z-index: 1001;
}

.menu-container {
  /* display: block;
  width: auto;
  padding: 0;
  margin: 0;*/
  z-index: 1001; 
}

.hamburger {
  display: block;
  font-size: 3rem;
  cursor: pointer;
  color: #fff;
  z-index: 1001;
  background-image: radial-gradient(var(--primary-bg-color), transparent 75%);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 0.7rem 1.8rem;
  line-height: 1;
}


.site-title {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #fff;
  z-index: 1001;
  background-image: radial-gradient(var(--primary-bg-color), transparent 80%);
  border-radius: 50px;
  padding: 1rem;
  padding-left: 2rem;
  padding-right: 2rem;
  line-height: 1;
  cursor: default;
  user-select: none;
  white-space: nowrap;
  display: inline-block;
}


.lang-switch {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}


.lang-switch a {
  color: #ccc;
  text-decoration: none;
  padding: 0 0.5rem;
}

.lang-switch a.active {
  color: #fff;
  font-weight: bold;
}

.nav-links {
  position: fixed;
  right: 15vw;
  top: 4.5rem;
  flex-direction: column;
  background: var(--primary-bg-color);
  /*rgba(0, 0, 0, 0.68); */
  width: auto;
  min-width: 200px;
  height: calc(90vh - 4.5rem);
  text-align: center;
  transition: transform 0.3s ease;
  transform: translateX(100vw);
  padding: 2rem 2.5rem;
  list-style: none;
  gap: 2rem;
  display: flex;
  align-items: center;
  z-index: 1000;
}

.nav-links.mobile-menu {
  transform: translateX(0);
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
  cursor: pointer;
}

.nav-links a:hover {
  color: #aaa;
}

/* MOBILE */
/* @media (max-width: 768px) { */
/* .nav-links {
  right: auto; */
  /* left: 0;
  width: 100%;
  max-width: 350px;
  height: auto;
  transform: translateX(-100%);
} */

.nav-links.mobile-menu {
  transform: translateX(0);
}





/* Google Translate dropdown */
#gicon {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
}

#google_translate_element {
  position: absolute;
  top: 28px;
  left: 0;
  z-index: 10050;

  /* slide-out behavior */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 220ms ease, opacity 180ms ease, transform 200ms ease;

  background: var(--primary-bg-color);
  /* // rgba(0, 0, 0, 0.65); */
  border-radius: 12px;
  backdrop-filter: blur(10px);
  padding: 0 10px;
}

#gicon:hover #google_translate_element,
#gicon:focus-within #google_translate_element,
#gicon:active #google_translate_element {
  max-height: 240px;
  opacity: 1;
  transform: translateY(0);
  padding: 10px 10px;
}

#google_translate_element * {
  color: #fff important !;
  font-family: inherit;
}

.gicon-image {
  cursor: pointer;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* PAGES CONTAINER */
.pages {
  perspective: 1500px;
  width: 100%;
  height: 90vh;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  z-index: 2;
}

.page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  padding: 90px 5% 20px;
  overflow-y: auto;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  opacity: 0;
  transform: translateX(100%) rotateY(90deg);
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}


.page.active {
  opacity: 1;
  transform: translateX(0) rotateY(0deg) !important;
  z-index: 10;
  pointer-events: auto;
  display: block;
}

.page.prev {
  transform: translateX(-100%) rotateY(-90deg);
}

.page.next {
  opacity: 0;
  transform: translateX(100%) rotateY(90deg);
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  height: calc(90vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 5;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.3rem;
  max-width: 600px;
  margin: 0 auto;
}

.page h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

#calendar-section {
  padding: 0;
  margin-top: 0;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
  width: 90% !important;
  z-index: 12;
}

#calendar {
  background: var(--primary-bg-color);
  color: #ffffff;
  /* border-radius: 15px; */
  padding: 2rem;
  margin-top: 2rem;
  /* height: fit-content!; */
  /* max-width: 1200px; */
  width: 90% !important;
  height: 85% !important;
  margin-left: auto;
  margin-right: auto;
  z-index: 12;
}

.vcenter {
  margin-top: 20%;
  margin-bottom: 40%;
}

.bio-article figure {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  display: none;
}

.bio-article img.images,
.bio-article figure img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain;
}

.bio-content {
  width: 100%;
}

.bio-content p {
  margin: 0;
  text-align: justify;
  text-justify: inter-word;
}

@media screen and (min-width: 900px) {
  .bio-article {
    display: block;
  }

  .bio-article figure {
    display: block !important;
    float: right !important;
    width: 35% !important;
    max-width: 35% !important;
    margin: 0 0 1rem 1.5rem !important;
  }

  .bio-content {
    width: auto;
  }
}

@media screen and (max-width: 899px) {
  .bio-article figure {
    display: none !important;
  }
}

#contact-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100% - 110px);
  color: #ffffff;
  text-align: center;
  padding: 0 5%;
}

#contact {
  background: var(--primary-bg-color);
  color: #ffffff;
  /* border-radius: 15px; */
  padding: 2.5rem;
  width: min(90%, 520px);
  max-width: 520px;
  margin: 0 auto;
  z-index: 12;
}

/* Messages */
.messages-container {
  max-width: 800px;
  margin: 0 auto;
}

.message-form {
  background: var(--primary-bg-color);
  /* border-radius: 15px; */
  backdrop-filter: blur(10px);
  margin-bottom: 2rem;
}

.message-form input,
.message-form textarea,
.message-form button {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  background: var(--primary-bg-color);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 8px;
  font-family: inherit;
  box-sizing: border-box;
}

.message-form textarea {
  height: 120px;
  resize: vertical;
}

.message-form button {
  background: linear-gradient(135deg, #131418 0%, #767479 100%);
  cursor: pointer;
  font-weight: bold;
  transition: opacity 0.3s;
}

.message-form button:hover {
  opacity: 0.9;
}

.messages-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* News */
.news-container {
  width: 95%px;
  max-width: 95%px;
  margin: 0 auto;
}

.news-item {
  background: var(--primary-bg-color);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  margin-bottom: 1.5rem;
  position: relative;
  background-size: cover;
  background-position: center;
  /* border-radius: 15px; */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  width: 95%;
  max-width: 95%;
}

.news-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-bg-color);
}

.news-item>* {
  position: relative;
}

.news-item p {
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
}

.news-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto !important;
  max-width: fit-content;
  white-space: nowrap;
  margin-bottom: 1rem;
  padding: 0.5rem;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.news-link-button::before {
  content: '🔗';
  margin-right: 0.5rem;
}

.news-link-button:hover,
.news-link-button:focus {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.news-item small {
  display: block;
  opacity: 0.8;
  margin-top: 0.5rem;
}

/* Tickets */
.tickets-container {
  width: 95%;
  max-width: 95%;
  margin: 0 auto;
}

.tickets-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--primary-bg-color);
  backdrop-filter: blur(6px);
}

.tickets-table th,
.tickets-table td {
  padding: 1rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
  vertical-align: top;
  color: #f5f5f5;
}

.tickets-table thead th {
  color: #ffffff;
  font-weight: 700;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.ticket-link-cell {
  min-width: 175px;
}

.ticket-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto !important;
  max-width: 100%;
  white-space: nowrap;
  padding: 0.9rem 1.4rem;
  border: none;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ticket-button:hover,
.ticket-button:focus {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.ticket-button:hover,
.ticket-button:focus {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.bio-item {
  background: var(--primary-bg-color);
  padding: 1.5rem;
  /* border-radius: 15px; */
  backdrop-filter: blur(10px);
  margin-bottom: 1.5rem;
}

.bio-article {
  background: var(--primary-bg-color);
  padding: 1.5rem;
  /* border-radius: 15px; */
  backdrop-filter: blur(10px);
  margin-bottom: 0rem;
}

.bio-article::after {
  content: '';
  display: table;
  clear: both;
}

.news-item small {
  display: block;
  opacity: 0.7;
  margin-top: 0.5rem;

}


.message-item {
  background: var(--primary-bg-color);
  padding: 1.5rem;
  /* border-radius: 15px; */
  backdrop-filter: blur(10px);
  /* border-left: 4px solid #888888; */
}

.message-item h4 {
  margin-bottom: 0.5rem;
  color: #fff;
}

.message-item p {
  margin-bottom: 0.3rem;
  opacity: 0.9;
}


/* MODAL */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-bg-color);
  z-index: 9999;
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  margin: 5% auto;
  width: 90%;
  max-width: 900px;
  height: 70vh;
  background: #111;
  border-radius: 20px;
  overflow: hidden;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1;
  color: #fff;
}

#ticketFrame {
  width: 100%;
  height: 100%;
  border: none;
}

.hero-content h1 {
  font-size: 2.5rem;
}


/* ADMIN LINKS */
.nav-links a[href*="admin"] {
  border: 1px solid #666;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

/* wybór tła */
.background-container {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  font-family: Arial, sans-serif;
  z-index: 0;
}



.background-container::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: top left;
  background-repeat: no-repeat;
  z-index: -1;
}



.select-btn {
  display: inline-block;
  padding: 15px 30px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  margin-top: 20px;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.select-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

.fc .fc-event-title,
.fc .fc-event-title-container {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  word-break: break-word;
}