* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    height: 100vh;
    display: flex;
    /* justify-content: center; */
    align-items: center;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: rgb(134, 134, 253);
}

#root {
    width: 80%;
    height: 500px;
    display: flex;
    justify-content: center;
    margin-top: 50px;
    box-shadow: 0 0 10px grey;
}

.form-container,
.database {
    height: 100%;
    padding: 40px;
}

.form-container {
    width: 40%;
    background-color: rgb(0, 0, 184);
    color: aliceblue;
}

.heading {
    text-align: center;
    margin-bottom: 40px;
}

#form .input-group {
    width: 100%;
    height: 40px;
    border-bottom: 1px solid rgb(188, 188, 255);
    margin: 20px 0;
}

#form .input-group input {
    font-size: 15px;
    width: 100%;
    height: 100%;
    border: none;
    padding-right: 10px;
    background-color: transparent;
    outline: none;
    color: aliceblue;
    letter-spacing: 1px;
}

#form .input-group input::placeholder {
    color: rgb(188, 188, 255);
}

#form #error {
    color: rgb(255, 183, 183);
}

#form .input-group:last-child {
    text-align: end;
    border-bottom: none;
}

#form .input-group #formBtn {
    padding: 10px 30px;
    background-color: aliceblue;
    border: none;
    font-size: 16px;
    letter-spacing: 1px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

#form .input-group #formBtn:active {
    transform: scaleX(98%);
}


.database {
    width: 60%;
    background-color: aliceblue;
}

/* Table Style */
.dataTable {
    border-collapse: collapse;
    width: 100%;
    /* table-layout: fixed; important for fixed width columns */
}

.dataTable th,
.dataTable td {
    border: 1px solid #000;
    text-align: start;
    width: 100px;
    height: 32px;
}

.dataTable th {
    padding: 5px 10px;
}

.dataTable td input {
    font-size: 15px;
    display: inline-block;
    width: 100%;
    height: 100%;
    border: none;
    padding: 5px 10px;
    outline: none;
}

.dataTable td:nth-child(1) input,
.dataTable td:nth-child(2) input,
.dataTable td:nth-child(3) input {
    text-transform: capitalize;
}

@media (max-width: 1240px) {
    #root {
        width: 80%;
        height: 100%;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 30px;
    }

    .form-container {
        width: 500px;
    }

    .database {
        width: 95%;
    }
}

@media (max-width: 870px) {
    #root{
        width: 100%;
        margin-top: 0;
    }
}