/* General styles */
body {
  font-family: Consolas, monospace;
  background-color: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  margin: 0;
}

/* Header styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  background-color: #444;
  padding: 2px 20px;
  border-radius: 10px;
  margin-bottom: 5px;
}

.youtube-icon i {
  font-size: 28px;
  color: #FF0000; /* Red color for YouTube */
  transition: color 0.3s;
}

.twitter-icon i {
  font-size: 28px;
  color: #1DA1F2; /* Blue color for Twitter */
  transition: color 0.3s;
}

.youtube-icon i:hover,
.youtube-icon i:active {
  color: #f7c8c8; /* White color on hover and click */
}

.twitter-icon i:hover,
.twitter-icon i:active {
  color: #9fe5f1; /* White color on hover and click */
}

.left-box {
  width: 50px;
  height: 50px;
  background-color: #777;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 20px;
}

.left-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.icons {
  display: flex;
}

.icons a {
  font-size: 24px;
  margin-left: 10px;
  text-decoration: none;
}

/* Container styles */
.container {
  background-color: #222;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  margin-bottom: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  
}

.code-example,
.code-output {
  background-color: #111;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
  width: 90%;
  max-height: 150px;
  overflow-y: auto;
}

.code-example pre,
.code-output pre {
  color: #ff0000;
  filter: brightness(88%);
  margin: 0;
}

.code-output .comment {
  color: #888;
  font-size: 15px;
}

/* Module info container styles */
.container-module-info {
  background-color: #222;
  padding: 10px;
  border-radius: 10px;
  width: 91.5%;
  margin-bottom: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Footer styles */
footer {
  background-color: #222;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 93%;
  border-radius: 10px;
  box-sizing: border-box;
  margin-bottom: 2px;
}

.footer-image {
  width: 50px;
  height: 50px;
  background-color: #777;
  border-radius: 50%;
  overflow: hidden;
  margin-top: 15px;
}

.footer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-info {
  text-align: center;
  margin-top: 10px;
}

.footer-info p {
  color: #fff;
  margin: 0;
}

h2 {
  font-size: 17px;
}

p {
  font-size: 12px;
  color: #fff;
}

/* Copy Icon Styles */
.copy-icon {
  position: relative;
  font-size: 20px;
  color: #696969;
  filter: brightness(50%);
  transition: color 0.2s;
}

.copy-icon:hover {
  color: #4caf50; /* Change the color on hover to a green color */
}

/* Check Icon Styles */
.check-icon {
  position: absolute;
  top: 70%; /* Adjust the top value to move the icon slightly down */
  left: 50%;
  transform: translate(-50%, -50%);
  color: #4caf50; /* Green color for the check icon */
  display: none; /* Hide the check icon initially */
}

.copy-icon.active .check-icon {
  display: block; /* Show the check icon when active (clicked) */
}

/* Media Queries */
@media screen and (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  .left-box {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .icons {
    margin-top: 10px;
  }

  /* Scrollbar styles for smaller screens */
  .code-example::-webkit-scrollbar,
  .code-output::-webkit-scrollbar,
  .container-module-info::-webkit-scrollbar {
    width: 8px; /* Width of the scrollbar */
  }

  .code-example::-webkit-scrollbar-thumb,
  .code-output::-webkit-scrollbar-thumb,
  .container-module-info::-webkit-scrollbar-thumb {
    background-color: #888; /* Color of the scrollbar thumb */
    border-radius: 10px; /* Rounded corners for the scrollbar thumb */
  }

  .code-example::-webkit-scrollbar-thumb:hover,
  .code-output::-webkit-scrollbar-thumb:hover,
  .container-module-info::-webkit-scrollbar-thumb:hover {
    background-color: #666; /* Color of the scrollbar thumb on hover */
  }

  .code-example::-webkit-scrollbar-track,
  .code-output::-webkit-scrollbar-track,
  .container-module-info::-webkit-scrollbar-track {
    background-color: #f2f2f2; /* Color of the scrollbar track */
    border-radius: 10px; /* Rounded corners for the scrollbar track */
  }
}

@media screen and (max-width: 480px) {
  .container {
    width: 100%;
  }

  .code-example,
  .code-output {
    width: 100%;
  }

  footer {
    width: 100%;
  }

  /* Customizing scrollbar track for Chrome on Windows */
  @media screen and (-webkit-min-device-pixel-ratio: 0) {
    .code-example::-webkit-scrollbar-thumb,
    .code-output::-webkit-scrollbar-thumb,
    .container-module-info::-webkit-scrollbar-thumb {
      background-color: #444; /* Color of the scrollbar thumb */
      border-radius: 10px; /* Rounded corners for the scrollbar thumb */
    }

    .code-example::-webkit-scrollbar-thumb:hover,
    .code-output::-webkit-scrollbar-thumb:hover,
    .container-module-info::-webkit-scrollbar-thumb:hover {
      background-color: #222; /* Color of the scrollbar thumb on hover */
    }

    .code-example::-webkit-scrollbar-track,
    .code-output::-webkit-scrollbar-track,
    .container-module-info::-webkit-scrollbar-track {
      background-color: #fff; /* Color of the scrollbar track */
      border-radius: 10px; /* Rounded corners for the scrollbar track */
    }
  }
}
