html,
body {
  background-color: #f9f9f9;
  color: white;
  margin: 0;
  padding: 0;
  text-align: left;
  font-family: "Gotham", "Segoe UI", sans-serif;
  font-weight: lighter;
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.Content {
  display: flex;
  flex-direction: column;
  padding-top: 5rem;
}

.Heading {
  display: flex;
  justify-content: left;
}

.Heading img {
  height: 36px;
  width: 36px;
  margin: 6px 0;
}

h1 {
  font-weight: lighter;
  margin: 0 0 0 12px;
  line-height: 48px;
}

.ButtonWrapper {
  width: 100%;
  text-align: center;
}

button {
  height: 32px;
  width: 320px;
  margin: 20px auto;
  background-color: #1890f5;
  color: white;
  border-radius: 4px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.045);
  border: 0;
  outline: none;
  -webkit-appearance: none;
  font-weight: 500;
  cursor: pointer;
  -webkit-transition: 0.35s;
  -o-transition: 0.35s;
  -moz-transition: 0.35s;
  transition: 0.35s;
}

button:hover {
  background-color: #40a9ff;
}

button:active {
  background-color: #096dd9;
}

p {
  /*max-width: 320px;*/
  font-size: 0.9rem;
  margin: 0;
  padding-top: 0.5rem;
}

a {
  text-decoration: none;
  color: inherit;
}

.NavMenu {
  width: 60%;
  display: inline-block;
}

.NavMenu ul {
  margin: 0;
  padding: 0;
  float: right;
  list-style: none;
}

.NavMenu ul li {
  float: none; /*list headings displayed vertically */
  list-style: none;
  padding: 0px;
  position: relative;
  }

.NavMenu ul li a {
  display: block;
  text-decoration: none;
}

.NavMenu ul li ul {
  display: none;
  position: absolute;
  padding: 5px 14px;
}

.NavMenu ul li:hover ul {
  display: inline-table;
  width: 400px;
  position: absolute;
  top: 0;
  left: 100%;
  padding: 25px 14px;
  float: left;

}

.NavMenu ul li ul li {
    float: left; /*offline and online buttons displayed horizontally in the given order */
    list-style: none;
    position: relative;
    padding: 5px 14px;
}

.NavMenu ul li ul li a {
    float: right;
    list-style: none;
    text-decoration: underline;
    font-size: 0.9rem;
}

.NavMenu ul li ul li a:hover {
    background-color: #c2c2c2;
}

.Tooltip {
  position: relative;
  display: inline-block;
}

.Tooltip .TooltipText {
  visibility: hidden;
  width: 300px;
  background-color: #555;
  color: #fff;
  text-align: center;
  font-size: 0.9rem;
  padding: 5px 0;
  border-radius: 6px;

  /*Position the tooltip text */
  position: absolute;
  top: -5px;
  right: 105%;


  /*Fade in tooltip*/
  opacity: 0;
  transition: opacity 0.3s;
}

/*Tooltip arrow */
.Tooltip .TooltipText::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent black;

}

/*Show the tooltip text when hovering over the tooltip container */
.Tooltip:hover .TooltipText{
  visibility: visible;
  opacity: 1;
}

/* cards */

div.medium-card {
  flex-wrap: wrap;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: center;
  margin-left: 2rem;
  margin-right: 2rem;
  margin-top: 2rem;
}

div.medium-card > span {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 0 1 auto;
  min-width: 0;
  min-height: 0;
  width: 35%;
  margin: 0.5rem 0.5rem;
  border: 0.1rem solid #eee;
  /*background-image: url("triangle-transparent.png");*/
  background-repeat: no-repeat;
  background-color: white;
  /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);*/
}

div.medium-card > span:hover {
  border-color: #00aeef;
}

/*Show the tooltip text when hovering over the tooltip container */
div.medium-card > span:hover div.tip {
  visibility: visible;
  float: right;
  opacity: 1;
}

div.medium-card > span card {
  margin: 0px 0px;
  display: block;
  padding: 1rem;
  /*background-color: #eee;*/
}

div.medium-card > span p.title {
  line-height: 1.8rem;
  font-size: 24px;
  color: #00aeef;
}

div.medium-card > span p.description {
  padding: 1rem;
  color: #404040;
  text-align: left;
}

div.medium-card > span p.online {
  padding: 1rem;
  color: #00aeef;
  font-size: 0.8rem;
  text-align: left;
  text-decoration: underline;
}

div.medium-card > span div.tip {
  visibility: hidden;
  color: #00aeef;
  text-align: left;
  text-decoration: underline;
  font-size: 0.8rem;
  padding: 5px;
  margin-top: 15px;
  margin-right: 5px;
}


div.banner {
  background: url("header-accelerator.jpg") center no-repeat;
  background-size: cover  !important;
  height: 400px;
}

div.intro {
  width: 33%;
  margin-left: 15rem;
  padding-bottom: 2rem;
}

div.label {
  margin-left: 1.5rem;
  margin-top: 1.5rem;
}

/* search */

div.search {
  width: 100%;
  display: flex;
  position: relative;
}

.searchTerm {
  width: 100%;
  border: 1.5px solid #eee;
  border-right: none;
  padding: 5px;
  height: 30px;
  border-radius: 5px 0 0 5px;
  outline: none;
  color: #eee;
}

.searchTerm:focus{
  color: #404040;
}

.searchButton {
  width: 45px;
  height: 43px;
  border: 1.5px solid #eee;
  background: #eee;
  text-align: center;
  color: #fff;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  font-size: 20px;
  margin: 0px !important;
  background: url("icon-search.png") no-repeat center center;
  box-shadow: none !important;
}

/*Resize the wrap to see the search bar change!*/
div.wrap{
  padding-top: 2rem;
  width: 30%;
  margin: auto;
}

/* responsive layouts */

@media screen and (min-width: 1700px) {

  div.intro {
    width: 33%;
    margin-left: 20rem;
  }
}

@media screen and (max-width: 1440px) {
  .Content {
    display: flex;
    flex-direction: column;
    padding-top: 3rem;
  }

  h1 {
    margin: 0 0 0 12px;
    line-height: 25px;
    font-size: 16pt;
  }

  p {
    font-size: 0.9rem;
    padding-top: 0.3rem;
  }

  div.intro {
    width: 33%;
    margin-left: 8rem;
  }
}


@media screen and (max-width: 768px) {
  h1 {
    margin: 0 0 0 0px;
    line-height: 20px;
    font-size: 14pt;
  }

  p {
    font-size: 0.8rem;
    padding-top: 0.3rem;
  }

  div.intro {
    width: 40%;
    margin-left: 2rem;
    padding-bottom: 2rem;
  }

  div.medium-card > span p.title {
    line-height: 1.8rem;
    font-size: 16pt;
    color: #00aeef;
  }

  div.medium-card > span p.description {
    padding: 1rem;
    color: #404040;
    text-align: left;
    font-size: 0.8rem;
  }

  div.medium-card > span p.online {
    padding: 1rem;
    color: #00aeef;
    font-size: 0.7rem;
    text-align: left;
    text-decoration: underline;
  }
}

div.dropdown {
  position: relative;
  display: inline-block;
  padding-top: 15px;
  font-size: 10pt;
  text-decoration: underline;
}

div.dropdown-content {
  display: none;
  position: absolute;
  background-color: #00aeef;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  padding: 12px 16px;
  z-index: 1;
}

div.dropdown-content p {
  font-size: 10pt !important;
}

div.dropdown:hover div.dropdown-content {
  display: block;
}
