* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: inherit;
}

body {
    display: flex;
    font-family: -apple-system, BlinkMacSystemFont,
    "Segoe UI", system-ui, Roboto, Oxygen-Sans, Ubuntu, Cantarell,
    "Helvetica Neue", sans-serif;
    color: black;
    flex-direction: column;
    min-height: 100vh;
    padding: 10px;
    padding-top: 50px;
    padding-bottom: 50px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

h1 {
    font-size: x-large;
}

header,
footer {
    background: #333;
    color: white;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3.125rem;
    font-size:small;
    max-width: 100%;
    overflow: hidden;
}

header {
    top: 0;
    line-height: 1.875rem;
    justify-content: start;
}

header a,
footer a {
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

footer ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
    gap: 1rem;
    padding: 0;
    margin: 0;
}

footer li {
    display: flex;
    align-items: center;
}

footer svg {
    margin-bottom: 1px;
    height: 16px;
    width: 16px;
}

footer a:hover {
    color: #ddd;
}

section {
    flex: 1;
    max-width: 50rem;
    text-align: left;
}

.statusDeaf {
    display: block;
}
.statusDolmi {
    display: none;
}

.card {
    background-color:#eeeeee;
    margin-top: 0.8rem;
    padding-bottom: 0.8rem;
    border-radius: 0.5rem;
}
.card h2 {
    background-color:rgb(232, 175, 61);
    padding:0.5rem;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}
.card h3 {
    padding:1rem 1rem 0rem;
}
.card p {
    padding:0.5rem 1rem;
    width: 100%;
}
.card ul {
    list-style: none;
    width: 100%;
    padding: 0;
    margin: 0;
}

.card li a {
    display: flex;
    align-items: center;
    padding: 1rem;
    color: #333;
    text-decoration: none;
}

.card li a:hover {
    background: #aaa;
}

.card img {
    width: 2rem;
    height: auto;
}

.card label {
    display: block;
    font-size:small;
    color: #666;
    margin-bottom: -0.5rem;
    width: fit-content;
    padding: 0.5rem;
    padding-left: 0;
}
.card .row-inline label {
    margin-bottom: -1.5rem;
}
.listing-template li {
    margin-left: 0.8rem;
}
input, select, textarea {
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    padding: 0.5rem;
    transition: border-color 0.3s ease-in-out;
    width: 100%;
}
textarea {
    height: 6rem;
}
input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin: 0.5rem 0;
}
p.checkbox {
    align-items: center;
    padding: 0.5rem;
    margin-left: 2.5rem;
    margin-top: -2.5rem;
    width:auto;
}

.ulNormal li {
    list-style: disc;
    margin-left: 40px;
    margin-bottom: 5px;
}
.ulNormal ul {
    margin-bottom: 1rem;
}

a,
.ulNormal li a {
    display: inline;
    padding: 0;
    color: blue;
    text-decoration: none;
}

a:hover {
    background: #aaa;
    cursor: pointer;
}

#toast {
    visibility: visible;
    min-width: 250px;
    background-color: darkslategrey;
    color: white;
    text-align: center;
    border-radius: 5px;
    padding: 12px;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.5s, visibility 0.5s;
}

#spinner {
    display: none;
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    top: calc(50% - 25px);
    left: calc(50% - 25px);
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
button {
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.5rem;
    margin: 0.5rem;
    cursor: pointer;
}

.buttons-group {
    display: flex;
    justify-content:flex-end;
    margin: 0.5rem;
}
button.btn-success {
    background-color: green;
}
button.btn-danger {
    background-color: #dc3545;
}

.row-inline {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.textCenter {
    text-align: center;
}

.hidden {
    display: none;
}