body {
  margin: 0;
  background-color: white;
  color: black;
  min-height: 100vh;
  padding: 10px;
  text-align: center;
}


body,
.root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  text-align: left; /* remove global centering */
}

.root {
  justify-items: center;
  align-items: center;
  min-height: 100vh;
}

.head-p {
  background-color: transparent;
  width: 100;
  height: 66px;
  padding: 10px;
}



.custom-icon {
  background-color: transparent;
  font-size: 14px;
  text-decoration: none;
  color: black;
}

.header-bb {
  padding: 10px;
  width: 100%;
  height: 70px;
  background-color: transparent;
}

.spacer {
  height: 20px;
}

p {
  background-color: transparent;
  border-radius: 10px;
  padding: 10px;

  max-width: 600px;
  font-weight: 100;
  font-size: 16px;
  color: gray;
}



.code-1 {
  width: 70%;
  cursor: pointer;
  border-radius: 6px;
  transition: transform 0.3s ease;
}
.code-1:hover {
  transform: scale(1.1);
}

@media screen and (max-width: 786px) {
  .code-1 {
    width: 100%;

    border-radius: 6px;
  }
}

#section-1 .container {
  max-width: 550px;
  margin: 0 auto;
  text-align: left;
  max-width: 650px;
}

.yellow {
  color: blue;
  border-radius: 10px;
}

.title {
  font-weight: 300;
  font-size: 40px;
}

h4 {
  font-weight: 200;
}

.darkmode {
  background-color: black;
  color: white;
}

/* Dark-mode button style */
#darkModeToggle {
  display: flex;
  background-color: black;
  border: 2px solid white;
  border-radius: 10px;
  font-size: 13px;
  padding: 6px 8px;
  cursor: pointer;
  float: left;
}

#darkModeToggle:hover {
  background-color: white;
  border: 2px solid black;
}

.darkmode #darkModeToggle {
  background-color: white;
  color: black;
  border: 2px solid black;
}

.darkmode #darkModeToggle:hover {
  background-color: black;
  border: 2px solid white;
}



.leftarrow {
  background-color: white;
  font-size: 20px;
  cursor: pointer;
  margin-top: 8px;
}

.leftarrow:hover {
  transform: rotate(360deg);
  transition: 0.6s ease-in-out;
}

.darkmode .leftarrow {
  color: white;
  background-color: black;
}

.video-1 {
  width: 90%;
  border-radius: 6px;
}

.video-porttrait {
  width: 50%;
  border-radius: 10px;
}

.social-link {
  margin-left: 1rem;
  color: #212529;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  transition: transform 0.3s ease;
}

.social-link:hover {
  transform: translateY(-10px);
}

.darkmode .social-link {
  margin-left: 1rem;
  color: white;
  text-decoration: none;
}

.spacer-2 {
  height: 20px;
}

/* copy----------container---------starts---------here */

.copy-container {
  padding: 15px;
  border-radius: 10px;
  transition: all 0.5s ease;
  width: 100%;
  height: fit-content;
  border: 1px solid black;
  align-items: center;
  display: flex;
  justify-content: right;
  align-items: start;
  overflow-y: scroll;
  overflow-x: hidden;
  cursor: pointer;
  
}

.darkmode .copy-container {
  border: 1px solid white;
}

.copy-container:hover {
  transform: scale(1.02);
}

.copy-btn {
  color: black;
  border: 0.5px solid black;
  background-color: transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  position: absolute;
}

.darkmode .copy-btn {
  background-color: black;
  border-color: white;
  color: white;
}

.copy-btn:hover {
  border-color: blue;
  color: white;
}

.code-snippet {
  text-align: left;
  position: relative;
  top: 45px;
  bottom: 45px;
  font-family: "Fira Code", Consolas, monospace;
}

/* // FONT--FIRA--CODE--COLOUR-- */

.code-snippet {
  padding: 10px;
  border-radius: 10px;
  white-space: pre;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.5;
}


/* VS Code Colors */
.keyword {
  color: #c586c0;
}
.string {
  color: #ce9178;
}
.number {
  color: #b5cea8;
}
.function {
  color: #dcdcaa;
}
.property {
  color: #9cdcfe;
}
.comment {
  color: #6a9955;
  font-style: italic;
}

  section {
      justify-content: center;
      display: block;
      /* remove forced centering */
      height: auto;
      /* remove 90vh height */
      width: 100%;
      gap: 0;
    }

/* copy----------container---------ends---------here */