body {
    font-family: "Segoe UI", Tahoma, sans-serif;
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;

    /* Multiple backgrounds: gradient overlay + tiled texture */
    background:
        linear-gradient(135deg, rgba(255, 94, 98, 0.85), rgba(131, 94, 255, 0.85)),
        url("stud.png");
    background-size: auto 120px; /* bigger repeating texture */
    background-repeat: repeat;
    background-position: center;
    background-attachment: fixed;

    color: #f0f0f0;
}


.container {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    width: 340px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px; /* even spacing between elements */
}

h1 {
    font-size: 1.6em;
    margin: 0 0 10px;
    color: #ffe97f;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

label {
    font-weight: bold;
    color: #ffffff;
    align-self: flex-start;
}

input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    outline: none;
    font-size: 1em;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-align: center;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

button {
    background: linear-gradient(135deg, #ff512f, #dd2476, #24c6dc);
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    width: 100%;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

#result {
    margin-top: 10px;
    font-weight: bold;
    font-size: 1.2em;
    color: #ffe97f;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
