/* General Body Styling */
body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    box-sizing: border-box;
}

/* Container Styling */
.container {
    width: 100%;
    max-width: 600px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    overflow-y: auto;
}

/* Heading Styling */
h1 {
    color: #333;
    font-size: 1.8em;
    margin-bottom: 15px;
    font-weight: 700;
}

/* Form Group Styling */
.form-group {
    margin-bottom: 15px;
    text-align: left;
}

/* Label and Input Styling */
label {
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
    color: #555;
}

input[type="text"], input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

input[type="text"]:focus, input[type="number"]:focus {
    border-color: #007BFF;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
    outline: none;
}

/* Button Styling */
button {
    width: 100%;
    padding: 12px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    margin-top: 10px;
}

button:hover {
    background-color: #0056b3;
}

button:active {
    transform: scale(0.98);
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Success Message */
#successMessage {
    color: green;
    font-size: 1em;
    margin-top: 20px;
    display: none;
}

/* Modal Dialog Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    text-align: left;
}

.close-btn {
    color: #888;
    font-size: 1.5em;
    float: right;
    cursor: pointer;
}

/* Media Queries */
@media only screen and (max-width: 800px) {
    h1 {
        font-size: 1.3em;
    }

    input, button {
        font-size: 0.9em;
    }

    .container {
        padding: 15px;
    }
}
