*, *::before, *::after {
  box-sizing: border-box;
}

/*
  2. Remove default margin
*/
* {
  margin: 0;
  text-decoration: none;
  list-style-type: none;
}

u {
  text-decoration: underline;
}

body {
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
}

/*
  6. Improve media defaults
*/
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/*
  7. Remove built-in form typography styles
*/
input, button, textarea, select {
  font: inherit;
}

/*
  8. Avoid text overflows
*/
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/*
  9. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}

/* ----------- end of CSS reset code -------------*/
/* Colour scheme for entire website */
/* ********** blues ************/
/* ********** reds ************/
/* ********** greens ************/
/* ********** yellows ************/
/* ********** purples ************/
/* Text variables */
/*Text size */
/* button variables */
/* ---------------- END variables ------------------*/
/* topic colours - the final 'd' refers to the dark form of the colour */
/* *********** topic colours END ********* */
/* ------------------- mixins ------------------*/
/* top | right | bottom | left */
/* ----------- table mixins ----------------*/
/* ----------- repsonsive image mixin --------------*/
body {
  max-width: 100vw;
  background-color: #000030;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

footer {
  margin-top: auto;
}

p {
  font-family: Verdana, Helvetica, sans-serif;
  font-size: 0.9rem;
  color: #636363;
  line-height: 1.4rem;
}

/* -------- grid layout ------ */
.col2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.col3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.col4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.col5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.col6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

div {
  font-family: Verdana, Helvetica, sans-serif;
  font-size: 0.9rem;
  color: #636363;
  line-height: 1.4rem;
}
div ul {
  margin-bottom: 1rem;
}
div li {
  padding-left: 1rem;
  padding-top: 0.4rem;
}

.footdiv {
  width: 100%;
  margin: 0 auto 0 auto;
  background-color: #000030;
}
.footdiv p {
  color: #aaa;
  padding-bottom: 2rem;
  text-align: center;
  font-size: 0.6rem;
}
.footdiv ul {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  width: 80%;
  margin: 0 auto 0 auto;
}
.footdiv ul li {
  display: flex;
  color: #fff;
  height: 3rem;
  display: inline-block;
}
.footdiv ul li a {
  color: #fff;
}

button.front {
  font-family: Verdana, Helvetica, sans-serif;
  font-size: 0.9rem;
  color: #636363;
  line-height: 1.4rem;
  margin: 1rem auto 1rem 1.4rem;
  padding: 4px 6px 4px 6px;
  background-color: #b0c3f0;
  border-radius: 6px;
}
button.front a {
  color: #000030;
}

button.front:hover {
  background-color: #000030;
}
button.front:hover a {
  color: #fff;
}

/* ----------- header --------------*/
.nav-container {
  height: 120px;
  display: flex;
  justify-content: space-between;
  background-color: #003;
}
.nav-container .logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: space-between;
}
.nav-container .logo p {
  color: #fff;
  padding: 10px 0 10px 20px;
  font-size: 2rem;
}
.nav-container .nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  grid-gap: 20px;
  height: 120px;
  padding: 30px 30px;
}

.nav-item {
  display: flex;
  justify-content: center;
  background-color: #b0c3f0;
  border: 1px solid #000;
  height: 32px;
  min-width: 120px;
  padding: 4px 1px;
  font-size: 0.8rem;
  border-radius: 6px;
  font-family: Verdana, Helvetica, sans-serif;
  font-size: 0.9rem;
  color: #636363;
  line-height: 1.4rem;
}
.nav-item i {
  position: relative;
  top: 5px;
}

.nav-item:hover {
  background-color: #536c8f;
  color: #f4f4f4;
  border: 1px solid #f4f4f4;
}

/* ----------- header --------------*/
/* ********** js divs ***********/
.jsevent {
  width: 100%;
  max-width: 1200px;
  font-size: 1rem;
  padding: 0.4rem 0.4rem 0.4rem 0.6rem;
  margin: 0.6rem auto 0rem auto;
  background-color: #536c8f;
  color: #222;
  box-shadow: 3px 3px 6px #999;
}

.jscount {
  width: 100%;
  max-width: 1600px;
  margin: 0rem auto 0rem auto;
  background-color: #c5e0b3;
  box-shadow: 3px 3px 6px #999;
}

/* ******* END js divs ***********/
main {
  display: grid;
  grid-template-columns: 1fr;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto 0 auto;
  padding: 0 1rem 0 1rem;
}

/* front page */
/**********************************
Special for xmas
***********************************/
.xmas {
  background-image: url("../img/holly-r.gif");
  background-repeat: no-repeat;
  background-position: 100% 0%;
}

.front-info {
  min-height: 200px;
  background: #b0c3f0;
  border: 1px solid #aaa;
  border-bottom: 4px solid #666;
  border-right: 4px solid #666;
  box-shadow: 3px 3px 6px #999;
  border-radius: 6px;
  padding: 1rem;
}
.front-info p.lead {
  color: #f4f4f4;
  font-size: 1rem;
  padding: 1.2rem 0 0.8rem 1.6rem;
  background-color: #536c8f;
  border-bottom: 4px solid #000030;
  border-right: 4px solid #000030;
}
.front-info p {
  padding: 0.4rem 0 0.2rem 1.6rem;
  color: #000030;
}
.front-info ul.front-list {
  margin-left: 2rem;
}
.front-info ul.front-list li {
  color: #000030;
  list-style-type: disc;
}
.front-info ul.front-list .indent-list {
  margin-left: 1rem;
}

.clone {
  position: relative;
  left: 80%;
  top: -2rem;
  transition: transform 0.3s ease;
}
.clone:hover {
  transform: scale(1.1);
}

.front-info-shop {
  min-height: 200px;
  background: #003;
  border: 1px solid #aaa;
  border-bottom: 4px solid #666;
  border-right: 4px solid #666;
  box-shadow: 3px 3px 6px #999;
  border-radius: 6px;
  padding: 1rem;
  background-image: url("../img/shop.png");
  background-repeat: no-repeat;
  background-position: 90% 90%;
}
.front-info-shop p.lead {
  color: #f4f4f4;
  font-size: 1rem;
  padding: 0.8rem 0 0.6rem 1.6rem;
  background-color: #225;
  border-bottom: 2px solid #999;
  border-right: 2px solid #999;
}
.front-info-shop p {
  padding: 0.4rem 0 0.2rem 1.6rem;
  color: #f4f4f4;
}
.front-info-shop ul.front-list {
  margin-left: 2rem;
}
.front-info-shop ul.front-list li {
  color: #000030;
  list-style-type: disc;
}
.front-info-shop ul.front-list .indent-list {
  margin-left: 1rem;
}

.finner {
  padding: 0.4rem 1rem 0.2rem 1.6rem;
}

/* Container styling */
.shop {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 1200px;
  height: 120px;
  border: 1px #aac solid;
  border-radius: 0.4rem;
  box-shadow: 4px 4px 6px #669;
  margin-top: 0.6rem;
  margin-bottom: 0rem;
  position: relative; /* Ensure the video stays confined to this div */
  overflow: hidden; /* Prevent video overflow */
}

.shop:hover .video_content {
  color: #00C9FF;
  text-shadow: 0 0 10px #00C9FF;
}

/* Video styling */
.video_background {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: auto;
  min-height: 100%;
  min-width: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -1; /* Send behind content */
}

/* Content overlay styling */
.video_content {
  position: absolute; /* Overlay content on top of the video */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Arial, sans-serif;
  text-align: center;
  z-index: 1; /* Ensure content appears above the video */
  font-size: 4rem;
  color: #66f;
  transition: all 0.3s ease-in-out;
}

/* ------------ icons -------------*/
.fi {
  min-height: 120px;
  background: #b0c3f0;
  border: 1px solid #aaa;
  border-bottom: 4px solid #666;
  border-right: 4px solid #666;
  box-shadow: 3px 3px 6px #999;
  border-radius: 6px;
  padding: 1rem;
  padding: 0;
}
.fi p:first-child {
  color: #f4f4f4;
  font-size: 0.8rem;
  padding: 0.2rem 0 0.2rem 1.6rem;
  background-color: #536c8f;
  border-bottom: 4px solid #000030;
  border-right: 4px solid #000030;
}
.fi p {
  padding: 0.4rem 0 0.2rem 1.6rem;
  color: #000030;
}
.fi ul.front-list {
  margin-left: 2rem;
}
.fi ul.front-list li {
  color: #000030;
  list-style-type: disc;
}
.fi ul.front-list .indent-list {
  margin-left: 1rem;
}
.fi img {
  float: right;
  padding: 0.2rem;
}

.fi:hover {
  background-color: #536c8f;
}
.fi:hover p {
  color: #fff;
}

.fi-list {
  list-style-type: disc;
  padding: 0.4rem 0 0rem 3rem;
}

/* ------------ icons -------------*/
/* title, headings and sub-headings */
.sh1 {
  font-size: 0.9rem;
  padding-left: 30px;
  padding-top: 10px;
  padding-bottom: 4px;
  border-right-style: solid;
  border-right-width: 30px;
  border-bottom-width: 6px;
  border-bottom-style: solid;
  background-color: #b0c3f0;
  border-right-color: #536c8f;
  border-bottom-color: #536c8f;
}

.sh2 {
  font-size: 0.9rem;
  padding-left: 30px;
  padding-top: 6px;
  padding-bottom: 2px;
  border-right-style: solid;
  border-right-width: 30px;
  border-bottom-width: 6px;
  border-bottom-style: solid;
  background-color: #c5e0b3;
  border-right-color: #7d9f6c;
  border-bottom-color: #7d9f6c;
}

.sh3 {
  font-size: 0.8rem;
  padding-left: 20px;
  padding-top: 4px;
  padding-bottom: 2px;
  border-right-style: solid;
  border-right-width: 30px;
  border-bottom-width: 4px;
  border-bottom-style: solid;
  background-color: #ffe599;
  border-right-color: #c37923;
  border-bottom-color: #c37923;
  margin-bottom: 0.4rem;
}

.sh4 {
  font-size: 0.9rem;
  padding-left: 30px;
  padding-top: 6px;
  padding-bottom: 2px;
  border-right-style: solid;
  border-right-width: 30px;
  border-bottom-width: 6px;
  border-bottom-style: solid;
  background-color: #6f3F80;
  border-right-color: #401F2f;
  border-bottom-color: #401F2f;
  color: #fff;
}

/* -------------- end ------------------ */
.index-div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem auto;
}

/* -------------- summary notes pages ------------------ */
.outer_div {
  width: 100%;
  gap: 1rem;
  margin: 2rem auto 2rem auto;
}

.notes_div {
  font-family: Verdana, Helvetica, sans-serif;
  font-size: 0.9rem;
  color: #636363;
  line-height: 1.4rem;
  border: 1px solid #aaa;
  background: #fff;
  box-shadow: 3px 3px 6px #999;
  border-radius: 6px;
  padding: 1rem;
  border: 1px solid #400;
  padding: 10px;
}
.notes_div .sh3 {
  padding-top: 6px;
  padding-bottom: 4px;
  padding-left: 1rem;
}
.notes_div p {
  margin-bottom: 1.4rem;
  padding-left: 2rem;
}

ul.notes-list {
  margin-top: -1.2rem;
  margin-left: 3rem;
  list-style-image: url("../img/ico/bullet04.png");
}
ul.notes-list li {
  margin-left: 1rem;
}

/* ------------ summary notes pages END ---------------- */
.inner_div {
  font-family: Verdana, Helvetica, sans-serif;
  font-size: 0.9rem;
  color: #636363;
  line-height: 1.4rem;
  border: 1px solid #aaa;
  background: #fff;
  box-shadow: 3px 3px 6px #999;
  border-radius: 6px;
  padding: 1rem;
  border: 1px solid #400;
  padding: 10px;
}
.inner_div .sh3 {
  padding-top: 6px;
  padding-bottom: 4px;
  padding-left: 1rem;
}
.inner_div p {
  margin-bottom: 1.4rem;
  padding-left: 2rem;
}

/* ----------- these are the syllabus divs --------*/
.syllabus-grid {
  display: grid;
  grid-template-areas: "sub-unit sub-unit sub-unit" "content content nos" "content content nos";
  gap: 20px;
  padding: 20px;
  margin: 30px 20%;
  border: 1px solid #ccc;
  box-shadow: 3px 3px 6px #666;
  padding: 1rem;
  border-right: 1px solid #000030;
  border-bottom: 1px solid #000030;
  border-radius: 4px;
}

.sub-unit {
  border: 1px solid #ccc;
  box-shadow: 3px 3px 6px #666;
  padding: 1rem;
  border-right: 1px solid #000030;
  border-bottom: 1px solid #000030;
  border-radius: 4px;
  grid-area: sub-unit;
  background-color: #222;
  color: #fff;
}
.sub-unit p {
  padding: 0;
  margin-left: 1rem;
  color: #fff;
}

.content {
  display: grid;
  grid-template-columns: 1fr;
  grid-area: content;
  border: 1px solid #ccc;
  box-shadow: 3px 3px 6px #666;
  padding: 1rem;
  border-right: 1px solid #000030;
  border-bottom: 1px solid #000030;
  border-radius: 4px;
  background-color: #222;
}
.content li {
  color: #fff;
}

.understandings {
  font-family: Verdana, Helvetica, sans-serif;
  font-size: 0.8rem;
  color: #636363;
  line-height: 1.5rem;
  padding-bottom: 1rem;
}

.guidance {
  font-family: Verdana, Helvetica, sans-serif;
  font-size: 0.8rem;
  color: #636363;
  line-height: 1.5rem;
  padding-bottom: 1rem;
}

.nos {
  font-family: Verdana, Helvetica, sans-serif;
  font-size: 0.8rem;
  color: #636363;
  line-height: 1.5rem;
  border: 1px solid #ccc;
  box-shadow: 3px 3px 6px #666;
  padding: 1rem;
  border-right: 1px solid #000030;
  border-bottom: 1px solid #000030;
  border-radius: 4px;
  grid-area: nos;
  background-color: #222;
}
.nos li {
  color: #fff;
}

/* ----------- END syllabus divs --------*/
/* ---------------- images --------------*/
img.myimage {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  border: 1px solid #f4f4f4;
  box-shadow: 3px 3px 6px #999;
  padding: 20px;
  display: block;
  max-width: 100%;
  height: auto;
  margin-bottom: 2rem;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin: 20px 20%;
  border: 1px solid #ccc;
  box-shadow: 3px 3px 6px #666;
  padding: 1rem;
  border-right: 1px solid #000030;
  border-bottom: 1px solid #000030;
  border-radius: 4px;
}

.index-box {
  border: 1px solid #ccc;
  box-shadow: 3px 3px 6px #666;
  padding: 1rem;
  border-right: 1px solid #000030;
  border-bottom: 1px solid #000030;
  border-radius: 4px;
}
.index-box a:link {
  color: #636363;
}
.index-box a:visited {
  color: #636363;
}
.index-box a:hover {
  color: green;
}
.index-box p {
  background: #000030;
  padding-left: 0.4rem;
  color: #f4f4f4;
  margin-bottom: 0.6rem;
}
.index-box li {
  font-family: Verdana, Helvetica, sans-serif;
  font-size: 0.8rem;
  margin-bottom: 4px;
  padding-left: 0.6rem;
}

.divider {
  height: 4px;
  width: 100%;
  background-color: #000030;
}

/* --------------------- data tables -------------------*/
.table {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 2px solid #6666a3;
  background: #fff;
  box-shadow: 3px 3px 6px #999;
  border-radius: 6px;
  padding: 0.4rem;
  background: #b0c3f0;
  margin-bottom: 2rem;
}
.table .tcell {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Verdana, Helvetica, sans-serif;
  font-size: 0.8rem;
  color: #636363;
  line-height: 1.5rem;
  padding: 0.6rem;
  line-height: 1rem;
  height: auto;
  border: 1px solid #999;
}
.table .thead {
  font-family: Verdana, Helvetica, sans-serif;
  font-size: 0.8rem;
  color: #636363;
  line-height: 1.5rem;
  border: 1px solid #999;
  background: #000030;
  color: #fff;
}

/* **************** floating menu bar *********************/
div#fmenu {
  position: absolute;
  top: 122px;
  right: 60px;
  margin-bottom: 10px;
}

#fmenu ul {
  float: left;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style-type: none;
}

#fmenu a:link, #fmenu a:active, #fmenu a:visited {
  background-color: #536c8f;
  color: #fff;
  float: left;
  width: 120px;
  text-decoration: none;
  text-align: center;
  padding: 0.4em 2px;
  border-right: 1px solid white;
}

#fmenu a:hover {
  background-color: #000;
  color: #ffffdd;
}

#fmenu li {
  display: inline;
}

/* ***************************** end menu bar **********************/
.grecaptcha-badge {
  visibility: hidden;
}

/* ****************** responsive below ************************/
/* ------------ Media queries --------*/
@media only screen and (max-width: 600px) {
  main {
    width: 100%;
    overflow: visible;
  }
  .index-div {
    display: block; /* Ensure this is applied */
    margin: 1rem 0.4rem 1rem 0.4rem;
  }
  .index-div > * {
    width: 100%;
    max-width: 100%;
  }
  .fi {
    margin: 0rem 0.4rem 0rem 0.4rem;
  }
  .fi-list {
    list-style-type: none;
    padding: 0.4rem 0 0rem 0.2rem;
  }
  .front-info {
    margin: 1rem 0.4rem 1rem 0.4rem;
  }
  .front-info p {
    padding: 0.4rem;
  }
  .front-info .finner {
    padding: 0.4rem;
  }
  .outer_div {
    margin: 0;
  }
  .col4 {
    grid-template-columns: 1fr;
  }
  footer, .jsevent, .jscount {
    display: none;
  }
  #fmenu {
    display: none;
  }
  main {
    width: 99%;
  }
  .sh1 {
    font-size: 0.8rem;
  }
  .front-info {
    padding: 0.2rem;
  }
  .nav-container {
    height: 5rem;
  }
  .nav-container .logo p {
    font-size: 1rem;
  }
}
