/* CSS Styles */
html {
  scroll-behavior: smooth;
  box-sizing: border-box;
}

*,
*:after,
*:before {
  box-sizing: border-box;
}

body {

  overflow-x: hidden;
}

body::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
  background-color: #f7f7f7;
  border-radius: 10px;
}

body::-webkit-scrollbar {
  width: 3px;
  background-color: #f7f7f7;
}

body::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color: #fff;
  background-image: -webkit-gradient(
    linear,
    40% 0%,
    75% 84%,
    from(#d70018),
    to(#d70018),
    color-stop(0.6, #d70018)
  );
}

/* TB-IC Styles */
.tb-ic-fixed {
  position: fixed;
  z-index: 99;
  background-color: #d70018;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px 15px;
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
  transition: all 0.3s ease;
}

.tb-ic-fixed:before,
.tb-ic-fixed:after {
  content: "";
  pointer-events: none;
  position: absolute;
  height: 30px;
  width: 60px;
  left: 0px;
}

.tb-ic-fixed:before {
  top: 0;
  border-radius: 0 0 50px 0;
  box-shadow: 30px 1px 0 0 #d70018;
  transform: rotate(90deg) translateY(50%) translateX(-75%);
}

.tb-ic-fixed:after {
  bottom: 0;
  border-radius: 0 50px 0px 0;
  box-shadow: 30px -1px 0 0 #d70018;
  transform: rotate(-0.25turn) translateX(-75%) translateY(-50%);
}

.tb-ic-fixed.active .tb-ic-item:not(.tb-ic-trigger) {
  transform: scale(0);
  margin: 0;
  width: 0;
  height: 0;
  opacity: 0;
}

.tb-ic-fixed [data-tooltip] {
  position: relative;
  z-index: 9;
}

.tb-ic-fixed [data-tooltip]::before {
  position: absolute;
  content: attr(data-tooltip);
  display: block;
  padding: 7px;
  color: #fff;
  text-align: center;
  font-size: 0.8em;
  white-space: nowrap;
  border-radius: 4px;
  background: #d70018;
  opacity: 0;
  visibility: hidden;
  cursor: default;
  pointer-events: none;
  transition: all 0.2s ease-in-out;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
}

.tb-ic-fixed [data-tooltip]:hover::before {
  opacity: 1;
  visibility: visible;
  left: 50px;
}

.tb-ic-item {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
  width: 24px;
  height: 24px;
  border-radius: 30px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.tb-ic-item i {
  color: #fff;
  font-size: 18px;
  transition: all 0.25s ease;
}

.tb-ic-trigger {
  cursor: pointer;
}

.tb-ic-trigger i {
  transform: rotate(0deg);
  transition: transform 0.25s ease;
}

.tb-ic-trigger.active i {
  transform: rotate(180deg);
}

/* Hover effects */
.tb-ic-item:hover {
  transform: scale(1.2);
}

.tb-ic-item:hover i {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Light Mode Styles */
body.light .tb-ic-fixed {
  background-color: #000;
}

body.light .tb-ic-fixed:before {
  box-shadow: 30px 1px 0 0 #000;
}

body.light .tb-ic-fixed:after {
  box-shadow: 30px -1px 0 0 #000;
}

body.light .tb-ic-fixed [data-tooltip]::before {
  background: #000;
  color: #fff;
}

body.light .tb-ic-item i {
  color: #fff;
}

/* Dark Mode Styles */
body:not(.light) .tb-ic-fixed {
  background-color: #1a1a1a;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

body:not(.light) .tb-ic-fixed:before {
  box-shadow: 30px 1px 0 0 #1a1a1a;
}

body:not(.light) .tb-ic-fixed:after {
  box-shadow: 30px -1px 0 0 #1a1a1a;
}

body:not(.light) .tb-ic-fixed [data-tooltip]::before {
  background: #333;
  color: #fff;
}

body:not(.light) .tb-ic-item i {
  color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .tb-ic-fixed {
    padding: 15px 10px;
  }
  
  .tb-ic-item {
    width: 22px;
    height: 22px;
    margin: 8px 0;
  }
  
  .tb-ic-item i {
    font-size: 16px;
  }
  
  .tb-ic-fixed [data-tooltip]::before {
    font-size: 0.7em;
    padding: 5px;
  }
}

@media (max-width: 480px) {
  .tb-ic-fixed {
    padding: 12px 8px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
  }
  
  .tb-ic-item {
    width: 20px;
    height: 20px;
    margin: 6px 0;
  }
  
  .tb-ic-item i {
    font-size: 14px;
  }
  
  .tb-ic-fixed [data-tooltip]::before {
    font-size: 0.65em;
    padding: 4px;
  }
  
  .tb-ic-fixed:before,
  .tb-ic-fixed:after {
    height: 20px;
    width: 40px;
  }
}

/* Content Styles */
.content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-flow: column;
  padding: 0 30px;
}

.content h1 {
  margin-top: 60px;
  text-align: center;
}

.content p {
  margin: 0 auto 15px;
  width: 700px;
  line-height: 1.8;
  text-align: center;
}

@media (max-width: 767px) {
  .content p {
    width: 100%;
  }
}

.content pre {
  padding: 15px;
  margin-top: 0;
  margin-bottom: 45px;
  border-radius: 5px;
  text-align: center;
  text-wrap: wrap;
  line-height: 1.6;
  color: #000;
  background-color: #f7f7f7;
  overflow-x: auto;
}

/* Demo Content */
.contentDemo:empty {
  margin: auto;
  width: 500px;
  height: 600px;
  background-image: radial-gradient(
      circle 50px at 50px 50px,
      lightgray 99%,
      transparent 0
    ),
    linear-gradient(
      100deg,
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, 0.5) 50%,
      rgba(255, 255, 255, 0) 80%
    ),
    linear-gradient(lightgray 20px, transparent 0),
    linear-gradient(lightgray 20px, transparent 0),
    linear-gradient(lightgray 20px, transparent 0),
    linear-gradient(lightgray 20px, transparent 0);
  background-repeat: repeat-y;
  background-size: 100px 200px, 50px 200px, 150px 200px, 350px 200px, 300px 200px, 250px 200px;
  background-position: 0 0, 0 0, 120px 0, 120px 40px, 120px 80px, 120px 120px;
}