@import url("https://fonts.googleapis.com/css?family=Lato:400,700&display=swap");

:root {
  --page-header-bgColor: #242e42;
  --page-header-bgColor-hover: #1d2636;
  --page-header-txtColor: #dde9f8;
  --page-header-headingColor: #7889a4;
  --page-header-width: 220px;
  --page-content-bgColor: #f0f1f6;
  --page-content-txtColor: #171616;
  --page-content-blockColor: #fff;
  --tr-hover: #f2f2f2;
  --white: #fff;
  --black: #333;
  --blue: #00b9eb;
  --red: #ec1848;
  --border-radius: 4px;
  --box-shadow: 0 0 10px -2px rgba(0, 0, 0, 0.075);
  --switch-bgLightModeColor: #87cefa;
  --switch-sunColor: gold;
  --switch-moonColor: #f4f4f4;
  --switch-bgDarkModeColor: #1f1f27;
}

.bg-image {
    background-color: #b9b7ba;
    background-image: url('/egzaminator_top.webp');
    background-size: auto 50vh;
    background-repeat: no-repeat;
    background-position: right center;
    height: 40vh;
    opacity: 0;
    animation: fade-in 2s ease-out forwards;
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.uppercase-first-letter {
    text-transform: uppercase;
}

.uppercase-first-letter::first-letter {
    font-size: 1.5em;
}

.recent-courses {
    padding: 20px;
    background-color: #f9f9f9;
}

.courses-container {
    display: flex;
    justify-content: space-between;
}

.course {
    width: 30%;
    border: 1px solid #ddd;
    padding: 20px;
    background-color: #fff;
    box-shadow: 2px 2px 5px #aaa;
}

.course img {
    max-width: 100%;
    height: auto;
}

.course h3 {
    font-size: 1.2rem;
    margin: 15px 0;
}

.course p {
    font-size: 1rem;
    color: #555;
}

.topshadow{
    -webkit-box-shadow: 0px 8px 24px 0px rgba(66, 68, 90, 1);
    -moz-box-shadow: 0px 8px 24px 0px rgba(66, 68, 90, 1);
    box-shadow: 0px 8px 24px 0px rgba(66, 68, 90, 1);
}

.topshadowtext{
  text-shadow: 1px 1px 2px black, 0 0 25px grey, 0 0 5px darkgrey;
}

/* Grid / list */

.course-item {
    margin-bottom: 1rem;
}

.course-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: .25rem .25rem 0 0;
}

.course-name {
    font-size: 1.2rem;
    font-weight: bold;
}

.course-price {
    color: #f00;
    font-size: 1rem;
}

/* Styl dla widoku listy */
.list-view .course-item {
    display: flex;
}

.list-view .course-image {
    width: 30%;
    z-index:2;
    border-radius: .25rem 0 0 .25rem;
}

.list-view .course-details {
    flex: 1;
    border-radius: 0 .25rem .25rem 0;
}

/* Styl dla widoku siatki - 3 elementy na wiersz */
.grid-view .course-item {
    flex: 0 0 calc(33.333% - 1rem);
    max-width: calc(33.333% - 1rem);
}

/* ResponsywnoĹ›Ä‡ */
@media (max-width: 992px) {
    .grid-view .course-item {
        flex: 0 0 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .grid-view .course-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Aby widok listy zawsze miaĹ‚ tylko jednÄ… kolumnÄ™ */
.list-view .course-item {
    flex: 0 0 100%;
    max-width: 100%;
}
/* Grid / list END */

/* z dashboard */

.page-content .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 30px;
  }
  
  .page-content .grid > article {
    min-height: 300px;
    background: var(--page-content-blockColor);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
  }
  
  .page-content .grid > article.fullwidth {
    grid-column: 1 / -1;
  }

  table.list {
    border-collapse: collapse;
    width: 100%;
    padding: 30px;
  }
  table.list th,
  table.list td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
  }
  table.list th.icon,
  table.list td.icon {
    text-align: center;
  }
  table.list tr.module{
    background: var(--tr-hover);
    font-weight: 700;
  }
  table.list tr.partialExam{
    background: var(--bs-orange);
    color: var(--white);
    font-weight: 700;
  }
  table.list tr.exam{
    background: var(--bs-red);
    color: var(--white);
    font-weight: 700;
  }
  table.list tr.practice{
    background: var(--bs-green);
    color: var(--white);
    font-weight: 700;
  }
  table.list tr span {
    color: var(--bs-dark);
  }
  table.list tr.partialExam a, table.list tr.exam a, table.list tr.practice a{
    color: var(--white);
  }
  table.list tr.partialExam span, table.list tr.exam span, table.list tr.practice span {
    color: var(--white);
  }
  table.list tr.partialExam a:hover, table.list tr.exam a:hover, table.list tr.practice a:hover{
    color: var(--bs-dark);
  }
  table.list tr.partialExam:hover a, table.list tr.exam:hover a, table.list tr.practice:hover a{
    color: var(--bs-dark);
  }
  table.list tr.partialExam:hover span, table.list tr.exam:hover span, table.list tr.practice:hover span{
    color: var(--bs-dark);
  }
  table.list td.lesson-subject{
    padding-left: 20px;
  }
  table.list td{
    font-size: smaller;
  }
  table.list > tbody > tr:hover {
    background-color: var(--tr-hover);
  }
  table.list > tbody > tr.partialExam:hover, table.list > tbody > tr.exam:hover, table.list > tbody > tr.practice:hover {
    background-color: var(--tr-hover);
    color: var(--bs-dark);
  }
  table.list td.icon {
    width: 50px;
  }
  table.list .icon i {
    font-size: 18px;
  }

  td.icon a{
    color: black;
  }

  .article-title{
    padding: 5px 10px 5px 10px;
    margin-top: 10px;
    font-weight: 400;
  }
  .article-title i{
    margin-right: 8px;
  }

  button.button-answered{
    background-color: #007bff;
    color: white;
  }
  
  .article-button{
    padding: 20px;
    text-align: right;
    width:100%;
  }
  
  .article-button button{
    padding: 4px 10px 4px 10px;
    background: var(--page-content-blockColor);
    color: var(--page-header-bgColor);
    border-radius: 15% 5%;
    font-weight: bold;
    font-size: smaller;
    border: 0;
  }
  
  .article-button button i{
    margin-right: 8px;
  }
  
  .article-button button:hover{
    background: var(--page-header-bgColor);
    color: var(--page-content-blockColor);
  }
  .course-list{
    width: 100%;
    padding: 20px;
  }
  
  .course-list form{
    width: 100%;
  }
  .course-list label{
    margin-bottom: 10px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.3);
  }
  .course-list input{
    margin-bottom: 30px;
  }

  .simple-link{
    text-decoration: none;
    color: inherit;
    font-weight: bold;
  }
  .simple-link:hover{
    color: var(--page-header-headingColor);
  }

.lessongalleryimg{
	box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-top: 20px;
	margin-bottom: 40px;
}

.lessongalleryimg:hover {
	box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
	cursor: pointer;
}

.lessongalleryimgfloatright{
  float: right; 
  margin: 20px; 
  padding: 10px;
}


.embed-responsive {
  max-width: 100%;
  width: 100%;
  text-align:center;
}

.embed-responsive iframe {
  aspect-ratio: 16 / 9;
  width:50%;
  padding-top: 25px;
  padding-bottom: 25px;
}

@media (max-width: 1920px) {
  .embed-responsive iframe {
      width: 75%;
  }
}

@media (max-width: 768px) {
  .embed-responsive iframe {
      width: 90%;
  }
}

@media (orientation: portrait) {
  .embed-responsive iframe {
      width: 90%;
  }
}




.progress:hover .threshold-tooltip {
    display: block;
}

.barWrapper {
    position: relative;
}

.progress-bar {
    height: 100%;
    z-index: 5; /* Aby upewniÄ‡ siÄ™, ĹĽe pasek postÄ™pu jest nad tĹ‚em */
    background: rgb(23,44,60)!important;
    transition: width 1.5s ease-in-out;
}

.progress {
    overflow: visible; /* upewnij siÄ™, ĹĽe potomkowie nie sÄ… obcinani */
    height: 30px!important;
    border-radius: 0!important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.1)!important;
}

.threshold-tooltip {
    display: none;
    position: absolute;
    padding: 5px 10px;
    background-color: #333;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    transform: translateY(100%);
    z-index: 1000;
}

.progress:hover .threshold-tooltip {
    display: block;
}


.col-md-4.col-lg-4.text-center img {
  position: relative;
  z-index: 2;
}

.col-md-4.col-lg-4.text-center span {
  z-index: 1;
  top: 50%; /* aby byĹ‚a w pionowym Ĺ›rodku obrazka */
  left: 50%; /* aby byĹ‚a w poziomowym Ĺ›rodku obrazka */
  transform: translate(-50%, -50%); /* aby byĹ‚a dokĹ‚adnie w Ĺ›rodku obrazka */
}

.col-md-4.col-lg-4.text-center {
  position: relative;
}

.col-md-4.col-lg-4.text-center img {
  z-index: 2;
  width: 200px;
  margin: 20px;
}

.dot {
  background: #ddb868;
  border: 1px solid #ddb868;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.dot.bordered {
  background: transparent;
  border: 2px solid #ddb868;
}

.card-title{
  height: 50px;
}

.rating {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.rating-icon {
  font-size: 2rem;
  margin: 0 10px;
  cursor: pointer;
}

.rating-input {
  display: none;
}

.comment-section {
  display: flex;
  justify-content: center;
}

.comment-textarea {
  width: 100%;
  height: 100px;
  margin-bottom: 20px;
}

.submit-button {
  display: block;
  margin: auto;
}

.course-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}



.lessoncontent {
  font-family: 'Arial', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.lessoncontent h2{
  font-weight: 500;
  border-bottom: 1px solid #ccc;
}
.lessoncontent h3{
  margin-top: 40px;
}

.lessoncontent h2, .lessoncontent h3, .lessoncontent p {
  margin-bottom: 1em;
}

.lessoncontent ul {
  list-style-type: disc;
  list-style-position: inside;
  padding-left: 1em;
}

.lessoncontent pre {
  background-color: #eee;
  padding: 1em;
  border-radius: 4px;
}

.lessoncontent ul {
  list-style-type: disc;
  list-style-position: inside;
  padding-left: 1em;
}

.lessoncontent ul li {
  color: #555;
}

.lessoncontent ul li::before {
  content: "\2022";
  color: #28a745; 
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.custom-container {
  width: 100%;
}

@media (min-width: 2560px) { /* dla ekranĂłw o szerokoĹ›ci 2560px i wiÄ™cej */
  .custom-container {
    max-width: 90%;
    margin: auto;
  }
}

.g-recaptcha {
    display: inline-block;
    margin: 0 auto;
}

.lessoncontent h3 {
  margin-top: 40px;
  font-weight: bold;
}

.lessoncontent h4 {
  margin-top: 30px;
  font-weight: bold;
}


.lessoncontent p, .lessoncontent ul, .lessoncontent ol {
  margin-left: 20px;
  line-height: 1.6;
}


.lessoncontent strong {
  font-weight: bold;
  color: #333;
}


.lessoncontent code {
  background-color: #f4f4f4;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 90%;
}


.lessoncontent p {
  margin-bottom: 20px;
}

.lessoncontent blockquote {
  border-left: 4px solid #ccc;
  margin-left: 20px;
  padding-left: 15px;
  color: #555;
  font-style: italic;
}


.lessoncontent ul, .lessoncontent ol {
  margin-bottom: 20px;
}


.lessoncontent h2, .lessoncontent h3, .lessoncontent h4, .lessoncontent h5, .lessoncontent h6 {
  color: #2a2a2a;
}