/* START SITE WIDE SETTINGS */
* {
	vertical-align: baseline;
	font-weight: inherit;
	font-family: inherit;
	font-style: inherit;
	font-size: 100%;
	border: 0 none;
	outline: 0;
	padding: 0;
	margin: 0;
  list-style: none;
	}


/* START IMPORT PREFERRED FONT */
@import url("https://fonts.googleapis.com/css2?family=Inter&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap");
/* END IMPORT PREFERRED FONT */

/* START COLOURS */
:root {
  --CLR-grey: hsl(219, 35%, 84%);
  --CLR-lightgrey: hsl(0, 0%, 84%);
  --CLR-midgrey: hsl(332, 7%, 55%);
  --CLR-dkgrey: hsl(221, 15%, 50%);
  --CLR-grey1: hsl(210, 9%, 60%);
  --CLR-white: hsl(0, 0%, 100%);
  --CLR-bdr-btm: hsl(0, 0%, 75%);
  --CLR-lightblue: hsl(197, 56%, 59%);
  --CLR-midblue: hsl(204, 100%, 50%);
  --CLR-blue: hsl(240, 100%, 30%);
  --CLR-turquoise: hsl(196, 96%, 21%);
  --CLR-purple: hsl(300, 33%, 30%);
  --CLR-red: hsl(0, 100%, 50%);
  --CLR-black: hsl(0, 0%, 0%);
  --CLR-brown: hsl(17, 64%, 26%);
  --CLR-boxshadow: hsla(0, 0%, 0%, 0.24);
}
/* END COLOURS */

body {
  font-size: 1em;
  line-height: 1.75em;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 400;
  font-style: normal;
  background: var(--CLR-dkgrey);
  box-sizing: border-box;
}

a {
  text-decoration: none;
}
.phead {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

hr {
  height:2px;
  width: 90%;
  border-width: 0;
  color: var(--CLR-grey1);
  background-color: var(--CLR-grey1);
  margin: 0.5rem auto;
}
/* END SITE WIDE SETTINGS */

/* START PAGE STRUCTURE */
.sidebar {
  grid-area: sidebar;
}

.navigation {
  grid-area: navigation;
}

.content {
  grid-area: content;
}

.header {
  grid-area: header;
}

.schoolinfo {
  grid-area: schoolinfo;
}

.footer {
  grid-area: footer;
}

.copyright {
  grid-area: copyright;
}

.wrapper {
  display: grid;
  grid-template-areas:
    "header"
    "navigation"
    "sidebar"
    "schoolinfo"
    "content"
    "footer"
    "copyright";
}
/* END PAGE STRUCTURE */

.header {
  position: relative;
  height: 100px;
  width: 100%;
  padding: 3px 0 3px 0;
  background: url(../images/fe-banner.png) no-repeat;
  background-position-x: 20%;
  background-color: var(--CLR-white);
  margin-top: 2rem;border-radius: 1 rem;
}

.header image {
  position: absolute;
  left: 20%;
}

.sidebar {
  padding: 18px;
  background-color: var(--CLR-white);
  border-bottom: solid 1px var(--CLR-midgrey);
  border-radius: 0.5rem;
}

/* *********************** */
/* NAVIGATION BAR */
.navigation {
  background-color: var(--CLR-midgrey);
  color: var(--CLR-white);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  border-top: 2px solid var(--CLR-white);
  border-bottom: 2px solid var(--CLR-white);
  text-shadow: 0 1px 0px var(--CLR-brown);
  text-transform: lowercase;
  margin: 1rem 0 1rem 0;
  font-size: 1.2rem;
  font-family: "Roboto Condensed", sans-serif;
}

.nav-link {
  padding: 1rem 3rem 1rem 3rem;
}

.nav-link a:link {
  color: var(--CLR-white);
  padding: 0.25rem;
  border-radius: 6px;
}

.nav-link a:visited,
.nav-link a:hover,
.nav-link a:focus {
  color: var(--clr-text-white);
  transform: scale(0.95);
  box-shadow: 3px 2px 22px 1px var(--CLR-boxshadow);
  background-color: var(--CLR-dkgrey);
}
/* END NAVIGATION BAR */
/* *********************** */

/* *********************** */
/* START SCHOOL INFO BAR */
.schoolinfo {
  background-color: var(--CLR-white);
  padding: 1rem ;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.schoolinfo-header {
  display: flex;
  flex-direction: row;
  padding: 0.5rem 0 0.5rem 0;
  background-color: var(--CLR-grey1);
  border-left: 1px solid var(--CLR-black);
  border-top: 1px solid var(--CLR-black);
  border-right: 1px solid var(--CLR-black);
}

.schoolinfo-row {
  display: flex;
  flex-direction: row;
  border-left: 1px solid var(--CLR-black);
  border-bottom: 1px solid var(--CLR-black);
  border-right: 1px solid var(--CLR-black);
}

.schoolinfo-header > div {
  flex: 1;
  text-align: center;
  color: var(--CLR-white);
}
.schoolinfo-row > div {
  flex: 1;
  text-align: center;
  background-color: var(--CLR-lightgrey);
}
/* END SCHOOL INFO BAR */
/* *********************** */

/* *********************** */
/* START CONTENT BAR */
.content {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  grid-column-gap: 0px;
  grid-row-gap: 1rem;
  background: var(--CLR-white);
  border-bottom: solid 1px var(--CLR-bdr-btm);
  padding: 1rem;
  border-radius: 0.5rem;
}
/* END CONTENT BAR */
/* *********************** */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 2px solid var(--CLR-white);
  border-bottom: 2px solid var(--CLR-white);
  padding: 1rem 1rem 1rem 1rem;
  color: var(--CLR-lightgrey);
}

.copyright {
  margin-left: auto;
  margin-right: auto;
  color: var(--CLR-white);
}

.footer a {
  color: var(--CLR-blue);
}

.wrapper {
  margin-left: auto;
  margin-right: auto;
  color: #444;
}

@media (100px <= width <= 480px) {
  .wrapper {
    grid-template-columns: 100%;
    grid-template-areas:
      "header"
      "navigation"
      "sidebar"
      "schoolinfo"
      "content"
      "footer"
      "copyright";
  }

  .sidebar {
    min-height: 40px;
    border-radius: 0.5rem;
  }
}
/*  */
/* 320px — 480px: Mobile devices
481px — 768px: iPads, Tablets
769px — 1024px: Small screens, laptops
1025px — 1200px: Desktops, large screens
1201px and more —  Extra large screens, TV */
@media (769px <= width) {
  .wrapper {
    grid-template-columns: 20% auto;
    grid-template-areas:
      "header   header"
      "navigation  navigation"
      "sidebar schoolinfo"
      "sidebar content"
      "footer   footer"
      "copyright copyright";
    max-width: 1200px;
  }
  .sidebar {
    margin-right: 1rem;
  }
  .footer {
    margin: 2rem 0 2rem 0;
  }
}

/* @media (min-width: 769px)   {
      .wrapper {
        grid-gap: 20px;
        grid-template-columns: 20% auto 33%;
        grid-template-areas:
        "header  header  header"
        "navigation navigation navigation"
        "sidebar content content"
        "footer  footer  footer";
        max-width: 1200px;
      }
    } */

.footer {
  background-color: var(--CLR-midgrey);
}

/* *********************** */
/* START BUTTONS */
.button,
.button2,
.button_confirm,
.button_sml,
.button_sml_wide {
  text-decoration: none;
  border: none;
  padding: 6px;
  margin: 1px;
  background-color: var(--CLR-midgrey);
  color: var(--CLR-white);
  border-radius: 6px;
  box-shadow: 7px 6px 28px 1px var(--CLR-boxshadow);
  cursor: pointer;
  outline: none;
  transition: 0.2s all;
}

.button:hover,
.button2:hover,
.button_confirm:hover,
.button_sml:hover,
.button_sml_wide:hover {
  background-color: var(--CLR-dkgrey);
}

.button:active,
.button2:active,
.button_confirm:active,
.button_sml:active,
.button_sml_wide:active {
  transform: scale(0.95);
  box-shadow: 3px 2px 22px 1px var(--CLR-boxshadow);
}

.button:disabled,
.button2:disabled,
.button_confirm:disabled,
.button_sml:disabled,
.button_sml_wide:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.button {
  width: 160px;
}
.button2 {
  width: 120px;
  font-size: 0.8em;
}
.button_confirm {
  width: 120px;
}
.button_sml {
  width: 4rem;
  font-size: 0.8em;
}
.button_sml_wide {
  width: 6rem;
  font-size: 0.8em;
}
.flex-eq {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

/* END BUTTONS */
/* *********************** */

/* *********************** */
/* START TABLES */
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 1rem;
  vertical-align: middle;
  background: transparent;
  border-collapse: collapse;
  border-spacing: 0;
}

table {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--CLR-black);
}

/* Sets min height for tbl headers (including empty) */
th:first-child::after {
  content: "";
  display: inline-block;
  vertical-align: top;
  min-height: 2rem;
}

th,
td {
  font-weight: 400;
  text-align: center;
  padding: 2px;
}
th {
  background-color: var(--CLR-grey1);
  color: var(--CLR-white);
}
.theader {
  background-color: var(--CLR-turquoise);
  color: var(--CLR-white);
  text-transform: lowercase;
}
.tr-colour {
  background-color: var(--CLR-grey1);
  color: var(--CLR-white);
}
.trow {
  background-color: var(--CLR-lightblue);
  color: var(--CLR-white);
  padding: 10px;
  text-transform: lowercase;
}

.tbl_altcolors tr:nth-child(even) {
  background-color: var(--CLR-white);
}

.tbl_altcolors tr:nth-child(odd) {
  background-color: var(--CLR-lightgrey);
}

.th-centre tr:nth-child(1) {
  text-align: center;
}

.th-centre tr:nth-child(2) th {
  padding-left: 2rem;
  text-align: left;
}
.stacksels  {
  display: flex;
  flex-direction: column;
}

.noshade-95-1 {
  width: 95%;
  align-items: center;
  border: 1px solid var(--CLR-midgrey);
}

th.txt-centre {
  text-align: center;
}

.txt-align-lt {
  text-align: left;
  align-content: left;
}
.txt-align-rt {
  text-align: right;
  align-content: right;
}
.txt-align-centre {
  text-align: center;
  align-content: center;
}

.td-content-centre {
  margin: 0;
  justify-content: center;
  padding: 0;
}

td.cell-color1 {
  background-color: var(--CLR-white);
}

.color-bg-1 {
  background-color: var(--CLR-midgrey);
}

.smltxt {
  font-size: 0.95em;
  margin: 5px;
}

.vsmltxt {
  font-size: 0.6rem;
}

.bg-white {
  background-color: var(--CLR-white);
}

.bg-lightgrey {
  background-color: var(--CLR-lightgrey);
}

/* END TABLES */
/* *********************** */



/* *********************** */
/* START INPUTS */
select,
input,
textarea {
  outline: none;
  margin: 0.25rem 0 0.25rem 1rem; 
  padding: 0.5rem 0.5rem;
  background-color: var(--CLR-white); 
  border: solid 2px var(--CLR-black); 
  border-radius: 0.5rem; 
  box-sizing: border-box;
  box-shadow: 0px 2px 5px rgba(128, 127, 127, 0.2);
  width: 20rem; 
  
  font-size: 1rem; 
  color: #353538; 
  font-weight: 500;
  
  transition: box-shadow .2s linear;
}

select,
input {
  height: 2rem;
}

textarea {
  height: 5rem;
  resize: none;
}


input:focus {
  box-shadow: 0px 2px 5px rgba(0,0,0,.2);
  border: solid 2px var(--CLR-blue);
}

input[type=checkbox] {
  zoom: 1.25;
  vertical-align: middle; 
  accent-color: var(--CLR-dkgrey);
  width: 3rem;
}

.select_optwrap {
  max-width: 15rem;
  overflow: hidden;
  word-wrap: normal !important;
  white-space: normal;
}
/* END INPUTS */
/* *********************** */

/* *********************** */
/* START TABLE/CELL WIDTHS */
.w05 {
  width: 5%;
}
.w10 {
  width: 10%;
}
.w15 {
  width: 15%;
}
.w20 {
  width: 20%;
}
.w25 {
  width: 25%;
}
.w30 {
  width: 30%;
}
.w35 {
  width: 30%;
}
.w40 {
  width: 40%;
}
.w45 {
  width: 45%;
}
.w50 {
  width: 50%;
}
.w55 {
  width: 55%;
}
.w60 {
  width: 60%;
}
.w65 {
  width: 65%;
}
.w70 {
  width: 70%;
}
.w75 {
  width: 75%;
}
.w80 {
  width: 80%;
}
.w85 {
  width: 85%;
}
.w90 {
  width: 90%;
}
.w95 {
  width: 95%;
}
.w98 {
  width: 98%;
}
.w99 {
  width: 99%;
}
.w100 {
  width: 100%;
}
.t98 {
  margin-left: auto;
  margin-right: auto;
  width: 98%;
}

/* END TABLE/CELL WIDTHS */
/* *********************** */

/* *********************** */
/* START PADDING */
.pl05 {
  padding-left: 0.5rem;
}
.pl1 {
  padding-left: 1rem;
}
.pl2 {
  padding-left: 2rem;
}

.pr5 {
  padding-right: 5rem;
}

/* END PADDING */
/* *********************** */

.txt-bld {
  font-weight: bold;
}
.txt-bld-blue {
   font-weight: 700;
   color: hsl(240, 100%, 50%);
}
.txt-bld-red {
  font-weight: bold;
  color: hsl(0, 100%, 50%);
}

.terms {
  counter-reset: maincounter;
  text-align: justify;
}

.terms .main {
  counter-increment: maincounter;
  counter-reset: subcounter;
  font-size: x-large;
  color: var(--CLR-midgrey);
  font-weight: bold;
  margin: 2rem 0 1rem 0;
}

.terms .main::before {
  content: counter(maincounter) ". ";
}

.terms .sub {
  counter-reset: sub2counter;
  margin:  0.5rem 0 1rem 3rem; 
}

.terms .sub::before {
  counter-increment: subcounter;
  content: counter(maincounter) "." counter(subcounter) " ";
}

.terms .sub2 {
  margin-left: 6rem;
}

.terms .sub2::before {
  counter-increment: sub2counter;
  content: counter(maincounter) "." counter(subcounter) "." counter(sub2counter) " ";
}
