@font-face {
  font-family: 'Gabriela';
  font-style: normal;
  font-weight: 400;
  src: url('./gabriela.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
    --text-colour: #111;
    --a-colour: #422361;
    --border-colour: #555;

    --purple:#a765ea;
    --yellow:#f4e801;
    --blue:#6576d7;
    --pink:#f879b0;
    --green:#4a8114;

    --red: #ee2c2c;

    --lightGreen:#c3f27e;
    --lightRed:#f5b1b1;
    --lightYellow:#f2ec6f;
}
html,
body
{
    font-family: 'Liberation Serif', Georgia, 'Times New Roman', Times, serif; /* 'Nimbus Roman', */
    line-height: 1.75em;
    padding: 0;
    margin: 0;
    color: var(--text-colour);
    font-size: 18px;
    @media (min-width: 700px) {
        font-size: 27px;
    }
}
html {
    background: url('./plain_paper.jpg') repeat #eee center top;
}
/* *:focus {
    outline: $primary 2px solid;
    outline-offset: 2px;
    border-radius: 2px;
} */
#main-container {
    padding: 1rem 1rem 6rem;
    margin: auto;
    width: 80%;
    max-width: 30rem;
    background: rgba(255,255,255,0.5);
    /* box-shadow: 0 0 0.5rem 0.5rem rgba(255,255,255,0.7); */
    min-height: calc(100vh - 7rem);
    border: 1px solid var(--a-colour);
    border-top: 0;
    border-bottom: 0;
}
input[type=button], input[type=submit] {
    display: block;
    font-size: 23px;
    line-height: 1.75em;
    padding: 0.25rem 0.5rem;
    margin: 1rem auto;
    background: var(--a-colour);
    color: #FFF;
    font-family: "Gabriela", serif;
    font-weight: bold;
    border-radius: 4px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    transition: transform ease-out 0.1s;
    &:active {
        transform: translate(2px, 2px);
    }
}
input[type=text], input[type=password] {
    display: block;
    font-size: 23px;
    line-height: 1.75em;
    padding: 0.25rem 0.5rem;
    background: #FFF;
    color: #333;
    border: 1px solid #CCC;
    border-radius: 3px;
    width: calc(100% - 1rem);
}
input[type="radio"] {
  font: inherit;
  width: 1em;
  height: 1em;
  border: 2px solid var(--border-colour);
  top: 2px;
  position: relative;
}


input[type=button], input[type=submit] {
    cursor: pointer;
}
.formField {
    margin-bottom: 0.5rem;
}
.formRow {
    margin-bottom: 2rem;
    h3 {
        /*
        border-bottom: 5px solid;
        border-image: url('/assets/stripe.png') 5 0;
        */
    }
    &:after {
        content: '';
        display: block;
        width: 80%;
        max-width: 13rem;
        border-bottom: 2px solid var(--border-colour);
        margin: 2rem auto;
        padding: 0 1rem;
    }
}
.formFieldOptions {

}
.formFieldDescription {
    display: block;
    line-height: 1.5em;
    color: #222;
}
.formRadio {
    margin: 0 1rem 0 0;
    @media (max-width: 700px) {
        display: block;
    }
}
header {
    position: relative;
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
h1, h2, h3, h4, h5, h6 {
    font-family: "Gabriela", serif;
    font-weight: 400;
    font-style: normal;
    margin: 1em 0 0.5em;
    text-align: center;
    line-height: 1.3em;
}
header + h1, header + h2, header + h3, header + h4, header + h5, header + h6 {
    margin-top: 0;
}
h1 {
    font-size: 2rem;
    margin: 0.5rem 0;
    @media (min-width: 700px) {
        font-size: 2.5rem;
    }
    a {
        cursor: pointer;
        color: var(--text-colour);
        text-decoration: none;
    }
}
h1 span {
    display: block;
    font-size: 0.8em;
    margin-top: -0.2em;
}
.hawthorn {
    display: block;
    margin: 0 auto -1rem;
}
main a {
    cursor: pointer;
    color: var(--a-colour);
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 3px;
}
p {
    margin: 0.5em 0;
}
figure {
    margin: 1rem 0;
}
img {
    max-width: 100%;
    height: auto;
}
nav {
    font-family: "Gabriela", serif;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 2rem auto;
    a {
        padding: 0 0.5rem;
        border: 2px solid var(--border-colour);
        border-left: 0;
        border-right: 0;
        text-decoration: none;
        text-shadow: 1px 1px 3px #FFF;
        transition: background-color ease-in-out 0.2s;
        margin-bottom: -2px;
    }
    .active {
        font-weight: bold;
    }
    a:nth-child(1):hover {
        background-color: var(--purple);
    }
    a:nth-child(2):hover {
        background-color: var(--yellow);
    }
    a:nth-child(3):hover {
        background-color: var(--blue);
    }
    a:nth-child(4):hover {
        background-color: var(--pink);
    }
    a:nth-child(5):hover {
        background-color: var(--green);
    }
}
.message {
    text-align: center;
    width: 90%;
    line-height: 1.5rem;
    max-width: 22rem;
    margin: auto;
}
footer {
    text-align: center;
    margin: -4.5rem auto 0;
    width: 80%;
    max-width: 13rem;
    font-size: 0.78rem;
    padding: 0 1rem 0;
    position: relative;
}
#stamp {
    width: 2rem;
    height: 2rem;
    display: block;
    margin: 0 auto;
    background: url('./B&J_stamp.png');
    background-size: contain;
    &::before, &::after {
        content: '';
        display: block;
        width: 40%;
        height: 2px;
        background: var(--text-colour);
        position: absolute;
        top: 1rem;
    }
    &::before {
        left: 0;
    }
    &::after {
        right: 0;
    }
}

body.admin {
    display: inline-block;
    #main-container {
        width: calc(100% - 2rem);
        max-width: calc(100% - 2rem);
        margin: 0;
        border: 0;
    }
}
th {
    position: sticky;
    top: 0;
    background: #F7F7F7
}
tr {
    background: #F7F7F7;
}
tr:nth-child(2n) {
    background-color: #FFF;
}
th, td {
    padding: 2px 6px;
}
table.rsvps.chart td {
    padding: 0;
}
table.rsvps {
    margin: 1rem auto;
    width: 100%;
    border: 1px solid #555;
    border-radius: 5px;
    background: #F7F7F7;
    .attending {
        border: 2px solid var(--green);
        border-radius: 3px;
        background: var(--lightGreen);
    }
    .notAttending {
        border: 2px solid var(--red);
        border-radius: 3px;
        background: var(--lightRed);
    }
    .yn {
        text-align: center;
        font-weight: bold;
        &.Y {
            border: 2px solid var(--green);
            background: var(--lightGreen);
        }
        &.N {
            border: 2px solid var(--red);
            background: var(--lightRed);
        }
        &.M {
            border: 2px solid var(--yellow);
            background: var(--lightYellow);
        }
    }
}
table.rsvps.chart {
    padding: 0;
    height: 1rem;
    font-weight: bold;
    text-align: center;
}