@font-face {
    font-family: 'youmurdererbb';
    src: url('../font/youmurdererbb_reg.otf') format('opentype');
}

:root {
    --glitch-x-1: 10px;
    --glitch-hue-1: 16deg;
    --glitch-x-2: -24px;
    --glitch-hue-2: -18deg;
}

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

body {
    background-color: #0A0A0A;
    color: #fff;
}
@keyframes glitch {
    2%, 64% {
        transform: translate(2px, 0) skew(0deg) scale(1.012);
    }
    4%, 60% {
        transform: translate(-2px, 0) skew(0deg) scale(1.012);
    }
    62% {
        transform: translate(0, 0) skew(5deg) scale(1.012);
    }
    4.5%, 59.5% {
        transform: translate(1px, 0) skew(0deg) scale(1.012);
    }
    6%, 58% {
        transform: translate(-1px, 0) skew(0deg) scale(1.012);
    }
    8%, 56% {
        transform: translate(0, 0) skew(0deg) scale(1.012);
    }
    10%, 54% {
        transform: translate(1px, 0) skew(0deg) scale(1.012);
    }
    12%, 52% {
        transform: translate(-1px, 0) skew(0deg) scale(1.012);
    }
    14%, 50% {
        transform: translate(0, 0) skew(0deg) scale(1.012);
    }
    16%, 48% {
        transform: translate(1px, 0) skew(0deg) scale(1.012);
    }
    18%, 46% {
        transform: translate(-1px, 0) skew(0deg) scale(1.012);
    }
    20%, 44% {
        transform: translate(0, 0) skew(0deg) scale(1.012);
    }
    22%, 42% {
        transform: translate(1px, 0) skew(0deg) scale(1.012);
    }
    24%, 40% {
        transform: translate(-1px, 0) skew(0deg) scale(1.012);
    }
    26%, 38% {
        transform: translate(0, 0) skew(0deg) scale(1.012);
    }
    28%, 36% {
        transform: translate(1px, 0) skew(0deg) scale(1.012);
    }
    30%, 34% {
        transform: translate(-1px, 0) skew(0deg) scale(1.012);
    }
    32%, 32% {
        transform: translate(0, 0) skew(0deg) scale(1.012);
    }
}

@keyframes glitchTop {
    2%, 64% {
        transform: translate(2px, -2px) scale(1.012);
    }
    4%, 60% {
        transform: translate(-2px, 2px) scale(1.012);
    }
    62% {
        transform: translate(13px, -1px) skew(-13deg) scale(1.012);
    }
    4.5%, 59.5% {
        transform: translate(1px, -1px) scale(1.012);
    }
    6%, 58% {
        transform: translate(-1px, 1px) scale(1.012);
    }
    8%, 56% {
        transform: translate(0, 0) scale(1.012);
    }
    10%, 54% {
        transform: translate(1px, -1px) scale(1.012);
    }
    12%, 52% {
        transform: translate(-1px, 1px) scale(1.012);
    }
    14%, 50% {
        transform: translate(0, 0) scale(1.012);
    }
    16%, 48% {
        transform: translate(1px, -1px) scale(1.012);
    }
    18%, 46% {
        transform: translate(-1px, 1px) scale(1.012);
    }
    20%, 44% {
        transform: translate(0, 0) scale(1.012);
    }
    22%, 42% {
        transform: translate(1px, -1px) scale(1.012);
    }
    24%, 40% {
        transform: translate(-1px, 1px) scale(1.012);
    }
    26%, 38% {
        transform: translate(0, 0) scale(1.012);
    }
    28%, 36% {
        transform: translate(1px, -1px) scale(1.012);
    }
    30%, 34% {
        transform: translate(-1px, 1px) scale(1.012);
    }
    32%, 32% {
        transform: translate(0, 0) scale(1.012);
    }
}

@keyframes glitchBotom {
    2%, 64% {
        transform: translate(-2px, 0) scale(1.012);
    }
    4%, 60% {
        transform: translate(-2px, 0) scale(1.012);
    }
    62% {
        transform: translate(-22px, 5px) skew(21deg) scale(1.012);
    }
    4.5%, 59.5% {
        transform: translate(-1px, 0) scale(1.012);
    }
    6%, 58% {
        transform: translate(-1px, 0) scale(1.012);
    }
    8%, 56% {
        transform: translate(0, 0) scale(1.012);
    }
    10%, 54% {
        transform: translate(-1px, 0) scale(1.012);
    }
    12%, 52% {
        transform: translate(-1px, 0) scale(1.012);
    }
    14%, 50% {
        transform: translate(0, 0) scale(1.012);
    }
    16%, 48% {
        transform: translate(-1px, 0) scale(1.012);
    }
    18%, 46% {
        transform: translate(-1px, 0) scale(1.012);
    }
    20%, 44% {
        transform: translate(0, 0) scale(1.012);
    }
    22%, 42% {
        transform: translate(-1px, 0) scale(1.012);
    }
    24%, 40% {
        transform: translate(-1px, 0) scale(1.012);
    }
    26%, 38% {
        transform: translate(0, 0) scale(1.012);
    }
    28%, 36% {
        transform: translate(-1px, 0) scale(1.012);
    }
    30%, 34% {
        transform: translate(-1px, 0) scale(1.012);
    }
    32%, 32% {
        transform: translate(0, 0) scale(1.012);
    }
}

.app .logo:before,
.app .logo:after {
    content: attr(title); /* Important: Ajoutez un attribut title="Votre Texte" à votre H1 en HTML */
    position: absolute;
    left: 0;
    color: #fff; /* Assurez-vous que la couleur correspond */
    background-color: #0A0A0A; /* Cache le texte original en dessous */
    overflow: hidden;
}

.app .logo1:before {
    animation: glitchTop 1s linear infinite;
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}

.app .logo:after {
    animation: glitchBotom 1.5s linear infinite;
    clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
    -webkit-clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
}

.app .logo {
    animation: glitch 1s linear infinite;
    width: 30%;
}

.app {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.app h1 {
    font-family: 'youmurdererbb';
    font-weight: 100;
    font-size: 5rem;
}


.app .click {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 20px;
    width: 60%;
    text-align: center;
}

.app .click a {
    color: white;
}

.app .discord {
    background-color: #5865f2;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
    font-size: .8vw;
    font-weight: 600;
    margin-top: 20px;
    outline: 1px solid hsla(0, 0%, 100%, .14);
    outline-offset: -1px;
    padding: 10px 20px;
    text-decoration: none;
    transition: all .2s ease-in-out 0s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.app .discord:hover {
    background-color: #4752c4;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.volume-control i {
    color: #fff;
    font-size: 1.2rem;
}

.volume-control input[type="range"] {
    -webkit-appearance: none;
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.volume-control input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-control input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.volume-control input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
}


@media screen and (max-width: 768px) {
    .app h1 {
        font-size: 3rem;
    }

    .app .discord {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    .volume-control {
        margin-top: 15px;
    }

    .volume-control input[type="range"] {
        width: 80px;
    }
}

@media screen and (max-width: 480px) {
    .app h1 {
        font-size: 2.5rem;
        text-align: center;
    }

    .app .click {
        font-size: 0.9rem;
        text-align: center;
    }

    .app .discord {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .volume-control {
        margin-top: 10px;
    }

    .volume-control i {
        font-size: 1rem;
    }

    .volume-control input[type="range"] {
        width: 60px;
    }
}
