html {
  box-sizing: border-box;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}
body {
  margin: 0;
  padding: 0;
  line-height: 1.7rem;
}
.quiz-container {
  /* box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.2); */
  text-shadow: 1px 1px white;
  padding: 2rem 1rem 1rem 1rem;
  text-shadow: 0 1px #00000010;
  width: 67%;
  margin: 1rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: auto;
  z-index: 5;
}
.title {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #ffffff;
  line-height: 1em;
  font-weight: 700;
  font-size: 2.5rem;
  text-align: center;
}
.spacer {
  height: 50px;
}
.question {
  margin: 2rem 0;
  color: #ffffff;
  font-size: 1.5rem;
}
.option {
  padding: 0.4rem;
  color: #ffffff;
  width: 80%;
  border-radius: 5px;
  transition: all 0.3s;
}
.option:hover {
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
}
.option input:checked .option {
  background: #08038c;
  color: #000;
}
.controls {
    display: flex;
    justify-content: center; /* Wyśrodkowanie poziome */
    align-items: center;     /* Wyśrodkowanie pionowe */
    margin-top: 2rem;        /* Dystans od góry */
}
/* Marginesy dla przycisków */
.controls > * {
    margin: 1rem;
}
button {
  padding: 0.5rem 1.5rem;
  border: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
  color: white;
  outline: none;
  transform: scale(0.98);
  transition: all 0.2s;
}
button.previous {
  background: #0f0f0f;
  border: 1px solid #ffffff;
}
button.previous:hover {
  background: #0f0f0f;
}
button.next {
  background: #bf910c;
}
button.restart {
  background: #0f0f0f;
  color: #fff;
  font-size: 2rem;
 border: 1px solid #ffffff;
}
button.restart:hover {
  background: #0f0f0f;
}
button:hover,
button:active {
  background: #F8CB2E;
  transform: scale(1);
  font-weight: 700;
  box-shadow: 1px 1px 1px rgba(255, 255, 255, 0.5);
}
.result {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  padding: 2rem;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 2.5rem;
  min-height: auto;
}
.final-score {
  color: #ffffff;
}
.summary {
  font-size: 1rem;
  text-shadow: 1px 1px #ffffff50;
  color: #ffffff;
  background: #00000;
  border-radius: 5px;
  display: flex;
  flex-direction: none;
  align-items: flex-start;
  margin-bottom: 2rem;
}
@media (max-width: 991px) {
  .summary {
    flex-direction: column;
  }
}
.summary h1 {
  align-self: center;
}
.services-info {
    text-align: left;
    z-index: 5;
}
.about-text-wrap {
    text-align: center; 
}
.about-image {
    max-width: 100%; 
    height: auto; 
}
.image-container {
    position: relative;
    overflow: hidden;
}
.image-container img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}
.image-container:hover img {
    transform: scale(0.95);
    cursor: pointer;
}
/* Nakładka: startuje schowana u dołu 
.image-container .overlay {
    position: absolute;
    bottom: -100%; /* zaczyna się poza ekranem 
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0); /* półprzezroczysta warstwa 
    color: #fff;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: bottom 0.3s ease;
    padding: 1rem;
    box-sizing: border-box;
}

/* Po najechaniu — nakładka się wysuwa 
.image-container:hover .overlay {
    bottom: 0;
}

.image-container .overlay span {
    font-weight: 700;
    font-size: 2rem;
    padding: 10px 20px;
    border: 1px solid #fff;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: all 0.3s ease;
	transform: scale(0.98);
}

.image-container .overlay span:hover {
  transform: scale(1);
  font-weight: 700;
  box-shadow: 1px 1px 1px rgba(255, 255, 255, 0.2);
}
*/
.coin {
  position: fixed;
  top: 50%;               /* wysokość na środku ekranu */
  right: -150px;          /* zaczyna poza ekranem po prawej */
  transform: translateY(-50%);
  transition: right 0.5s ease;
  z-index: 1000;
  width: 100px;           /* rozmiar monety, dostosuj jeśli trzeba */
  height: 100px;
  pointer-events: none;   /* moneta nie blokuje kliknięć */
}
.coin.show {
  right: 10px;            /* pozycja po wysunięciu na ekran */
}
.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.fade-in {
  opacity: 1;
  transition: opacity 0.5s ease;
}
.shadow-title {
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}
.image-container .overlay {
  display: none !important;
}

.download-image-btn {
  padding: 0.5rem 1.5rem;
  border: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
  color: white;
  outline: none;
  transform: scale(0.98);
  transition: all 0.2s;
  background: #bf910c;
  margin-top: 12px;
  cursor: pointer;
}

.download-image-btn:hover {
  background: #d7a52d;
}
.share-image-btn {
  background: #bf910c;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 0.5rem 1.5rem;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
  transition: all 0.2s;
  margin-right: 10px;
  cursor: pointer;
}
.share-image-btn:hover {
  filter: brightness(0.95);
}

/* KURZ I MGLA */

@keyframes move-twink-back {
    from {background-position:0 0;}
    to {background-position:10000px -5000px;}
}
@-webkit-keyframes move-twink-back {
    from {background-position:0 0;}
    to {background-position:10000px -5000px;}
}
@-moz-keyframes move-twink-back {
    from {background-position:0 0;}
    to {background-position:10000px 500px;}
}
@-ms-keyframes move-twink-back {
    from {background-position:0 0;}
    to {background-position:10000px 5000px;}
}

@keyframes move-clouds-back {
    from {background-position:0 0;}
    to {background-position:10000px 0;}
}
@-webkit-keyframes move-clouds-back {
    from {background-position:0 0;}
    to {background-position:10000px 0;}
}
@-moz-keyframes move-clouds-back {
    from {background-position:0 0;}
    to {background-position:10000px 0;}
}
@-ms-keyframes move-clouds-back {
    from {background-position: 0;}
    to {background-position:10000px 0;}
}

.twinkling, .clouds {
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  width:100%;
  height:100%;
  display:block;
}

.twinkling{
  background:transparent url('../images/foganddust/dust.png') repeat top center;
  z-index:0;

  -moz-animation:move-twink-back 200s linear infinite;
  -ms-animation:move-twink-back 200s linear infinite;
  -o-animation:move-twink-back 200s linear infinite;
  -webkit-animation:move-twink-back 200s linear infinite;
  animation:move-twink-back 200s linear infinite;
}

.clouds{
    background:transparent url('../images/foganddust/fog.png') repeat top center;
    z-index:0;

  -moz-animation:move-clouds-back 250s linear infinite;
  -ms-animation:move-clouds-back 250s linear infinite;
  -o-animation:move-clouds-back 250s linear infinite;
  -webkit-animation:move-clouds-back 250s linear infinite;
  animation:move-clouds-back 250s linear infinite;
}