/*** common ***/

body {
  font-family: Arial, Helvetica, sans-serif;
}

@font-face {
  font-family: "ShadowsIntoLight";
  src: url("../font/shadowsintolight-webfont.woff2") format("woff2"),
    url("../font/shadowsintolight-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

a {
  text-decoration: none;
  color: #337ab7;
}

a:hover {
  color: #23527c;
  text-decoration: underline;
}

.jumbotron {
  font-size: 1.4rem;
  padding: 2.5rem 3rem;
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
  background-color: #e9ecef;
  border-radius: 0.3rem;
}

.carousel-control.left,
.carousel-control.right {
  background-image: none;
}

/*** navigation ***/

@media screen and (min-width: 1400px) {
  body {
    padding-top: 10rem;
  }

  .navbar-brand-burger {
    display: none;
  }
}

li.nav-item {
  padding: 0.5rem 1.5rem;
  margin-top: 0;
}

a.nav-link:hover {
  text-decoration: none;
}

.dropdown-menu li:hover,
.nav-item:hover,
.nav-item:focus {
  border-bottom: 5px solid #999999;
  padding-bottom: 0;
}

.dropdown.active,
.nav-item.active {
  border-bottom: 5px solid #a36500;
  padding-bottom: 0;
  background-color: #e7e7e7;
}

.navbar {
  color: red;
  font-size: 1.5rem;
  padding-top: 0;
  padding-bottom: 0;
  margin-left: 0;
  border-bottom: 1px solid #e7e7e7;
}

.navbar-light .navbar-nav .nav-link {
  color: #777;
}

.navbar-brand {
  padding: 0;
}

.navcontainer {
  padding-left: 2.3rem;
  padding-right: 0.8rem;
}

/* Nav-Burger */

@media screen and (max-width: 1398px) {
  body {
    padding-top: 5rem;
  }

  li.nav-item {
    padding: 0.3rem;
    margin-top: 0;
    padding-left: 2.5rem;
  }

  .navbar-brand {
    display: none;
  }

  .navcontainer {
    padding-left: 0;
    padding-right: 0;
  }
}

.navbar-brand-burger {
  margin-left: 1.6rem;
}

.navbar-toggler {
  margin-right: 1.6rem;
}

/*** aside ***/

aside {
  background-color: #f8f8f8;
  border: 2px #a9a9a9 solid;
}

.bold-link {
  font-weight: bold;
  margin-top: 20px;
}

.sidebar-block {
  border: 2px #a9a9a9 solid;
}

#sidebar {
  height: 100%;
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}

#sidebar h1,
.sidebar-news h2 {
  font-weight: bold;
  color: #333;
}

#sidebar h1 {
  margin-top: 1.4rem;
  font-size: 1.5em;
}

#sidebar h2 {
  margin-top: 1.4rem;
  font-size: 1.2em;
  font-weight: bold;
}

#sidebar a {
  color: #337ab7;
}

#sidebar a:hover,
#sidebar a:focus {
  text-decoration: underline;
  color: #275c8a;
}

.sidebar-news {
  border-top: 1px solid #333;
  margin-bottom: 20px;
}

.date {
  /*color: #A36500;*/
  font-style: italic;
  font-size: 1em;
}

/*** footer ***/

footer {
  display: flex;
  align-items: center;
  height: 3.5rem;
  background-color: #f8f8f8;
  padding: 0 2em;
  width: 100%;
  margin-top: 5rem;
}

footer img {
  height: 40px;
}

footer a {
  font-size: 10px;
}

#footer-soe-link {
  display: flex;
}

#footer-soe-link span {
  display: inline-block;
  align-self: center;
  margin-left: 0.4em;
}

#creative-commons {
  text-decoration: none;
  margin-left: 3.5em;
}

#creative-commons img {
  height: auto;
}

.go-to-top {
  margin-left: auto;
  font-size: inherit;
}

/*** content ***/
.btn-group label input {
  position: absolute;
  top: -20px;
}

.upcoming {
  font-style: italic;
  background: #f7af7e;
  padding: 0.25em 0.5em;
  margin-left: 0.5em;
  border-radius: 10px;
}

.row-no-left-margin {
  margin-left: 0;
}

/*Card-Layout*/

.card-wrapper {
  margin-bottom: 25px;
}

.card {
  margin: 5px 0px;
  background-color: #eeeeee;
  transition: all 0.5s ease;
  font-size: 11px;
  border: 1px solid #a9a9a9;
  border-radius: 12px;
}

.bottom-cut {
  border-radius: 12px 12px 0 0;
}

.card-image-wrapper {
  margin: 0;
  padding: 20px;
}
/*
This will stretch the Image to make it a square, meaning the height of the wrapper is the same as the width
this is done with setting the Padding of a pseudo element. to 100% which will be 100% of the width.
Source: https://css-tricks.com/aspect-ratio-boxes
*/
.challenge-card-image-wrapper {
  margin: 0;
  position: relative;
  padding: 20px;
}
.challenge-card-image-wrapper::before {
  content: "";
  display: block;
  padding-bottom: calc(100% / 1);
}

.card-image {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  padding: 20px;
  display: block;
}

.card-info {
  margin: 0;
  text-align: center;
  font-weight: bold;
  color: #ef6e18;
  font-size: 1.2em;
  padding: 5px 0 10px 0;
}

.card-title {
  margin: 0;
  font-weight: bold;
  font-size: 1.4em;
  color: #000000;
  text-align: center;
  padding: 0 0 10px;
}

.creator-link-wrapper {
  border: 1px solid #a9a9a9;
  background-color: #eeeeee;
  transition: all 0.5s ease;
  padding: 3px 0;
  border-radius: 0 0 12px 12px;
}

.creator-link {
  display: block;
  font-size: 12px;
  text-align: right;
  padding-right: 15px;
}

.card:hover,
.creator-link-wrapper:hover {
  background-color: #ffffff;
  -webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
}

.carousel {
  margin: 0 auto 10px auto;
  max-width: 60%;
}

.carousel-caption {
  text-shadow: -1px 0 #000000, 0 1px #000000, 1px 0 #000000, 0 -1px #000000;
}

@media screen and (max-width: 768px) {
  .carousel {
    max-width: none;
  }
}

/*** custom bootstrap adjustments ***/
.carousel-control.left {
  background-image: none;
}

.carousel-control.right {
  background-image: none;
}

.btn-group label input {
  position: absolute;
  top: -20px;
}

/*** Fix for anchor jump with fixt navbar ***/
.anchor::before {
  display: block;
  content: " ";
  margin-top: -8rem;
  height: 8rem;
  visibility: hidden;
  pointer-events: none;
}

.upcoming {
  font-style: italic;
  background: #f7af7e;
  padding: 0.25em 0.5em;
  margin-left: 0.5em;
  border-radius: 10px;
}

.row-no-left-margin {
  margin-left: 0;
}

/* Scroll bar fix */
html,
.navbar {
  padding-left: calc(100vw - 100%);
}
