* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: #111111;
  line-height: 1.55;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;

  background: white;

  z-index: 3000;
}


.main-nav {
  height: 48px;

  display: flex;

  align-items: center;

  background: white;
}


.w3-logo {
  width: 80px;
  min-width: 80px;

  height: 48px;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  text-decoration: none;

  color: #04aa6d;

  line-height: 1;
}


.logo-main {
  font-size: 25px;

  font-weight: bold;
}


.logo-main sup {
  font-size: 10px;

  position: relative;

  top: -7px;
}


.logo-small {
  margin-top: 1px;

  font-size: 8px;

  font-weight: bold;

  letter-spacing: 1px;
}


.main-nav-link,
.right-nav-link {
  height: 48px;

  display: flex;

  align-items: center;

  gap: 4px;

  padding: 0 16px;

  text-decoration: none;

  color: black;

  font-size: 14px;
}


.main-nav-link span {
  font-size: 8px;
}


.main-nav-link:hover,
.right-nav-link:hover {
  background: #04aa6d;

  color: white;
}


.header-search {
  position: relative;

  margin-left: 8px;

  width: 190px;
}


.header-search input {
  width: 100%;

  height: 36px;

  padding: 0 40px 0 16px;

  border: 1px solid #999;

  border-radius: 22px;

  outline: none;

  font-size: 14px;
}


.header-search input:focus {
  border-color: #04aa6d;
}


.search-icon {
  position: absolute;

  top: 3px;

  right: 7px;

  width: 30px;

  height: 30px;

  border: none;

  background: transparent;

  font-size: 23px;

  cursor: pointer;
}


.dots-button {
  margin-left: 8px;

  border: none;

  background: transparent;

  font-size: 25px;

  cursor: pointer;
}


.nav-space {
  flex: 1;
}


.paid-link {
  margin-right: 10px;

  padding: 9px 15px;

  border-radius: 6px;

  background: #9763f6;

  color: white;

  text-decoration: none;

  font-size: 14px;
}


.profile-mini {
  width: 32px;

  height: 32px;

  margin-right: 14px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 50%;

  background: #04aa6d;

  color: white;

  font-size: 11px;

  font-weight: bold;
}


/* =========================================================
   TECHNOLOGY BAR
========================================================= */

.technology-nav {
  height: 30px;

  display: flex;

  align-items: center;

  overflow-x: auto;

  white-space: nowrap;

  background: #282a35;
}


.technology-nav a,
.reviewer-nav-button {
  height: 30px;

  display: flex;

  align-items: center;

  padding: 0 16px;

  border: none;

  background: transparent;

  color: white;

  text-decoration: none;

  font-size: 12px;

  font-weight: 600;

  cursor: pointer;
}


.technology-nav a:hover,
.reviewer-nav-button:hover {
  background: black;
}


.reviewer-nav-button {
  background: #04aa6d;
}


/* =========================================================
   PAGE LAYOUT
========================================================= */

.layout {
  padding-top: 78px;
}


/* =========================================================
   LEFT SIDEBAR
========================================================= */

.left-sidebar {
  position: fixed;

  top: 78px;

  bottom: 0;

  left: 0;

  width: 275px;

  overflow-y: auto;

  background: #e7e9eb;

  z-index: 1000;
}


.sidebar-inner {
  padding: 10px 0 70px;
}


.left-sidebar h2 {
  margin: 14px 0 4px;

  padding: 0 17px;

  font-size: 17px;

  font-weight: 400;
}


.sidebar-link,
.external-sidebar-link {
  display: block;

  width: 100%;

  padding: 5px 17px;

  border: none;

  background: transparent;

  color: #111;

  text-align: left;

  text-decoration: none;

  font-size: 14px;

  cursor: pointer;
}


.sidebar-link:hover,
.external-sidebar-link:hover {
  background: #cccccc;
}


.sidebar-link.active {
  padding-left: 14px;

  border-left: 3px solid #04aa6d;

  background: #d0d0d0;

  font-weight: bold;
}


/* =========================================================
   MAIN CONTENT
========================================================= */

.main-content {
  width: calc(100% - 595px);

  min-height: calc(100vh - 78px);

  margin-left: 275px;

  margin-right: 320px;

  border-right: 1px solid #eeeeee;
}


.page {
  display: none;

  max-width: 1100px;

  margin: 0 auto;

  padding: 32px 30px 90px;
}


.page.active-page {
  display: block;
}


.page h1 {
  margin: 0 0 10px;

  font-size: 39px;

  font-weight: 400;

  line-height: 1.2;
}


.page h2 {
  margin-top: 30px;

  margin-bottom: 14px;

  font-size: 27px;

  font-weight: 400;
}


.page p {
  font-size: 15px;
}


hr {
  margin: 18px 0 20px;

  border: none;

  border-top: 1px solid #eeeeee;
}


/* =========================================================
   PREVIOUS NEXT
========================================================= */

.top-lesson-buttons {
  display: flex;

  justify-content: space-between;

  align-items: center;

  margin: 15px 0 18px;
}


.previous-button,
.next-button {
  min-height: 38px;

  padding: 8px 16px;

  border-radius: 5px;

  font-size: 15px;

  cursor: pointer;
}


.previous-button {
  border: 1px solid #333;

  background: white;

  color: #111;
}


.previous-button:hover {
  background: #f1f1f1;
}


.next-button {
  border: 1px solid #04aa6d;

  background: #04aa6d;

  color: white;
}


.next-button:hover {
  background: #059862;
}


.disabled-button {
  opacity: 0.4;

  cursor: default;
}


/* =========================================================
   SHARE
========================================================= */

.share-row {
  display: flex;

  justify-content: flex-end;

  align-items: center;

  gap: 9px;

  margin-bottom: 20px;
}


.share-row span {
  font-size: 11px;

  font-weight: bold;
}


.share-row a,
.share-row button {
  width: 29px;

  height: 29px;

  display: flex;

  align-items: center;

  justify-content: center;

  border: none;

  border-radius: 4px;

  background: #f1f1f1;

  color: #333;

  text-decoration: none;

  cursor: pointer;
}


/* =========================================================
   FEATURE BOX
========================================================= */

.yellow-feature {
  min-height: 145px;

  margin: 25px 0;

  padding: 24px;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 35px;

  background: #fff4df;

  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.15);

  text-align: center;

  font-family: Georgia, "Times New Roman", serif;

  font-size: 21px;
}


.check-symbol {
  color: #c8c4b8;

  font-size: 95px;

  line-height: 1;
}


/* =========================================================
   OVERVIEW
========================================================= */

.overview-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 12px;

  margin: 24px 0;
}


.overview-card {
  padding: 18px;

  border: 1px solid #ddd;

  text-align: center;
}


.overview-card strong {
  display: block;

  color: #04aa6d;

  font-size: 19px;
}


.overview-card span {
  display: block;

  margin-top: 4px;

  font-size: 13px;
}


/* =========================================================
   TABLE
========================================================= */

.table-wrapper {
  width: 100%;

  overflow-x: auto;

  margin: 20px 0;
}


table {
  width: 100%;

  min-width: 650px;

  border-collapse: collapse;
}


th,
td {
  padding: 12px 14px;

  border: 1px solid #ddd;

  text-align: left;
}


th {
  background: #282a35;

  color: white;
}


tbody tr:nth-child(even) {
  background: #f1f1f1;
}


/* =========================================================
   INLINE CODE
========================================================= */

p code,
td code,
.green-note code,
.yellow-note code,
.red-note code {
  padding: 2px 5px;

  background: #f1f1f1;

  color: #b40035;

  font-family: Consolas, Monaco, monospace;
}


/* =========================================================
   CODE BLOCK
========================================================= */

.code-wrapper {
  position: relative;

  margin: 20px 0;

  padding: 18px;

  border-radius: 4px;

  background: #e7e9eb;
}


.code-wrapper pre {
  margin: 0;

  padding: 18px;

  overflow-x: auto;

  border-left: 4px solid #04aa6d;

  background: white;
}


.code-wrapper code {
  color: black;

  font-family: Consolas, Monaco, "Courier New", monospace;

  font-size: 14px;

  line-height: 1.65;

  white-space: pre;
}


.copy-button {
  display: block;

  margin-left: auto;

  margin-bottom: 9px;

  padding: 7px 14px;

  border: none;

  border-radius: 4px;

  background: #04aa6d;

  color: white;

  cursor: pointer;
}


.copy-button:hover {
  background: #059862;
}


/* =========================================================
   NOTES
========================================================= */

.green-note,
.yellow-note,
.red-note {
  margin: 25px 0;

  padding: 18px 20px;
}


.green-note {
  background: #d9eee1;
}


.yellow-note {
  background: #fff4a3;
}


.red-note {
  background: #ffc0c7;
}


/* =========================================================
   FLOW
========================================================= */

.flow-reminder {
  margin: 28px 0;

  padding: 20px;

  background: #d9eee1;
}


.flow-reminder strong {
  display: block;

  margin-bottom: 12px;

  font-size: 19px;
}


.flow-reminder > div,
.big-flow-card > div {
  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 9px;
}


.flow-reminder span,
.big-flow-card span {
  padding: 7px 10px;

  border: 1px solid #ddd;

  background: white;

  font-family: Consolas, Monaco, monospace;

  font-size: 13px;
}


.flow-reminder b,
.big-flow-card b {
  color: #04aa6d;

  font-size: 19px;
}


.big-flow-card {
  margin: 22px 0;

  padding: 20px;

  border: 1px solid #ddd;
}


.big-flow-card h2 {
  margin-top: 0;

  color: #04aa6d;
}


/* =========================================================
   MISTAKES
========================================================= */

.correct-box,
.wrong-box {
  margin: 7px 0;

  padding: 10px 14px;

  font-family: Consolas, Monaco, monospace;
}


.correct-box {
  background: #d9eee1;
}


.wrong-box {
  background: #ffc0c7;
}


/* =========================================================
   RIGHT SIDEBAR
========================================================= */

.right-sidebar {
  position: fixed;

  top: 78px;

  right: 0;

  bottom: 0;

  width: 320px;

  padding: 20px 18px 70px;

  overflow-y: auto;

  background: #fafafa;
}


.right-profile {
  display: flex;

  align-items: center;

  gap: 10px;

  padding: 6px 5px 16px;
}


.right-avatar {
  width: 45px;

  height: 45px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 50%;

  background: #04aa6d;

  color: white;

  font-weight: bold;
}


.right-profile > div:nth-child(2) {
  display: flex;

  flex-direction: column;
}


.right-profile strong {
  font-size: 13px;
}


.right-profile span {
  font-size: 12px;
}


.right-profile small {
  color: #6d6d6d;

  font-size: 10px;
}


.hero-badge {
  margin-left: auto;

  padding: 5px 11px;

  border-radius: 8px;

  background: #d9f7f5;

  color: #087d80;

  font-size: 12px;
}


.right-card {
  margin-bottom: 12px;

  padding: 12px;

  border: 1px solid #d5ddf0;

  border-radius: 8px;

  background: white;
}


.right-card h3 {
  margin: 0 0 14px;

  font-size: 15px;

  font-weight: 400;
}


.progress-text {
  display: flex;

  justify-content: space-between;

  margin-bottom: 7px;

  font-size: 11px;
}


.progress-track {
  width: 100%;

  height: 7px;

  overflow: hidden;

  border-radius: 20px;

  background: #e2f3e8;
}


.progress-bar {
  width: 0%;

  height: 100%;

  border-radius: 20px;

  background: #04aa6d;

  transition: width 0.3s;
}


.quick-tool {
  width: 100%;

  min-height: 34px;

  display: flex;

  align-items: center;

  gap: 10px;

  padding: 6px 3px;

  border: none;

  border-bottom: 1px solid #e6e6e6;

  background: white;

  color: #111;

  text-align: left;

  font-size: 11px;

  cursor: pointer;
}


.quick-tool:hover {
  color: #04aa6d;
}


/* =========================================================
   SEARCH
========================================================= */

.search-results {
  position: absolute;

  top: 42px;

  left: 0;

  width: 300px;

  display: none;

  overflow: hidden;

  border: 1px solid #ddd;

  background: white;

  box-shadow: 0 5px 15px rgba(0,0,0,0.18);

  z-index: 5000;
}


.search-result-item {
  width: 100%;

  display: block;

  padding: 10px 12px;

  border: none;

  border-bottom: 1px solid #eee;

  background: white;

  text-align: left;

  font-size: 13px;

  cursor: pointer;
}


.search-result-item:hover {
  background: #f1f1f1;
}


/* =========================================================
   BOTTOM MINI CODE BUTTONS
========================================================= */

.bottom-code-buttons {
  position: fixed;

  right: 22px;

  bottom: 18px;

  display: flex;

  gap: 6px;

  padding: 5px;

  border: 1px solid #dcdcdc;

  border-radius: 7px;

  background: white;

  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);

  z-index: 5000;
}


.bottom-code-button {
  padding: 6px 10px;

  border: none;

  border-radius: 4px;

  background: #04aa6d;

  color: white;

  font-size: 11px;

  cursor: pointer;
}


.bottom-code-button:hover {
  background: #059862;
}


/* =========================================================
   MOBILE
========================================================= */

.mobile-menu {
  display: none;

  position: fixed;

  top: 83px;

  left: 10px;

  z-index: 2500;

  padding: 7px 10px;

  border: none;

  border-radius: 4px;

  background: #04aa6d;

  color: white;

  font-size: 18px;

  cursor: pointer;
}


@media screen and (max-width: 1250px) {

  .right-sidebar {
    display: none;
  }

  .main-content {
    width: calc(100% - 275px);

    margin-right: 0;
  }

}


@media screen and (max-width: 950px) {

  .main-nav-link,
  .right-nav-link,
  .paid-link,
  .profile-mini {
    display: none;
  }

  .header-search {
    margin-left: auto;

    margin-right: 12px;
  }

}


@media screen and (max-width: 800px) {

  .mobile-menu {
    display: block;
  }

  .left-sidebar {
    transform: translateX(-100%);

    transition: transform 0.25s;
  }

  .left-sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    width: 100%;

    margin-left: 0;
  }

  .page {
    padding: 55px 20px 90px;
  }

  .page h1 {
    font-size: 31px;
  }

  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}


@media screen and (max-width: 550px) {

  .w3-logo {
    width: 60px;

    min-width: 60px;
  }

  .header-search {
    width: 145px;
  }

  .technology-nav a,
  .reviewer-nav-button {
    padding: 0 12px;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .yellow-feature {
    flex-direction: column;

    gap: 10px;
  }

  .check-symbol {
    font-size: 70px;
  }

  .bottom-code-buttons {
    right: 10px;

    bottom: 10px;
  }

}