:root {
    --primary-color: #9f2b2b;
    --secondary-color: rgba(238, 238, 238, 0.9);
    --text-color: rgba(0, 0, 0, 0.8);
}

* {
    box-sizing: border-box;
}

html {
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    scroll-behavior: smooth;
}

.wrapper {
    display: none;
    width: 100%;
    min-height: 100vh;
    letter-spacing: 1px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    flex-direction: column;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

button {
    border: none;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

main {
    max-width: 500px;
    margin: 2rem auto 0;
    padding-inline: 1rem;
    flex: 1;
    line-height: 1.3;
    font-size: 0.9rem;
}

nav {
    max-width: 500px;
    margin: 1rem auto 0;
    padding-inline: 1rem;
}

.navigation-top-bar {
    display: flex;
    justify-content: right;
    margin-bottom: 0.25rem;
}

.logout-btn {
    margin-right: 0.5rem;
}

.navigation-bottom-bar {
    background-color: var(--primary-color);
    border-radius: 0.25rem;
    padding: 0.75rem 1.75rem 0 0.75rem;
    white-space: nowrap;
    overflow-x: auto;
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
    scrollbar-width: none;
    /* Firefox */
}

.navigation-bottom-bar::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, and Opera */
}

.navigation-bottom-bar button {
    position: relative;
    border-radius: 0.25rem 0.25rem 0 0;
    padding: 0.25rem 0.5rem;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: bold;
}

.navigation-bottom-bar button:nth-of-type(2) {
    margin-inline: 1rem;
}

.number,
.order-number {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.8rem;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.number {
    top: -4px;
    right: -12px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    z-index: 1;
}

.order-number {
    top: -5px;
    left: -5px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

button.active {
    background-color: #fff;
    color: var(--text-color);
    box-shadow: inset 0 0 20px 0 rgba(0, 0, 0, 0.5);
}

.today-appointments, .upcoming-appointments {
    display: none;
}

.pending-appointment-request, .today-appointment, .upcoming-appointment {
    position: relative;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    padding: 1rem;
    background-color: lightgrey;
}

.pending-appointment-request > div:not(:first-child), .today-appointment > div:not(:first-child), .upcoming-appointment > div:not(:first-child) {
    margin-bottom: 0.25rem;
}

.pending-appointment-request > div:nth-last-of-type(2), .today-appointment > div:nth-last-of-type(2), .upcoming-appointment > div:nth-last-of-type(2) {
    margin-block: 1rem;
}

.heading {
    font-weight: bold;
}

.appointment-notes {
    margin-top: 8px;
    border: 1px solid gray;
    padding: 8px;
    text-align: justify;
}

ol {
    list-style: decimal;
    list-style-position: inside;
}

.action-btns {
    text-align: right;
}

.confirm-btn, .cancel-btn {
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: bold;
}

.confirm-btn {
    margin-right: 0.5rem;
}

.copyright {
    padding-block: 0.75rem;
}

.copyright p {
    padding-inline: 0.25rem;
    font-size: 0.75rem;
    text-align: center;
}

.copyright a {
    text-decoration: underline;
}

@media(min-width: 450px) {
    .copyright {
        display: flex;
        justify-content: center;
    }

    .copyright p:nth-of-type(1) {
        border-right: 1px solid black;
    }
}