@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300&display=swap');

:root {
  --bg-color: #ffffff;
  --text-color: #2c2c2c;
  --box-bg: #fafafa;
  --primary-color: #3f774c;
  --nav-bg: #3f774c;
  --nav-text: #ffffff;
  --nav-hover: #2d5735;
  --nav-active-bg: #ffd700;
  --nav-active-text: #2c2c2c;
  --btn-border: #3f774c;
  --btn-hover-bg: #f0f0f0;
  --shadow: rgba(0,0,0,0.08);
}

/* Cały pasek nawigacji */


/* Kontener w nawigacji – wyśrodkowanie linków */
nav .nav-wrapper {
  display: flex;
  justify-content: center; /* horyzontalne wyśrodkowanie */
  align-items: center;     /* pionowe wyśrodkowanie */
}

/* Logo możesz ukryć lub przenieść do menu, jeśli też ma być w centrum */
nav .brand-logo {
  position: static;        /* usuwa pozycjonowanie Materialize */
  transform: none;         /* usuwa przesunięcie */
  margin-right: 20px;      /* odstęp od linków */
}

/* Lista linków */
nav ul {
  display: flex;
  justify-content: center; /* linki w centrum */
  align-items: center;
}

/* Linki w menu */
nav ul li a {
  font-weight: 500;
  font-size: 1rem;
  padding: 0 15px;
}



body.dark-mode {
  --bg-color: #0f1f0f;
  --text-color: #ffffff;
  --box-bg: #1a2f1a;
  --primary-color: #428150 ;
  --nav-bg: #1a2f1a;
  --nav-text: #ffffff;
  --nav-hover: #2a4a2a;
  --nav-active-bg: #4a8a4a;
  --nav-active-text: #0f1f0f;
  --btn-border: #4a8a4a;
  --btn-hover-bg: #2a4a2a;
  --shadow: rgba(0,0,0,0.4);
}

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  transition: background-color 0.3s, color 0.3s;
}

.sticky-header { 
  
  top: 0;  
  z-index: 100; 
  padding: 10px 0; 
  background-color: var(--bg-color);
  transition: background-color 0.3s;
}
.sticky-header h1 { 
  margin: 0 0 5px 0; 
  font-size:2.5rem; 
  font-weight: 300; 
  color: var(--primary-color); 
  transition: color 0.3s;
}
.sticky-header .info { 
  margin: 2px 0; 
  font-size: 1.1rem; 
  color: var(--text-color); 
  transition: color 0.3s;
}

.didaskalia {
  color: var(--primary-color);
  transition: color 0.3s;
  font-size: 1.2rem;
}

.main-nav {
  background-color: var(--nav-bg);
  color: var(--nav-text);
  font-family: 'Lato', sans-serif;
  text-align: center;
  transition: background-color 0.3s;
}

.nav-container {
  display: flex;
  justify-content: center;
  padding: 0px 0;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: var(--nav-text);
  text-decoration: none;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

.nav-links li a:hover {
  background-color: var(--nav-hover);
}

.nav-links li a.active {
  background-color: var(--nav-active-bg);
  color: var(--nav-active-text);
}

.container { 
  display: flex; 
  flex-direction: row; 
  gap: 10px; 
  align-items: flex-start; 
  width: 100%; 
  max-width: 500px; 
  flex: 1; 
  margin-top: 10px; 
}

.prayer-box { 
  flex: 1; 
  background: var(--box-bg); 
  padding: 10px; 
  border-radius: 12px; 
  box-shadow: 0 4px 8px var(--shadow); 
  margin: 10px; 
  position: sticky; 
  top: 100px; 
  align-self: flex-start; 
  max-height: unset; 
  min-height: 180px; 
  overflow-y: auto; 
  display: flex; 
  flex-direction: column; 
  justify-content: flex-start; 
  align-items: center;
  transition: background-color 0.3s, box-shadow 0.3s, padding 0.3s, top 0.3s;
}

@keyframes flash {
  0% { background-color: var(--box-bg); }
  50% { background-color: #4fa261; }
  100% { background-color: var(--box-bg); }
}
.flash {
  animation: flash 0.3s ease-in-out;
}

.progress-rosary { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 6px; 
  padding: 10px; 
}

.dot { 
  width: 18px; 
  height: 18px; 
  border-radius: 50%; 
  background: #00a9ff; 
  transition: background 0.3s, transform 0.3s, border-color 0.3s; 
  cursor: pointer; 
}

.dot.active { 
  transform: scale(2); 
  border: 3px solid var(--text-color); 
  transition: border-color 0.3s;
}

.dot.separator { 
  width: 10px; 
  height: 0px; 
  background: transparent; 
  border: 2px solid #aaa; 
  border-radius: 0%; 
  margin: 6px 0; 
  cursor: pointer; 
}

.dot.separator.active { 
  border-color: var(--primary-color); 
  transform: scale(1.2); 
}

.dot.our-father { 
  width: 26px; 
  height: 26px; 
  background: #00a9ff; 
}

.button-row { 
  display: flex; 
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%; 
  gap: 15px; 
  margin-top: 20px;
}

.btn-prev { 
  border: 2px solid var(--btn-border); 
  background: transparent; 
  color: var(--btn-border); 
  border-radius: 50%; 
  font-size: 14px; 
  cursor: pointer; 
  font-weight: bold; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  width: 100px;
  height: 100px;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.btn-prev:hover { 
  background: var(--btn-hover-bg); 
}

.btn-next { 
  background-color: var(--primary-color); 
  color: white; 
  border: none; 
  padding: 0; 
  border-radius: 50%; 
  font-size: 24px; 
  cursor: pointer; 
  font-weight: bold; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 4px;
  width: 200px;
  height: 200px;
  transition: background-color 0.3s;
}

.btn-next:hover { 
  background-color: #2d5735; 
}

.btn-reset { 
  background-color: var(--primary-color); 
  color: white; 
  border: none; 
  padding: 20px 30px; 
  border-radius: 30px; 
  font-size: 18px; 
  cursor: pointer; 
  font-weight: bold; 
  margin-top: 15px; 
  width: 100%; 
  min-height: 60px;
  text-align: center;
  transition: background-color 0.3s;
}

.btn-reset.secondary { 
  background-color: var(--btn-hover-bg); 
  color: var(--primary-color); 
  border: 2px solid var(--primary-color);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.btn-reset:hover { 
  background-color: var(--primary-color); 
  color: white; 
}

#mystery-name-top { 
  font-size: 1.5rem; 
  font-weight: 300;
  color: var(--primary-color); 
  margin-bottom: 5px;
  transition: color 0.3s;
}

#mystery-name-bottom { 
  font-size: 2rem; 
  font-weight: 300; 
  color: var(--text-color); 
  margin-bottom: 10px;
  transition: color 0.3s;
}

#prayer-text { 
  font-size: clamp(0.95rem, 6vw, 2.6rem);
  font-weight: 300; 
  margin: 0 0 5px 0; 
  display: flex; 
  align-items: center; 
  text-align: center; 
  color: var(--text-color);
  transition: color 0.3s;
}

.toggle-controls {
  position: fixed;
  bottom: 20px;
  right: calc(50vw - 250px + 20px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.toggle-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--box-bg);
  padding: 8px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 8px var(--shadow);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
  transition: all 0.3s;
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background-color: #ccc;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.toggle-switch.active {
  background-color: var(--primary-color);
}

.toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

.toggle-switch.active .toggle-slider {
  transform: translateX(20px);
}

.toggle-icon {
  font-size: 18px;
  color: var(--primary-color);
  transition: color 0.3s;
}

footer {
  margin-top: 40px;
}

footer a {
  color: var(--text-color);
  transition: color 0.3s;
}

@media (max-width: 600px) {
  .container { flex-direction: row; }
  .prayer-box { font-size: 0.95rem; padding: 8px; min-height: 150px; top: 80px; }
  .sticky-header h1 { font-size: 1.4rem; }
  .btn-next { font-size: 20px; width: 160px; height: 160px; }
  .btn-prev { padding: 6px 12px; font-size: 13px; min-height: 30px; }
  .btn-reset { padding: 18px 25px; font-size: 17px; min-height: 55px; }
  .toggle-controls { bottom: 10px; right: 10px; }
  .toggle-item { font-size: 12px; padding: 6px 10px; }
  .toggle-switch { width: 36px; height: 20px; }
  .toggle-slider { width: 16px; height: 16px; }
  .toggle-switch.active .toggle-slider { transform: translateX(16px); }
}


.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24
}

.sidenav-trigger {
  display: none;
}

.main-menu {
  display: flex;
  gap: 10px; /* odstęp między elementami, opcjonalnie */
  align-items: center;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 2px; /* odstęp między globem a strzałką */
  padding: 0 8px;
}

.lang-btn .arrow {
  font-size: 18px; /* mniejsza strzałka */
  margin-left: -2px; /* trochę bliżej globu */
}

.intro-text {
  font-size: clamp(0.95rem, 6vw, 2.6rem);
  line-height: 1.8;
  color: #ffd378; /* możesz zmieniać */
  text-align: left;
  white-space: pre-line;
}

.dark-mode .intro-text {
  color: #ffe7a3;
}

.full-prayer-text{
  margin-top:18px;
  font-size:0.8rem;
  line-height:1.5;
  color:#ffffff;
  opacity:0.85;
  text-align:center;
  white-space:pre-line;
}
