body {
  font-family: "Roboto Medium", "Roboto", sans-serif;
  letter-spacing: 0.2px;
}

header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  padding: 24px;
  font-weight: 600;
  color: #1d1d1d;
  justify-content: space-between;
  font-size: 18px;
  background-color: #ffffff;
}

#imagegrad {
  display: inline-flex; /* Make div fit the size of its content */
  position: relative;
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(128, 128, 128, 0.3) 0%,
    rgba(148, 148, 148, 0.3) 10%,
    rgba(169, 169, 169, 0.3) 20%,
    rgba(190, 190, 190, 0.3) 30%,
    rgba(211, 211, 211, 0.3) 40%,
    rgba(233, 233, 233, 0.3) 50%,
    rgba(255, 0, 0, 0.7) 60%,
    rgba(128, 128, 0, 0.7) 65%,
    /* Olive */ rgba(0, 255, 0, 0.7) 70%,
    rgba(0, 128, 128, 0.7) 75%,
    /* Teal */ rgba(0, 0, 255, 0.7) 80%,
    rgba(64, 64, 192, 0.7) 90%,
    /* Medium Blue */ rgba(128, 128, 128, 0.3) 100%
  );
  background-size: 200% 200%;
  z-index: 2; /* Ensure the gradient overlay is above the image */
  mix-blend-mode: screen; /* Ensures gradient only shows on the emblem */
  animation: gradientAnimation 3s linear infinite; /* Slower and continuous animation */
}

@keyframes gradientAnimation {
  0% {
    background-position: 50% -100%;
  }
  100% {
    background-position: 50% 100%; /* Gradient goes back to the bottom */
  }
}

p.czas {
  text-align: center;
  color: #4a4a4a;
  font-size: 12px;
}

main {
  position: relative;
  background-image: url(./dowodnowybg.png);
  margin: 16px 20px 0px 20px;
  height: 385px;
  display: flex;
  border-radius: 12px 12px 0px 0px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.15);
  background-repeat: no-repeat;
  background-size: cover;
}

#lew {
  position: relative;
  margin: 20px;
  width: 45%;
}

#lew #zdjecie {
  border-radius: 16px;
  width: 100%;
}

#lew #flaga {
  width: 55%;
  margin: 0;
}

/* #lew #godlo {
  /* width: 25%; */
/* padding: 10px; */

#lew p {
  font-size: 11px;
  color: #808080;
}

#rzecz {
  margin-top: 20px;
  display: flex;
  align-items: center;
  position: relative;
}
#rzecz p {
  margin-left: 4px;
}
#praw {
  position: relative;
  margin: 20px;
  width: 65%;
}
#praw p:not(.sub) {
  font-size: 15px;
  color: #1d1d1d;
  font-weight: 600;
}
#praw .sub {
  font-size: 12px;
  color: #4a4a4a;
  font-weight: 500;
}
#praw br {
  content: "";
  margin: 3em;
  display: block;
  font-size: 24%;
}
#bottom {
  position: relative;
  height: 72px;
  background-color: #ffffff;
  box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.15);
  border-radius: 0px 0px 12px 12px;
  margin: 0 20px 16px 20px;
  padding: 20px;
  display: flex;
  align-items: center;
  color: #598527;
  font-size: 14px;
  font-weight: 600;
}
#bottom p {
  margin-left: 20px;
}
.buto {
  margin: 16px 16px 0 16px;
  height: 80px;
  display: flex;
  background-color: #ffffff;
  padding: 20px;
  align-items: center;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}
.buto img:first-of-type:not(.buto img:last-of-type) {
  width: 20px;
  margin-right: 10px;
}
.buto img:last-of-type {
  margin-left: auto;
  width: 40px;
}

#lo {
  margin-bottom: 0;
  padding: 0 20px;
  height: 60px;
}
.krecha {
  height: 0.01rem;
  width: 100%;
  background-color: #dddddd;
}
.krecha2 {
  height: 0.01rem;
  width: 100%;
  background-color: #dddddd;
  margin-left: 5%;
  margin: 8px 0;
}
.content {
  margin: 0 16px 0 16px;
  padding: 0 20px 0px 20px;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.1);
  border-radius: 0px 0px 12px 12px;
}
.content .dana {
  padding: 16px 0 16px 0;
}

.info {
  font-size: 14px;
  color: rgba(74, 74, 74, 0.99);
}

.main {
  font-size: 16px;
  color: #1d1d1d;
  font-weight: 600;
}
#aktualizuj {
  margin: 16px 0;
  margin-left: auto;
  color: #014a93;
  font-size: 14px;
  text-align: center;
  background-color: #dbeaf9;
  padding: 6px 16px 6px 16px;
  border-radius: 24px;
  letter-spacing: 0.2px;
}
.disclaimer {
  font-size: 8px;
  color: #8f8f8f;
  font-weight: bold;
  margin: 8px 20px;
  background-color: #ffffff; /* Чтобы выделить на фоне */
  padding: 8px;
  border-radius: 5px;
}

#szaro {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}
#wybierzdokument,
#danedowodowe {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 95%;
  width: 100%;
  z-index: 9999;
  background-color: #ffffff;
  border-radius: 32px 32px 0px 0px;
  display: flex;
  flex-direction: column;
}
#wybierzdokument {
  align-items: center;
}

#danedowodowe {
  align-items: left;
}

#krech {
  margin: 16px;
  height: 0.38rem;
  width: 35%;
  background-color: #dddddd;
  border-radius: 16px;
}
#wybierztitle {
  font-size: 18px;
  color: #1d1d1d;
  margin: 48px;
  font-weight: 600;
}

#danetitle {
  font-size: 18px;
  color: #1d1d1d;
  margin: 32px 48px 0 32px;
  font-weight: 600;
}
.wybierzitem {
  width: 90%;
  /* height: 27%; */
  margin-bottom: 32px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  padding: 32px 36px;
  line-height: 1.2;
  background-repeat: no-repeat;
  background-size: cover;
}
.wybierzitem button {
  border-radius: 24px;
  background-color: #014a93;
  font-family: "Roboto Medium", "Roboto", sans-serif;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  line-height: normal;
  font-size: 16px;
  padding: 16px;
  margin-top: 16px;
  background-repeat: no-repeat;
}

.zamknijprzycisk {
  border-radius: 24px;
  background-color: white;
  border: #014a93 solid 1px;
  font-family: "Roboto Medium", "Roboto", sans-serif;
  font-weight: 600;
  color: #014a93;
  text-align: center;
  line-height: normal;
  font-size: 16px;
  padding: 16px;
  background-repeat: no-repeat;
  width: 90%;
  margin: 0 auto;
}

.wrocprzycisk {
  border-radius: 24px;
  border: white solid 1px;
  background-color: white;
  font-family: "Roboto Medium", "Roboto", sans-serif;
  font-weight: 600;
  color: #014a93;
  text-align: center;
  line-height: normal;
  font-size: 16px;
  padding: 16px;
  background-repeat: no-repeat;
  width: 90%;
  margin: 0 auto;
}

.dowo {
  font-size: 24px;
  color: #1d1d1d;
  font-weight: 600;
  margin-bottom: 16px;
}
/* #wi1 {
  background-image: url("../dowod_files/wybierzitem1.svg");
}
#wi2 {
  background-image: url("../dowod_files/wybierzitem2.svg");
} */
.ovh {
  overflow: hidden;
}

#arrow,
#rotation {
  padding: 8px;
}

#danebox {
  margin: 16px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #dddddd;
}

.seria {
  font-size: 24px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

#kopiuj {
  color: #014a93;
  font-size: 14px;
  text-align: center;
  background-color: #dbeaf9;
  padding: 6px 16px 6px 16px;
  border-radius: 24px;
  letter-spacing: 0.2px;
  margin-right: 16px;
  margin-bottom: 16px;
}

#bottooom {
  display: flex;
  flex-direction: column;
  align-items: center;
}
