﻿/* under resolution 1536px */

/* important - scaling at 125%, 1920px = 1536px resolution */
@media screen and (max-width: 1536px) {
  header .contact h1 {
    font-size: 275%;
  }

  header address {
    font-size: 125%;
    line-height: 32.5px;
  }

  header .quote img {
    width: 200px;
    top: 15px;
  }

  header .quote p {
    font-size: 110%;
    top: 55px;
    right: 25px;
    width: 150px;
  }

  #main #ad {
    font-size: 325%;
  }

  .menu-btn {
    font-size: 18px;
    padding: 15px 0;
  }

  section p,
  aside p {
    font-size: 125%;
    line-height: 25px;
  }
}

@media screen and (max-width: 1366px) {
  header .logo img {
    width: 215px;
  }

  header .quote img {
    width: 200px;
  }
}

@media screen and (max-width: 1279px) {
  /* 1280×800 tablet */

  #main #ad {
    font-size: 275%;
  }
}

@media screen and (max-width: 1023px) {
  /* 1024 x 768 */

  #top-wrap #tel-details,
  #top-wrap p {
    display: none;
  }

  #top-wrap #translate {
    width: 100%;
    margin-right: 0;
  }

  #google_translate_element select {
    margin: 0 auto;
  }

  header .logo,
  header .quote {
    display: none;
  }

  header .contact {
    width: 100%;
  }

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

  #main #ad {
    font-size: 275%;
  }

  .nav-item {
    width: 95%; /* each nav item */
    margin-bottom: 5px;
  }

  .nav-item:hover .menu-content {
    display: none;
  }

  #slideshow {
    display: none;
  }

  #slideshow + .line {
    display: none;
  }

  section,
  aside {
    width: 100%;
  }

  aside table + p {
    margin-bottom: 10px;
  }

  .sub-footer-ele {
    width: 49%;
    padding: 5px 15px;
    margin-bottom: 10px;
  }

  .sub-footer-ele img {
    width: 35px;
  }

  .sub-footer-ele a {
    display: block;
    margin: 35px auto 0 auto;
    position: relative;
  }

  footer #footer-wrap > img:first-of-type {
    /* logo */
    width: 150px;
  }

  footer #statements a {
    display: block;
    margin-bottom: 5px;
  }

  footer #statements span {
    display: none;
  }

  #pages section {
    width: 65%;
  }

  #pages aside {
    width: 30%;
  }
}

@media screen and (max-width: 768px) {
  /* 768×102 */

  header .contact span {
    display: block;
  }

  section > img {
    /* photo of headteacher */
    width: 250px;
  }

  .sub-footer-ele {
    width: 97.5%;
  }
}

/* minimum width */
@media screen and (max-width: 320px) {
  body {
    width: 320px;
    min-width: 320px;
    max-width: 320px;
  }
}
