/* Custom CSS styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #111;
    line-height: 1.6;
    scroll-behavior: smooth;
  }

html{
  scroll-behavior: smooth;
}

  button{
    background-color: #222;
  }
  
  header {
    background-color: #222;
    color: #fff;
    padding: 20px;
    text-align: center;
  }
  
  h1 {
    font-size: 48px;
    margin: 0;
    font-weight: 600;
  }
  
  main {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #333;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: height 2s ease, opacity 2s ease;
  }
  
  section {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #222;
    border-radius: 4px;
    interpolate-size: allow-keywords;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    height: auto;
  }
  
  h2 {
    font-size: 24px;
    margin-top: 0;
    color: #fff;
    margin-bottom: 10px;
  }
  
  h4 {
    font-size: 18px;
    margin-top: 5px;
    color: #fff;
    margin-bottom: 10px;
  }
  
  p {
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 10px;
  }
  
  code {
    background-color: #444;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    padding: 2px 4px;
    color: #fff;
  }
  
  pre {
    background-color: #444;
    border-radius: 4px;
    padding: 10px;
    overflow-x: auto;
    color: #fff;
    white-space: pre-wrap;
  }
  
  ul, ol {
    padding-left: 20px;
    color: #ccc;
    margin-bottom: 10px;
  }

  li{
    padding: 5px;
  }

  img, iframe{
    width: 100px;
    padding: 0;
    margin: 0;
    border-radius: 10%;
    border: 10px solid #333;
  }
  img.light-mode, iframe.light-mode{
    width: 100px;
    padding: 0;
    margin: 0;
    border-radius: 10%;
    border: 10px solid #fff;
  }


  .zig-zag {
    display: flex;
    flex-wrap: wrap;
    gap: 5vw;
    justify-content: center;
}


.zig-zag img {
    width: 40%;
    max-width: 400px;
    min-width: 250px;
    height: auto;
    margin: 30px 0 10px 0;
    transition: transform 2s ease, width 2s ease;
}.zig-zag iframe {
  width: 60%;
  min-width: 250px;
  aspect-ratio: 16/9;
  margin: 30px 0 10px 0;
  border-radius: 0;
  transition: flex 2s ease, transform 2s ease, width 2s ease;
}
  
  footer {
    background-color: #222;
    color: #fff;
    padding: 10px;
    text-align: center;
  }
  
  a {
    color: #fff;
    text-decoration: none;
  }
  
  /* Dynamic styles */
  .fade-in {
    opacity: 0;
    animation: fadeInAnimation 1s ease-in forwards;
  }
  
  @keyframes fadeInAnimation {
    0% {
      opacity: 0;
      transform: translateY(20px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes hide-down {
    0% {
      opacity: 1;
      transform: translateY(-20px);
    }
    90%{
        opacity: 0;
        transform: translateY(0px);
    }
    100% {
      opacity: 0;
      transform: translateY(0px);
      /*display: none;*/
    }
  }
  
  @keyframes show-down {
    0% {
        opacity: 0;
      transform: translateY(-20px);
    }
    10% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
      transform: translateY(0px);
    }
  }
  
  @keyframes enlarge {
    0% {
      max-width: 800px;
    }
    100% {
        max-width: 100%;
    }
  }
  
  @keyframes collapse {
    0% {
      max-width: 100%;
    }
    100% {      
      max-width: 800px;
    }
  }
  
  .rotate {
    animation: rotateAnimation 2s linear infinite;
  }
  
  @keyframes rotateAnimation {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  
  /* Light mode */
  body.light-mode {
    background-color: #f0f0f0;
  }
  
  header.light-mode {
    background-color: #ddd;
    color: #222;
  }
  
  h1.light-mode {
    color: #222;
  }
  
  main.light-mode {
    background-color: #fff;
    color: #222;
  }
  
  section.light-mode {
    background-color: #f0f0f0;
    color: #222;
  }
  
  h2.light-mode, h4.light-mode {
    color: #222;
  }
  
  p.light-mode {
    color: #777;
  }
  
  code.light-mode {
    background-color: #ddd;
    color: #222;
  }
  
  pre.light-mode {
    background-color: #ddd;
    color: #222;
  }
  
  ul.light-mode {
    color: #777;
  }
  
  footer.light-mode {
    background-color: #ddd;
    color: #222;
  }
  
  a.light-mode {
    color: #222;
  }
  
  /* Toggle button */
.toggle-button-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  text-align: center;
  align-items: center;
}

.toggle-button {
  width: 40px;
  height: 40px;
  background-color: #333;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px #111;
  display: flex; /* Add flexbox */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
}

.toggle-button-icon {
  width: 20px;
  height: 20px;
  color: #fff;
}

  
  .toggle-button.light-mode {
    background-color: #ddd; /* Change the background color in light mode */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Change the box shadow in light mode */
  }
  
  .toggle-button-icon.light-mode {
    width: 20px;
    height: 20px;
    fill: #fff;
  }
  
  /* Toggle button */
  .beta-icon-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
  }
  
  .beta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    /*background-color: #333;*/
    border-radius: 50%;
    cursor: pointer;
    /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);*/
  }
  .beta-icon-container.hide {
    opacity: 0;
    pointer-events: none;
  }
  .toggle-button-container.hide {
    opacity: 0;
    pointer-events: none;
  }
  
  /*section:hover {*/
    /*background-color: #111; /* Darker color on hover in dark mode */
  /*}*/
  
  section.light-mode:hover {
    background-color: #f5f5f5; /* Lighter color on hover in light mode */
  }
  
  .code-container {
    position: relative;
  }

  .fa-arrow-up-right-from-square{
    font-size: 10px;
  }
  
  .info-button {
    position: absolute;
    right: 0;
    padding: 5px;
    color: #fff;
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .info-button.light-mode {
    color: #222;
    background-color: transparent;
  }

  a{
    cursor: pointer;
  }
  
  .info-button:hover {
    color: #444;
    /*background-color: #111;*/
  }
  
  .info-button.light-mode:hover {
    color: #fff;
    /*background-color: #f5f5f5;*/
  }
  .social-links {
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }
  
  .social-links a {
    margin: 0 10px;
  }
  
  .social-links a .social-icon {
    width: 24px;
    height: 24px;
    fill: #fff;
  }
  
  .social-links a.light-mode .social-icon {
    fill: #222;
  }
  .fa-flask {
    color: #fff;
    font-size: 48px;
    animation: wobbleAnimation 1s infinite;
    margin-right: 10px;
  }
  .fa-flask.light-mode {
    color: #fff;
  }
  
  @keyframes wobbleAnimation {
    0%, 100% {
      transform: rotate(0deg);
    }
    25% {
      transform: rotate(-10deg);
    }
    75% {
      transform: rotate(10deg);
    }
  }
  
  /* Responsive styles */
  
  @media (max-width: 768px) {
    main {
      padding: 20px;
    }
  
    section {
      padding: 10px;
    }
  
    h1 {
      font-size: 36px;
    }
  
    h2 {
      font-size: 20px;
    }
    
    .fa-flask {
      font-size: 36px;
    }
  }
  
  @media (max-width: 480px) {
    main {
      max-width: 100%;
    }
    
    .fa-flask {
      font-size: 24px;
    }
  }

/* .fa-circle{
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background-color: #333;
    position: absolute;
    top: 0px;
    z-index: 9999;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 4px #111;
} */

.long{
    display: none;
}
