body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    overflow: hidden;
    background: linear-gradient(135deg, #3665ff, #030368);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
}

.container {
    background: rgb(0, 0, 0);
    padding: 70px 50px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 90%;
    max-width: 500px;
    z-index: 1;
    transition: transform 0.5s ease;
}

h1 {
    color: #ffffff;
}

p {
    color: #c0bdbd;
}

input {
    width: 80%;
    padding: 10px;
    margin-top: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
}

input:focus {
    border-color: #4facfe;
}

button {
    margin-top: 15px;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

.btn-tentar {
    background: #007eec;
    color: white;
}

.btn-tentar:hover {
    background: #107eec;
}

.btn-reset {
    background: #e61e1e;
    color: white;
}

.btn-reset:hover {
    background: #fc2828;
}

#mensagem {
    margin-top: 15px;
    font-weight: bold;
}

#tentativas {
    margin-top: 10px;
    color: #c5a40e;
}

#imagemResultado {
    width: 50%;
    max-width: 200px;
    margin-bottom: 20px;
    display: none;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(-50px);
    transition: all 0.5s ease;
    z-index: 2;
}

/* Shake animation */
@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}

.shake {
    animation: shake 0.5s;
}