@import 'https://fonts.googleapis.com/css?family=Open+Sans:300,400';

body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  background: rgba(0,0,0,.05);
}

html {
  box-sizing: border-box;
  background: rgba(0,0,0,.05);
}

input, textarea {
  border: 1px solid #303030 !important;
}

*, *:before, *:after {
  box-sizing: inherit;
}

*:focus {
    outline: none;
}

.box {
  width: 350px;
  height: 250px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
}

.post {
  box-shadow: 0 1px 6px rgba(0,0,0,.15);
}

.post .image {
  position: relative;
  width: 100%;
  height: auto;
  padding-bottom: 33% !important;
  border-top-left-radius: .25rem;
  border-top-right-radius: .25rem;
}

.post .title {
  font-size: 20px;
  font-weight: 600;
  padding-left: 20px;
  padding-top: 20px;
  margin-bottom: 5px;
}

p.course-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  overflow: hidden;
  max-height: 80px;
  padding-right: 20px;
  word-break: break-all;
}

.course-content {
  margin-top: 45px;
}

.post .description {
  padding-top: 0;
  font-weight: 500;
  padding-left: 20px;
  font-size: 17px;
}

.detail .image {
  width: 100%;
  height: auto;
  flex: 0 0 200px;
  background-repeat: repeat-x;
  background-size: contain !important;
  padding-bottom: 0 !important;
}

.ReactModal__Content.ReactModal__Content--after-open {
  width: 100% !important;
  height: 100% !important;
}

.detail .title {
  font-size: 28px;
  font-weight: 900;
  padding-top: 0;
  margin-top: -5px;
  margin-bottom: 0;
  padding-left: 20px;
}

.detail .description {
  padding-top: 10px;
  font-weight: 500;
  padding-left: 20px;
  font-size: 19px;
}

.new-post {
  background-color: rgba(0,0,0,0.04);
}

.plus {
  width: 34px;
  height: 33px;
}

.blur {
  filter: blur(7px);
}

.close {
  opacity: 1;
  margin-top: 0;
  margin-right: 0;
  padding: 10px 10px 7px 10px;
  background: #fff;
}
.close img {
  width: 20px;
  height: 20px;
}

.pop-overlay {
  position: fixed;
  z-index: 8999;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.6);
}

.new-lesson {
  position: fixed;
  width: 90%;
  left: 50%;
  margin-left: -45%;
  top:10%;
  z-index: 9000;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.4745);
  border-radius: 3px !important;
}

.new-lesson .detail {
  padding: 20px;
  padding-top: 15px;
}

.new-lesson h2 {
  margin-top: 5px;
  text-align: center;
  margin-bottom: 15px;
}

.small-x {
  position: absolute;
  right: 11px;
  top: 10px;
}

.lesson-field {
  border: 1px solid #303030 !important;
  box-shadow: none !important;
  border-radius: 3px !important;
}

.delete {
  background: transparent;
  font-size: 14px;
  color: rgb(242,92,94);
  border: 2px solid rgb(242,92,94);
  padding: 6px 9px;
  letter-spacing: 0.46px;
  margin-top: 9px;
  margin-left: 18px;
  position: relative;
  display: inline-block;
}

.submit-lesson {
  margin-top: 10px;
  border: 1px solid #303030 !important;
  border-radius: 3px;
}

.lesson-btn {
  background: transparent;
  font-size: 14px;
  color: rgb(0,165,247);
  border: 2px solid rgb(0,165,247);
  padding: 6px 9px;
  letter-spacing: 0.46px;
  margin-top: 9px;
  margin-left: 0;
  display: inline-block;
  border-radius: .25rem;
  text-transform: uppercase;
  cursor: pointer;
}

.start-btn {
  display: inline-block;
  margin-left: 20px;
  position: relative;
  width: 150px;
  text-align: center;
  text-decoration: none;
}

.detail-btns {
  position: relative;
  top: 20px;
  text-align: left;
  padding-right: 25px;
  z-index: 1000;
}

.course-info {
  display: inline-block;
  position: relative;
  top: -10px;
}

.lessons-list {
  padding-left: 0;
  margin-top: 0;
}

.lesson-link {
  display: block;
  width: 100%;
  margin-bottom: 10px;
}

.lesson-title {
  font-weight: 600;
  font-size: 18px;
}

.lesson-content {
  display: block;
}

.finish-lesson {
  display: block;
  position: absolute;
  bottom: 25px;
  right: 45%;
}

.close-lesson {
  font-weight: 600;
  top: 0 !important;
  position: absolute;
  right: 6px;
}

.close {
  z-index: 89;
}

.active-lesson {
  position: fixed;
  padding: 25px 40px 20px 30px;
  width: 90%;
  left: 50%;
  margin-left: -45%;
  top:10%;
  z-index: 9000;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.4745);
  border-radius: 3px !important;
  background: #fff;
  height: 80%;
}

.gallery-wrap {
  height: 100vh;
}
