html {
    font-size: 14pt;
    font-family: 'Fauna One', serif;
    color: #353535;
    /* The bg color is specified in case the image fails to load. */
    background-color: rgb(55, 255, 127);
    background-image: url(resources/freepik-victorian-wallpaper.png);
    background-repeat: repeat;
}

/* Shrink the font on iPad-sized displays & below */
@media (max-width: 768px) {
    html {
        font-size: 12pt;
    }
}

body {
    margin: 0 0 1rem;
    padding: 0;
    font-family: 'Fauna One', serif;
    background: transparent;
    font-size: 14pt;
}

@media (max-width: 768px) {
    body {
        font-size: 12pt;
    }
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Gilda Display', 'Times New Roman', serif;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
    text-decoration: underline;
}

@media (max-width: 768px) {

    /* Shrink the header sizes on tablets or smaller */
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }
}

.no-space {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Remove floating in small-sized displays */
.float-left,
.float-right {
    margin: 1rem;
}

@media (max-width: 768px) {

    .float-left,
    .float-right {
        float: none !important;
        max-width: 100%;
        text-align: center;
    }
}

.hidden {
    display: none;
}

/* Update the links to match the colour scheme */
a {
    color: green;
}

a:visited {
    color: darkgreen;
}

a:hover {
    color: darkgreen;
    text-decoration: underline;
}

.container a,
.notice a {
    /* Underline the link in the main body text, but not in the navbar */
    font-weight: bold;
    text-decoration: underline;
}

.inset-left {
    /* Floating images to be shown inside paragraphs */
    float: left;
    margin-right: 1em;
}

.caption {
    /* Captions for images */
    font-size: smaller;
    font-style: italic;
}

.nag-reminder {
    /* Highlighting for readers to nag them about something. */
    font-weight: bold;
    text-decoration: underline;
}

.underline {
    border-bottom: 1px solid black;
}

/* Styles for sections of the cast timetables */
.which-practice {
    font-weight: bold;
}

.who-practices {
    font-weight: bold;
    font-style: italic;
    color: darkgreen;
}

/* A padded bulleted list. Have a space after each list item. */
.list-with-padding li {
    padding-bottom: 1rem;
}

/* Class to give a table to align its contents vertically to the top of the cell */
.align-top td {
    vertical-align: top;
}

/* Class to give a table to show stripes along it for readability */
.striped-table tr:nth-child(2n) {
    background: rgba(177, 255, 95, 0.15);
}

/* Give the padded-table class to a table to get some decent padding around the cells */
.padded-table td {
    padding: .25rem .5rem;
}

.padded-table th {
    padding: .25rem .5rem;
}

/* Ditto for list items */
.padded-list li {
    padding: 0.5rem 0;
}

.mic-table th,
.mic-table td {
    border: 1px solid darkgreen;
    min-width: 6rem;
}

/*
Thumbnail containers hold an image, possibly with a caption and possibly with a link
to a full-sized image. Most margins and padding for thumbnail images should go in here
so that they are sized properly when captions and links etc are not present.
*/
.thumbnail-image-container {
    display: inline-grid;
    margin: 1rem;
}

.thumbnail {
    /* Thumbnail images of photos */
    border: 1px solid yellow;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 15px;
    box-shadow: 5px 5px 10px darkgreen;
}

.decoration {
    /* Decorative images in the text */
    border: 1px solid yellow;
    margin: 1rem;
    border-radius: 15px;
    box-shadow: 5px 5px 10px darkgreen;
}

/* Shrink very large images on iPad. On phones (below) force all decorations to 90%, not just long ones. */
@media (max-width: 768px) {
    .decoration {
        max-width: 90%;
    }
}

/* Shrink the thumbnail and decoration sizes on phone-sized displays.
Instead of fixed widths I'll expand them to fill most of the space, otherwise they are hard to see. */
@media (max-width: 576px) {
    .thumbnail {
        width: 90%;
    }

    .decoration {
        width: 90%;
    }
}

.login-button {
    border: 1px solid darkgreen;
}

.drop-shadow {
    box-shadow: 5px 5px 10px 0 black;
}

.notice {
    /* A highlighted notice to appear on the front page. */
    background-color: rgb(247, 255, 55);
    color: black;
    padding: 1rem;
    margin-left: 0;
    margin-right: 2rem;
    border-radius: 0 10px 10px 0;
}

/* region The big welcome banner across the top  */
.welcome {
    background-color: #1f1f1f;
    text-align: center;
    font-family: "Gilda Display", "Times New Roman", serif;
    font-size: 2.5rem;
    margin: 0;
    padding: 3rem;
    color: white;
}

/* Shrink the welcome banner on tablets or smaller devices. */
@media (max-width: 768px) {
    .welcome {
        font-size: 1rem;
        padding: 1rem;
    }
}

/* endregion */

/* region Navigation menu area on all pages  */
/* The black menu bar across the top */
.menu {
    font-family: sans-serif;
    padding-top: .5rem;
    margin-top: 0;
    margin-bottom: 2rem;
    background: black;
    color: darkgrey;
}

/* All links in the menu are menu items, and we need to override the green colouring for them. */
.menu a {
    color: white;
}

.dropdown-menu {
    background: linear-gradient(to top, black, #1f1f1f);
    color: white;
    font-weight: lighter;
}

.dropdown-item {
    color: white;
    font-weight: lighter;
    /* the password reset item doesn't fit on the page at full width */
    font-size: 0.8rem;
}

.nav-link,
.navbar-brand {
    color: darkgrey;
}

/* Default theme has everything grey, so they all look disabled.
Active menu items (-nav and -link) I want to be white, just the text should be grey. */
.navbar-dark .navbar-nav .nav-link {
    color: white;
}

.navbar-dark .navbar-nav .dropdown-item .nav-link:hover {
    color: black;
}

/* When the menu is collapsed, put the headings on a new line. (the default is inline-block)
   and move the padding/border to the top instead of the left.
*/
@media (max-width: 576px) {

    /* Phone sized displays */
    .navbar {
        margin-bottom: 0;
    }

    .navbar-text,
    .nav-link {
        display: block;
    }

    #menu-beauty--the-beast,
    #about-us-menu,
    .navbar-text,
    #spotlight-news,
    #chitty-bang-bang-info-menu,
    #archives {
        padding-left: inherit;
        margin-left: inherit;
        border-left: none;
        padding-top: .5rem;
        margin-top: .5rem;
    }

    #log-in {
        padding-left: inherit;
    }
}

/* endregion */

/* region Script and news pages */
.smaller {
    font-size: 75%;
}

.script-container {
    background-color: rgb(255, 255, 225);
    box-shadow: 5px 5px 10px darkgreen;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 2rem;
}

/* The script containers all have eg. <h1>Act 1 Scene 1<h1><h2>The Factory</h2>
 So have no spacing under the h1 and have the spacing after h2.  */
.script-container h1 {
    padding-top: 0;
    margin-top: 0;
    width: 100%;
    margin-bottom: 0;
    text-align: center;
}

.script-container h2 {
    padding: 0;
    border-bottom: 1px solid darkgreen;
    margin: 0 0 1rem;
    text-align: center;
}

/* Highlight links in yellow, unless they are classed as discreet. */
.script-container a {
    background-color: yellow;
    color: initial;
}

.script-container a.discreet {
    background-color: inherit;
    color: inherit;
}

/* Don't display special formatting for the script container on tablets or smaller, as it has a lot of wasted space. */
@media (max-width: 768px) {
    body {
        margin: 0;
    }

    .container {
        padding: 1rem 0 0 0;
        background-color: rgb(175, 255, 204);
    }

    .script-container {
        border-radius: inherit;
        padding: 1rem;
        box-shadow: inherit;
        margin: 0;
    }
}

.script-container hr {
    border-top: 1px solid darkgreen;
}

.script-container blockquote {
    font-style: italic;
    margin-left: 10%;
    background-color: rgb(30, 212, 96);
    padding: 15px;
    border-radius: 10px;
}

.script-container blockquote p:last-child {
    margin-bottom: 0;
}

/* endregion */

/* region Cast List & Songs */
.cast-list {
    margin-top: 1rem;
    margin-bottom: 1rem;
    width: 100%;
}

.cast-list td:nth-child(1) {
    width: 25%;
}

.cast-list td:nth-child(2) {
    width: 10%;
}

.cast-list td:nth-child(3) {
    width: 5%;
}

.song-name {
    text-align: left;
    font-weight: bold;
    font-size: 1.25rem;
    border-bottom: 1px solid darkgreen;
}

.song-name:not(:first-child) td {
    padding-top: 3rem;
}

/* endregion */

/* region Newsletter */
/* Headers on the news container should be closer to their content. */
.news-container h2 {
    padding-top: 1rem;
    margin-bottom: inherit;
    margin-top: inherit;
}

.news-container h4 {
    margin-bottom: inherit;
}

.news-container h5 {
    margin-bottom: inherit;
    font-weight: bold;
}

.news-container hr {
    border: none;
    border-bottom: 1px solid #0064001a;
    padding-top: 1.5rem;
}
.news-container blockquote {
    background-color: transparent;
    border-left: 1px solid darkgreen;
}
/* Add a news background to indicate each newsletter */
.news-entry {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.news-entry:not(:first-child) {
    margin-top: 1.5rem;
}

/* endregion */

/* region Table of practices in the newsletter */
.practice-times {
    margin-left: 2rem;
    width: 90%;
}

.practice-times tr:nth-child(2n) td {
    background: rgba(177, 255, 95, 0.15);
}

.practice-times tr {
    vertical-align: top;
}

.practice-times tr td {
    padding-bottom: 1rem;
}

/* Remove padding on iPad-sized displays & below */
@media (max-width: 768px) {
    .practice-times {
        margin-left: 0;
        width: 100%;
    }
}

/* Display times e.g. "6:00 for 6:30" etc. Usually a span or td */
.practice-times td:first-child {
    font-weight: bold;
    font-family: Courier, 'Courier New', monospace;
    font-size: 110%;
    /* monospace is just a little smaller than our default font */
    min-width: 135px;
}

/* Highlight this week's times. */
.this-week {
    background-color: white;
    border: 1px solid black;
}

/* endregion */

/* region Scripts */
/* The script table. 2 columns. By default rows have [speaker], [line] cells.
The 'stage-direction' rows span the whole table. (colspan=2) and are in caps italics. */
.script-table td:first-child {
    font-weight: bold;
    max-width: 10rem;
    vertical-align: text-top;
}

.script-table td:first-child.stage-directions {
    font-weight: inherit;
    max-width: inherit;
    vertical-align: inherit;
}

.script-table td {
    padding-bottom: .25rem;
    padding-top: .25rem;
}

.script-table .stage-directions,
.song-title {
    font-style: italic;
    font-variant: small-caps;
}

.song-title {
    font-weight: bold;
}

/* These are stage directions shown inside a line (e.g. as a span, not a div).
They should have some spacing on either side and be bracketed with [ and ] */
.inline-directions {
    font-style: italic;
    font-variant: small-caps;
    padding-left: 1rem;
    padding-right: 1rem;
}

.inline-directions::before {
    content: '[';
}

.inline-directions::after {
    content: ']';
}

/* endregion */

/* region Lyrics */
/* Similar to the script table. */
.lyric-table {
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.lyric-table thead th {
    padding-right: 1rem;
}

.lyric-table tbody tr:nth-child(2n) {
    background: #68ffa366;
}

.lyric-table tbody tr td {
    padding-bottom: .5rem;
    padding-top: .5rem;
    vertical-align: top;
}

.lyric-table tbody tr td:first-child {
    padding-right: 1rem;
    font-weight: bold;
}

/* Span in the lyric table when a second singer is singing counterpoint to the line. */
.second-singer {
    padding-left: 2rem;
    font-style: italic;
}

/* lyric-table-mic is an extension for lyric tables that have 3 columns,
the first one being the microphone to use, the second being the singer and the third being the lyrics.
use this as well as lyric-table.
 */
.lyric-table-mic tbody tr td:nth-child(2) {
    font-weight: bold;
    padding-right: 1rem;
}

/* endregion */

/* region Exception display */
/* I use pre blocks for exception info, which comes across as too large at the default 85% */
pre {
    font-size: 50%;
}

/* The default code styling shows it in pink?? Use the parent's text colour */
code {
    color: inherit;
}

/* The default margins look to big in an exception block */
.alert p {
    margin-bottom: 0;
}

/* endregion */

/* region History Page */
.history-table tr {
    border-bottom: 1px dotted #02750266;
}

.history-table td {
    padding-right: 2rem;
}

.history-table th {
    border-bottom: 1px solid darkgreen;
}

/* endregion */

/* region The Safeguarding page */
.safeguarding h2 {
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    border-bottom: 1px dotted darkgreen;
    border-left: 1px dotted darkgreen;
    border-radius: 6px;
}

.safeguarding ol {
    list-style-type: lower-roman;
}

.safeguarding li {
    padding-bottom: 0.5rem;
}

.safeguarding blockquote {
    margin: 0 3rem 1rem;
    font-style: italic;
    background-color: #98fb9880;
}

.appendix-a h3 {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: .25rem;
}

.appendix-b li {
    padding-bottom: .5rem;
}

/*
Default tables hold [name]: [phone no.] and should be small, with the number in bold.
The final table holds institution data and should be bigger than the others.
Also include faint underlines so users can see which number matches which organisation. */

.appendix-a table {
    width: 25rem;
}

.appendix-a table tr {
    border-bottom: 1px solid #0303;
}

.appendix-a table:last-child {
    width: auto;
}

/* Phone numbers */
.appendix-a table:last-child td:last-child {
    font-weight: bold;
    color: darkgreen;
    vertical-align: top;
    padding-left: 1rem;
}

/* Names */
.appendix-a table:not(:last-child) td:first-child {
    width: 50%;
}

/* Phone numbers */
.appendix-a table:not(:last-child) td:last-child {
    font-weight: bold;
    color: darkgreen;
    width: 50%;
}

.appendix-a ul {
    list-style-type: circle;
}

.appendix-b ul {
    list-style-type: disc;
    margin-bottom: 2rem;
    margin-top: .5rem;
}

.appendix-b ol {
    list-style-type: upper-latin;
}

/* endregion */

/* region Availability Form */
#availability-table {
    width: 100%;
    border-collapse: separate;
}

/* Push it down to match the baseline of the input next to it. */
#availability-form label {
    margin-top: 7px;
}

#availability-table td,
#availability-table th {
    text-align: center;
}

/* Height allows for extra padding due to small text under dates. */
#availability-table tr {
    height: 4rem;
}

#availability-table td:first-child {
    font-weight: bold;
    text-align: right;
}

.select-good {
    color: green;
    font-weight: bold;
}

.select-bad {
    color: red;
    font-weight: bold;
}

/* endregion */

/* region Costume lists */
.costume-list tr td:nth-child(1) {
    font-weight: bold;
    width: 30%;
}

.costume-list tr:nth-child(2n) {
    background: rgb(118, 248, 164);
}

.costume-list {
    font-size: 80%;
    width: 100%;
}

/* endregion */

/* region Booking Forms */
.booking-table td:nth-child(10),
.booking-table td:nth-child(7),
.th-border-left {
    border-left: 1px solid black;
}

.booking-table td:nth-child(12),
.booking-table td:nth-child(15),
.th-border-right {
    border-right: 1px solid black;
}

.booking-table th,
.booking-table td {
    text-align: center;
}

/* Booking form results. */
.booking-output .main {
    margin-left: 2rem;
}

.booking-output .main .vname:first-child {
    margin-left: -2rem;
    font-weight: normal;
    font-variant: small-caps;
}

.booking-output .vname {
    font-weight: bold;
    padding-right: .5rem;
}

.booking-output .value {
    font-style: italic;
}

.booking-output .opdate .dt-title {
    font-variant: small-caps;
    margin-left: -2rem;
}

.booking-output .opdate {
    margin-left: 2rem;
    margin-bottom: 2rem;
}

.booking-output {
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #ffffff4f;
    border-radius: 10px;
    box-shadow: 0 5px 5px #00000047;
}

/* endregion */
