body {
  font-family: "Nunito", sans-serif;
}

.color-primary {
  color: #e80f88;
}

/* Hide scrollbar for Chrome, Safari and Opera */
#questions-list::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
#questions-list {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.edookio-link {
  color: white;
  border: 1px solid #fd762d;
  background: linear-gradient(90deg, #ff6e1e, #f1471b);
  padding: 2px 12px;
  border-radius: 5px;
  transition: all 0.3s;
}

.edookio-link:hover {
  color: #fd762d;
  background: white;
  background-color: white;
}

/* NEW CARD DESIGN*/
.flip-card {
  width: 100%;
  height: 350px;
  font-size: 1.125rem;
}

.flip-card-inner {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.5s;
}

.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  width: 100%;
  height: 100%;
  position: absolute;
}

.flip-card-front {
  transform: rotateX(0deg);
  backface-visibility: hidden;
}

.flip-card-back {
  transform: rotateY(180deg);
  backface-visibility: hidden;
}

.front-main-content,
.back-main-content {
  height: 100%;
  overflow: auto;
}

.front-main-content::-webkit-scrollbar {
  display: none;
}

.back-main-content::-webkit-scrollbar {
  display: none;
}

.front-menu,
.back-menu {
  padding: 10px;
}

#pageB {
  max-height: 100%;
}

.card-text p:nth-child(1) {
  margin-bottom: 0;
}

.card-text p:nth-child(2) {
  margin-top: 1rem;
}

/* SHOW CARD PAGE */
.text-smaller {
  font-size: 0.875rem;
}

.border-grey {
  border: 1px solid #e0e0e0; /* Light border color */
  border-radius: 18px; /* Rounded corners */
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1); /* Light shadow */
}

/*.inner-card-div {
    width: 96%;
}*/

.hide {
  display: none;
}

.servis-btns a,
.servis-btns p {
  font-size: 0.8rem;
  line-height: 1rem;
}

.btn-outline-primary#btn-flip-front:focus {
  outline: none !important;
  box-shadow: none;
}

.btn-outline-primary#btn-flip-front:active {
  outline: none !important;
  box-shadow: none;
}

.btn-outline-primary#btn-flip-back:focus {
  outline: none !important;
  box-shadow: none;
}

.btn-outline-primary#btn-flip-back:active {
  outline: none !important;
  box-shadow: none;
}

.invisible {
  visibility: hidden;
}

.btn-link {
  border: none;
  background-color: #f8f9fa;
  font-size: 0.8rem;
}

.back-link {
  text-decoration: none;
}

#pageB > div > p,
#pageB > div > ul {
  text-align: justify;
}

#pageB > div > ul > li {
  padding-top: 0.3rem;
}

#pageB > div > p {
  margin-bottom: 0.5rem;
}

#rotate-back,
#rotate-back-rendered {
  color: #e80f88;
  cursor: pointer;
  height: 100%;
  min-width: 40px;
  font-size: 1.2em;
}

#rotate-back-mobile,
#rotate-back-mobile-rendered {
  color: #e80f88;
  cursor: pointer;
  height: 100%;
  min-width: 40px;
  font-size: 1.2em;
}

@keyframes vibrate {
  0% {
    transform: translateY(0);
  }
  20% {
    transform: translateY(2px);
  }
  40% {
    transform: translateY(-2px);
  }
  60% {
    transform: translateY(2px);
  }
  80% {
    transform: translateY(-1px);
  }
  100% {
    transform: translateY(0);
  }
}

.vibrate {
  animation: vibrate 0.5s ease-in-out 1;
}

.no-click {
  pointer-events: none;
  user-select: none;
}

#btn-dalsi,
#btn-dalsi-rendered,
#btn-dalsi-last-card,
#btn-otocit,
#btn-otocit-rendered,
#btn-dalsi-filler {
  min-width: 120px;
}

#btn-otocit:focus,
#btn-otocit-rendered:focus,
#btn-otocit:hover,
#btn-otocit-rendered:hover,
#btn-otocit:active,
#btn-otocit-rendered:active {
  border: 1px solid #e80f88;
  background-color: white;
  color: #e80f88;
}

#predchozi-karticka-link {
  cursor: pointer;
}

.chevron-back-div {
  display: flex;
  justify-content: center;
  align-items: center;
}

.chevron-back {
  color: #e80f88;
  font-size: 1.2em;
  padding: 0.5rem;
}

.chevron-back-disabled {
  color: #e80f8677;
  font-size: 1.2em;
  padding: 0.5rem;
  cursor: default;
}

.chevron-back-disabled:hover {
  color: #e80f8677;
}

.save-star {
  color: #e80f88;
  height: 100%;
  min-width: 40px;
  font-size: 1.2em;
}

.save-star-spinner {
  color: #e80f88;
  min-width: 20px;
  min-height: 20px;
}

#star-div {
  min-width: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#rotate-div {
  min-width: 40px;
  display: flex;
  justify-content: end;
  align-items: center;
}

.spinner-border-small {
  height: 20px;
  width: 20px;
}
/* Text gradient fade */
.text-gradient {
  position: relative;
}

.text-gradient:after {
  position: absolute;
  bottom: 0;
  height: 18%;
  width: 100%;
  content: "";
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 1) 20%,
    rgba(255, 255, 255, 0) 80%
  );
  pointer-events: none; /* so the text is still selectable */
}

.white-space {
  white-space: pre-wrap;
  line-height: 1;
}

.knows-all-badge {
  background-color: #7ac705;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
}

/*DEMO FINISHED CARD*/
.demo-finished-card {
  padding: 3rem;
}

.demo-finished-main {
  font-size: 1.75rem;
}

@media only screen and (max-width: 992px) {
  .nezobrazovat-na-mobilu {
    display: none;
  }
  .save-star {
    font-size: 1.2em;
  }

  #rotate-back-mobile,
  #rotate-back-mobile-rendered,
  .save-star {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .demo-finished-card {
    padding: 1rem;
  }

  .demo-finished-main {
    font-size: 1.25rem;
  }
}

@media only screen and (max-width: 1200px) {
  .hide-under-1200 {
    display: none;
  }
}

@media only screen and (min-width: 992px) {
  .zobrazovat-jen-na-mobilu {
    display: none;
  }
  .mobile-btn {
    width: 10rem;
  }
  #rotate-back,
  #rotate-back-rendered,
  .save-star {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

@media only screen and (max-width: 440px) {
  .knowledge-btn {
    zoom: 90%;
  }
}

@media only screen and (max-width: 415px) {
  .knowledge-btn {
    zoom: 80%;
  }
}

@media only screen and (max-width: 390px) {
  .knowledge-btn {
    zoom: 70%;
  }
}

@media only screen and (max-width: 370px) {
  .knowledge-btn {
    zoom: 60%;
  }
}

@media only screen and (max-width: 350px) {
  .knowledge-btn {
    zoom: 50%;
  }
}

@media only screen and (max-width: 330px) {
  .knowledge-btn {
    zoom: 40%;
  }
}
