:root {
    --main-color: #590089;
    --second-color: #5a3f70;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', Courier, monospace;
    text-decoration: none;
    background-color: #222;
    color: rgb(0, 213, 255);
    & > .crud {
        display: flex;
        flex-direction: column;
        padding: 10px;
        background: linear-gradient(to bottom, var(--main-color), var(--second-color));
        & > .head {
            text-align: center;
            text-transform: uppercase;
            margin: 10px 0;
            & > h2 {
                    font-size: 2.5em;
                    letter-spacing: 3px;
                    background: linear-gradient(to right, #0ff, #00f);
                    background-clip: text;
                    -webkit-text-fill-color: transparent;
                }
            & > p {
                color: #ccc;
                font-size: 1.5em;
                letter-spacing: 2px;
        
            }
        }
        & > .container {
            background: var(--second-color);
            border: 2px solid #333;
            border-radius: 8px;
            padding: 20px;
            & > h2 {
                text-align: center;
                text-transform: uppercase;
                margin: 20px 0;
                font-size: 2em;
                background: linear-gradient(to right, #0ff, #00f);
                background-clip: text;
                -webkit-text-fill-color: transparent;
            }
            & > .inputs {
                display: flex;
                justify-content: center;
                gap: 20px;
                & > div {
                    width: 100%;
                }
                margin: 20px;
                & > .type {
                    display: flex;
                    justify-content: center;
                    flex-wrap: wrap;
                    & > input {
                        width: 100%;
                    }
                    & > #total {
                        background: #c00;
                        text-align: center;
                        border-radius: 8px;
                        padding: 10px;
                        width: 100%;
                        color: #ccc;
                    }
        
                    & > #total::before {
                        content: "Total: ";
                    }
                }
                & > .price {
                    display: flex;
                    flex-wrap: wrap;
                    justify-content: center;
                    & > input {
                        width: 100%;
                    }
                }
            }
        }
        & > .outputs {
            background: var(--second-color);
            border: 2px solid #333;
            border-radius: 8px;
            padding: 20px;
            margin: 20px;
            & > .searchBlock {
                margin: 20px 0;
                & > h2 {
                    text-align: center;
                    text-transform: uppercase;
                    font-size: 1.5em;
                    background: linear-gradient(to right, #0ff, #00f);
                    background-clip: text;
                    -webkit-text-fill-color: transparent;
                }
                & > .btnSearch {
                    display: flex;
                    justify-content: space-between;
                    & > button {
                        width: 45%;
                    }
                }
            }
            & > #deleteAll button {
                background: #c00;
                color: #0ff;
                margin: 20px 0;
            }
            
            & > #deleteAll button:hover {
                background: #f00;
                color: #fff;
            }
            & > table {
                width: 100%;
                text-align: center;
                margin: 10px 0;
                & > thead {
                    text-transform: uppercase;
                    color: #fff;
                }
                & > tbody {
                    & > tr > td {
                    padding: 10px;
                    color: #ccc;
                    & > button {
                            border-radius: 8px;
                            padding: 10px;
                            width: 80%;
                            margin: 0 auto;
                            letter-spacing: normal;
                    }
                    & > #delete:hover {
                            background: #c00;
                            color: #fff;
                    }
                    & > #update:hover {
                            background: rgb(13, 255, 0);
                            color: #ff0000;
                    }
                    }
                }
            }
        }
    }
}
input {
    background: #333;
    padding: 10px;
    width: 100%;
    margin: 10px 0;
    border: none;
    outline: none;
    border-radius: 5px;
    color: #0ff;
}

input:focus {
    background: #000;
}

button {
    width: 100%;
    border: none;
    padding: 10px;
    cursor: pointer;
    background: #0ff;
    color: #000;
    border-radius: 20px;
    transition: all 0.5s ease-in-out;
}

button:hover {
    background: rgb(0, 204, 204);
    letter-spacing: 2px;
}