.main-card {
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

.lesson-title {
  font-size: 20px;
  padding: 15px 30px;
}

.lesson-content {
  line-height: 1.5;
}

.lesson-text {
  width: 100%;
  padding: 25px 5px 25px 35px;
  min-height: 200px;
}

.sections-name {
  margin: 0;
  padding: 0;
}

ol.sections-name {
  counter-reset: my-awesome-counter;
  list-style: none;
  padding-left: 40px;
  width: 98%;
  margin: 0;
  padding: 0;
}

ol.sections-name > li {
  counter-increment: my-awesome-counter;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin-bottom: 35px;
  width: 100%;
  box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
  border-bottom-right-radius: 5px;
  border-top-right-radius: 5px;
}
ol.sections-name .lesson-preface {
  /* content: counter(my-awesome-counter); */
  color: #1e3f57;
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  background: #93aca7;
  font-size: 30px;
  padding: 25px;
  width: 30%;
}

.lesson-preface .fas {
  font-size: 60px;
}

ol.sections-name .lesson-preface::before {
  content: counter(my-awesome-counter);
  position: absolute;
  top: 0;
  left: 5px;
  font-size: 20px;
  font-weight: bold;
  color: #1e3f57;
}

ol.sections-name .lesson-details {
  display: flex;
  flex-basis: 100%;
  flex: 1;
  /* padding: 25px 35px 35px; */
  background: white;
  min-width: 600px;
  position: relative;
}

.details-bg {
  background-image: url(../../static/corner-image-inactive.svg);
  width: 10%;
  height: 0;
  padding-bottom: 10%;
  background-size: cover;
  background-repeat: no-repeat;
  position: absolute;
  top: 0;
  right: 0;
}

.lesson-details:hover .details-bg,
.lesson-container .details-bg {
  background-image: url(../../static/corner-image-active.svg);
}

@media (min-width: 1000px) {
  ol.sections-name > li::before {
    border-bottom-left-radius: 5px;
    border-top-left-radius: 5px;
  }
  ol.sections-name .lesson-details {
    border-bottom-right-radius: 5px;
    border-top-right-radius: 5px;
  }
}

.lesson-details h3 {
  font-size: 22px;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
  display: inline-block;
  font-weight: bold;
  margin-bottom: 20px;
}

.lesson-links {
  margin-top: 45px;
  margin-bottom: 80px;
}

.lesson-links a {
  border-radius: 10px;
  background: #224159;
  color: white;
  padding: 15px 20px;
  display: inline-block;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lesson-links a.prev {
  padding-left: 10px;
}

.lesson-links a.next {
  padding-right: 10px;
}

.lesson-links a:hover {
  background: #152837;
  text-decoration: none;
}

.lesson-links .arrow {
  font-size: 24px;
  line-height: 24px;
  padding: 0px 5px;
}
