div.title {
    background: inherit;
    color: RoyalBlue;
    font-family: "Permanent Marker", cursive; 
    font-style: normal;
    font-size: 3em;
    border-bottom: 2px solid RoyalBlue;
    padding: 0em 0.5em 0em 0.5em;
    margin-bottom: 0.5em;
    -webkit-text-stroke-width: 2px;
    -webkit-text-stroke-color: white;
}

div.debug {
    font-family: "Courier Prime", monospace; 
    font-style: normal; 
    background: yellow;
    padding: 0.5em;
    margin-top: 1em;
}

div.mainbody {
    margin: 0em 1em 0em 1em;
    background: inherit;
    
}

div.maint {
    margin-top: 3em;
    margin-bottom: 3em;
    text-align: center;
}

div.footer {
   border-top: 2px solid RoyalBlue;
   margin-top: 1em;
   padding: 0.5em 1em 0em 1em;
}

div.footerflex {
    display: flex;
    flex-direction: column;
    justify-content: start;
}

div.footergrid {
    display: grid;
    grid-template-columns: 33% 33% 33%;
}

div.footgridleft {
    text-align: left;
    background: inherit;
}

div.footgridcenter {
    text-align: center;
    background: inherit;
}

div.footgridright {
    text-align: right;
    background: inherit;
}

div.heading {
    text-align: center;
    margin-bottom: 1em;
}

div.verticallayout {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: inherit;
    align-items: center;
}

div.horizontallayout {
    display: grid;
    grid-template-columns: 40% 40%;
    margin: auto;
    column-gap: 1em;
    row-gap: 1em;
    justify-content: center;
}

div.horizontalpicture {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    background: inherit;
}

div.horizontalitem {
    margin-left: 1em;
    margin-right: 1em;
    padding: 1em;
    background: inherit;
}

div.horizclassright {
    text-align: right;
}

div.horizclassleft {
    text-align: left;
}

div.horizclasscenter {
    text-align: center;
    grid-column: 1 / span 2;
}

div.horizclassonecolleft {
    text-align: left;
    grid-column: 1 / span 2;
}

div.horizclassonecolright {
    text-align: left;
    grid-column: 1 / span 2;
}

div.vertclass {
    margin-bottom: 0.5em;
}

div.vertclassleft {
    margin-bottom: 0.5em;
    text-align: left;
    align-self: left;
}

/* Inputs */

input[type=text], input[type=email], select, input[type=tel] {
    border: 2px solid RoyalBlue;
    border-radius: 5px;
    background: lightblue;
    padding: 0.25em 0.5em 0.25em 0.5em;
}

/* Links */

a.textlink, a.textlink:visited, a.textlink:active, a.download  {
    color: RoyalBlue;
}

a.textlink:hover {
    color: DodgerBlue;
}

div.butout {
    display: inline-block;
    background: RoyalBlue;
    padding: 2px;
    border-radius: 8px;
}

div.butout:hover {
    background: DodgerBlue;
}

div.butin {
    background: inherit;
    border: 2px solid white;
    padding: 0.25em 1em 0.25em 1em;
    border-radius: 6px;
    color: white;
}

div.butin:hover {
    background: DodgerBlue;
}

div.download1 {
    display: inline-block;
    border: 2px solid royalblue;
    padding: 2px;
    border-radius: 10px;
    margin: 1em 1em 1em 1em;
}
div.download2 {
    display: inline-block;
    background: royalblue;
    text-align: center;
    color: white;
    border: 2px solid royalblue;
    padding: 0.5em;
    border-radius: 8px;
}

div.download2:visited, div.download2:active {
    color: RoyalBlue;
}

div.download2:hover {
    color: white;
    background: dodgerblue;
    border: 2px solid dodgerblue;
}

div.download1:hover {
    border: 2px solid dodgerblue;
}

/* Coloured Spans */

span.signinname {
    color: RoyalBlue;
}

span.signinerror {
    color: red;
}

/* Images */

img.memimg, img.memimgcent {
    border: 2px solid black;
    border-radius: 8px;
    display: block;
    width: 150px;
}

img.memimgcent {
    margin-left: auto;
    margin-right: auto;
}

/* Iframe Style */

iframe.fees {
    border: none;
    width: 100%;
    height: 350px;
    margin-top: 1em;
}

/* Table Style */

td.feetype, td.feevalue, td.feetotalt, td.feetotalv {
    padding: 0.25em 1em 0.25em 1em;
}

td.feetype, td.feetotalt {
    text-align: left;
}

td.feevalue, td.feetotalv {
    text-align: right;
}

td.feetotalt, td.feetotalv {
    border-top: 2px solid grey;
    border-bottom: 2px solid grey;
}

table.feesdue {
    border-collapse: collapse;
}

div.menuflex {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}

@media (max-width: 500px) {
  div.menuflex {
    flex-direction: column;
  }
}

div.menubut, div.menubutdisable {
    background: RoyalBlue;
    border: 2px solid white;
    border-radius: 10px;
    margin: 1em;
    padding: 0.25em 1em 0.25em 1em;
    font-size: 2em;
    color: white;
    text-align: center;
}

div.menubutdisable {
    background: grey;
    color: lightgrey;
}

a.menuanchor:link, a.menuanchor:visited, a.menuanchor:active {
    text-decoration: none;
}

div.about {
    color: white;
    margin: 1em 3em 1em 3em;
    font-size: 1.25em;
}

a.aboutemail:link, a.aboutemail:visited, a.aboutemail:active {
    color: white;
}

a.aboutemail:hover {
    color: RoyalBlue;
}