
body, html {
    height: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
}

canvas {
  position: absolute;
  width: 100%;
  height: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

#container {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 60s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    10% {
        transform: translate(-5px, -2px) rotate(-2deg);
    }
    20% {
        transform: translate(-3px, 0px) rotate(2deg);
    }
    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }
    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }
    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }
    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }
    70% {
        transform: translate(2px, 1px) rotate(-1deg);
    }
    80% {
        transform: translate(1px, -1px) rotate(1deg);
    }
    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }
}

#animated-text, #square-bracket-big, #square-bracket-small, #left-static, #right-static {
    color: black;
    font-family: 'Russo One', sans-serif;
    position: relative;
}

#animated-text {
    font-size: 72px;
    font-weight: bold;
    position: relative;
  }

#square-bracket-big {
    font-size: 144px;
}

#square-bracket-small {
    font-size: 72px;
}

#left-static, #right-static {
    font-size: 36px;
}

#noiseToggleButton {
    position: fixed;
    right: 10px;
    bottom: 10px;
    font-family: 'Russo One', sans-serif;
    font-size: 12px;
    cursor: pointer;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    background-color: transparent;
}

@media (max-width: 768px) {
    #noiseToggleButton {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    #animated-text, #square-bracket-small {
        font-size: 36px;
    }

    #left-static, #right-static {
        font-size: 18px;
    }

    #square-bracket-big {
        font-size: 72px;
    }
}

@media (max-width: 480px) {
    #noiseToggleButton {
        font-size: 8px;
        padding: 3px 6px;
        bottom: 5px;
        right: 5px;
    }
    
    #animated-text, #square-bracket-small {
        font-size: 24px;
    }

    #left-static, #right-static {
        font-size: 12px;
    }

    #square-bracket-big {
        font-size: 48px;
    }
}

.glitch {
    position: relative;
    /* color: transparent; */
  }
  
  .glitch::after,
  .glitch::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    visibility: hidden;
    opacity: 0.7;
  }
  
  .glitch.active::before {
    visibility: visible;
    mix-blend-mode: screen;
    color: rgba(200, 0, 0, 0.8);
    transform: translate(var(--x-translate-before), var(--y-translate-before));
  }
  
  .glitch.active::after {
    visibility: visible;
    mix-blend-mode: screen;
    color: rgba(0, 200, 0, 0.8);
    transform: translate(var(--x-translate-after), var(--y-translate-after));
  }
