@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Anton&family=Bebas+Neue&family=Belanosima:wght@400;600;700&family=Chonburi&family=Concert+One&family=Jura:wght@300..700&family=Limelight&family=Racing+Sans+One&family=Roboto+Slab:wght@100..900&family=Rubik+Dirt&family=Rubik+Glitch&display=swap');

body {
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center the glitch-wrapper in the viewport */
  align-items: center;
  height: 100vh;
  margin: 0;
  font-family: 'Rubik Glitch', monospace;
  padding: 0;
} 

.glitch {
  font-size: clamp(25px, 5vw, 3000px); /* Minimum of 20px, adjusts up to 60px based on viewport */
  text-align: center;
  position: relative;
  display: inline-block;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow: visible;
  max-width: 90vw;
  transition: font-family 2s ease, font-weight 1.5s ease, font-style 1.2s ease, text-decoration 1s ease, text-transform 1s ease;
}


.glitch-wrapper {
  display: flex;
  flex-direction: column; /* Arrange children in a column */
  align-items: center;
  text-align: center;
  margin-bottom: auto; /* Let other elements flow below */
}

#exit-edit-button {
  position: fixed; /* Position button above the footer */
  bottom: 40px; /* Adjust space between the button and footer */
  display: none;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  background-color: #fff;
  color: #000;
  border: none;
  font-family: 'Roboto', monospace;
  cursor: pointer;
  font-size: 14px;
  border-radius: 5px;
  z-index: 10; /* Ensure it appears above other elements */
}

#footer {
  color: #fff;
  position: fixed; /* Fix the footer at the bottom */
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Roboto', monospace;
  font-size: 12px;
  text-align: center;
}

/* Keyframe for glitch animation */
@keyframes glitch-random {
  0% { opacity: 1; }
  10% { opacity: 0.8; letter-spacing: 2px; }
  20% { opacity: 0.7; letter-spacing: -1px; }
  30% { opacity: 0.9; letter-spacing: 1px; }
  40% { opacity: 0.6; letter-spacing: 3px; }
  50% { opacity: 1; letter-spacing: 0px; }
  60% { opacity: 0.7; letter-spacing: -2px; }
  70% { opacity: 0.8; letter-spacing: 4px; }
  80% { opacity: 0.7; letter-spacing: 0px; }
  90% { opacity: 0.9; letter-spacing: 2px; }
  100% { opacity: 1; letter-spacing: 0px; }
}