
:root{
  --background: #191c23;
  --lvl1: #2e3138;
  --lvl2: #45474d;
  --accent:#45474d;
  --shadow:0 4px 8px 0 rgba(0, 0, 0, 0.5);
  --text:#f5f5f5;
  --page_link:#eea92a;
  --rad: 5px;
}

* {
    box-sizing: border-box;
}
  
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--background);
    position: relative;
    width: 90%;
    min-height:  98vh; /* was 100vh */
    color: var(--text);
    font-size: 14pt;
}

h1 {
  padding-top: 0px;
  padding-bottom: 10px;
  margin: 0px;
}

h2 {
  padding-top: 10px;
  padding-bottom: 10px;
  margin: 0px;
 }

h3 {
  margin: 0px;
  margin-left: 0px;
  margin-bottom: 10px;
  margin-top: 30px;  
}

h4 {
  margin: 0px;
}

h5 {margin: 0px;
}
 
p {
  padding-bottom: 0px;
  margin-left: 5px;
}

li {
  padding: 3px;
}

table {
  border:3px solid var(--lvl1);
  background-color: var(--lvl2);
  box-shadow: var(--shadow);
  border-collapse: collapse;
  width: 1000px;
  margin: auto auto;
}

th {
  padding: 10px;
  border: 3px solid var(--lvl1);
  
}

td {
  text-align: left;
  padding: 3px;
  border: 3px solid var(--lvl1);
}

tr.even {
  background-color: var(--accent);
}


img {
  display:flexbox;
  background-color: black;
}

img.align-right {
  float: right;
  margin-left: 10px;
}

img.align-left {
  float: left;
  margin-right: 10px;
  margin-bottom: 10px;
}

img.medium {
  width: 350px;
}

img.small{
  width: 160px;
  height: inherit;
  object-fit: scale-down;
  min-height: 125px;
  min-width:125px;
}

.date{
  display: inline;
  font-size: smaller;
}

.hamburger {
  display: none;
  width: 50px;
  color: var(--text);
  background-color: var(--accent);
  border-radius: var(--rad);
  text-decoration: none;
  border: none;
  text-align: left;
  font-size:inherit;
  font-family: inherit;
  cursor: pointer;
  padding-inline: 0px;
}

.text {
  margin-left: 10px;
  font-size: small;
}

.header {
  padding: 15px;
  font-size: 30px;
  text-align: left;
  background-color:var(--lvl2);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  margin-left: 10px;
  /* height: 150px; */
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  border-radius: var(--rad);
}

.header_small {
  width: 328px;
  padding: 10px;
  font-size: 20px;
  text-align: left;
  background-color:var(--lvl2);
  box-shadow: var(--shadow);
  margin: 0px;
  margin-left: 30px;
  border-radius: var(--rad);
}  

.info {
  padding: 20px 20px 10px 20px;
  background-color:var(--lvl2);
  box-shadow: var(--shadow);
  margin: 30px;
  border-radius: var(--rad);
}

.news {
margin: 0px;
}

.news_content {
  margin-left: 0px;
}

.story{
  background-color: var(--lvl1);
  margin: 10px 10px 10px 0px;
  border-style: solid;
  border-width: 0px;
  border-color: var(--lvl1);
  box-shadow: var(--shadow);
  width:100%;
  height:125px;
  overflow: hidden;
  display: flex;
  border-radius: var(--rad);
}

.story_text{
  float: left;
  width: 85%;
  padding: 20px;
}

.content {
  margin-left: 200px;
  padding: 10px;
  padding-bottom: 4rem;
  max-width: 1520px;
}

.additional {
  float: right;
  width: 22%;
  border-spacing: 2px;
  padding: 10px;
  border: var(--lvl1);
  border-style: solid;
  border-width: 2px;
  margin: 20px;
  margin-top: 15px;
}

.card {
  margin-top: 0px;
  margin-bottom: 10px;
  margin-right: 20px;
  box-shadow: var(--shadow);
  padding-bottom: 10px;
  background-color:var(--lvl2);
  border-radius: var(--rad);
}

.placeholder_card {
  margin-top: 0px;
  margin-bottom: 10px;
  margin-right: 20px;
  box-shadow: var(--shadow);
  padding-bottom: 10px;
  background-color:var(--lvl2);
  border-radius: var(--rad);
  visibility: hidden;
}

.image {
  background-color: var(--lvl2);
  height: 150px;
  width: 100%;
  margin-left: 0px;
  margin-right: 0px;
  border-radius: calc(var(--rad) + 2px);
}

.modal_image {
  cursor: pointer;
  transition: 0.3s;
}

.modal_image:hover {opacity: 0.7;}

/* The Modal (background) */
.modal {
  display: block; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

.mobile_gallery {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

.mobile_picture {
  width: 100%;
}

.caption-container {
  text-align: center;
  background-color: var(--background);
  padding: 2px 16px;
  color: var(--text);
}

.numbertext {
  color:var(--text);
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top:0;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

.next {
  right:0;
  border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.hidden {
  display: none;
}

/* Modal Content (image) */
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 900px;
}

/* Caption of Modal Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Add Animation */
.modal-content, #caption {  
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)} 
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* The Close Button on mobile*/
.c_button {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.card_image {
 border-top-left-radius: var(--rad);
 border-top-right-radius: var(--rad);
 width: inherit;
 height: 150px;
}

.sidebar {
  margin-top: 10px;
  padding: 10px;
  width: 200px;
  background-color: var(--lvl2);
  box-shadow: var(--shadow);
  position: fixed;
  height: 100%;
  overflow: auto;
  float: left;
  border-radius: var(--rad);
  display: inline;
}

  /* Logo space in sidebar */
  .logo {
    padding: 5px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    background-color: #ffFFFF00;
}
   
.button, .dropdown-btn {
  display: block;
  padding: 16px;
  width: 180px;
  color: var(--text);
  background-color: inherit;
  border-radius: var(--rad);
  margin: 5px 0px 5px 0px;
  text-decoration: none;
  border: none;
  text-align: left;
  font-size:inherit;
  font-family: inherit;
  cursor: pointer;
}

.mobile_button{
  padding: 16px;
  width: 180px;
  background-color: inherit;
  margin: 5px auto;
  border: var(--lvl1);
  border-style: solid;
  border-width: 2px;
  box-shadow: var(--shadow);
  color: var(--text);
  font-family: inherit;
  font-size: inherit;
  display: none;
  cursor: pointer;
}

.dropdown-btn-active {
  background-color: green;
  color: white;
}

.dropdown-btn-container {
  display: none;
  font-size: 75%;
  border-radius: var(--rad);
}

.caret-down {
  float:right;
  padding-right: 8px;
}

.button:hover{
  background-color: var(--lvl1);
}

a:link {
  color:Var(--text);
}

a:visited {
  color:var(--text);
}

  /* Sidebar links */
  .sidebar a {
    display: block;
    color: var (--text);
    padding: 16px;
    margin: 5px 0px 5px 0px;
    text-decoration: none;
    border-radius: var(--rad);
}

  .dropdown-btn-container a {
    padding: 5px 0px 5px 30px;
}

  /* Active/current link */

  /* Links on mouse-over */
  .sidebar a:hover, .dropdown-btn:hover {
    background-color: var(--lvl1);
    color: var(--text);
    border-radius: var(--rad);
}

a.page_links {
  margin-left: 0px;
  color: var(--page_link);
}

.page_links:hover {
  background-color: var(--lvl1);
}

a.main_links {
  text-decoration: none;
}

.external_link {
  background-color: #ffffff00;
}

.column {
  float: left;
  width: 25%;
  padding:10px;
  padding-top: 0px;
}

.column_2 {
  float: left;
  width: 50%;
  padding:10px;
}

.row {
  padding-left: 20px;
}

.resources{
  margin-top: 25px;
  margin-bottom: 25px;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

.collapsible {
  background-color: var(--lvl1);
  box-shadow: var(--shadow);
  color: var(--text);
  cursor: pointer;
  padding: 15px;
  border: none;
  text-align: left;
  outline: none;
  font-size: 16px;
  border-radius: var(--rad);
}

.active {
  background-color: var(--lvl1);
}

.content_toc {
  padding: 0px;
  padding-right: 18px;
  display: none;
  overflow: hidden;
  background-color: var(--lvl1);
  box-shadow: var(--shadow);
  width: fit-content;
  font-size: 14px;
  margin-top: 5px;
  border-radius: var(--rad);
}

.page_image {
  padding-bottom: 10px;
  height:290px;
}

/*COULD BE NEAT TO IMPLEMENT PROPERLY 
tr:hover {
  background-color: var(--accent);
}*/

.footer {
  padding: 30px;
  margin-left: 220px;
  text-align: center;
  background: var(--lvl2);
  box-shadow: var(--shadow);
  position: absolute;
  height: 2.0rem;
  width: 1482.69px;
  bottom: 0;
  border-radius: var(--rad);
}

.news_heading {
 margin-bottom: 20px;
}

#mainpage_box{
  margin-top: 20px;
  margin-bottom: 20px;
}

#img_dynamic img {
  float: left;
  width: 33.33%;
  max-width: 100%;
  height:inherit;
}

#img_dynamic::after{
  display: table;
  content: "";
  clear:both;
}

#topBtn {
  display: none; /* Hidden by default */
  position: fixed; /* Fixed/sticky position */
  bottom: 20px; /* Place the button at the bottom of the page */
  right: 30px; /* Place the button 30px from the right */
  z-index: 99; /* Make sure it does not overlap */
  border: none; /* Remove borders */
  outline: none; /* Remove outline */
  background-color: var(--lvl2); /* Set a background color */
  box-shadow: var(--shadow);
  color: var(--text); /* Text color */
  cursor: pointer; /* Add a mouse pointer on hover */
  padding: 15px; /* Some padding */
  border-radius: 10px; /* Rounded corners */
  font-size: 18px; /* Increase font size */
}

#topBtn:hover {
  background-color:var(--accent); /* Add a dark-grey background on hover */
}
 
  @media screen and (max-width: 1500px) {

    .story{
      margin-left:auto;
    }

    .column {
      width: 33.33%;
      padding: 0;
      display: block;
      float: left;
    }

    .content_toc {
      width: fit-content;
    }

    img.medium {
      width: 35%;
    }

    .page_image {
      height: auto;
    }

    table {
      width: auto;
    }

    .footer {
      width: 76%;
      padding: 0;
      display: block;
      float: left;
    }


}

  @media screen and (max-width: 1200px) {

  .column {
    width:50%;
    padding: 0;
    display: block;
    float: left;
  }

  .page_image {
    display: none;
  }

  .mobile_button{
    display: block;
  }

}

  @media screen and (max-width:900px) and (orientation:landscape) {

  .slides {
    width: 35%;
    margin: 0 auto;
  }

  .mobile_button{
    display: block;
  }

}

  /* On screens that are less than 900px wide, make the sidebar into a topbar */
  @media screen and (max-width: 900px) {
    
    .text {
      font-size: 12px;
      margin:0px;
    }
    
    .header_small{
      margin-top: 30px;
      margin-left: 20px;
    }

    .mobile_button{
      display: block;
    }

    .logo {
        display: block;
        width:0;
        height:0;
        padding: 0;
        visibility: hidden;
    }

    .column {
      width:50%;
      padding: 0;
      display: inline;
      float: left;
    }

    .row {
      margin-left:0px;
    }

    .card {
      height: 230px;
    }

    table.additional{
      table-layout: fixed;
      width: 100%;
      margin: auto;
      margin-bottom: 10px;
    }

    .modal-content {
      width: 100%;
    }

    .resources{
      table-layout: fixed;
      width: 100%;
      margin: auto;
      margin-bottom: 10px;
    }

    img {
      width: fit-content;
    }

    img.medium {
      display: none;
    }

    .date{
      display: block;
    }

    .card_image {
      object-fit:scale-down;
    }

    .news_content {
      display:none;
    }

    .content_toc {
      width: fit-content;
    }

    .sidebar {
      width: 100%;
      height: auto;
      position: relative;
      margin-left: 0px;
      padding: 5px;
      margin-bottom: 15px;
      display: block;
      float: none;
    }

    .hamburger{
      display: block;
    }

    .sidebar{
      display: none;
    }

    div.content {margin-left: 0;}
    

    #mainpage_box.info{
      margin-left:20px;
    }

    .footer {
      width: 100%;
      padding: 10px;
      margin-left: 10px;
      display: block;
      float: left;
    }
  }
  
  /* On screens that are less than 400px, display the bar vertically, instead of horizontally */
  @media screen and (max-width: 500px) {
    
    img.small{
      display: none;
    }

    .date{
      display: inline;
    }

    .story{
      height: auto;
    }

    .mobile_button{
      display: block;
    }

    .hamburger{
      display: block;
    }

    .body {
      width: auto;
    }
    
    .sidebar{
      display: none;
    }

    .sidebar a {
      float: none;
      position: relative;
      padding-top: 5px;
      padding-bottom: 5px;
      margin-bottom: 15px;
    }

    .row {
      padding-left: 0px;
    }

    .info {
      margin: 0px;
    }

    .header{
      height: fit-content;
      justify-content: center;
      margin-left: 0px;
    }

    #mainpage_box.info{
      margin-left: 0px;
    }

    .header_small {
      margin-top: 0px;
      margin-left: 0px;
    }


    .footer {
      width: 95%;
      margin-left: 10px;
      padding: 10px;
      display: block;
      float: left;
    }

    table {
      width: 95%;
      text-size-adjust: 80%;
      
    }

    #topBtn{
      right: 5px;
      padding: 5px;
    }

  }