body {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px;
    background-image: url('zurag.webp');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.container {
    text-align: center;
    background: linear-gradient(to right, rgba(255, 241, 207, 0.95), rgba(255, 224, 145, 0.95), rgba(255, 234, 181, 0.95));
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgb(255, 255, 255);
    max-width: 600px;
    width: 90%;
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.container:hover {
    transform: translateY(-8px);
    background: linear-gradient(to right, #fff493, #ffef5c,#fff8b6);
    box-shadow: 0 20px 40px rgb(255, 0, 0);
}

h1 {
    color: #fff1f1;
    font-size: 36px;
    font-weight: 1000;
    margin-bottom: 20px;
    font-family: 'Fredoka One', sans-serif;
    text-transform: uppercase;
    transition: color 0.3s ease, font-size 0.3s ease;
    text-shadow: 0 10px 20px rgb(255, 0, 0);
}

h1:hover {
    color: #ff4081;
}
#lives {
    color: rgb(255, 5, 5);
    font-size: 30px;
    text-shadow: 0 10px 20px rgb(131, 155, 255); 
    font-weight: bold;
}
#word {
    font-size: 35px;
    font-weight: bold;
    margin-bottom: 15px;
    letter-spacing: 6px;
    color: #fff;
    text-shadow: 2px 2px 5px #000;
}

#wrong-letters {
    margin-bottom: 15px;
    color: #f44336;
    font-weight: 600;
    font-size: 18px;
}
p {
    font-size: 17px;
    font-weight: bold;
    color: rgb(152, 67, 1);
}
input {
    padding: 10px;
    font-size: 25px;
    width: 70px;
    text-align: center;
    border: 3px solid #ff9800;
    border-radius: 12px;
    outline: none;
    background-color: #fff;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

input:focus {
    border-color: #4caf50;
    transform: scale(1.03);
    background-color: #fffde7;
}

button {
    margin-top: 20px;
    padding: 12px 25px;
    background-color: #df4719;
    color: #fff;
    text-shadow: 0 10px 20px rgb(238, 255, 46);
    font-weight: bold;
    font-size: 20px;
    border: none;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: 100%;
}

button:hover {
    background-color: #009688;
    transform: scale(1.04);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

#message {
    font-weight: bold;
    color: #ff0202;
    margin-top: 20px;
    font-size: 20px;
    text-shadow: 1px 1px 3px #00000091;
}

canvas {
    border: 3px dashed #ff4081;
    border-radius: 10px;
    margin-top: 20px;
    background-color: #fff;
    box-shadow: 0px 10px 20px rgb(255, 0, 0);
}

@media (max-width: 768px) {
    .container {
        padding: 25px 30px;
    }

    h1 {
        font-size: 30px;
    }

    #word {
        font-size: 30px;
    }

    button {
        font-size: 20px;
        padding: 10px 20px;
    }
    #lives {
        font-size: 25px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    #lives {
        font-size: 20px;
    }
    h1 {
        font-size: 25px;
    }

    input {
        width: 60px;
        font-size: 20px;
    }

    button {
        padding: 8px 18px;
    }
    p {
        font-size: 12px;
    }
}