/* Overall Styling */

:root {
    --black: #000000;
    --grey: #463B3F;
    --white: #FFFFFF;
    --red: #8D030F;
    --redrgb: 141,3,15;
    --beige: #E3D5C5;
    --egg: #F1E9E1;
    font-size: 62.5%;
}

body {
    font-family: 'Open Sans', sans-serif;
    overflow-y: scroll;
    background-color: var(--white);
}

h1 {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 0.1rem;
    text-align: center;
}

sup {
    font-size: 0.5em;
    vertical-align: super;
}

h2 {
    font-size: 3.5rem;
}

p, label {
    font-size: 1.8rem;
    line-height: 2.8rem;
    text-align: justify;
}

b {
    font-weight: bold;
}

label {
    font-weight: 600;
    font-size: 2.8rem;
}

a {
    cursor: pointer;
    font-size: 1.8rem;
}

.main-wrapper {
    width: 80vw;
    min-height: calc(100vh - 140px - 217.5px - 6rem);
    margin: 0 auto;
}

.content {
    padding-top: 4rem;
    padding-bottom: 7rem;
}

@media only screen and (max-width: 992px) {

    .content {
        padding-top: calc(9rem + 4rem);
    }

}

/* Errors */
.errors {
    padding-top: 3rem;
    row-gap: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Select */

select {
    font-size: 1.8rem;
    padding: 1rem;
    border: solid 1px var(--grey);
}

/* Date Picker */

input[type="date"] {
    background-color: var(--red);
    padding: 10px;
    font-size: 1.8rem;
    color: var(--white);
}

::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(1);
}

/* Button */

button {
    cursor: pointer;
    padding: 1rem;
    background-color: var(--white);
    border: solid 2px var(--red);
    color: var(--red);
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    border-radius: 3px;
}

button:hover {
    transition: ease-in-out 0.2s;
    background-color: var(--red);
    border: solid 2px var(--red);
    color: var(--white);
}

/* Checkbox */

.checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.checkbox > span {
    padding: 0.5rem 1rem;
}

.checkbox > input {
    height: 2rem;
    width: 2rem;
    border: solid 1px var(--black);
    border-radius: 4px;
    outline: none;
    transition-duration: 0.1s;
    background-color: var(--red);
    cursor: pointer;
}

.checkbox > input:checked {
    border: solid 1px var(--red);
    background-color: var(--beige);
}

.checkbox > input:checked + span::before {
    content: '\2713';
    display: block;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--red);
    position: absolute;
    left: 0.4rem;
    top: 0.4rem;
}

.checkbox > input:checked + span {
    font-weight: 600;
}

/* Links */

.link-border ul li a {
    border-bottom: solid 1px rgba(0, 0, 0, 0);
}

.link-border ul li a:hover {
    color: var(--red);
    border-bottom: solid 1px var(--red);
    transition: ease-in-out 100ms;    
}

/* Video */
iframe {
    aspect-ratio: 16 / 9;
    height: auto;
    width: 100%;
}

/* Tables General */

.table-container {
    max-height: 60vh;
    width: 100%;
    overflow: auto;
    border: solid 2px var(--black);
}

table {
    width: 100%;
    background-color: var(--white);
    font-size: 1.6rem;
    border-collapse: separate;
    border-spacing: 0;
}

.table-section h2, caption {
    padding-bottom: 1.5rem;
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 1;
}

td, th {
    white-space: nowrap;
    padding: 0.8rem;
    text-align: center;
    min-width: 6rem;
}

td:first-of-type, th:first-of-type {
    position: sticky;
    left: 0;
}

td:first-of-type {
    font-weight: 700;
    z-index: 900;
}

th:first-of-type {
    z-index: 1100;
}

/* Tables Header */

thead tr th {
    font-weight: 700;
    letter-spacing: 0.1rem;
    vertical-align: middle;
    color: var(--egg);
    background-color: var(--red);
    border-bottom: solid 2px var(--black);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Tables Body */

tbody td {
    border-right: solid 1px var(--grey);
    border-bottom: solid 1px var(--grey);
}

tbody td:last-child {
    border-right: none;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr {
    background-color: var(--white);
}

tbody tr td {
    background-color: inherit;
}

tbody tr:hover {
    transition: ease-in-out 0.1s;
    background-color: var(--egg);
}

/* Tables Footer */

tfoot {
    font-weight: 700;
}

tfoot td {
    background-color: var(--egg);
    border-right: solid 1px var(--grey);
}

tfoot tr:first-child td {
    border-top: solid 2px var(--black);
}

tfoot td:last-child {
    border-right: none;
}

/* Select */

.select-selected {
    background-color: var(--red);
}

.select-selected:after {
    position: absolute;
    content: "";
    top: 2.4rem;
    right: 2rem;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-color: var(--white) transparent transparent transparent;
}

.select-selected.select-arrow-active:after {
    border-color: transparent transparent var(--white) transparent;
    top: 1.8rem;
}

.select-items div, .select-selected {
    color: var(--white);
    padding: 1.15rem;
    border: solid 1px transparent;
    border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
    cursor: pointer;
    font-size: 1.8rem;
}

.select-items {
    position: absolute;
    background-color: var(--red);
    top: 100%;
    left: 0;
    right: 0;
    z-index: 3000;
    max-height: 25rem;
    overflow-y: auto;
}

.select-hide {
    display: none;
}

.select-items div:hover, .same-as-selected {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Scroll Bar 
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}
   
::-webkit-scrollbar-thumb {
    background: #888;
}
  
::-webkit-scrollbar-thumb:hover {
    background: #555; 
}*/

/* Overall Styling <992 */

@media only screen and (max-width: 992px) {

    h1 {
        font-size: 3rem;
        font-weight: bold;
        letter-spacing: 0.1rem;
    }
    
    h2 {
        font-size: 2.1rem;
    }
    
    p {
        font-size: 1.4rem;
        line-height: 2rem;
    }

}