/* Global styles.*/

* {
  margin: 0;
  padding: 0;
}

html,
body,
form,
fieldset,
table,
textarea {
  font: 100% "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a img {
  border: none;
}

/* HTML5 elements. Silly IE! */
main,
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary {
  display: block;
}

body {
  width: 100%;
  margin: 0 auto;
  /* background:#fafafa url(/media/template/mainbg.png) repeat-y center; */
  color: #333;
}

/* Template styles */

#skiptocontent a {
  padding: 6px;
  position: absolute;
  top: -40px;
  left: 0px;
  color: white;
  border-right: 1px solid white;
  border-bottom: 1px solid white;
  border-bottom-right-radius: 8px;
  background: #bf1722;
  -webkit-transition: top 0.5s ease-out;
  transition: top 0.5s ease-out;
  z-index: 100;
}

#skiptocontent a:focus {
  position: absolute;
  left: 0px;
  top: 0px;
  outline-color: transparent;
  -webkit-transition: top 0.05s ease-in;
  transition: top 0.05s ease-in;
}

@media (prefers-reduced-motion: reduce) {
  #skiptocontent a {
    transition-duration: 0.001ms !important;
  }
}

#headcontainer {
  background-repeat: no-repeat;
  background-position: 50% 100px;
  margin-bottom: 30px;
  height: 333px;
  position: relative;
}

header h2 {
  /* background: url(/media/template/bg_logo.png) top left no-repeat; */
  background: none; /* IE8 and below. Silly things. */
  background-size: 315px 83px;
  width: 315px;
  display: inline;
  float: left;
  position: absolute;
  top: 0px;
  margin: 10px 0px 10px -3px;
}

header h2 a img {
  transition: opacity 0.3s linear;
}

header h2 a:hover img,
header h2 a:focus img {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  header h2 a img {
    transition-duration: 0.001ms !important;
  }
}

header,
main,
#footerresources {
  margin-left: auto;
  margin-right: auto;
  max-width: 960px;
}

header nav {
  width: auto;
  display: inline;
  float: right;
  position: relative;
  top: 40px;
  margin-left: 10px;
  margin-right: 10px;
}

header nav ul {
  float: right;
  margin: 0px;
}

header nav ul li {
  float: left;
  list-style: none;
}

header nav ul li a {
  text-decoration: none;
  font-weight: bold;
  color: #363636;
  font: normal 120% "Roboto", Helvetica, Arial, sans-serif;
  display: block;
  padding: 1px 13px 4px 13px;
  text-transform: lowercase;
}

header nav ul li.current a {
  background-color: #f0f0f0;
  border-radius: 12px;
}

header nav ul li a:hover,
header nav ul li a:focus {
  color: #bf1722;
  -webkit-transition: color 0.2s ease-in, text-shadow 0.2s ease-in;
  transition: color 0.2s ease-in, text-shadow 0.2s ease-in;
  text-shadow: #bbb 1px 1px 1px;
}

main {
  background-color: #fff;
}

article {
  width: 700px;
  display: inline;
  float: left;
  position: relative;
  font-size: 1.125em;
  outline: 0;
  margin-bottom: 20px;
  margin-left: 10px;
  margin-right: 10px;
}

aside {
  width: 220px;
  display: inline;
  float: left;
  position: relative;
  margin-left: 10px;
  margin-right: 10px;
}

#updated,
#translations,
#related,
.sidebox {
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fafafa;
  color: #333;
  padding: 5px 10px 5px 10px;
  font-size: 95%;
  margin-bottom: 10px;
}

#updated,
.sidebox {
  font-family: "Kameron", Georgia, Times, serif;
  text-align: center;
}

#translations h2,
#related h2,
.sidebox h2 {
  padding: 5px 0 10px 40px;
  margin-bottom: 10px;
  border-bottom: none;
  font-size: 1.125em;
  font-family: "Kameron", Georgia, Times, serif;
  font-weight: normal;
}

#translations ul {
  list-style: none;
}

#translations ul li {
  margin-left: -15px;
}

.sidebox {
  text-align: left;
}

.sidebox h2 {
  padding-left: 0;
}

#translations ul,
#related ul,
.sidebox ul {
  margin-left: 10px;
}

#translations li,
#related li,
.sidebox li {
  line-height: 1.25em;
  margin-bottom: 4px;
}

#translations img {
  padding-right: 5px;
}

audio {
  width: 100%;
}

footer {
  /* background:url(/media/template/bg_footer.png) 50% top repeat-y; */
  color: #333;
  margin: auto;
  padding: 15px 0;
  font-size: 90%;
}

#footerresources {
  background-color: #e5e6eb;
}

.footerblock {
  width: 310px;
  display: inline;
  float: left;
  position: relative;
  margin-left: 5px;
  margin-right: 0px;
  padding-bottom: 10px;
}

.copyrightblock {
  width: 240px;
}

footer h2 {
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  padding: 6px 0 10px 40px;
  font-weight: normal;
}

footer #contact .phone {
  background: url(/media/template/bg_phone.svg) 0px 5px no-repeat;
  padding-left: 25px;
  padding-right: 25px;
  padding-bottom: 5px;
  color: #333;
  text-decoration: none;
}
footer #contact .phone:active,
footer #contact .phone:focus,
footer #contact .phone:hover {
  background-color: #ffffcc !important;
  color: #bf1722;
  border-top: 1px solid #bbb;
  border-bottom: 1px solid #bbb;
  border-radius: 4px;
}
footer a:link,
footer a:visited {
  color: #20399d;
}

footer a:hover,
footer a:active,
footer a:focus {
  color: #0850f7;
}

#footerresources ul {
  margin-left: 14px;
}

.footerblock ul li {
  line-height: 1.75em;
}

#checkpage h2 {
  /* background: url(/media/template/bg_wave.svg) no-repeat;*/
  margin-top: 30px;
}

#checkpage input[type="url"] {
  color: #333;
  padding-left: 5px;
  border-left: 1px solid #ccc;
  border-right: 1px solid #ddd;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ddd;
  border-radius: 5px;
  height: 23px;
  width: 200px;
  font-size: 90%;
}

#checkpage input[type="submit"] {
  color: #666;
  padding: 0 4px;
  background-color: #fff;
  border-left: 1px solid #ccc;
  border-right: 1px solid #ddd;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ddd;
  border-radius: 5px;
  height: 25px;
  cursor: pointer;
}

#checkpage input[type="submit"]:hover,
#checkpage input[type="submit"]:focus {
  color: #333;
  background-color: #ddd;
  border: 1px solid #999;
}

#footerlinks {
  width: 620px;
  padding-top: 55px;
  display: inline;
  float: left;
  position: relative;
  margin-left: 10px;
  margin-right: 0px;
}

footer a:active,
footer a:focus,
footer a:hover {
  background-color: #ffffcc !important;
  color: #bf1722;
  border-top: 1px solid #bbb;
  border-bottom: 1px solid #bbb;
  border-radius: 4px;
}


#footerlinks ul {
  margin-left: 0;
}

#footerlinks ul li {
  display: inline;
  list-style-type: none;
  padding: 0px 7px;
}

#footerlinks ul li a {
  padding: 0 0 2px 22px;
}

/* Responsive responsiveness is responsive */
@media all and (max-width: 61em) {
  header,
  main,
  #footerresources {
    margin-left: auto;
    margin-right: auto;
    width: auto;
  }

  header nav ul li a {
    padding: 2px 5px;
    margin: 0px;
  }

  article {
    width: auto;
    display: block;
    float: none;
    padding: 0 4px;
  }

  aside {
    width: auto;
    display: block;
    float: none;
    clear: both;
    margin-left: 10%;
    margin-right: 10%;
  }
  #footerlinks {
    width: auto;
  }
}

@media all and (max-width: 46em) {
  header nav {
    top: 0px;
    right: 32px;
    padding: 0 20px;
    margin: 5px 0;
    background-color: #eee;
    border-radius: 5px;
  }

  header nav {
    padding: 0px;
  }

  header nav ul li {
    float: none;
  }

  header nav ul li a {
    padding: 2px 0px;
    margin: 0px;
    text-align: center;
  }

  #footerlinks ul li {
    display: block;
  }
}

@media all and (max-width: 30em) {
  header nav {
    position: absolute;
    top: 95px;
    left: 10px;
    right: auto;
    float: none;
    padding: 0 20px;
    margin: 5px 0;
    border-radius: 5px;
  }

  header nav {
    padding: 0px;
  }

  header nav ul li {
    float: left;
    padding-right: 10px;
  }

  header nav ul li a {
    padding: 2px 0px;
    margin: 0px;
    text-align: center;
    font-size: 100%;
  }

  #search {
    border-radius: 0px;
    width: auto;
    bottom: 0px;
  }
}

/* Various element styles */

.hidden {
  position: absolute;
  left: 0;
  top: -500px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

abbr[title],
dfn[title] {
  border-bottom: 1px dotted;
  cursor: help;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

input,
select {
  vertical-align: middle;
}
/* yaser changes   */
.tg {
  border: none;
}
.tg tr td {
  border: none;
  text-align: left;
}
.tg tr th {
  border: none;
  text-align: left;
}

/* LINKS */
main a:link,
main a:visited,
aside a:link,
aside a:visited {
  color: #20399d;
  -webkit-transition: background-color 0.25s linear;
  transition: background-color 0.25s linear;
}

main a:active,
main a:focus,
main a:hover,
aside a:active,
aside a:focus,
aside a:hover {
  background-color: #ffffcc !important;
  color: #bf1722;
  border-top: 1px solid #bbb;
  border-bottom: 1px solid #bbb;
  border-radius: 4px;
}

/* Clearfix
http://www.yuiblog.com/blog/2010/09/27/clearfix-reloaded-overflowhidden-demystified */
.clearfix:before,
.clearfix::after {
  content: "\0020";
  display: block;
  overflow: hidden;
  visibility: hidden;
  width: 0;
  height: 0;
}

.clearfix::after {
  clear: both;
}

/*
  The following zoom:1 rule is specifically for IE6 + IE7.
*/
.clearfix {
  zoom: 1;
}

.clear {
  clear: both;
  display: block;
  overflow: hidden;
  visibility: hidden;
  width: 0;
  height: 0;
}

/* Flying focus */

#flying-focus {
  position: absolute;
  margin: 0;
  background: transparent;
  -webkit-transition-property: left, top, width, height, opacity;
  transition-property: left, top, width, height, opacity;
  -webkit-transition-timing-function: cubic-bezier(0, 0.2, 0, 1);
  transition-timing-function: cubic-bezier(0, 0.2, 0, 1);
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 0 2px 3px #78aeda, 0 0 2px #78aeda inset;
  border-radius: 2px;
}
#flying-focus.flying-focus_visible {
  visibility: visible;
  z-index: 9999;
}
.flying-focus_target {
  outline: none !important; /* Doesn't work in Firefox :( */
}
/* http://stackoverflow.com/questions/71074/how-to-remove-firefoxs-dotted-outline-on-buttons-as-well-as-links/199319 */
.flying-focus_target::-moz-focus-inner {
  border: 0 !important;
}
/* Replace it with @supports rule when browsers catch up */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  #flying-focus {
    box-shadow: none;
    outline: 5px auto -webkit-focus-ring-color;
    outline-offset: -3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #flying-focus {
    transition-duration: 0.001ms !important;
  }
}
