/* variables */
:root {
  --min-width: 1350px;
  --main-color: #0070cc;
  --highlight-color: rgb(255, 204, 153);
  --highlight-color2: rgb(255, 153, 255);
  --highlight-color3: rgb(0, 204, 0);
  --img-highlight-border: 5px;
}

/* global styles */
/* {
  border: 1px solid red !important;
  box-sizing: border-box;
}*/

body {
  margin: 0;
  padding: 0;
}

a {
  color: var(--main-color);
  text-decoration: none;
}

/* header */
.header {
  width: 100%;
  min-width: var(--min-width);
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--main-color);
  height: 100px;
}

.header-img {
  margin-right: 10px;
  max-width: 70px;
  height: auto;
}

.header-text {
  margin-left: 10px;
  color: white;
  font-size: 60px;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande',
    'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

/* title */
.title {
  text-align: center;
  font-size: 25px;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande',
    'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  margin: 40px 0 100px 0;
}

/* main */
.main {
  width: var(--min-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin: 0 auto;
}

/* flowchart */
.flowchart {
  width: var(--min-width);
  font-size: 25px;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande',
    'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  position: relative;
  padding-bottom: 400px;
}

.flow-main-repo {
  padding: 10px 20px;
  border-radius: 4px;
  border: 2px solid #000;
  margin: 0 auto;
  top: 0;
  left: 290px;
}

.flow {
  position: absolute;
  text-align: center;
  cursor: pointer;
}

.branch {
  font-size: 22px;
  padding: 10px 20px;
  border: 2px solid #000;
  color: #000;
}

.branch-master {
  top: 200px;
  left: 550px;
}

.branch-version {
  top: 200px;
  left: 160px;
}

.file {
  font-size: 17px;
  padding: 5px 10px;
  border: 1px solid #666;
  color: #666;
}

.file-coderoad {
  top: 350px;
  left: 475px;
}

.file-config {
  top: 350px;
  left: 762px;
}

.file-project {
  top: 350px;
  left: 154px;
}

.repo {
  padding: 10px 20px;
  border-radius: 4px;
  border: 2px solid #000;
}

.repo-tutorials {
  top: 125px;
  left: 750px;
}

.repo-coderoad {
  top: 250px;
  left: 1075px;
}

.flow-line {
  position: absolute;
  background-color: black;
}

.flow-line-1 {
  top: 125px;
  left: 210px;
  width: 200px;
  height: 2px;
  transform: rotate(-35deg);
}

.flow-line-2 {
  top: 125px;
  left: 420px;
  width: 200px;
  height: 2px;
  transform: rotate(35deg);
}

.flow-line-3 {
  top: 260px;
  left: 220px;
  width: 2px;
  height: 80px;
}

.flow-line-4 {
  top: 390px;
  left: 220px;
  width: 2px;
  height: 100px;
}

.flow-line-4::after {
  content: '';
  background-color: black;
  position: absolute;
  left: -3px;
  bottom: 0;
  border-top: 10px solid black;
  border-left: 5px solid white;
  border-right: 5px solid white;
}

.flow-line-5 {
  top: 300px;
  left: 500px;
  width: 120px;
  height: 2px;
  transform: rotate(-45deg);
}

.flow-line-6 {
  top: 300px;
  left: 620px;
  width: 170px;
  height: 2px;
  transform: rotate(30deg);
}

.flow-line-7 {
  top: 365px;
  left: 635px;
  width: 105px;
  height: 2px;
}

.flow-line-7::after {
  content: '';
  background-color: black;
  position: absolute;
  right: 0;
  top: -3px;
  border-left: 10px solid black;
  border-top: 5px solid white;
  border-bottom: 5px solid white;
}

.flow-line-8 {
  top: 265px;
  left: 760px;
  width: 150px;
  height: 2px;
  transform: rotate(100deg);
}

.flow-line-8::after {
  content: '';
  background-color: black;
  position: absolute;
  top: -3px;
  border-right: 10px solid black;
  border-top: 5px solid white;
  border-bottom: 5px solid white;
}

.flow-line-9 {
  top: 210px;
  left: 970px;
  width: 100px;
  height: 2px;
  transform: rotate(35deg);
}

.flow-line-9::after {
  content: '';
  background-color: black;
  position: absolute;
  right: 0;
  top: -3px;
  border-left: 10px solid black;
  border-top: 5px solid white;
  border-bottom: 5px solid white;
}

.flow-line-10 {
  top: 350px;
  left: 1160px;
  width: 75px;
  height: 2px;
  transform: rotate(90deg);
}

.flow-line-10::after {
  content: '';
  background-color: black;
  position: absolute;
  right: 0;
  top: -4px;
  border-left: 10px solid black;
  border-top: 5px solid white;
  border-bottom: 5px solid white;
}

/* columns */
.column-wrap {
  width: var(--min-width);
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.column {
  width: 400px;
  min-width: 400px;
}

/* column 1 - commit images */
.column-1 {
  padding-top: 1240px;
  text-align: left;
}

.commit-img-group {
  width: 340px;
  cursor: pointer;
  padding: var(--img-highlight-border);
}

.commit-img-group-4 {
  margin-top: 450px;
}

.commit-img-group-6 {
  margin-top: 270px;
}

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

/* column 2 - markdown file */
.column-2 {
  border: 1px solid #ccc;
}

.markdown-filename {
  padding: 10px;
  background-color: #ccc;
  font-family: monospace;
}

.markdown-pre {
  padding: 20px;
  white-space: pre-wrap;
}

/* column 3 - lesson images */
.column-3 {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.lesson-img {
  cursor: pointer;
  max-width: 300px;
  height: auto;
  padding: var(--img-highlight-border);
  border: 1px solid black;
  margin-bottom: 10px;
}

.description-img {
  margin-top: 180px;
}

.keywords-img {
  margin-top: 155px;
}

/* Tip */
.tip-wrap {
  max-width: 310px;
  padding: 30px 40px 20px 20px;
  border-radius: 4px;
  border: 1px solid #000;
  background-color: #f2f2f2;
  box-shadow: 1px 1px 3px 0 #000;
  position: fixed;
  top: 50px;
  left: 50px;
  font-size: 17px;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande',
    'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  visibility: hidden;
}

.close-tip-btn {
  cursor: pointer;
  position: absolute;
  right: 8px;
  top: 8px;
  padding: 0 6px 3px 6px;
  border: 2px solid black;
  border-radius: 50%;
  background-color: var(--main-color);
}

/* highlighting classes */
.highlight-flow-item {
  color: var(--highlight-color3);
  border-color: var(--highlight-color3);
}

.highlight-lesson-text {
  background-color: var(--highlight-color);
}

.highlight-lesson-img {
  border: 6px solid var(--highlight-color);
  padding: 0;
}

.highlight-commit-text {
  background-color: var(--highlight-color2);
}

.highlight-commit-img {
  border: 6px solid var(--highlight-color2);
  padding: 0;
}

/* footer */
.footer {
  margin-top: 200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--main-color);
  width: 100%;
  min-width: var(--min-width);
  height: 60px;
}

.footer-link {
  margin: 0 50px;
  color: white;
  cursor: pointer;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande',
    'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}
