@media screen and (max-width: 800px) {
  .courses-container {
    justify-content: center !important;
  }
  .courses-container .course {
    width: 20rem !important;
  }
  .courses-container .course .image-container {
    max-width: 18rem !important;
    height: 18rem !important;
  }

  #myBoard {
    max-width: 500px !important;
    width: 100% !important;
  }

  .course-wrapper {
    flex-wrap: wrap;
  }
  .course-wrapper .board-container {
    width: 100% !important;
    max-width: 532px;
  }
  .course-wrapper .right {
    box-sizing: border-box;
    padding: 0.5rem;
    padding-left: 0.5rem !important;
    margin-top: 16px !important;
  }
  .course-wrapper .right .title {
    font-size: 2rem;
    font-weight: 600;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    margin-bottom: 1rem;
    background: #5C5F77;
    width: auto;
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
  }
  .course-wrapper .right .label {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
  }
  .course-wrapper .right .wrapper-vertical {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
  }
}
.courses-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  position: relative;
}
.courses-container .course {
  background-color: #4C4F66;
  padding: 1rem;
  box-sizing: border-box;
  border-radius: 0.5rem;
  width: 22rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  margin: 1rem;
  cursor: pointer;
  transition: 0.25s ease;
}
.courses-container .course .image-container {
  max-width: 20rem;
  height: 20rem;
  background-size: cover;
  background-position: center;
  border-radius: 0.25rem;
  margin-bottom: 1rem;
}
.courses-container .course .info {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.courses-container .course .info .title {
  font-weight: 500;
  font-size: 1.35rem;
}
.courses-container .course .info .color-container {
  background-color: #5C5F77;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  position: relative;
}
.courses-container .course .info .color-container img {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.courses-container .course .info .color-container.black img {
  filter: invert(1);
}
.courses-container .course:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.15);
}

#myBoard {
  width: 500px;
}

.course-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
}
.course-wrapper .board-container {
  padding: 1rem;
  background-color: #5C5F77;
  border-radius: 1.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
}
.course-wrapper .board-container .board-cropper {
  overflow: hidden;
  border-radius: 1rem;
}
.course-wrapper .right {
  box-sizing: border-box;
  padding: 0.5rem;
  padding-left: 3rem;
  position: relative;
  width: 100%;
}
.course-wrapper .right .title {
  font-size: 2rem;
  font-weight: 600;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  margin-bottom: 1rem;
  background: #5C5F77;
  width: auto;
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
}
.course-wrapper .right .label {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.course-wrapper .right .wrapper-vertical {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.course-wrapper .right .continuations-container {
  margin-top: 1.75rem;
}
.course-wrapper .right .continuations-container .lines {
  max-height: 9rem;
  overflow: auto;
}
.course-wrapper .right .continuations-container .lines .line {
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  opacity: 0.5;
  transition: 0.25s ease;
}
.course-wrapper .right .continuations-container .lines .line .next-move {
  font-weight: 600;
  margin-right: 0.25rem;
  font-size: 1.5rem;
}
.course-wrapper .right .continuations-container .lines .line .next-move img.piece {
  width: 1.5rem;
  margin-left: 0rem;
}
.course-wrapper .right .continuations-container .lines .line img.piece {
  filter: invert(1);
  width: 1rem;
  margin-left: 0.1rem;
}
.course-wrapper .right .continuations-container .lines .line:hover {
  opacity: 1;
}
.course-wrapper .right .continuations-container .lines .line.selected {
  background: #323446;
  opacity: 1;
}
.course-wrapper .right .continuations-container .continuations {
  display: none;
}
.course-wrapper .right .pgn-container {
  margin-top: 2.5rem;
}
.course-wrapper .right .pgn-container .copy-btn {
  margin-left: 0.75rem;
  width: 1.25rem;
  opacity: 0.75;
  transition: 0.25s ease;
  cursor: pointer;
}
.course-wrapper .right .pgn-container .copy-btn:hover {
  opacity: 1;
}
.course-wrapper .right .buttons-container {
  margin-top: 3rem;
  display: flex;
  padding: 1rem;
  background: #5C5F77;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border-radius: 1rem;
  width: auto;
  justify-content: center;
}
.course-wrapper .right .buttons-container .button {
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: 0.25s ease;
}
.course-wrapper .right .buttons-container .button:hover {
  opacity: 0.75;
}