/*
This stylesheet is for views to be printed, so it hides the background colour and width limitations.
 */

html
{
    font-size: 14pt;
    font-family: 'Fauna One', serif;
}
/* 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-top: 2rem;
}

h3 {
    font-size: 1.5rem;
}

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

/* Shrink the header sizes on tablets or smaller */
@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem;  }
    h3 { font-size: 1.2rem;  }
}

/* Force script containers to fill the width of the page. */
.container {
    max-width: initial !important;
}

.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;
    }
}

/* Prevent links from being coloured in printable mode */
a, a:visited, a:hover {
    color: inherit;
}

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

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

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

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

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

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

/* Styles for sections of the cast timetables */

.which-practice {
    font-weight: bold;
}

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

/* 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;
}

/*
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 images of photos */
.thumbnail {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 15px;
}

/* Decorative images in the text */
.decoration {
    margin: 1rem;
    border-radius: 15px;
}

/* 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%; }
}

/****************************************
* The big welcome banner across the top 
*/

.welcome {
    display: none;
}


/* The black menu bar across the top */
.menu {
    display: none;
}

/************************
* Script and news pages
*/

.smaller {
    font-size: 75%;
}

.script-container {
    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 black;
    margin: 0 0 1rem;
    text-align: center;
}

/* 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) {
    .script-container {
        background-color: inherit;
        border-radius: inherit;
        padding: 0;
    }
}


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

.script-container blockquote {
    font-style: italic;
    margin-left: 10%;
    padding: 15px;
    border-radius: 10px;
}
.script-container blockquote p:last-child {
    margin-bottom: 0;
}

.cast-list {
    margin-top: 1rem;
    margin-bottom: 1rem;
    width: 100%;
}
.cast-list td:nth-child(1) {
    width: 25%;
}
.cast-list td:nth-child(2),
.cast-list td:nth-child(3) {
    width: 5%;
}

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

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

/* 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 black;
    padding-top: 1.5rem;
}

/* Add a news background to indicate each newsletter */
.news-entry {
    padding:1rem;
    margin-bottom: 1.5rem;
}

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

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

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

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

/* 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;
}

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

/* 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;
}

/* 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 italic.
*/

.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: ']';
}

/* Similar for lyric tables. */
.lyric-table {
    margin-bottom: 2rem;
    margin-top: 2rem;
}
.lyric-table thead th {
    padding-right: 1rem;
}

.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;
}

/*************
* 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;
}




/***************
* History Page
*/



.history-table tr {
    border-bottom: 1px dotted black;
}
.history-table td {
    padding-right: 2rem;
}
.history-table th {
    border-bottom: 1px solid black;
}



/************************
* The Safeguarding page
*/


.safeguarding h2 {
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    border-bottom: 1px dotted black;
    border-left: 1px dotted black;
    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;
}

.appendix-a h3 {
    font-weight: bold;
    font-size: 1rem;
    /*text-decoration: underline;*/
    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 black;
}

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

/* Phone numbers */
.appendix-a table:last-child td:last-child {
    font-weight: bold;
    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;
    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;
}


#availability-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 20px;
}


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

#availability-table td, #availability-table th {
    text-align: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}




/* The costume list tables */
.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%;
}

.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;
}

#printable-version-link {
    display: none;
}
/* 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;
}
