html {
    /* background: url('/images/bg.png') no-repeat center top fixed; */
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;

    background-color: #fefefd; /* Setting this within the html element avoids "flooding the viewport", per https://css-tricks.com/html-vs-body-in-css/ */
    font-size: 12pt; /* Setting this within the html element ensures that rem units work properly, per https://css-tricks.com/html-vs-body-in-css/ */
    height: 100%; /* Necessary (on all phones) to get background image to size properly, from page to page */
    line-height: 1.6;
}

body {
    color: #111;
    font-family: TimesNewRoman, "Times New Roman", Times, Baskerville, Georgia, serif;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;

    margin: 0;
    overflow-y: scroll;
    padding: 0 15px;
}

a {
    color: #ce283f;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a.button {
    text-decoration: none;
}

a.inline {
    padding-left: 10px;
}

a.menuIcon {
    color: #ce283f;
    font-size: 2rem;
}

a.menuIcon:hover {
    text-decoration: none;
}

a.remove {
    display: block;
    padding: 10px 0 5px 0;
}

blockquote {
    margin: 20px 0 30px 40px;
}

blockquote.family, blockquote.productCustom, blockquote.variations {
    margin-bottom: 0;
}

div.cartFooterWrapper {
    height: 50px; /* Use this so that the button and spinner don't dynamically shift the site footer up and down */
}

div.container {
    display: flex;
}

div.cszContainer {
    display: flex;
}

div.cszCity {
    flex: 1 1 auto;
}

div.cszState {
    flex: 0 0 75px;
    text-align: right;
}

div.cszZip {
    flex: 0 0 105px;
    text-align: right;
}

div.event {
    margin-left: 30px;
}

div.floaterParent {
    position: relative;
    z-index: 100;
}

div.floaterParent img {
    width: 100%;
}

div.floater {
    
    background-color: rgba(240, 240, 240, 0.8);
    padding: 30px 30px 20px 30px;
    position: absolute;
    left: 60px;
    width: 300px;
    z-index: 200;

    /* Vertical centering */
    top: 50%;
    transform: translate(0, -50%);

}

div.floater.right {
    left: inherit;
    right: 60px;
}

div.floater.full {
    width: 590px;
}

div.fluidMedia {
    position: relative;
    padding-bottom: 56.25%; /* aspect ratio... e.g. 16:9 = 9/16 * 100 */
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}

div.fluidMedia iframe {
    border: 1px solid #999;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

div.galleryImage {
    margin: 0 auto 5px auto;
}

div.galleryImage img {
    border: 1px solid #ce283f;
    max-width: 100%;
}

div.galleryText {
    text-align: center;
}

div.galleryText a {
    line-height: normal;
}

div.imageGallery {
    display: flex;
    flex-flow: row wrap;
}

div.imageGallery div {
    border: 1px solid #999;
    border-radius: 4px;
    margin: 0 20px 20px 0;
    padding: 10px;
}

div.imageGallery div.red {
    border: 1px solid #ce283f;
    border-radius: 4px;
    margin: 0 20px 20px 0;
    padding: 2px;
}

div.imageGallery div img {
    width: 200px;
}

div.innerContent {
    /* margin: auto; */
    width: 50%;
}

div.innerContent.textLeft {
    margin-right: 30px;
}

div.innerContent.textRight {
    margin-left: 30px;
}

div.innerContent img {
    width: 100%;
}

div.gallerySelector {
    display: block;
    margin-bottom: 15px;
    overflow: hidden;
    padding: 15px;
}

div.price {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 15px 0;
    padding: 0;
}

div.product {
    align-items: flex-start;
    display: flex;
}

div.productDetails p {
    margin-top: 0;
}

div.productImage {
    border: 1px solid #999;
    margin-right: 30px;
    width: 250px;
}

div.productImage img {
    width: 250px;
}

div.recordEditor {
    border: 1px solid #999;
    border-radius: 4px;
    display: block;
    margin-bottom: 15px;
    overflow: hidden;
    padding: 15px;
}

div.recordEditor.errorBox {
    border: 1px solid var(--error);
    border-radius: 4px;
}

div.storeProductDescription {
    margin: 15px 5px 5px 5px;
}

div.storeProductDescription a {
    line-height: normal;
}

div.storeProductDescription p {
    margin: 5px 0 0 0;
}

div.storeProductImage {
    margin: auto;
}

div.storeProductImage img {
    width: 151px;
}

h1 {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
    margin-top: 0;
}

h1.event {
    margin-bottom: 0;
}

h1.inline {
    display: inline;
}

h2 {
    font-size: 1.2rem;
    font-weight: 100;
    margin: 0;
}

h3 {
    font-size: 1rem;
    font-style: italic;
    font-weight: 100;
    margin: 0;
}

h3.event {
    font-size: 1.2rem;
}

h3.contactInfo {
    font-style: normal;
    margin: 5px 0 15px 30px;
}

hr {
    margin-bottom: 15px;
    margin-top: 15px;
}

img.cameraIcon {
    height: 15px;
    width: 15px;
}

img.instructor {
    float: left;
    margin: 0 20px 20px 0;
    width: 203px;
}

img.grayBorder {
    border: 1px solid #999;
}

img.productImage{
    width: 200px;
}

img.redBorder {
    border: 1px solid #ce283f;
    border-radius: 4px;
    padding: 2px;
}

input[type=text], input[type=date], input[type=datetime-local], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=time], input[type=url], textarea {
    background-color: #fff;
    border: solid 1px #dcdcdc;
    border-radius: 3px;
    color: #333;
    font-family: inherit;
    font-size: 1rem;
    height: 40px;
    margin: 5px 0;
    padding: 7px;
}

input[type=text].hidden {
    display: none;
}

input[type=checkbox] {
    transform: scale(1.2);
    margin-right: 5px;
}

input[type=date] {
    width: 160px;
}

input[type=datetime-local] {
    width: 230px;
}

input[type=radio] {
    margin: 10px 0;
}

input[type=submit], a.button, .square-button {
    background-color: #999;
    border: solid 1px #999;
    border-radius: 3px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    min-width: 105px;
    padding: 7px 15px;
}

input[type=submit]:hover, a.button:hover, .square-button:hover {
    background-color: #ffd700;
    border: solid 1px #ffd700;
    color: black;
    cursor: pointer;
}

input[type=submit].addToCart, input[type=submit].delete, input[type=submit].record {
    margin-bottom: 0;
}

input[type=time] {
    width: 120px;
}

input.city {
    width: 100%;
}

input.long, select.long, textarea.long, textarea.indentedLong, div.cszContainer {
    width: 414px;
}

input.medium, select.medium, textarea.medium {
    width: 207px
}

input.short, select.short, textarea.short {
    width: 103px;
}

input.zip {
    width: 95px;
}

label {
    display: block;
    font-weight: bold;
}

label.ckeditor {
    padding-bottom: 5px;
}

p.errorMessage {
    color: darkred;
	font-weight: bold;
}

p.familyPhone {
    margin: 0;
}

p.globalMessage {
	color: green;
	font-weight: bold;
    margin-top: 5px;
    margin-bottom: 15px;
}

p.green {
	color: green;
}

p.hiddenText {
    display: none;
}

p.mobileTitleText {
    font-family: Copperplate, "Copperplate Gothic Light", fantasy;
    font-size: 2.2rem;
    padding-left: 20px;
}


p.orderFooter {
    margin: 0 0 7px 0;
}

p.productCustom {
    padding-top: 10px;
}

p.darkred {
    color: darkred;
}

select {
    background-color: #fafafa;
    border: solid 1px #dcdcdc;
    border-radius: 2px;
    color: #333;
    display: inline-block;
    font-family: inherit;
    font-size: 1rem;
    height: 41px;
    margin: 5px 0;
}

select.cartQuantity {
    width: 54px;
}

select.state {
    width: 65px;
}

table {
    border-spacing: 0;
    font-size: inherit;
}

table.attendance, table.cart, table.families, table.hours, table.logins, table.mailLog, table.mailingList, table.orders, table.products, table.productSales, table.rsvps, table.variationList {
    width: 100%;
}

table.attendance td, table.families td, table.hours td, table.logins td, table.mailLog td, table.mailingList td, table.orders td, table.products td, table.productSales td, table.rsvps td {
    border-top: 1px solid #ccc;
    vertical-align: top;
}

table.attendance .attendanceAttended {
    text-align: center;
    width: 10%;
}

table.attendance .attendanceDate {
    width: 50%;
}

table.attendance .attendanceEvent {
    padding-right: 10px;
    width: 40%;
}

table.attendance .attendancePercent {
    text-align: center;
    width: 28%;
}

table.cart td, table.variationList td {
    border-bottom: 1px solid #ccc;
    padding: 0;
    text-align: left;
}

table.cart td.footer {
    border-bottom: none;
    padding-top: 15px;
}

table.cart td.footerLabel {
    border-bottom: none;
    font-weight: bold;
    padding-top: 15px;
    text-align: right;
}

table.cart td.image, table.variationList td.image {
    width: 100px;
}

table.cart td.image img, table.variationList td.image img {
    /* border: 1px solid #ce283f; */
    height: 60px;
}

table.cart td.price, table.variationList td.price {
    text-align: right;
    width: 110px;
}

table.cart td.quantity {
    text-align: right;
    width: 110px;
}

table.cart td.quantity.select {
    padding-top: 5px;
}

table.cart th, table.variationList th {
    border-bottom: 1px solid #ccc;
    padding-bottom: 0;
    text-align: right;
}

table.cart tr {
    height: 50px;
}

table.cart tr.footer {
    height: 30px;
}

table.hours .hoursDescription, table.hours .hoursIndividualHours, table.hours .hoursName {
    vertical-align: top;
}

table.hours .hoursDescription {
    width: 60%;
}

table.hours .hoursFamily {
    padding-right: 10px;
    width: 40%;
}

table.hours .hoursFamilyHours {
    text-align: center;
    width: 28%;
}

table.hours .hoursIndividualHours {
    padding-right: 20px;
    width: 15%;
}

table.hours .hoursName {
    padding-right: 20px;
    width: 25%;
}

table.logins tr td, table.mailingList tr td {
    padding-right: 20px;
    width: 33%;
}

table.mailingListPrint {
    border-spacing: 15px 0;
    margin-left: 7px;
    margin-top: 52px;
    font-size: 0.9rem;
}

table.mailingListPrint td {
    border: 1px #fff solid;
    height: 95px;
    padding: 20px;
    width: 205px;
}

table.mailingListPrint td.spacer {
    height: 104px;
}

table.orders tr td, table.rsvps tr td {
    display:inline-block;
    height: auto;
}

table.orders .summaryOrderDate {
    width: 20%;
}

table.orders .summaryOrderName {
    width: 45%;
}

table.orders .summaryOrderNumber {
    width: 25%;
}

table.orders .summaryOrderTotal {
    text-align: right;
    width: 9%;
}

table.productSales .numSales, table.productSales .totalReceived, table.productSales .totalRevenue {
    padding-left: 15px;
    text-align: right;
    width: 20%;
}

table.productSales th {
    border-top: 0;
    text-align: right;
}

table.productSales tr:last-child th {
    border-top: 1px solid #ccc;
    height: 40px;
}

table.rsvps .summaryRSVPname {
    width: 44%;
}

table.rsvps .summaryRSVPnumber {
    width: 30%;
}

table.rsvps .summaryRSVPsize {
    text-align: right;
    width: 25%;
}

table.signupSheet {
    border-bottom: 1px solid #ccc;
}

table.signupSheet .roleSignups {
    white-space: nowrap
}

table.signupSheet td {
    border-top: 1px solid #ccc;
    vertical-align: top;
}

table.subOrder {
    font-size: 0.8rem;
}

table.subOrder td {
    height: 15px;
    padding: 5px 0 0 0;
}

table.subOrder tr td:first-child {
    padding-right: 20px;
}

table.variationList td.delete  {
    width: 70px;
}

table.variationList td.image img {
    border: 1px solid #999;
    height: 60px;
}

table.variationList tr {
    height: 90px;
}

table.variationList tr:first-child {
    height: 30px;
}

td {
    height: 25px;
    padding: 10px 0;
}

textarea {
    height: 93px;
    resize: none;
}

th {
    background: none;
    font-weight: bold;
    padding-bottom: 10px;
    text-align: left;
}

ul.emailTo {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.emailTo li {
    height: 40px;
    width: 130px;
}

ul.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.gallery li {
    display: flex;
    flex-direction: column;
    margin: 0 7px 25px 7px;
    width: 171px;
}

ul.memberPhotos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.memberPhotos li {
    margin: 0 7px 25px 7px;
    text-align: center;
    width: 171px;
}

ul.memberPhotos li img {
    border: 1px solid #ce283f;
    max-width: 100%;
}

ul.music ul {
    padding-bottom: 15px;
}

ul.music ul:last-child {
    padding-bottom: 0;
}

ul.parents {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.parents li {
    margin: 0 40px 20px 0;
}

ul.passwordHints {
	border-top: 0;
	padding-top: 0;
	padding-bottom: 15px;
}

ul.store {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.store li {
    background-color: #fefefd;
    border: 1px solid #ce283f;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0 7px 25px 7px;
    width: 171px;
}

ul.subMenu {
    display: none;
}

#backgroundOverlay {
    background-color: #000;
    display: none;
    filter: alpha(opacity=60);
    height: 100vh;
    left: 0;
    opacity: .60;
    -moz-opacity: 0.6;
    position: fixed;
    top: 0;
    width: 100vw;
    z-index: 9999;
}

#mobileNav {
    background-color: #fefefd;
    border-right: 1px solid #ccc;
    display: none;
    height: 100vh;
    left: 0;
    overflow-y: scroll;
    position: fixed;
    top: 0;
    width: 250px;
    z-index: 10000;
}

#mobileNav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#mobileNav li {
    border-bottom: 1px solid #ccc;
    padding: 20px;
}

#mobileNav ul li ul li {
    border: 0;
    padding: 20px 0 0 40px;
}

#logo {
    height: 130px;
    margin: 0 auto;
    padding-top: 22px;
    text-align: left;
    width: 1010px;
}

#logo img {
    border: 0;
    height: 110px;
    padding-left: 30px; /* Tweaked for Chrome on Windows */
}

#mobileTitleBar {
    border-bottom: 1px solid #999;
    display: none;
    height: 40px;
    line-height: normal;
    padding: 10px 0 5px 0;
}

#topNavBar {
    background-color: #ce283f;
    height: 60px;
}

#topNav {
    margin: 0 auto;
    padding: 1px 0 1px 0;
    text-align: center;
    width: 1020px;
}

#topNav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#topNav li {
    border-right: 1px solid #ce283f;
    float: left;
    height: 43px;
    padding: 15px 110px 0 10px; /* Tweaked for Chrome on Windows */
}

#topNav li:hover {
    background-color: #fefefd;
}

#topNav a {
    color: #fefefd;
    /* font-family: Copperplate, "Copperplate Gothic Light", fantasy; */ /* This doesn't work on Linux */
    font-size: 1.2rem;
}

#topNav a:hover {
    color: #ce283f;
    text-decoration: none;
}

#topNav li.selected {
    background-color: #fefefd;
}

#topNav a.selected {
    color: #ce283f;
    text-decoration: none;
}

#content {
    display: flex;
    margin: 0 auto;
    min-height: 300px;
    padding: 20px 0 20px 0;
    width: 1010px;
}

#leftNav {
    flex: 0 0 auto;
    padding-right: 20px;
    text-align: right;
    width: 198px;
}

#leftNav h1 {
    margin-bottom: 0;
}

#leftNav ul {
    list-style-type: none;
    margin: 0;
    padding: 0 0 15px 0;
}

#leftNav ul li {
    text-align: right;
}

#navContentSpacer {
    border-left: 1px solid #999;
    flex: 0 0 auto;
    padding: 10px 0 10px 0;
    text-align: center;
    width: 20px;
}

#navContentSpacerBlank {
    flex: 0 0 auto;
    padding: 10px 0 10px 0;
    text-align: center;
    width: 21px;
}

#contentBody {
    flex: 1 1;
    padding-bottom: 25px;
}

#contentBody li {
    padding: 0;
}

/* FullCalendar */
#contentBody #calendar {
    padding-bottom: 10px;
}

#footer {
    border-top: 1px solid #999;
    margin: 0 auto;
    font-size: 0.8rem;
    padding: 10px 0 20px 0;
    text-align: center;
}

.center {
    text-align: center;
}

.green {
	color: green;
}

.smallText {
    font-size: 0.9rem;
}

/* iframe that's resizable w/ consistent aspect ratio! */

.aspect-ratio {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 51%;
}

.aspect-ratio iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0; top: 0;
}

/* Waiting spinner (used while awaiting order confirmation */

#waiting-spinner {
    animation: spin 1s linear infinite;
    border: 4px solid #d0d0d0; 
    border-radius: 50%;
    border-top: 4px solid #ce283f;
    display: none;
    height: 28px;
    margin-left: 33px;
    margin-top: 5px;
    width: 28px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pulsing text (used for merchandise price change) */

@keyframes pulse {
    from { transform: rotate(0deg); }
    17% { transform: rotate(10deg); }
    50% { transform: rotate(-10deg); }
    84% { transform: rotate(10deg); }
    to { transform: rotate(0deg); }
  }
  
.text-pulse {
    animation-name: pulse;
    animation-duration: 1s;
    animation-iteration-count: 1;
 }


/* Placeholder color */
::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  color: #aaa;
}
::-moz-placeholder { /* Firefox 19+ */
  color: #aaa;
}
:-ms-input-placeholder { /* IE 10+ */
  color: #aaa;
}
:-moz-placeholder { /* Firefox 18- */
  color: #aaa;
}


/* Both tablet + phone */
@media only screen and (max-width: 1050px) {

    html {
        background-position: center 55px;
        font-size: 10pt;
        line-height: 1.7;
    }

    #logo, #topNavBar, #leftNav, #navContentSpacer, #navContentSpacerBlank {
        display: none;
    }

    #mobileTitleBar {
        display: block;
    }

    #tabletTitle {
        display: inline;
    }

    #phoneTitle {
        display: none;
    }

    #content {
        min-height: 0;
        padding-top: 15px;
        width: 100%;
    }

    #footer {
        width: 100%;
    }

    div.container {
        display: block;
    }

    div.innerContent {
        margin: auto;
        width: 100%;
    }
    
    div.innerContent.textLeft {
        margin: auto;
        width: 100%;
    }
    
    div.innerContent.textRight {
        margin: auto;
        padding-top: 20px;
        width: 100%;
    }
    
    div.innerContent img {
        width: 100%;
    }
    
    div.floater {
        
        background-color: inherit;
        padding: inherit;
        padding-top: 20px;
        position: relative;
        z-index: 100;
    
        /* Vertical centering */
        /*
        top: 50%;
        transform: translate(0, -50%);
        */
    
        /* Full centering */
        left: inherit;
        top: inherit;
        transform: translate(0,0);
    
    }
    
    div.floater.right {
        left: inherit;
        right: inherit;
    }
    
    div.floater.full {
        width: inherit;
    }
    
    p.familyPhone {
        margin-bottom: 1.6em;
    }

    td {
        padding: 15px 0;
    }

}

/* Phone only */
@media only screen and (max-width: 630px) {

    #tabletTitle {
        display: none;
    }

    #phoneTitle {
        display: inline;
    }

    div.product {
        flex-direction: column;
    }

    div.productImage {
        margin: 0 auto 20px auto;
    }

    img.instructor {
        display: none;
    }

    table.cart .image {
        display: none;
    }

    table.logins .loginDate {
        display: none;
    }

    table.mailingList .listAddress {
        display: none;
    }

    table.orders .summaryOrderNumber {
        width: 50%;
    }

    table.orders .summaryOrderName {
        display: none;
    }

    table.orders .summaryOrderDate {
        width: 30%;
    }

    table.orders .summaryOrderTotal {
        width: 19%;
    }

}

/* Scale down inputs when screen is very narrow */
@media only screen and (max-width: 765px) {

    textarea.indentedLong {
        width: 100%;
    }

}

@media only screen and (max-width: 444px) {

    input.long, select.long, textarea.long, div.cszContainer {
        width: 100%;
    }

}

/* CSS specific to iOS devices */
@supports (-webkit-overflow-scrolling: touch) {

    html {
        background-attachment: scroll; /* Necessary (on iPhone) to get background image to size properly */
    }

    ul.gallery li {
        width: 158px;
    }

    ul.memberPhotos li {
        width: 158px;
    }

    ul.store li {
        width: 158px;
    }

}
