* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Custom Properties */
  @property --changingderykcolor {
    syntax: '<color>';
    inherits: true;
    initial-value: hsl(0, 100%, 50%);
  }
  
  @property --changingcolor {
    syntax: '<color>';
    inherits: true;
    initial-value: hsl(0, 100%, 50%);
  }
  
  :root {
    --primary-color: white;
    --secondary-color: #40C575;
    --accent-color: #FF883E;
    --background-color: rgb(236, 236, 236);
    --border-radius: 20px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    animation: rainbowColor 5s linear infinite, rainbowderykcolor 5s linear infinite;
  }
  
  /* Layout and Elements */
  body {
    background-color: rgb(227, 227, 227);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100vw; 
    overflow-x: hidden;
  }
  
  h1 {
    font-size: 3rem;
    font-style: italic;
    margin: 1rem;
    font-weight: bold;
  }
  
  video {
    width: 100vw;
    height: auto;
    position: fixed;
    bottom: 0;
    left: 0;
  }
  
  footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: auto;
    bottom: 0;
  }
  
  .container {
    width: 95%;
    margin-left: 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100vw;
    margin: 0 auto;
    gap: 2rem;
  }
  .PVContainer{
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    background-color: lightgray;
    border-radius: 0.5rem;
    padding: 2rem;
  }
  .pvlist{
    display: flex;
    flex-direction: column;
  }

  .card {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border-radius: 0.5rem;
  background-color: #f4f4f4; /* Soft matte color */
  box-shadow: 0rem 0rem 0.5rem rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
  text-align: center;
  justify-content: space-around;
}

.card img {
  border-radius: 0.25rem;
  max-height: 20rem; /* Adjust this value based on the height of the circuit image */
  width: auto;
  object-fit: contain; /* Ensures images resize proportionally */
}
#plist{
  width: 20rem;
}
  
  /* Navigation */
  nav {
    position: relative;
    border-radius: var(--border-radius);
    z-index: 1;
  }
  
  nav::before {
    content: '';
    position: absolute;
    top: -0.2rem;
    left: 0.75rem;
    z-index: -1;
    height: 15.25rem;
    width: 8.8rem;
    border-radius: 23px;
    background-size: 200% 100%;
    animation: wave 7s infinite;
    opacity: 1;
  }
  
  nav ul {
    border-radius: var(--border-radius);
    padding: 1rem;
    margin: 1rem;
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 20px;
    background-color: white;
    box-shadow: 0rem 0rem 0.5rem rgb(115, 115, 115);
    width: 50vw;
  }
  
  nav ul li a {
    font-size: 1rem;
    color: transparent;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    display: inline-block;
    overflow: hidden;
    background: black;
    background-size: 200% 100%;
    background-position: left 0%;
    -webkit-background-clip: text;
    background-clip: text;
    text-align: center;
  }
  nav ul li{
    text-align: center;
  }
  
  nav ul li a:hover {
    background: repeating-linear-gradient(
      90deg,
      black 0%,
      black 85%,
      var(--changingcolor) 85%,
      var(--changingcolor) 90%,
      black 90%,
      black 100%
    );
    background-size: 200% 100%;
    animation: wave 1.5s infinite;
    -webkit-background-clip: text;
    background-clip: text;
  }
  
  /* Nav Border Wrapper */
  .navborder {
    padding: 0.1rem;
    border-radius: var(--border-radius);
    display: inline-block;
  }
  
  /* Logo */
  .logo {
     background: repeating-linear-gradient(
      -90deg,
      black 0%, 
      black 25%, 
      var(--changingcolor) 25%, 
      var(--changingcolor) 25.2%, 
      black 25.2%, 
      black 50%,
      var(--changingcolor) 50%, 
      var(--changingcolor) 50.2%,
      black 50.2%, 
      black 75%,
      var(--changingcolor) 75%, 
      var(--changingcolor) 75.2%,
      black 75.2%, 
      black 99.8%,
      var(--changingcolor) 99.8%, 
      var(--changingcolor) 100%
    );
    background-size: 200% 100%;
    animation: wave 15s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .current{
    color: rgb(255, 0, 0);
}
img{
    width: 100%;
    border-radius: 0.25rem;
    border: 1rem black;
    box-shadow: 0.2rem 0.2rem 0.5rem black;
}
header{
    background: rgb(236, 236, 236);
    box-shadow: 0rem 0rem 1rem black;
    padding: 1px;
    z-index: 1;
}
iframe {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1rem;
  bottom: 100;
  width: 70%;
}
canvas {
    display: block;
    box-sizing: border-box;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem auto;
    background: #f8f9fa; /* Light background */
    background-color: white;
  box-shadow: 0rem 0rem 0.5rem rgba(0, 0, 0, 0.3); /* Subtle shadow */
    max-width: 800px;
    width: 100%;
    height: 300px;
}
.controls {
  font-size: 1rem;
  padding: 0.5rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
}
.controlpanel{
  margin-top: 2rem;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 1rem;
  background-color: white;
  box-shadow: 0rem 0rem 0.5rem rgba(0, 0, 0, 0.3); /* Subtle shadow */
}
.VCP{
  font-size: 2rem;
  padding: 1rem;
  margin-top: 1rem;
}
.VCPtoggle{
  background: black;
  width: auto;
  font-size: 1rem;
}
#jlist{
max-width: 20rem;
}
#equation{
  box-shadow: 0 0 0 0;
}
#botcard{
  padding-bottom: 1rem;
}


  /* Animations */
  @keyframes wave {
    0% {
      background-position: 200%;
    }
  }
  
  @keyframes rainbowderykcolor {
    25%   { --changingderykcolor: hsl(0, 100%, 50%); }
    30%   { --changingderykcolor: hsl(42, 100%, 60%); }
    35%   { --changingderykcolor: hsl(60, 100%, 59%); }
    40%   { --changingderykcolor: hwb(100 23% 3%); }
    45%   { --changingderykcolor: hsl(249, 100%, 71%); }
  }
  
  @keyframes rainbowColor {
    0%     { --changingcolor: hsl(0, 100%, 50%); }
    12.5%  { --changingcolor: hsl(42, 100%, 60%); }
    37.5%  { --changingcolor: hsl(60, 100%, 59%); }
    62.5%  { --changingcolor: hwb(100 23% 3%); }
    87.5%  { --changingcolor: hsl(249, 100%, 71%); }
    100%   { --changingcolor: hsl(0, 100%, 50%); }
  }
  