* {
  box-sizing: inherit;
}

html,
body {
  box-sizing: border-box;
  margin: 0;
  background-color: white;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

.pyt1 {
  z-index: 10;
  justify-content: space-between;
  position: fixed;
  text-align: center;
  color: white;
  top: 0;
  height: 140px;
  background: linear-gradient(90deg, #1f2937, #4f46e5);
  padding: 2px 20px;
  width: 100%;

}

.pyt1 h1 {
  margin-bottom: 5px;
  font-size: 36px;
}

.pyt1 p {
  opacity: 0.8;
  font-size: 16px;
}

.pyt2 {
  position: fixed;
  left: 0;
  top: 87px;
  display: flex;
  padding: 12px 0;
  flex-wrap: wrap;
  z-index: 999;
  background-color: #333;
  width: 100%;
  justify-content: end;
}

.pyt2 a {
  transition: 0.3s;
  border-radius: 6px;
  margin: 0 15px;
  font-weight: bold;
  padding: 6px 0px;
  text-decoration: none;
  color: white;
}

.pyt2 a:hover {
  background-color: #4f46e5;
}

#googleToggle {
  background: none;
  border: none;
  color: white;
  font-size: 26px;
  cursor: pointer;
  display: none;
}

.sidebar {
  overflow-y: auto;
  background-color: white;
  position: fixed;
  bottom: 0;
  left: 0;
  /* height: 95%; */
  /* height: 100vh; */
  width: 230px;
  margin-top: 2.5cm;
  transition: left 0.3s ease;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
  top: 50px;
}

.sidebar.active {
  left: 0;
}

.sidebar ul {
  margin: 0;
  list-style-type: none;
  padding: 0;
}

.sidebar ul li {
  cursor: pointer;
  padding: 8px 10px;
  border-bottom: 1px solid black;
}

.sidebar ul li a {
  color: black;
  text-decoration: none;
}

.sidebar ul li:hover {
  background-color: skyblue;
}

.content {
  background-color: white;
  overflow-y: auto;
  border-radius: 5px;
  width: calc(100%-230px);
  margin-top: 3cm;
  box-sizing: border-box;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
  margin-left: 230px;
  padding: 20px;
  height: 100vh;
  overflow-x: hidden;
}

.content h2 {
  margin-left: 15px;
}

.content p {
  margin-left: 15px;
  margin-top: -.1cm;
}

.code-box {
  background-color: #2d2d2d;
  max-width: 100%;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  overflow-y: hidden;
}

.code-header {
  background-color: #444;
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: white;
  font-weight: bold;
  padding: 10px 15px;
  justify-content: space-between;

}

.copy-button {
  background-color: #ff5f57;
  transition: 0.3s;
  color: white;
  cursor: pointer;
  border-radius: 5px;
  font-size: 0.85rem;
  border: none;
  padding: 5px 10px;
}

.code-header .left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.copy-button:hover {
  background: #ff3b30;
}

.code-content {
  padding: 15px;
  overflow-x: auto;
  background-color: #2d2d2d;
}

.line-numbered {
  counter-reset: line;
}

.line {
  position: relative;
  display: block;
  white-space: pre;
  padding-left: 35px;
}

.line {
  display: block;
  padding-left: 35px;
  position: relative;
  white-space: pre;
}

.line::before {
  counter-increment: line;
  content: counter(line);
  position: absolute;
  left: 10px;
  color: #999;
  font-size: 0.9rem;
}

.output {
  color: white;
  margin-top: 15px;
  font-size: 0.9erm;
  border-radius: 5px;
  font-weight: bold;
  padding: 10px;
  background-color: #1a1a1a;
}

.output pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

.footer {
 margin-top: 0%;
  text-align: center;
  z-index: 9999;
  background: #1a1a1a;
  align-items: center;
  display: flex;
  height: 30vh;
  padding: 10px;
  position: relative;
  justify-content: center;
  font-size: 24px;
  width: 100%;
  color: white;
}

.footer li {
  list-style: none;
  gap: 10px;
  margin-left: 200px;
  /* padding: 5px; */

}

.footer li a {
  color: white;
  text-decoration: none;
  padding-left: 0;

}
.colums ul li a {
  margin-top: -1cm;
  padding-top: 5px;
}
.footer h3 {
  color: #f39c12;
  margin-left: 200px;
  padding-left: 0;
  margin-top: -1cm;
}

.footer-bottom {
  position: absolute;
  top: 78%;
  left: 50%;
  background-color: rgba(0, 0, 0, 0.2);
  border-top: 1px solid #fff;
  font-size: 14px;
  color: #ddd;
  padding: 15px;
}

/* Sidebar */

pre {
  background-color: #1e1e1e;
  color: #0f0;
  padding: 12px;
  border-radius: 5px;
  overflow-x: auto;
}




.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #007bff;
  color: white;
  display: flex;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
  z-index: 1000;
}

.code-box {
  background: #2d2d2d;
  /* dark theme */
  border-radius: 8px;
  overflow: hidden;
  margin: 20px auto;
  max-width: 100%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  font-family: 'Courier New', Courier, monospace;
}

/* Header of code box */
.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #444;
  padding: 10px 15px;
  color: white;
  font-weight: bold;
  font-size: 1rem;
}

/* Left section in header (title/file) */
.code-header .left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.copy-button:hover {
  background: #ff3b30;
}

/* Code content container */
.code-content {
  overflow-x: auto;
  /* horizontal scroll if code is long */
  padding: 15px;
  background: #2d2d2d;
}

/* Line numbered style */
.line-numbered {
  counter-reset: line;
}

.line {
  display: block;
  padding-left: 35px;
  position: relative;
  white-space: pre;
  /* preserve spaces */
}

.line::before {
  counter-increment: line;
  content: counter(line);
  position: absolute;
  left: 10px;
  color: #999;
  font-size: 0.9rem;
}

/* Output section */
.output {
  margin-top: 15px;
  padding: 10px;
  background: #1a1a1a;
  color: white;
  font-weight: bold;
  border-radius: 5px;
  font-size: 0.9rem;
}

.output pre {
  margin: 0;
  white-space: pre-wrap;
  /* wrap long lines */
  word-break: break-word;
}












@media (min-width:350px) {
  .pyt1 h1 {
    font-size: .7cm;
  }

  .pyt2 a {
    font-size: none;
    font-size: 16px;
    border-radius: 6px;
    margin: 0 6px;
    font-weight: 100;
    padding: 6px 0px;
  }

  #googleToggle {
    display: block;
    font-size: 15px;
  }

  .sidebar {
    left: -250px;
    z-index: 999;
  }

  .sidebar.active {
    left: 0;
  }

  main.content {
    margin-left: 0;
    width: 100%;
  }
}

*/ @media screen and (min-width: 480px) {
  .line {
    padding-left: 25px;
  }

  .line::before {
    left: 5px;
    font-size: 0.8rem;
  }

  .copy-button {
    padding: 3px 6px;
    font-size: 0.75rem;
  }

  .output {
    font-size: 0.8rem;
    padding: 8px;
  }
}

*/ @media screen and (min-width: 500px) and (max-width: 800px) {
  #googleToggle {
    display: block;
  }

  .sidebar {
    left: -250px;
    z-index: 999;
  }

  .sidebar.active {
    left: 0;
  }

  main.content {
    margin-left: 0;
    width: 100%;

  }

  .pyt1 h1 {
    font-size: 32px;
  }

  .pyt2 a {
    font-weight: bold;
    margin: 0 10px;
    font-size: 18px;
  }
}

 @media screen and (min-width: 801px) {
  #googleToggle {
    display: none;
  }

  .pyt2 a {
    font-size: 20px;
    font-weight: bold;
    margin: 0 14px;
  }

  .pyt1 h1 {
    font-size: 36px;
  }

  .sidebar {
    left: 0;
    position: fixed;
    width: 230px;
  
    /* height: 100vh; */
    /**/
  }

  .content {
  margin-left: 230px;
  width: calc(100% - 230px);
}
    }
    @media screen and (max-width: 1000px) {
     .code-header {
       font-size: 0.95rem;
       padding: 8px 12px;
     }
    
     .copy-button {
       padding: 4px 8px;
       font-size: 0.8rem;
     }
    } */
   @media (min-width:1000px) and (max-width:1500px) {
  .sidebar a{
    font-size: 20px;
  }
       .sidebar {
    left: 0;
    position: fixed;
    width: 260px;
    height: 100%;
  }
  .pyt1 h1{
    font-size: 45px;
  }
  .pyt2 a{
    font-size: 22px;
  }
  main.content {
    margin-left: 280px;
    width: calc(100% - 260px);
  }
  .content h2{
    font-size: 30px;
  }
  .content p{
    font-size: 25px;
  }
} */
    @media (min-width:1501px) {
  .sidebar a{
    font-size: 28px;
  }
       .sidebar {
    left: 0;
    position: fixed;
    width: 300px;
    height: 100vh;
  }

  .pyt1 h1{
    font-size: 45px;
  }
  .pyt2 a{
    font-size: 30px;
  }
  main.content {
    margin-left: 280px;
    width: calc(100% - 280px);
  }
  .content h2{
    font-size: 35px;
    margin-top: .2cm;
  }
  .content p{
    font-size: 30px;
  }
}