
/* Colours
 -------------------------
 Blue1:  #0e97df
 Blue2:  #15a9f8
 Blue3:  #15cdfc
 Yellow: #fdd74e
 Grey1:  #545454
 Grey2:  #9d9d9d
 Grey3:  #E0E0E0
*/

/* Tiny reset
 ********************************/
a, body, dd, div, dl, dt, form, input, img, li, nav, ol, p, textarea, ul {
  box-sizing: border-box;
  font: inherit;
  margin: 0;
  padding: 0;
}


/* General
 ********************************/

a, a:visited {
  color: #0e97df;
  text-decoration: none;
  text-shadow: 0.5px 0.5px 0 #545454;
}

a:active,
a:hover {
  color: #15cdfc;
}


body {
  color: #545454;
  font-family: arial, sans-serif;
  font-size: 18px;
  line-height: 1.2em;
  margin: 0 auto;
  max-width: 1600px;

  border: 1px solid #E0E0E0;
  box-shadow: 0px 0px 10px #E0E0E0;
  padding: 0 0 15px 0;
}

blockquote {
  background-color: #0e97df;
  box-sizing: border-box;
  color: #ffffff;
  font-size: 1.8em;
  line-height: 1.2em;
  margin: 0;
  padding: 90px 120px;
  position: relative;
}

blockquote::before {
  color: #15cdfc;
  content: "\201C";
  font-family: Arial;
  font-size: 7em;
  left: 15px;
  position: absolute;
  top: 120px;
}

button,
.button {
  background-color: #fdd74e;
  border-color: #fdd74e;
  border-radius: 10px;
  color: #545454;
  cursor: pointer;
  font-size: inherit;
  padding: 15px;
  width: auto;
}

cite {
  display: block;
  font-size: 1.3rem;
  padding: 0;
}

dd {
  margin-bottom: 2em;
}

dialog {
  border: 15px solid #fdd74e;
  border-radius: 15px;
  min-height: 15%;
  padding: 30px 30px 120px 30px;
  width: 50%;
}

dialog button {
  bottom: 30px;
  font-size: inherit;
  padding: 15px;
  position: absolute;
}

:backdrop {
  background-color: black;
  filter: blur(25px);
  opacity: 0.2;
}

dt {
  font-size: 1.2em;
  font-weight: normal;
  line-height: 1.2em;
  margin-bottom: 1em;
  padding-top: 1em;
}

h1 {
  font-size: 1.8em;
  font-weight: bold;
  line-height: 1.2em;
  margin-bottom: 1em;
}

h2 {
  font-size: 1.6em;
  font-weight: normal;
  line-height: 1.2em;
  margin-bottom: 1em;
  padding-top: 1em;
}

h3 {
  font-size: 1.4em;
  font-weight: normal;
  line-height: 1.2em;
  margin-bottom: 1em;
}

main {
  background: transparent url(/images/splash-base.svg) no-repeat bottom left;
  background-size: contain;
  padding-bottom: 15%;
  max-width: 1210px;
  padding-bottom: 15%;
  padding-left: 60px;
  padding-right: 60px;
  padding-top: 10%;
  position: relative;
  top: 0;
}

p {
	margin-bottom: 1.3em;
}

ul {
  margin-left: 60px;
}

.accessibility,
.verbose {
  overflow: hidden;
  position: absolute;
  text-indent: -1000px;
  top: 0;
}

.content {
  overflow: hidden;
}

.content-box {
  background-color: #1997df;
  border-top: 5px solid #fdd74e;
  color: #ffffff;
  padding: 60px;
}

.document {
  background-color: #ffffff;
  border: 1px solid #E0E0E0;
  box-shadow: 15px 15px 15px #E0E0E0;
  margin: 30px 0;
  padding: 30px;
  position: relative;
  z-index: 1;
}

.form-group {
  margin-bottom: 30px;
}

.form-field {
  border-radius: 10px;
  color: #545454;
  font-size: inherit;
  padding: 10px;
  width: 50%;
}

.form-instruction {
  font-size: 1em;
  line-height: 1.2em;
  margin-bottom: 60px;
}

.form-label {
  display: inline-block;
  font-size: inherit;
  padding-top: 10px;
  vertical-align: top;
  width:20%;
}

.introduction {
  background-color: #ffffff;
  border: 1px solid #E0E0E0;
  border-radius: 30px;
  margin: 0 0 60px 0;
  overflow: hidden;
  padding: 30px;
}



/* Footer
 ********************************/
footer {
  border-top: 5px solid #0e97df;
  clear: both;
}

.social-media {
  margin-bottom: 60px;
  padding-right: 60px;
  text-align: right;
}

.social-media a {
  display: block;
  font-size: 1px;
  height: inherit;
  line-height: 200px;
  overflow: hidden;
  width: inherit;
}

.social-media li {
  background: url(/images/social-media-x.png) no-repeat center;
  background-size: contain;
  border: none;
  border-radius: 60px;
  display: inline-block;
  height: 60px;
  list-style: none;
  margin: 0 0 0 7px;
  padding: 0;
  width: 60px;
}

.social-media .fb {
  background-image: url(/images/social-media-fb.png);
}

#copyright {
  font-size: 1.2em;
  margin-right: 60px;
  text-align: right;
}



/* Header
 ********************************/
header {
  position: relative;
}

#image-logo {
  width: 100%;
}

#logo {
  display: inline-block;
  margin: 60px 0 0 60px;
  width: 40%;
}

#tagline {
  background: transparent url(/images/splash-top.svg) no-repeat top left;
  background-size: 100%;
  font-size: 1px;
  min-height: 125%;
  left: 0;
  overflow: hidden;
  position: absolute;
  text-indent: -2000px;
  top: 72%;
  width: 100%;
}



/* NAVIGATION: PRIMARY
 ********************************/
#navigation-primary {
  position: absolute;
  right: 60px;
  top: 60px;
  z-index: 1;
}

#navigation-primary a,
#navigation-primary span {
  display: inline-block;
  font-size: 1.5em;
  margin: 0 20px;
  padding: 10px 20px;
  text-decoration: none;
}

#navigation-primary li {
  border-right: #0e97df solid 1px;
  display: table-cell;
  list-style: none;
  padding: 0;
}

#navigation-primary li:first-child a {
  margin-left: 0;
  padding-left: 0;
}

#navigation-primary li:last-child {
  border: none;
}

#navigation-primary li:last-child a {
  margin-right: 0;
  padding-right: 0;
}

#navigation-primary ul {
  display: table;
  margin: 0;
  padding: 0;
}

#js-responsive-button {
  display: none;
}




/* NAVIGATION: SECONDARY
 ********************************/
#navigation-secondary {
  background-color: #fdd74e;
  margin-bottom: 60px;
  padding: 60px;
}

#navigation-secondary a,
#navigation-secondary span {
  display: inline-block;
  font-size: 1.5em;
  line-height: 1.2em;
  margin: 0 20px;
  padding: 10px 20px;
  text-decoration: none;
  text-shadow: 0.5px 0.5px 0 #545454;
}


#navigation-secondary li {
  border-right: #0e97df solid 1px;
  display: table-cell;
  list-style: none;
  padding: 0;
  vertical-align: top;
}


#navigation-secondary li:first-child a {
  margin-left: 0;
  padding-left: 0;
}

#navigation-secondary li:last-child {
  border: none;
}

#navigation-secondary li:last-child a {
  margin-right: 0;
  padding-right: 0;
}

#navigation-secondary ul {
  display: table;
  margin: 0;
  padding: 0;
}



/* HOME
 ********************************/
#home h1 {
  font-size: 1px;
  position: absolute;
  text-indent: -2000px;
}

#home header {
/*
  background: transparent url(/images/hero-wide.jpg) no-repeat bottom left;
  background-size: 100%;
  padding-bottom: 32%;
*/
}

#home main {
  background: transparent url(/images/hero-wide.jpg) no-repeat 64% 3%;
  background-size: 120%;
  padding: 0;
  padding-top: 62%;
  max-width: 4000px;
}

#home main:after {
  display: none;
}

#home-feedback {
  border-top-color: #fdd74e;
  border-top-style: solid;
  border-top-width:  5px;
  box-sizing: border-box;
  padding: 60px;
  padding-top: 15%;
  position: relative;
  width: 100%;
}

#home-feedback::before {
	background: transparent url(/images/splash-base.svg) no-repeat top left;
	background-size: 95%;
	content: "";
	display: block;
	height: 285px;
	left: 0;
	position: absolute;
	top: -50px;
	width: 100%;
}

#home #tagline {
  z-index: 1;
}



/* ABOUT US
 ********************************/
#image-noodles {
  float: right;
  margin: 0 0 30px 30px;
  max-height: 400px;
}


#image-noodles-mobile {
  display: none;
}

#image-profiles {
  display: block;
  margin: 0 0 30px 0;
  padding-top: 30px;
  width: 70%;
}



/* SERVICE
 ********************************/
#image-certificates {
  display: block;
  margin: 30px auto;
  width: 60%;
}

#image-layout {
  float: right;
  margin-bottom: 60px;
}

#image-layout-2 {
  display: none;
}

#image-pool {
  margin-bottom: 30px;
  width: 75%;
}



/* FAQ
 ********************************/
.faq-answer {
  display: block;
}

.faq-question {
  color: #F27200;
  display: block;
  font-weight: bold;
}

.faq-section {
  background-color: #0e97df;
  border: #0e97df solid 1px;
  margin-bottom: 1px;
  position: relative;
  z-index: 1;
}

.faq-section button {
  background: transparent url(/images/icon-plus.svg) no-repeat center;
  background-size: contain;
  border: none;
  cursor: pointer;
  float: right;
  height: 30px;
  overflow: hidden;
  text-indent: -1000px;
  width: 30px;
}

.faq-section button.active {
  background-image: url(/images/icon-minus.svg);
}

.faq-section dl {
  background-color: #ffffff;
  display: block;
  height: auto;
  padding: 30px 35px;
}

.faq-section dl.inactive {
  background-color: transparent;
  height: 1px;
  overflow: hidden;
  padding: 0;
}

.faq-section h2 {
  background: transparent url(/images/icon-requirements-white.svg) no-repeat 30px 0px;
  background-size: 160px;
  color: #ffffff;
  padding: 30px 60px;
  text-indent: 90px;
}

.faq-section#safety h2 {
  background-image: url(/images/icon-safety-white.svg);
  background-position: 30px 7px;
}

.faq-section#equipment h2 {
  background-image: url(/images/icon-equipment-white.svg);
  background-position: 15px 10px;
  background-size: 100px;
}

.faq-section#lessons h2 {
  background-image: url(/images/icon-lessons-white.svg);
  background-position: 7px 7px;
}



/* CONTACT
 ********************************/
#contact-form {
  background-color: #0e97df;
  border-top: 5px solid #fdd74e;
  color: #ffffff;
  padding: 60px;
  position: relative;
  z-index: 1;
}

#contact-form textarea {
  min-height: 200px;
}



/* SWIM TEACHER JOBS
 ********************************/
#image-swim-teachers {
  width: 100%;
}



/* RESPONSIVE ADJUSTMENTS (Media query tweaks)
 ****************************************************/


@media only screen and (max-width: 1650px) {
  body {
    border: none;
    box-shadow: none;
    padding: 0;
  }
}



@media only screen and (max-width: 1440px) {
  body {
    font-size: 16px;
  }

  #image-noodles {
    max-width: 300px;
  }

  #js-responsive-button {
    background-color: #ffffff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    display: block;
    font-size: 1px;
    height: 60px;
    position: absolute;
    right: 60px;
    top: 60px;
    width: 60px;
    z-index: 3;
  }

  #js-responsive-button span {
    background-color: #0e97df;
    border-radius: 15px;
    display: block;
    height: 4px;
    margin: 4px 0;
    width: 27px;
  }

  #js-responsive-button.js-active::after {
    color: #0e97df;
    content: 'x';
    display: block;
    height: 58px;
    font-family: arial;
    font-size: 40px;
    left: 0;
    position: absolute;
    text-indent: 0;
    top: 0;
    width: 58px;
  }

  #js-responsive-button.js-active span {
    display: none;
  }

  #navigation-primary {
    background-color: #ffffff;
    float: none;
    margin: 0;
    overflow: hidden;
    padding-right: 120px;
    position: absolute;
    right: 0;
    text-align: right;
    top: 0;
    width: 100%;
    z-index: 2;
  }

  #navigation-primary li {
    display: block;
  }

  #navigation-primary li:last-child {
    border-right: 1px solid #0e97df;
  }

  #navigation-primary li:last-child a {
    margin-right: 20px;
    padding-right: 20px;
  }

  #navigation-primary ul {
    float: right;
    margin: 60px;
  }

  #navigation-primary.js-responsive {
    height: 0px;
    transition: height 0.1s;
    -webkit-transition: height 0.5s;
    width: 100%;
  }

  #navigation-primary.js-active {
    height: 400px;
    opacity: 0.95;
    transition: height 0.5s;
    -webkit-transition: height 0.5s;
  }
}


@media only screen and (max-width: 1200px) {
  .form-field {
    width: 60%;
  }
}


@media only screen and (max-width: 1020px) {
  main {
    padding-left: 30px;
    padding-right: 30px;
  }

  .form-field {
    width: 65%;
  }

  .content,
  .introduction {
    margin-bottom: 30px;
  }

  .social-media {
    margin-bottom: 30px;
    padding-right: 30px;
  }

  #image-layout {
    width: 50%;
  }

  #image-noodles {
    max-height: 300px
  }


  #image-profiles {
    width: 100%;
  }

  #js-responsive-button {
    right: 30px;
    top: 30px;
  }

  #logo {
    margin: 30px 0 0 30px;
  }

  #navigation-primary {
     top: -30px;
  }

  #navigation-secondary {
    margin-bottom: 30px;
    padding: 30px;
  }

  #navigation-secondary a,
  #navigation-secondary span {
    font-size: 1.3em;
    margin: 0px 10px;
    padding: 10px 10px;
  }

}



@media only screen and (max-width: 800px) {
  blockquote {
    font-size: 1.3em;
    padding: 60px;
  }

  blockquote::before {
    left: -10px;
    top: 85px;
  }

  cite {
    font-size: 0.9rem;
  }

  h1 {
    margin-bottom: 30px;
  }

  main {
    padding-left: 15px;
    padding-right: 15px;
  }

  main:after {
    bottom: -100px;
  }

  .content,
  .document,
  .introduction {
    padding: 15px;
  }

  .form-field {
    width: 70%;
  }

  .faq-section dl {
    padding: 15px;
  }

  .social-media {
    margin-bottom: 30px;
    padding-right: 30px;
  }

  .social-media li {
    height: 45px;
    width: 45px;
  }

  #contact-form {
    padding: 60px 15px;
  }

  #copyright {
    font-size: 1em;
    margin-right: 30px;
  }

  #image-layout {
    margin-bottom: 30px;
    margin-top: 60px;
    width: 50%;
  }

  #js-responsive-button {
    right: 15px;
    top: 30px;
  }

  #navigation-primary {
    padding-right: 0;
  }

  #navigation-primary li {
    padding-right: 15px;
  }

  #navigation-primary ul {
    margin-right: 45px;
    margin-top: 110px;
  }

  #navigation-secondary {
    padding: 15px;
  }

  #navigation-secondary a,
  #navigation-secondary span {
    font-size: 1.1em;
  }
}



@media only screen and (max-width: 700px) {
  #image-noodles {
    display: none;
  }

  #image-noodles-mobile {
    display: inline;
    float: right;
    margin: 0 0 15px 15px;
    max-width: 35%;
  }
}



@media only screen and (max-width: 600px) {
  blockquote {
    font-size: 1em;
    padding: 30px;
  }

  blockquote::before {
    left: -20px;
    top: 50px;
  }

  h1 {
    font-size: 1.6em;
  }

  h2 {
    font-size: 1.4em;
  }

  main:after {
    bottom: -80px;
    height: 15%;
  }

  ul {
    margin-left: 30px;
  }

  .faq-section h2 {
    padding-right: 30px;
  }

  .form-field {
    width: 100%;
  }

  .form-label {
    display: block;
    margin-bottom: 10px;
    width: auto;
  }

  #copyright {
    font-size: 0.8em;
  }

  #home-feedback {
    padding-bottom: 30px;
    padding-top: 16%;
  }

  #home-feedback::before {
    top: -25px;
  }

  #image-certificates {
    width: 80%;
  }

  #image-layout {
    display: none;
    float: none;
    margin: 30px auto;
    width: 80%;
  }

  #image-layout-2 {
    display: block;
    margin: 30px auto;
    width: 80%;
  }

  #image-noodles {
    margin-top: 0;
  }

  #image-pool {
    margin: 0;
    width: 100%;
  }

  #js-responsive-button {
    height: 45px;
    padding: 8.5px;
    width: 45px;
  }

  #js-responsive-button.js-active::after {
    font-size: 35px;
    height: 45px;
    width: 45px;
  }

  #logo {
    margin: 15px 0 0 15px;
    width: 50%;
  }

  #navigation-primary ul {
    margin-right: 38px;
    margin-top: 90px;
  }

  #navigation-secondary a,
  #navigation-secondary span {
    font-size: 0.9em;
    margin: 0;
    padding: 5px 5px 5px 10px;
  }
}


@media only screen and (max-width: 450px) {
  blockquote {
    font-size: 0.9em;
    padding: 0 15px;
  }

  blockquote::before {
    font-size: 6em;
    left: -30px;
    top: 15px;
  }

  cite {
    font-size: 0.7rem;
  }

  .content-box {
    padding: 45px;
  }

  .faq-section h2 {
    background-size: 30%;
    font-size: 1.4em;
    padding: 15px 30px;
    text-indent: 75px;
  }

  .faq-section#equipment h2 {
    background-size: 22%;
  }

  #js-responsive-button {
    top: 15px;
  }

  #image-certificates,
  #image-layout-2,
  #image-noodles {
    max-height: initial;
    width: 100%;
  }

  #navigation-secondary li:nth-child(4){
    display: none;
  }

}
