/* set defaults */
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
img,
ul,
li {
  margin: 0;
  padding: 0;
  border: 0;
  /* for mobiles */
  -webkit-text-size-adjust: none;
}

body {
  width: 100%;
  min-width: 100%;
  color: #000;
  background-color: #fff;
  font-family: "Playfair Display", "Poppins", "Arial", Serif;
  font-size: 100%;
}

a:link {
  text-decoration: none;
  outline: 0;
  color: #34475c;
}

a:visited {
  color: #34475c;
}

a:hover {
  color: #0000ff;
}

a:active {
  color: #34475c;
}

img {
  max-width: 100%;
  height: auto;
}

a[href^="tel"] {
  /* remove ipad/iphone default phone no styling */
  color: inherit; /* inherit text color of parent element */
  text-decoration: none;
}

/* set variables */
:root {
  --navy: #003366;
  --lightbl: #add8e6;
  --yellow: #f8e143;
}

.line {
  margin: 10px auto;
  width: 95%;
  border-bottom: solid 1px #c0c0c0;
}

#sticky #top {
  position: -webkit-sticky; /* safari */
  position: sticky;
  z-index: 1;
  top: 0;
}

#top {
  background-color: var(--navy);
  height: 50px;
}

#top-wrap,
#header-wrap,
.main,
#sub-footer-wrap,
#footer-wrap {
  max-width: 1920px;
  margin: 0 auto;
}

#top-wrap {
  display: flex;
  justify-content: space-between;
  width: 100%;
  color: #fff;
}

#top-wrap #tel-details,
#top-wrap p,
#top-wrap #translate {
  width: 33.3%;
}

#top-wrap #tel-details {
  font-size: 115%;
  margin: 10px 0 0 15px;
  font-weight: 600;
  letter-spacing: 2px;
}

#top-wrap #tel-details img {
  vertical-align: middle;
  width: 22px;
  height: auto;
  margin-right: 5px;
}

#top-wrap p {
  /* date */
  font-size: 125%;
  margin-top: 10px;
  text-align: center;
}

#top-wrap #translate {
  margin: 5px 15px 0 0;
}

/*
https://www.3schools.in/2021/02/how-to-customize-google-translate.html

list of languages
https://cloud.google.com/translate/docs/languages
*/

#top #google_translate_element {
  background-color: transparent;
  margin-top: 2.5px;
}

#google_translate_element select {
  /* drop down menu */
  color: var(--navy);
  background-color: #fff;
  font-size: 125%;
  font-weight: bold;
  border-radius: 3px;
  border: none;
  outline: 0;
  width: 170px;
  display: block;
  margin: 0 0 0 auto;
  padding: 7.5px 0;
}

.goog-logo-link,
.goog-te-gadget span {
  /* logo */
  display: none !important;
}

.goog-te-gadget {
  /* logo */
  color: transparent !important;
  font-size: 0;
}

.goog-te-banner-frame {
  /* logo */
  display: none !important;
}

body {
  /* banner at top when lanague selected */
  top: 0 !important;
  position: static !important;
}

body > .skiptranslate {
  /* banner at top when lanague selected */
  display: none;
  margin: -40px;
}

header {
  width: 100%;
  height: auto;
  background-image: url(../graphics/background.png);
  background-repeat: repeat-x;
  background-position: left -300px bottom -100px; /* image repeats */
  background-color: #bcefff; /* sky from background image */
}

#header-wrap {
  /* max width see top-wrap */
  color: var(--navy);
  padding: 10px 15px 20px 15px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  position: relative; /* for quote, button */
}

header .logo,
header .quote {
  width: 25%;
}

header .contact {
  width: 50%;
}

header .logo img {
  width: 65%;
  height: auto;
  margin-top: 17.5px;
}

header .contact {
  text-align: center;
}

header .contact h1 {
  font-size: 350%;
}

header address {
  font-size: 150%;
  line-height: 45px;
  font-weight: bold;
}

header address img {
  vertical-align: middle;
  width: 22px;
  height: auto;
  margin-right: 5px;
}

header address span:nth-of-type(2) img {
  margin-left: 10px;
}

header .quote {
  position: relative;
}

header .quote img {
  width: 55%;
  height: auto;
  position: absolute;
  top: 20px;
  right: 0;
}

header .quote p {
  color: var(--navy);
  text-align: center;
  font-size: 125%;
  font-weight: 600;
  position: absolute;
  top: 80px;
  right: 40px;
  width: 175px;
}

header .quote p label {
  cursor: pointer;
}

#main {
  /* max width see top-wrap */
  width: 98%;
  margin: 0 auto;
}

#main #ad {
  padding: 5px;
  font-size: 400%;
  text-align: center;
  font-family: "Dancing Script";
  color: var(--navy);
  animation: span-ani 1s ease forwards;
}

@keyframes span-ani {
  0% {
    transform: translateY(-50px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 0.7;
  }
}

.dot {
  /* headers */
  height: 10px;
  width: 10px;
  background-color: var(--navy);
  border-radius: 50%;
  display: inline-block;
  margin: 2.5px 15px;
}

#main h4:first-child {
  /* headers */
  color: var(--navy);
  background-color: #e0e1e3;
  font-size: 125%;
  font-weight: bold;
  letter-spacing: 1px;
  width: 100%;
  padding: 15px 0;
  border-radius: 0 0 20px;
  -webkit-border-radius: 0 0 20px;
  -moz-border-radius: 0 0 20px;
  box-sizing: border-box;
}

#main h3 {
  /* sub headers */
  color: var(--navy);
  font-size: 125%;
  padding-bottom: 2.5px;
  margin: 10px 0;
  border-bottom: solid 1px #808080;
  max-width: 95%; /* width of border line */
}

#welcome {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

section {
  width: 65%;
}

aside {
  width: 30%;
}

section a,
aside a {
  color: #fc6f22;
}

section a:hover,
aside a:hover {
  color: #800000;
}

/* leave as direct child otherwise affects other pages */
section > img {
  /* photo of headteacher */
  width: 40%;
  height: auto;
  float: left;
  margin-right: 15px;
}

section p,
aside p {
  font-size: 135%;
  line-height: 30px;
}

aside > img:first-of-type {
  margin-top:27.5px;
}

aside > p:first-of-type label {
  /* latest news */
  font-weight: bold;
  font-size:115%;
  cursor: pointer;
  display:block;
  margin:50px 0;
}

aside p:not(:nth-of-type(2)) {
  margin: 0 0 35px 0;
}

aside > img {
  /* latest news icon */
  vertical-align: middle;
  width: 50px;
  height: 50px;
  float: left;
  margin: 2.5px 10px 0 0;
}

aside h3 img {
  width: 38px;
  height: 38px;
  vertical-align: middle;
  margin-right: 5px;
}

/* compile diary */
aside table {
  border: 0;
  width: 100%;
  border-spacing: 0 10px;
  border-bottom: solid 1px #808080;
}

aside table tr td span {
  display: block;
}

aside table tr td img {
  width: 16px;
  height: 17px;
  vertical-align: middle;
  padding: 0 5px 5px 0;
}

aside table tr td:nth-child(1) {
  /* date */
  color: #404040;
  background-color: #bebdb8;
  text-align: center;
  padding: 15px 0;
  font-weight: bold;
  width: 10%;
}

aside table tr td:nth-child(2) {
  /* title and details */
  background-color: #e0e1e3;
  padding-left: 10px;
  width: 75%;
  position: relative; /* for tooltip */
}

aside table tr td:nth-child(1) span:nth-child(1) {
  /* month name */
  text-transform: uppercase;
  font-size: 125%;
}

aside table tr td:nth-child(1) span:nth-child(2) {
  /* month number */
  font-size: 125%;
}

aside table tr td:nth-child(2) span:nth-child(1) {
  /* week name */
  color: var(--navy);
  font-weight: bold;
  margin-top: 2.5px;
  font-size: 125%;
}

aside table tr td:nth-child(2) span:nth-child(2) {
  /* title */
  color: #404040;
  font-size: 125%;
  margin-top: 2.5px;
}

aside table tr td:nth-child(2) span:nth-child(3) {
  /* time period */
  color: #6d706d;
  margin-top: 3px;
}

/* more info */
aside table tr td:nth-child(2) span:nth-child(4) {
  color: #fc6f22;
  font-size: 80%;
  font-weight: bold;
  position: absolute;
  right: 10px;
  bottom: 5px;
  transition: all linear 0.5s;
}

aside table tr td:nth-child(2) span:nth-child(4):hover {
  color: #800000;
}

/* tooltip */
.tooltip:hover {
  cursor: pointer;
}

.tooltip .tooltiptext {
  width: 150px;
  color: #fff !important; /* override inheritance */
  background-color: #404040 !important; /* override inheritance */
  font-size: 125%;
  text-align: center;
  border-radius: 5px;
  padding: 10px;
  position: absolute;
  z-index: 2;
  top: -5px;
  right: 75px;
}

#sub-footer-wrap {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.sub-footer-ele {
  background-color: var(--lightbl);
  width: 24.5%;
  padding: 5px 15px 75px;
  box-sizing: border-box;
  position: relative; /* for button */
}

.sub-footer-ele h4 {
  margin: 5px 0 5px 0;
  font-size: 110%;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 1px #000 solid;
  width: 75%;
}

.sub-footer-ele img {
  /* info icon */
  width: 10%;
  height: auto;
  margin-right: 10px;
  float: left;
}

.sub-footer-ele a {
  display: block;
  color: #fff;
  background-color: var(--navy);
  width: 92%;
  padding: 10px;
  margin: 0 4%;
  letter-spacing: 2.5px;
  box-sizing: border-box; /* does not include margin */
  text-transform: uppercase;
  position: absolute;
  left: 0;
  bottom: 10px;
  transition: color 0.3s ease-in;
}

.sub-footer-ele a:hover {
  color: var(--lightbl);
}

footer {
  background-color: var(--navy);
}

#footer-wrap {
  text-align: center;
  color: #fff;
  background-color: transparent;
  width: 95%;
}

footer #footer-wrap > img:first-of-type {
  /* logo */
  width: 15%;
  height: auto;
  margin: 25px 0 15px 0;
}

footer img {
  vertical-align: middle;
  width: 22px;
  height: auto;
  margin-right: 5px;
}

footer address {
  font-size: 115%;
  line-height: 32.5px;
}

footer address img:nth-of-type(2) {
  margin-left: 10px;
}

footer p:first-of-type a {
  /* home */
  font-size: 115%;
  color: #fff;
}

footer p:last-of-type a {
  /* login */
  font-size: 115%;
  color: #fff;
  cursor: default;
}

footer #statements {
  color: #fff;
  padding: 10px 0;
  margin: 0 auto;
  border-top: 1px solid #fff;
  width: 50%;
  text-align: center;
}

footer #statements a {
  color: #fff;
  padding: 0 10px;
  display: inline-block;
}

footer > a:last-child {
  /* lemonpie */
  color: #fff;
  display: block;
  padding: 25px 0 10px 0;
  text-align: center;
}

/* other pages */

#pages {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

#pages a {
  color: var(--navy);
}

#pages a:hover {
  color: #fff;
  background-color: var(--navy);
}

/* left side */
.switcher-content {
  display: none; /* hide other tabs */
}

#switcher-panel ul li {
  padding: 10px 0;
  margin-left: 25px;
  font-size: 115%;
  list-style-type: none;
  font-weight: 600;
}

#switcher-panel ul li span {
  display: block;
  font-weight: normal;
}

#switcher-panel .a-block a {
  /* links styling */
  display: block;
  padding: 5px 0 5px 10px;
}

#switcher-panel table {
  border: 0;
  width: 100%;
  border-spacing: 5px;
}

#switcher-panel table tr td {
  width: 50%;
  font-weight: bold;
  text-align: center;
  border: 1px solid #c0c0c0;
  padding: 5px;
}

#switcher-panel table tr td img {
  width: 50%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* right side */
#pages aside ul li {
  padding: 10px 0;
  width: 75%;
  border-bottom: solid 1px #c0c0c0;
  list-style-type: none;
  font-size: 125%;
}

#pages aside ul li a {
  display: block;
  padding: 10px 0;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all linear 0.5s;
}

#pages aside ul li a img {
  width: 10%;
  height: auto;
  vertical-align: middle;
  margin: 0 10px;
}
