::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #e0f2f2;
    text-align: center;
    user-select: none;
}

strong,
.result {
    user-select: text;
}

#center-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

h3 {
    padding: 10px;
    text-align: center;
    position: sticky;
    border-radius: 0 10px 0 0;
}

h3,
optgroup {
    background-color: #009788;
}

option {
    background-color: white;
}

#container {
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    margin: 0 5px;
}

.forms-container {
    display: flex;
    justify-content: center;
    width: 99%;
    border-radius: 8px;
    overflow: auto;
}

#add {
    padding: 8px 10px;
}

form {
    display: flex;
    flex-direction: column;
    height: 240px;
    justify-content: space-between;
    text-align: center;
    background-color: #fff;
    padding: 20px;
    width: 70%;
    margin: 0 auto;
    margin-bottom: 20px;
    border-radius: 4px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    user-select: none;
}

#button {
    margin-bottom: 10px;
}

.result {
    margin: 10px 0;
}

input,
select {
    width: 100%;
    padding: 10px;
    margin-bottom: 16px;
    box-sizing: border-box;
    border: none;
    background-color: transparent;
    font-size: 16px;
    border-bottom: 1px solid #ccc;
    text-align: center;
}

form input,
form select {
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    margin: 0;
    padding: 0;
    font-size: 16px;
}

.form-single {
    padding: 4px;
}

button {
    background-color: #4caf50;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #45a049;
}

.input-box {
    display: inline-block;
    border: 2px solid #f6f6f6;
    padding: 10px;
    box-sizing: border-box;
    transition: width 0.3s;
    background-color: white;
    border-radius: 4px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

h1 {
    margin: 15px;
}

.custom-input {
    border: none;
    outline: none;
    width: calc(100% - 20px);
    box-sizing: border-box;
    border-bottom: 2px solid #d8d8d8;
}

.custom-input:focus {
    width: 100%;
    border-bottom-color: #208fac;
}

.delete {
    background-color: red;
    margin-bottom: 10px;
}

button.delete:hover {
    background-color: #f32
}

#table {
    display: flex;
    justify-content: center;
    align-items: center;
}

table {
    font-family: arial, sans-serif;
    border-collapse: collapse;
    background-color: white;
}

thead {
    background-color: #dddddd;
    font-weight: bold;
}

td,
th {
    border: 1px solid #cccccc;
    text-align: left;
    padding: 8px;
}

tr:nth-child(even) {
    background-color: #dddddd;
}

tbody tr:first-child {
    color: green;
    font-weight: bold;
}

tbody tr:nth-child(2) {
    color: orange;
}

tbody tr:last-child {
    color: red;
}

@media screen and (min-width: 540px) {
    table {
        display: none;
    }
}

@media screen and (min-width: 480px) {
    br {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        margin: 10px;
        font-size: 1.5em;
    }

    span {
        display: none;
    }

    .custom-input {
        width: 90%;
    }

    h3,
    .form-single,
    .input-box {
        padding: 2px;
    }

    form {
        padding: 16px;
        height: 200px;
    }

    .delete {
        padding: 8px;
    }

    #add {
        padding: 5px 7px;
    }
}

#back {
    position: fixed;
    top: 18px;
    left: 10px;
}

#back img {
    height: 29px;
}

#back img:hover {
    transform: scale(1.04);
}

@media screen and (max-width: 780px) {
    #back {
        top: 14px;
        left: 7px;
    }

    #back img {
        height: 15px;
    }
}