/******************
General 
******************/

:root {
    --orange: #af6247;

}

* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    background-color: #F4F7F9;
    height: 100%;
}

body.noScroll {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    outline: none;
    border: none;
    background-color: transparent;
    display: block;
    width: 100%;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-size: unset;
}

picture,
img {
    display: block;
    width: 100%;
}


/******************
Containers & Buttons
******************/


.button {
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 12px 35px;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    display: block;
    width: 100%;
    border-radius: .25rem;
    text-align: center;
}

.button.orange {
    background-color: var(--orange);
}

.button.red {
    background-color: #b53737;
}

.button.loading {
    position: relative;
    pointer-events: none;
    color: transparent !important;
}

.button.loading::selection {
    color: transparent !important;
}

.button.loading::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 4px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: loading 1s ease infinite;
}

@keyframes loading {
    from {
        transform: rotate(0turn);
    }

    to {
        transform: rotate(1turn);
    }
}

/********
Inputs
 */

.input {
    width: max-content;
    display: block;
    padding: .375rem 2.25rem .375rem .75rem;
    font-size: 16px;
    color: #212529;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    appearance: none;
}

.dropdown {
    width: max-content;
    display: block;
    padding: .375rem 2.25rem .375rem .75rem;
    font-size: 16px;
    color: #212529;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    appearance: none;
}

.datepicker {
    width: max-content;
    padding: .375rem;
    font-size: 16px;
    color: #212529;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: .25rem;
}

.dropdown:focus,
.datepicker:focus,
.input:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgb(13 110 253 / 25%);
}

/***********
Header
 */

#header {
    padding: 20px 40px;
    box-shadow: 0 2px 5px rgb(0 0 0 / 10%);
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#headerLogo {
    max-width: 200px;
}

#headerNav {
    display: flex;
    gap: 10px 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.headerNavLink {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 15px;
}

.headerNavLink.active {
    text-decoration: underline;
}

@media (max-width: 800px) {
    #header {
        display: block;
    }

    #headerLogo {
        margin: 0 auto 20px;
        max-width: 300px;
    }
}

/*****
Main
 */

main {
    padding: 20px;
    display: grid;
    row-gap: 20px;
    column-gap: 20px;
    grid-template-columns: repeat(4, 1fr);
}

main.loading > section {
    position: relative;
    opacity: 0.5;
    pointer-events: none;
}

main.loading::after {
    content: "";
    position: absolute;
    width: 50px;
    height: 50px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 7px solid transparent;
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: loading 1s ease infinite;
}

.card {
    font-size: 14px;
    background-color: white;
    box-shadow: 0 0 20px rgb(8 21 66 / 5%);
    border-radius: 15px;
    padding: 30px;
}

.card.scroll {
    overflow-x: auto;
}

.cardInner {
    padding: 10px;
    min-width: fit-content;
}

.cardTitle {
    font-size: 22px;
    font-weight: 800;
}

.cardBody {
    font-size: 16px;
    line-height: 1.6;
}

@media (max-width: 800px) {
    main {
        grid-template-columns: 1fr
    }

    .card {
        padding: 20px;
    }

    .card {
        grid-column: 1/2 !important;
    }
}

/***************************
Pagination Pages
***************************/

.pagination {
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.paginationItem {
    border-bottom: 2px solid lightgray;
    transition: 0.3s;
    padding: 5px 15px;
    font-size: 20px;
    cursor: pointer;
    color: lightgray;
}

.paginationItem.deco {
    pointer-events: none;
}

.paginationItem:hover,
.paginationItem.active {
    color: #231f20;
    border-bottom: 2px solid #231f20;
}