/* Styles for the button */
@import url('https://fonts.googleapis.com/css?family=Source+Code+Pro:200,900');

:root {
  --text-color: hsla(210, 50%, 85%, 1);
  --shadow-color: hsla(210, 40%, 52%, .4);
  --btn-color: hsl(210, 80%, 42%);
  --bg-color: #141218;
}

* {
  box-sizing: border-box;
}

button {
  position:relative;
  padding: 10px 20px;  
  border: none;
  background: none;
  cursor: pointer;
  
  font-family: "Source Code Pro";
  font-weight: 900;
  text-transform: uppercase;
  font-size: 30px;  
  color: var(--text-color);
  
  background-color: var(--btn-color);
  box-shadow: var(--shadow-color) 2px 2px 22px;
  border-radius: 4px; 
  z-index: 0;  
  overflow: hidden;   
}

button:focus {
  outline-color: transparent;
  box-shadow: var(--btn-color) 2px 2px 22px;
}

.right::after, button::after {
  content: var(--content);
  display: block;
  position: absolute;
  white-space: nowrap;
  padding: 40px 40px;
  pointer-events:none;
}

button::after{
  font-weight: 200;
  top: -30px;
  left: -20px;
} 

.right, .left {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
}
.right {
  left: 66%;
}
.left {
  right: 66%;
}
.right::after {
  top: -30px;
  left: calc(-66% - 20px);
  
  background-color: var(--bg-color);
  color:transparent;
  transition: transform .4s ease-out;
  transform: translate(0, -90%) rotate(0deg)
}

button:hover .right::after {
  transform: translate(0, -47%) rotate(0deg)
}

button .right:hover::after {
  transform: translate(0, -50%) rotate(-7deg)
}

button .left:hover ~ .right::after {
  transform: translate(0, -50%) rotate(7deg)
}
button:hover {
  transform: scale(0.95); /* Réduire légèrement l'échelle lors du survol */
}


/* bubbles */
button::before {
  content: '';
  pointer-events: none;
  opacity: .6;
  background:
    radial-gradient(circle at 20% 35%,  transparent 0,  transparent 2px, var(--text-color) 3px, var(--text-color) 4px, transparent 4px),
    radial-gradient(circle at 75% 44%, transparent 0,  transparent 2px, var(--text-color) 3px, var(--text-color) 4px, transparent 4px),
    radial-gradient(circle at 46% 52%, transparent 0, transparent 4px, var(--text-color) 5px, var(--text-color) 6px, transparent 6px);

  width: 100%;
  height: 300%;
  top: 0;
  left: 0;
  position: absolute;
  animation: bubbles 5s linear infinite both;
}

@keyframes bubbles {
  from {
    transform: translate();
  }
  to {
    transform: translate(0, -66.666%);
  }
}


@keyframes animateLeft {
  0% {
    -webkit-transform: translateY(-100%);
            transform: translateY(-100%);
  }
  100% {
    -webkit-transform: translateY(100%);
            transform: translateY(100%);
  }
}

       * {
            margin: 0;
            padding: 0;
            box-sizing: border-box !important;
        }

        html, body {
            height: 100%;
        }

        body {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            background-color: #171717;
            font-family: Arial, sans-serif;
            overflow: hidden;
            cursor: url('cursor.png'), auto; /* Change the cursor to custom image */
            position: relative;
            color: #000;
            line-height: 1.6;
        }

        h1 {
            font-size: 6em;
            color: #8a2be2;
            text-align: center;
            text-transform: uppercase;
            position: relative;
            animation: neon 1s ease-in-out infinite alternate;
            margin-bottom: 20px;
            z-index: 10; /* Ensure h1 is above lines */
        }

        .searcher {
            color: #fff;
        }

        button {
            font-size: 1.5em;
            background-color: #8a2be2;
            color: #fff;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.3s ease, text-shadow 0.3s ease;
            z-index: 10; /* Ensure button is above lines */
            position: relative;
        }

        button:hover {
            background-color: #8a2be2;
            color: #fff;
            text-shadow: 0 0 5px #8a2be2, 0 0 10px #8a2be2, 0 0 15px #8a2be2, 0 0 20px #8a2be2, 0 0 35px #8a2be2, 0 0 40px #8a2be2, 0 0 50px #8a2be2, 0 0 75px #8a2be2;
        }

        @keyframes neon {
            0% {
                text-shadow: 0 0 5px #8a2be2, 0 0 10px #8a2be2, 0 0 15px #8a2be2, 0 0 20px #8a2be2, 0 0 35px #8a2be2, 0 0 40px #8a2be2, 0 0 50px #8a2be2, 0 0 75px #8a2be2;
            }
            100% {
                text-shadow: 0 0 5px #8a2be2, 0 0 10px #8a2be2, 0 0 15px #8a2be2, 0 0 20px #8a2be2, 0 0 35px #8a2be2, 0 0 40px #8a2be2, 0 0 50px #8a2be2, 0 0 75px #8a2be2;
            }
        }

        .stars {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
        }

        .star {
            position: absolute;
            background: white;
            border-radius: 50%;
            animation: twinkle linear infinite;
        }

        @keyframes twinkle {
            0% {
                transform: translateY(0) scale(1);
                opacity: 1;
            }
            100% {
                transform: translateY(120vh) scale(0);
                opacity: 0;
            }
        }

        #loadingAnimation {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 500px;
            max-width: 90%;
            background-color: black;
            border-radius: 5px;
            border: 2px solid #39ff14;
            box-shadow: 0 0 20px #39ff14;
            z-index: 1000;
            text-align: left;
            color: #39ff14;
        }

        .terminal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: #222;
            padding: 5px 10px;
            border-radius: 5px 5px 0 0;
            border-bottom: 2px solid #39ff14;
        }

        .terminal-buttons {
            display: flex;
            gap: 5px;
        }

        .terminal-button {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: #39ff14;
        }

        .terminal-title {
            color: #39ff14;
            font-size: 0.9em;
        }

        .terminal-content {
            font-family: 'Courier New', Courier, monospace;
            padding: 10px;
            white-space: pre;
            background-color: black;
            border-radius: 0 0 5px 5px;
        }

.owner {
    position: absolute;
    top: 20px;
    left: -200px;
    font-size: 1.2em;
    text-transform: uppercase;
    animation: slideIn 1s forwards, rainbow 5s infinite; /* Ajout de l'animation rainbow */
    z-index: 10; /* Assurer que le texte du propriétaire est au-dessus des lignes */
}

@keyframes rainbow {
    0% { color: #ff0000; } /* Rouge */
    16.666% { color: #ff7f00; } /* Orange */
    33.333% { color: #ffff00; } /* Jaune */
    50% { color: #00ff00; } /* Vert */
    66.666% { color: #0000ff; } /* Bleu */
    83.333% { color: #4b0082; } /* Indigo */
    100% { color: #8a2be2; } /* Violet */
}

        @keyframes slideIn {
            from {
                left: -200px;
            }
            to {
                left: 20px;
            }
        }

        .loading-text::after {
            content: '';
            animation: loading 1s steps(3, end) infinite;
        }

        @keyframes loading {
            0%, 20% {
                content: '';
            }
            40% {
                content: '.';
            }
            60% {
                content: '..';
            }
            80%, 100% {
                content: '...';
            }
        }

        .mute-button {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background-color: #8a2be2;
            color: #fff;
            border: none;
            padding: 10px;
            border-radius: 50%;
            cursor: pointer;
            transition: background-color 0.3s ease, text-shadow 0.3s ease;
            font-size: 1.5em;
            z-index: 10; /* Ensure mute button is above lines */
        }

        .mute-button:hover {
            background-color: #8a2be2;
            color: #fff;
            text-shadow: 0 0 5px #8a2be2, 0 0 10px #8a2be2, 0 0 15px #8a2be2, 0 0 20px #8a2be2, 0 0 35px #8a2be2, 0 0 40px #8a2be2, 0 0 50px #8a2be2, 0 0 75px #8a2be2;
        }

        .lines {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 100%;
            margin: auto;
            width: 90vw;
            z-index: 1; /* Ensure lines are behind other elements */
        }
        
        .line {
            position: absolute;
            width: 1px;
            height: 100%;
            top: 0;
            left: 50%;
            background: rgba(255, 255, 255, 0.1);
            overflow: hidden;
        }

        .line::after {
            content: '';
            display: block;
            position: absolute;
            height: 15vh;
            width: 100%;
            top: -50%;
            left: 0;
            background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #ffffff 75%, #ffffff 100%);
            animation: drop 7s 0s infinite;
            animation-fill-mode: forwards;
            animation-timing-function: cubic-bezier(0.4, 0.26, 0, 0.97);
        }

        .line:nth-child(1) {
            margin-left: -25%;
        }

        .line:nth-child(1)::after {
            animation-delay: 2s;
        }

        .line:nth-child(3) {
            margin-left: 25%;
        }

        .line:nth-child(3)::after {
            animation-delay: 2.5s;
        }

        @keyframes drop {
            0% {
                top: -50%;
            }
            100% {
                top: 110%;
            }
        }

        /* New styles for order details */
        .detail-title {
            color: #8a2be2; /* Purple color for titles */
        }

        .detail-value {
            color: #39ff14; /* Green color for values */
        }

        .copy-button {
            background-color: #8a2be2;
            color: #fff;
            border: none;
            padding: 5px 10px;
            border-radius: 5px;
            cursor: pointer;
            margin-left: 10px;
            font-size: 0.8em;
        }

        .copy-button:hover {
            background-color: #7b1fa2; /* Darker purple on hover */
        }