main{
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

#lesson-menu-title{
  margin: 30px 0px 20px 0px;
}


#lesson-container {
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  width:60%;
}

@media (max-width: 801px) {
  #lesson-container {
    width:60%;
  }
}

@media (min-width: 500px) and (max-width: 800px) {
  #lesson-container {
    width:80%;
  }
}

@media (max-width: 499px) {
  #lesson-container {
    width:92%;
  }
}


.lesson-items{
  background-color: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 0 8px gray;
  width:100%;
  margin: 15px 0px;
}

.lesson-title{
  border-radius: 20px 20px 0px 0px;
  padding: 10px;
}

.lesson-title h3{
  margin:0;
}

.lesson-body{
  margin: 10px 15px;
}

.lesson-body p{
  margin: 1px;
}

.lesson-bottom{
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px rgb(161, 161, 161) solid;
}

.lesson-bottom-items{
  width: 50%;
  margin:5px;
  text-align: center;
}

@media (max-width: 1024px) {
  .lesson-bottom{
    flex-direction:column;
  }
  .lesson-bottom-items{
    width: 100%;
    text-align: center;
  }
}

.button-detail{
  margin-bottom: 10px;
}

.button-detail a {
  background: #eee;
  border-radius: 3px;
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0 auto;
  max-width: 280px;
  padding: 10px 25px;
  color: #313131;
  transition: 0.3s ease-in-out;
  font-weight: 500;
  text-decoration:none
}
.button-detail a:hover {
  background: #313131;
  color: #FFF;
}
.button-detail a:after {
  content: '';
  width: 5px;
  height: 5px;
  border-top: 3px solid #313131;
  border-right: 3px solid #313131;
  transform: rotate(45deg) translateY(-50%);
  position: absolute;
  top: 50%;
  right: 20px;
  border-radius: 1px;
  transition: 0.3s ease-in-out;
}
.button-detail a:hover:after {
  border-color: #FFF;
}

.lesson-bottom-items p{
  margin: 1px;
}

#lesson1 .lesson-title{
  background-color: #beffb7;
}

#lesson2 .lesson-title{
  background-color: #fffeb7;
}

#lesson3 .lesson-title{
  background-color: #b7fff8;
}

#lesson4 .lesson-title{
  background-color: #ffc5b7;
}


