/* UA Blue: #0157b7 */
/* UA Yellow: #ffdd01 */

body {
  font-family: "Montserrat", sans-serif;
}
h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", sans-serif;
}
main {
  padding-top: 100px !important;
  padding-bottom: 50px !important;
}
main a {
  text-decoration: none;
}
.j-header {
  position: fixed;
  left: 0;
  top: 0 !important;
  width: 100%;
  z-index: 10;
}
.j-header-top {
  line-height: 125%;
  background-color: #0157b7 !important;
}
.j-header-top span {
  padding: 16px 0px !important;
}
.j-header-top .j-wide-title .j-narrow-title {
  margin-left: 4px !important;
}
.j-header-top a {
  padding-left: 0px !important;
}
.j-header-top a:hover {
  color: #ffdd01 !important;
  background-color: transparent !important;
}
.j-home-btn {
  clear: both !important;
  margin-top: 0px;
  padding-top: 4px;
  line-height: 125%;
}
.j-header-bottom {
  color: #000 !important;
  background-color: #ffdd01 !important;
}
.j-header-bottom a {
  float: right !important;
}
.j-header-bottom a:hover {
  color: #fff !important;
  background-color: #0157b7 !important;
}
.j-heading {
  color: black;
  font-weight: 400;
  line-height: 1.2em;
  text-align:start;
  margin-top: 30px;
  margin-bottom: 30px;
  font-family: "Lora", serif; 
  font-size: 3em;
  font-optical-sizing: auto;
  font-style: italic;
  text-align: center;
}
.text-centre {
  text-align: center;
}
.j-img-centre {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.j-footer {
  position: fixed;
  left: 0;
  bottom: 0 !important;
  width: 100%;
  background-color: white !important;
  color: darkgray !important;
}
.j-footer a {
  float: right !important;
}
.j-footer .w3-bar-item {
  padding-right: 0;
  margin-left: 8px;
}
.j-wide-title {
  display: block !important;
}
.j-narrow-title {
  display: none !important;
}
.center-img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.j-can-flag {
  width: 40px;
  float: right;
  margin-right: 16px;
  margin-top: 21px;
}
.j-action-btn  {
  color: #000;
  background-color: #ffdd01;
  margin-right: 6px;
  margin-bottom: 8px;
  font-size: 16px;
}
.j-action-btn:hover  {
  color: #fff !important;
  background-color: #0157b7 !important;
}
.j-links {
  color: rgb(132, 132, 255);
  margin-top: 24px;
}    
.j-links a:hover {
  color: #FFD800;
}

/* Sidebar */

.j-menu-btn {
  float: left;
  display: none;
  clear: both !important;
  font-size: 30px;
  margin-top: 0px;
  padding-top: 4px;
}      
#j-sidebar {
  background-color: #ffdd01 !important;
  padding-top: 100px;
  display: none;
}
#j-sidebar a {
  color: #000 !important;
}
#j-sidebar a:hover {
  color: #fff !important;
  background-color: #0157b7 !important;
}
#j-sidebar hr {
  margin-left: 16px;
  margin-right: 16px;
  height: 2px;
  border-top: 1px solid rgba(0, 0, 0, 0.3);
}      

@media only screen and (max-width: 600px) {
  .j-home-btn, .j-header-bottom, .j-footer {
    display: none;
  }
  .j-header-top a {
    padding-left: 16px !important;
    padding-top: inherit !important;
    padding-bottom: 0 !important;
  }
  main {
    padding-top: 60px !important;
  }
  .j-menu-btn {
    display: block;
    font-size: 28px;
  }
  .j-wide-title {
    display: none !important;
  }
  .j-narrow-title {
    display: block !important;
  }
  .j-heading {
    font-size: 2.2em;
    margin-left: 10px;
    margin-right: 10px;
  }
  .w3-xlarge {
    font-size: 22px !important;
  } 
  .j-can-flag {
    display: none;
  }   
}

/* Dark theme */

@media (prefers-color-scheme: dark) {
  body {
    background-color: #303030;
    color: white;
  }
  .j-heading {
    color: white;
  }
  .j-footer {
    background-color: #303030 !important;
  } 
  .j-footer a:hover {
    color: #fff  !important;
    background-color: #303030 !important;
  } 
}

