/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */
@font-face {
  font-family: PlayfairDisplay-Regular;
  src: url(../fonts/Playfair_Display/static/PlayfairDisplay-Regular.ttf);
}

@font-face {
  font-family: PlayfairDisplay-Medium;
  src: url(../fonts/Playfair_Display/static/PlayfairDisplay-Medium.ttf);

}

@font-face {
  font-family: PlayfairDisplay-Bold;
  src: url(../fonts/Playfair_Display/static/PlayfairDisplay-SemiBold.ttf);

}

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
  font-family: PlayfairDisplay-Regular, serif;
  background-color: #F0F3F4;
}

body {
  margin: 3% 20% 5% 20%;
  font-size: 100%;
}
@media only screen and (max-width: 1000px) {
  body {
    margin: 0 0 0 0;
    width: 100%;
  }
}


#court {
  max-width: 40%;
  height: auto;
  opacity: 1;
  border-right: solid #2A6094;
  vertical-align: middle;
}
@media only screen and (max-width: 1000px) {
  #court {
    max-width: 50%;
    border-right: solid #2A6094 1px;
  }
}

#court:hover {
  opacity: 0.5;
}

#background-to-header {
  position: relative;
  border: solid #2A6094 2px;
  left: -20%;
  width: 140%;
  border-radius: 5px;
  background-color: #EBF2F9;
}
@media only screen and (max-width: 1000px) {
  #background-to-header {
    left: 0;
    width: 100%;
    border-top: none;
    border-right: none;
    border-left: none;
    border-bottom: solid #2A6094 1px;
    border-radius: 0;
  }
}

#header {
  position: absolute;
  top: 60%;
  left: 40%;
  width: 60%;
}
@media only screen and (max-width: 1000px) {
  #header {
    left: 50%;
    width: 50%;
    top: 45%;
  }
}

#main-page {
  display: block;
  height: 100%;
  width: 100%;
}

#main-page:hover {
  background-color: #C3D9EE;
  color: #1d5168;
}

#title {
  color: #2A6094;
  text-decoration: none;
  display: block;
}

#logo:hover {
  fill: #1d5168;
  cursor: pointer;
}

#logo {
  margin-top: 5px;
  max-width: 20%;
  float: right;
  fill: #2A6094;
}

h1 {
  margin: 0 0 0 3%;
  font-size: 2.4vw;
  letter-spacing: 0.1vw;
  top: 30%;
  font-family: PlayfairDisplay-Medium, sans-serif;
}
@media only screen and (max-width: 1000px) {
  h1 {
    top: 0;
    font-size: 3.5vw;
    font-family: PlayfairDisplay-Regular, sans-serif;
  }
}
h2 {
  margin: 0 0 0 3%;
  font-size: 2vw;
  letter-spacing: 0.05vw;
  font-family: PlayfairDisplay-Medium, sans-serif;
}
@media only screen and (max-width: 1000px) {
  h2 {
    top: 0;
    font-size: 3.2vw;
    font-family: PlayfairDisplay-Regular, sans-serif;
  }
}


#menu {
  float: bottom;
  min-height: 50px;
  margin: 10px 0 10px 0;
  width: 140%;
  left: -18%;
  position: relative;
}
@media only screen and (max-width: 1000px) {
  #menu {
    left: 0;
    width: 100%;
    margin: 3px 0 0 0;
  }
}


.menu {
  font-size: 1.75vw;
  border: #2A6094 solid;
  width: 18.3%;
  height: 3vw;
  padding: 1vw 0 0 0;
  margin: 0 0.5% 0 0.5%;
  float: left;
  border-radius: 5px;

  box-shadow: 0 1px 0 2px #B0C4DE;
  background-color: #EBF2F9;
}
@media only screen and (max-width: 1000px) {
  .menu {
    width: 18.5%;
    margin: 0 0.5% 0 0.5%;
    font-size: 2.45vw;
    border: #2A6094 solid 1px;
    box-shadow: 0 1px 0 1px #B0C4DE;
    padding: 1vw 0 1vw 0;
    border-radius: 2px;
  }
}

.menu > a {
  text-decoration: none;
  font-family: PlayfairDisplay-Bold, sans-serif;
  color: #2A6094;
  display: block;
  height: 100%;
  width: 100%;
}

td {
  text-align: center;
}


#main-content {
  margin: 4% 0 10% 0;
  font-size: 1.8vw;
  line-height: 1.8;
  color: #1d5168;
  width: 130%;
  left: -16%;
  position: relative;
}
@media only screen and (max-width: 1000px) {
  #main-content {
    margin: 0 0 0 0;
    font-size: 3vw;
    width: 96%;
    left: 0;
    padding: 0 2% 0 2%;
  }
}

.menu:hover {
  background-color: #C3D9EE;
  color: white;
  cursor: pointer;
}


.bolded {
  font-family: PlayfairDisplay-Bold, serif;
}

.news {
  margin-top: 1vw;
  min-height: 25vw;
  border-top: #2A6094 solid;
  overflow: auto;
}
@media only screen and (max-width: 1000px) {
  .news {
    border-top: #2A6094 solid 1px;
    min-height: 57vw;
    margin-top: 0.5vw;
  }
}

.news-picture {
  float: left;
  max-width: 40%;
}
.news-picture-2 {
  float: left;
  max-width: 40%;
  margin-left: 14%;
}
@media only screen and (max-width: 1000px) {
  .news-picture-2 {
    float: left;
    max-width: 30%;
    margin-left: 0;
  }
}


.news-picture > img {
  width: 100%;
}
.news-picture > a > img {
  width: 100%;
}
.news-picture-2 > a > img {
  width: 100%;
  max-height: 25vw;
}
@media only screen and (max-width: 1000px) {
  .news-picture-2 > a > img {
    width: 134%;
    max-height: 70vw;
  }
}

.news-copyright {
  color: #2A6094;
  font-size: 1vw;
  padding-left: 1vw;
}
@media only screen and (max-width: 1000px) {
  .news-copyright  {
    font-size: 1.5vw;
  }
}

.news-copyright > a {
  text-decoration: none;
  font-family: PlayfairDisplay-Bold, serif;
  color: #2A6094;
}

.news-title {
  font-family: PlayfairDisplay-Bold, sans-serif;
  font-size: 2vw;
  letter-spacing: 0.1vw;
  display: block;
  max-width: 80%;
  float: left;
}
@media only screen and (max-width: 1000px) {
  .news-title  {
    font-size: 3vw;
    max-width: 70%;
  }
}

.news-date {
  float: right;
}
@media only screen and (max-width: 1000px) {
  .news-date  {
    font-size: 2.8vw;
  }
}

.news-content {
  width: 58%;
  float: right;
}

.news-text {
  font-size: 1.6vw;
  padding: 5px 0 0 2vw;
  float: left;
}

.news-text a {
  font-family: PlayfairDisplay-Bold, sans-serif;
  color: #2A6094;
}
@media only screen and (max-width: 1000px) {
  .news-text  {
    font-size: 2.8vw;
  }
}

#main-content > h2 {
  text-align: center;
}

#contact > div {
  float: left;
  margin-right: 7px;
}

#map {
  float: left;
  width: 60%;
  margin-right: 20px;
}

small > a {
  color: #2A6094;
  text-decoration: none;
}

iframe {
  width: 100%;
}

#download-icon {
  max-width: 4%;
  fill: #2A6094;
  margin: 0 20px 0 20px;
  float: left;
}
@media only screen and (max-width: 1000px) {
  #download-icon {
    margin: 0 5px 0 5px;
  }
}

#download-icon-2 {
  max-width: 6%;
  fill: #2A6094;
  margin: 0 20px 0 20px;
  float: left;
}
@media only screen and (max-width: 1000px) {
  #download-icon-2 {
    margin: 0 5px 0 5px;
  }
}


.download-point {
  text-decoration: none;
  color: #2A6094;
  display: block;
  margin: 20px 0 0 0;
  height: 100%;
  width: 100%;
}

.download-point:hover {
  fill: #1d5168;
  color: #1d5168;
  cursor: pointer;
  background-color: #C3D9EE;
}

footer {
  font-size: 1.5vw;
  max-width: 100%;
  margin-left: 5%;
}