body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: white;
  background-image: url("https://raw.githubusercontent.com/filipwood/projekt_szkola_quiz_pliki/refs/heads/main/file_00000000b02471f4a288fba13c78cb1d.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow-x: hidden;
}
#app {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
  box-sizing: border-box;
}
.menu-trudnosci {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.menu-trudnosci h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 800;
  text-align: center;
  text-shadow: 0 0 15px rgba(255,255,255,0.2), 0 0 35px rgba(255,255,255,0.1);
}

.opis-menu {
  margin-top: -3px;
  font-size: 18px;
  text-align: center;
  opacity: 0.9;
}

.karty-trudnosci {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.karta {
  width: 210px;
  min-height: 285px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 230, 0, 0.18);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,0,0.55);
  box-shadow: 0 0 25px rgba(255,255,0,0.25), 0 0 60px rgba(255,255,0,0.08);
  transition: 0.2 ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.karta:hover {
  transform: scale(1.03);
  background: rgba(255, 230, 0, 0.24);
  box-shadow: 0 0 35px rgba(255,255,0,0.35), 0 0 80px rgba(255,255,0,0.15);
}

.przerwa {
  margin-top: 40px;
}
.karta h2 {
  margin: 6px 0;
  font-size: 30px;
  text-align: center;
}

.karta h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  opacity: 0.9;
  line-height: 1.25;
}
.wybierz-btn {
  margin-top: auto;
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 10px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  color: #17326b;
  background: #ffe600;
  box-shadow: 0 0 20px rgba(255,255,0,0.35);
  transition: 0.15s ease;
}

.wybierz-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 0 35px rgba(255,255,0,0.5);
}

.info-box {
  margin-top: 8px;
  padding: 12px 18px;
  border-radius: 18px;
  background: rgba(0,0,50,0.35);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  font-size: 15px;
  text-align: center;
  opacity: 0.92;
  color: rgb(161, 161, 161);
}
.quiz-container {
  width: 100%;
  max-width: 950px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quiz-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.quiz-center {
  align-self: center !important;
}
.quiz-box-small {
  padding: 8px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 50, 0.35);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 16px;
  box-shadow: 0 0 20px rgba(255,255,255,0.05);
  color: rgb(202, 202, 202);
}


.czas-box {
  width: 370px;
  display: flex;
  justify-content: flex-end;
}
.question_change {
  width: 370px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.question_change button {
  min-width: 50px;
  height: 40px;
  padding: 8px 12px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  font-weight: 700;
  color: white;
  background: rgba(255, 230, 0, 0.18);
  backdrop-filter: blur(6px);
  border: 2px solid rgba(255,255,0,0.45);
  box-shadow: 0 0 20px rgba(255,255,0,0.15);
  transition: 0.15s ease;
  justify-content: center;
}

.question_change button:hover {
  transform: scale(1.05);
  background: rgba(255,255,0,0.28);
  box-shadow: 0 0 30px rgba(255,255,0,0.35);
}

.question_change button:active {
  transform: scale(0.95);
}

.time-bar-box {
  width: 100%;
}

.time-title {
  text-align: center;
  font-size: 15px;
  margin-bottom: 6px;
}

.time-bar {
  width: 100%;
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
  border: 2px solid rgba(255,255,255,0.1);
}

.time-bar-inner {
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background:#ffe600;
  box-shadow: 0 0 20px rgba(255,255,0,0.45);
  transition: width 1s linear;
}
.quiz-main {
  width: 100%;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 230, 0, 0.16);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,0,0.45);
  box-shadow: 0 0 35px rgba(255,255,0,0.18);
  box-sizing: border-box;
}

.question-number {
  width: fit-content;
  margin: auto;
  padding: 8px 16px;
  border-radius: 12px;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,0,0.5);
  font-size: 18px;
  font-weight: 700;
}

.question-title {
  margin-top: 14px;
  margin-bottom: 18px;
  text-align: center;
  font-size: 32px;
  font-weight: 800;
}

.question-image {
  max-height: 150px;
  display: block;
  margin: auto;
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(0,0,0,0.25);
}
.answers {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.answer-option input {
  display: none;
}

.answer-content {
  padding: 12px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  color: white;
  background: rgba(255, 230, 0, 0.16);
  backdrop-filter: blur(5px);
  border: 2px solid rgba(255,255,0,0.45);
  box-shadow: 0 0 20px rgba(255,255,0,0.15);
  transition:
  transform 0.15s ease;
}

.answer-content:hover {
  transform: scale(1.02);
  background: rgba(255,255,0,0.24);
  box-shadow: 0 0 30px rgba(255,255,0,0.3);
}

.answer-option input:checked + .answer-content {
  background: rgba(255,255,0,0.35);
  border: 2px solid #fff176;
  box-shadow: 0 0 35px rgba(255,255,0,0.45);
}

.answer-letter {
  opacity: 0.75;
  margin-right: 10px;
}

.nie-wiem-style {
  background: rgba(0,0,50,0.35);
  border: 2px solid rgba(255,255,255,0.15);
}
.answer-option:last-child {
  grid-column: span 2;
  text-align: center;
}
.nie-wiem-style:hover {
  background: rgba(0,0,80,0.45);
}



.finish-button-box {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.finish-button {
  padding: 14px 28px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  font-size: 22px;
  font-weight: 700;
  color: #17326b;
  background: #ffe600;
  border: 2px solid rgba(255,255,0,0.55);
  box-shadow: 0 0 25px rgba(255,255,0,0.35);
  transition: 0.15s ease;
}

.finish-button:hover {
  transform: scale(1.04);
  background: #fff176;
  box-shadow: 0 0 40px rgba(255,255,0,0.5);
}

.finish-button:active {
  transform: scale(0.96);
}
.question-text {
  margin-top: 20px;
  font-size: 1.2rem;

  display: flex;
  justify-content: center;
  align-items: baseline;

  gap: 12px;
  line-height: 1.5;
}
.map-container {
  width: 400px;
  height: 320px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px;
  box-shadow:
  0 0 30px rgba(0,0,0,0.25);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  transform: scale(1.6);
  transform-origin: center 58%;
}
#zakonczenie {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 230, 0, 0.16);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,0,0.45);
  box-shadow:
  0 0 35px rgba(255,255,0,0.18);
  box-sizing: border-box;
}
#zakonczenie h1 {
  margin-top: 0;
  margin-bottom: 18px;
  text-align: center;
  font-size: 42px;
  font-weight: 800;
}
#zakonczenie h2 {
  margin-top: 30px;
  margin-bottom: 15px;
  text-align: center;
  font-size: 28px;
}
#zakonczenie > div {
  font-size: 20px;
  text-align: center;
  margin-bottom: 8px;
}
.bledy-table-wrapper {
  max-height: 420px;
  overflow-y: auto;
  overflow-x: auto;
  border-radius: 18px;
  background: rgba(0,0,50,0.22);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 10px;
}

#zakonczenie table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}
#zakonczenie th {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 14px;
  font-size: 18px;
  background: rgba(0,0,70,0.92);
  backdrop-filter: blur(8px);
  color: white;
  text-align: center;
}
#zakonczenie td {
  padding: 14px;
  text-align: center;
  vertical-align: middle;
  font-size: 17px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(5px);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
#zakonczenie tr td:first-child,
#zakonczenie tr th:first-child {
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}

#zakonczenie tr td:last-child,
#zakonczenie tr th:last-child {
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}
#zakonczenie img {
  width: 180px;
  border-radius: 14px;
  box-shadow:
  0 0 20px rgba(0,0,0,0.25);
}
#zakonczenie iframe {
  width: 300px;
  height: 220px;
  border: none;
  border-radius: 14px;
}

.bledy-table-wrapper::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.bledy-table-wrapper::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.2);
  border-radius: 999px;
}

.bledy-table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255,255,0,0.5);
  border-radius: 999px;
}
#audioplay {
  width: 42px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  overflow: hidden;
  background: rgba(255,255,0,0.45);
  border: 3px rgba(255,255,0) solid;
  border-radius: 100%;
  cursor: pointer;
}

#audioplayimg {
  width: 18px;
  height: 18px;
  display: block;
}



.modal-content {
    background: rgba(70, 150, 190, 0.35) !important;
    backdrop-filter: blur(15px);
    border: 2px solid #c3d300 !important;
    color: white !important;
        --bs-modal-bg: rgba(70, 150, 190, 0.35);
    --bs-modal-color: white;
    --bs-modal-border-color: #c3d300;
}


.modal-header {
    border-bottom: 1px solid rgba(195, 211, 0, 0.4);
}

.modal-footer {
    border-top: 1px solid rgba(195, 211, 0, 0.4);
}

.modal-title {
    font-weight: 700;
    color: white;
}

.modal-body {
    color: rgba(255,255,255,0.9);
    font-size: 1.05rem;
}

.modal-backdrop.show {
    backdrop-filter: blur(5px);
    background: rgba(0,0,0,0.4);
}

.btn-close {
    filter: invert(1);
}
