body {
    font-family: Arial, sans-serif;
    /* background-color: #f4f4f9; */
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    color: #2b2a2a;

    background-image: url('bg.png'); /* Replace with your image path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    /* background: white; */
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 400px;
    text-align: center;
    
    background-image: url('cgb.png'); /* Replace with your image path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

h1 {
    margin-bottom: 1rem;
    color: #0f0f0f;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(rgba(255, 0, 0, 0.253), rgba(0, 0, 0, 0.329), rgba(0, 0, 0, 0.39),rgba(255, 254, 254, 0.671), rgba(0, 0, 0, 0.363),rgba(0, 0, 0, 0.411), rgba(0, 128, 0, 0.329));
    border-radius: 20px;
}
p{
    background-color: #7e7e7e15;
    border-radius: 20px;
    font-weight: 560;
}
input[type="number"] {
    padding: 0.5rem;
    font-size: 2.8rem;
    width: 80%;
    border: 2px solid #ccc;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s;
    /* background: linear-gradient(black,rgba(0, 0, 0, 0.808),rgb(223, 0, 0), black); */
    /* color: white; */

}

input[type="number"]:focus {
    border-color: #007BFF;
    outline: none;
}

button {
    padding: 0.5rem 1.2rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    background: #007BFF;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #0056b3;
}

.message {
    margin-top: 1rem;
    font-size: 1.9rem;
    min-height: 1.5em;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #44444417;
    border-radius: 20px;
}

/* Responsive design with media queries */
@media (max-width: 320px) {
    body {
        font-size: 14px;
    }

    input[type="number"] {
        width: 100%;
        font-size: 1rem;
    }

    button {
        font-size: 1rem;
        padding: 0.4rem 1rem;
    }
}

@media (min-width: 321px) and (max-width: 480px) {
    body {
        font-size: 15px;
    }

    input[type="number"] {
        width: 100%;
        font-size: 1.1rem;
    }

    button {
        font-size: 1.1rem;
        padding: 0.5rem 1.1rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .container {
        max-width: 450px;
    }

    input[type="number"] {
        width: 80%;
        font-size: 1.2rem;
    }

    button {
        font-size: 1.2rem;
        padding: 0.6rem 1.3rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    body {
        font-size: 17px;
    }

    .container {
        max-width: 500px;
    }

    input[type="number"] {
        width: 70%;
        font-size: 1.3rem;
    }

    button {
        font-size: 1.3rem;
        padding: 0.7rem 1.5rem;
    }
}

@media (min-width: 1025px) {
    body {
        font-size: 18px;
    }

    .container {
        max-width: 600px;
        padding: 3rem;
    }

    input[type="number"] {
        width: 60%;
        font-size: 1.4rem;
    }

    button {
        font-size: 1.4rem;
        padding: 0.8rem 1.8rem;
    }
}
