.text-container {
  width: 100%;
  position: relative;
  font-size: clamp(32px, 5vw, 36px);
  font-family: 'UncutSans', sans-serif;
  color: #000;
  text-align: left;
  display: inline-block;
  min-width: 320px;
  max-width: 1000px;
}

.info-button {
  border-radius: 30px;
  border: 2px solid rgb(255, 30, 255);
  background-color: rgb(255, 30, 255);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 0px 10px;
  text-decoration: none;
  color: #fff;
  cursor: default;
}

.hover-name {
  padding: 0px 10px;
  border-radius: 30px;
  border: 2px solid #000;
}

.hover-name:hover {
  cursor: none;
  background-color: #000;
  color: #fff;
}

.hover-p5 {
  padding: 0px 10px;
  border-radius: 30px;
  border: 2px solid #000;
}

.hover-p5:hover {
  cursor: pointer;
  background-color: rgb(214, 243, 0);
  border-color: rgb(214, 243, 0);
}

.hover-p5-active {
  background-color: rgb(214, 243, 0);
  border-color: rgb(214, 243, 0);
  cursor: pointer;
}

.hover-mail {
  position: relative;
  overflow: hidden;
  padding: 0px 10px;
  border-radius: 30px;
  border: 2px solid #000;
  background-image: linear-gradient(to right, #000, #000);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: left;
  transition: background-size 0.4s ease-in-out, color 0.4s ease-in-out, border-color 0.4s ease-in-out;
  z-index: 0;
}

.hover-mail:hover {
  cursor: pointer;
  color: #fff;
  background-size: 100% 100%;
}

.hover-cv {
  padding: 0px 10px;
  border-radius: 30px;
  border: 2px solid #000;
}

.hover-cv:hover {
  cursor: pointer;
  background-color: rgb(255, 30, 255);
  border-color: rgb(255, 30, 255);
}

.hidden {
  display: none !important;
}

#p5-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  pointer-events: none;
}

#p5-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

/* Ensure the header and footer are always on top */
header, footer {
  position: relative;  /* Ensures they stay in normal document flow */
  z-index: 1000; /* Higher than the p5 sketch */
}

canvas {
  pointer-events: none !important;
}

.color-changing-box {
  padding: 0px 10px;
  border-radius: 30px;
  display: inline-block;
  animation: colorChange 5s infinite step-end; /* 5 colors × 1s = 5s cycle */
}

/* Keyframes for instant color change */
@keyframes colorChange {
  0% { background-color: rgb(214, 243, 0); }
  20% { background-color: rgb(255, 30, 255); }
  40% { background-color: rgb(0, 223, 115); } 
  60% { background-color: rgb(255, 80, 0); }
  80% { background-color: rgb(0, 100, 249); }
  100% { background-color: rgb(214, 243, 0); }
}
