:root {
    --buttonBackground: var(--panelHighlight);
    --buttonHighlight: var(--highlightColor);
    --buttonTextColor: var(--softTextColor);
    --buttonHighlightColor: var(--textColor);
    --labelColor: var(--softTextColor);
}

form {
    margin-bottom: 40px;
    margin-top: 40px;
    margin-right: auto;
    margin-left: auto;
    max-width: 600px;
}

label {
    display: block;
    font-size: 1.17em;
    margin-top: 30px;
    font-weight: normal;
}

input, textarea, select {
    height: 30px;
    width: 100%;
    flex-grow: 1;
    border-width: 1px;
    border: none;
    color: var(--textColor);
    background-color: var(--panelHighlight);
    box-sizing: border-box;
    padding: 10px;
}


input:focus, textarea:focus, select:focus {
    outline: none;
}



button, .button {
    width: auto;
    padding-left: 10px;
    padding-right: 10px;
    min-height: 30px;
    border: 1px solid transparent;
    transition: 0.2s;
    color: var(--buttonTextColor);
    border-radius: var(--borderRadius);
    background-color: var(--panelHighlight);
    margin-top: 15px;
    font-weight: bold;
    font-size: 15px;
    line-height: 40px;
}

button:hover {
    background-color: var(--buttonHighlight);
    color: var(--buttonHighlightColor);
}

.listButton {
    width: 100%;
    height: auto;
    box-sizing: border-box;
    background-color: white;
    text-align: left;
    padding: 20px;
    border-bottom: 1px var(--panelHighlight) solid;
    border-radius: 0;
    margin: 0;
}

.listButton:hover h3,  .listButton:hover p{
    color: var(--buttonHighlightColor);
}

.listButton p {
    font-size: 0.7rem;
    line-height: 1rem;
}

.selectedCard {
    background-color: #941114;
    color: white;
}

#selectedMessage, #selectedView {
    background-color: var(--buttonBackground);
    margin-top: 15px;
    font-size: 13px;
    border-radius: var(--borderRadius);
}

#selectedMessage:hover, #selectedView:hover {
    background-color: var(--buttonHighlight);
    margin-top: 15px;
}

.deletableItem {
    width: auto;
    height: auto;
    background-color: #941114;
    color: white;
    font-weight: bold;
    font-size: 12px;
    padding: 9px;
    border-style: solid;
    border-width: 1px;
    border-color: #941114;
    margin-right: 10px;
    margin-top: 5px;
    margin-bottom: 5px;
    display: inline-block;
    transition: 0.2s;
}

.deletableItem:after{
    line-height: 0;
    font-size: 16px;
    display: inline-block;
    margin-left: 5px;
    content: "x"; /* This will render the 'X' */
}

.deletableItem span {
    pointer-events: none;
    max-width: 250px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: inline-block;
}

.deletableItem:hover {
    background-color: white;
    border-color: #941114;
    color: #941114;
    text-decoration: line-through;
}


.iconButton {
    background-color: var(--buttonBackground);
    border-radius: 50%;
    padding: 8px;
    height: 24px;
    min-height: unset;
    margin: 0;
    box-sizing: unset;
}


.searchBar {
    width: 100%;
    height: fit-content;
    background-color: var(--panelHighlight);
    color: var(--softTextColor);
    border: none;
    font-size: 1.25rem;
    border-radius: 100px;
    padding: 10px 16px;
    box-sizing: border-box;
}

/* Hides the arrows for Chrome, Safari, Edge, and Opera */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Hides the arrows for Firefox */
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
    width:80px;
}

select {
    box-sizing: content-box;
    padding: 0px;
    width: fit-content;
}

.nameInput {
    font-size: 25px;
    background: none;
    border:none;
    font-weight: bold;
    margin-bottom: 25px;
    padding: 0;
    
}