/* Adjust #anchor targets to deal with the main navigation bar overlay
 * See: https://stackoverflow.com/questions/4086107/html-positionfixed-page-header-and-in-page-anchors
 */
:target:before {
  content: "";
  display: block;
  height: 55px; /* fixed header height*/
  margin: -55px 0 0; /* negative fixed header height */
}

/* code-style inline elements */
:not(pre) > code {
  font-size: 0.85em;
  padding: 0.075em 0.5ex;
  border-radius: 4px;
  background: #efe8ec;
}

/* Normalize Semantic UI list items handling: by default
 * it reduces line-height and adds a padding between items
 * which leads to ugly multi-line items. Cancel the effect
 * making lists more like regular text
 */
.ui.list .list>.item,
.ui.list>.item,
ol.ui.list li,
ul.ui.list li {
  padding: 0;
  line-height: inherit;
}

/* workaround to support 2+ digit lists in Semantic UI */
.ui.ordered.list .list>.item:before,
.ui.ordered.list>.item:before,
ol.ui.list li:before {
  position: unset;
  line-height: inherit;

  display: inline-block;
  float: left;
  padding-right: 1ex;

  text-align: left;
  min-width: 1.25rem;
}

/* Edit page on GitHub */
.ui.segment.gh-banner {
  margin-top: 4rem;
}

/* notes */
.ui.segment.note {
  padding-left: 5rem;
}

.ui.segment.note .ui.ribbon.label {
  margin-left: -4rem;
  top: -4px;
  float: left;
}

/* Header anchors (#) */
.header-anchor {
  color: #eef;
  padding: 0 0.5ex;
}

/* In-text horizontal rule */
.ui.divider.padded:not(.vertical) {
  margin: 3rem 0 2rem 0;
}

.ui.divider.dots:not(.vertical) {
  border: none;
}

.ui.divider.dots:not(.vertical):before {
  content: "...";
  text-align: center;
  display: block;
  font-size: 30px;
  letter-spacing: 0.6em;
  position: relative;
  top: -30px;
  opacity: 0.8;
}

/* Layout */
.MainWrapper {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}
.MainContent {
  margin: 6em auto;
  flex: 1;
}
.MainContent img {
  max-width: 100%;
}

#top-menu {
  max-width: 860px !important;
}

#top-menu .item:last-of-type:before {
  display: none;
}

#top-menu .item:last-of-type .header {
  color: inherit;
  text-transform: none;
}

#top-menu .username {
  color: #00b5ad;
}
.menu-colored, .Footer{
  background-color: #221c22 !important;
}
.Footer * {
  font-weight: normal;
  font-size: 12px !important;
  color: #FFF;
}
.Footer p {
  margin-top: 0.5em;
}
.Footer a:hover, .Footer a:active {
  color: #d8a53a;
}
.Footer a.social {
  vertical-align: middle;
  display: inline-block;
  margin-left: 16px;
  width: 28px;
  height: 28px;

  fill: white;
}
.Footer a.social.youtube {
  position: relative;
  z-index: 1;
}
.Footer a.social.medium {
  padding: 4px;
}
.Footer a.social.github {
  padding: 2px;
}
.Footer a.social.facebook {
  width: 24px;
  height: 24px;
}
.Footer a.social.twitter {
  width: 26px;
  height: 26px;
}
.Footer a.social:hover {
  transition: fill .2s, background-color .2s;
}
.Footer a.social.youtube:hover {
  fill: #f00;
}
/* a white background for YouTube arrow when hovering */
.Footer a.social.youtube:hover:after {
  content: "";
  display: block;
  background-color: white;
  position: absolute;
  z-index: -1;
  width: 12px;
  height: 12px;
  left: 8px;
  top: 8px;
}
.Footer a.social.facebook:hover
{
  background-color: white;
  border-radius: 10px;
  fill: #3B5998;
}
.Footer a.social.twitter:hover {
  fill: #1DA1F2;
}
.Footer a.social.github:hover {
  background-color: white;
  border-radius: 100%;
  fill: black;
}
.Footer a.social.medium:hover {
  background-color: white;
  fill: black;
}

.menu-colored > :nth-child(1) {
  /* skip logo */
}
.menu-colored > :nth-child(2) {
  border-bottom: 5px solid #626cb9;
}
.menu-colored > :nth-child(3) {
  border-bottom: 5px solid #d8a53a;
}
.menu-colored > :nth-child(4) {
  border-bottom: 5px solid #e56cd8;
}
.menu-colored > :nth-child(5) {
  border-bottom: 5px solid #759c0b;
}

.kerning-caps > .text {
  letter-spacing: 0.1em;
}

/* dropdown-dark */
.ui.menu .ui.dropdown .menu.dropdown-dark {
  background: #3d3e3f !important;
  color: #FFF !important;
}
.ui.menu .ui.dropdown .menu.dropdown-dark>.item {
  color: #FFF !important;
}
.ui.menu .ui.dropdown .menu.dropdown-dark>.item:hover, .ui.menu .ui.dropdown .menu.dropdown-dark>.selected.item {
  background: rgba(255,255,255,.1) !important;
}

.download-button-container {
  margin-bottom: 7px;
}

.registration-button-container {
  margin-bottom: 10px;
}

.skip-registration {
  color: #999;
  font-size: 12px;
}


/*
 * Main Page
 */

.MainPageContainer {
  width: 1000px;
  margin: 0 auto;
}

.IntroSection {
  position: relative;
  margin-top: 50px;
  width: 100%;
  height: 645px;
  background-image: url('/static/assets/main_page_intro_bg.png');
  background-position: center;
  background-repeat: no-repeat;
  background-color: #2a292a;
}
.IntroSection .title {
  font-size: 32px;
  margin-top: 40px;
  text-transform: uppercase;
  color: white;
}
.IntroSection .subtitle {
  font-size: 18px;
  margin-top: 30px;
  text-transform: uppercase;
  color: #4ed5ed;
}
.GetStartedButtonBg {
  position: absolute;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.85);
  width: 100%;
  padding: 20px;
  text-align: center;
}

.Section {
  background: #dddddd;
}
.Section .title {
  margin-top: 40px;
  margin-bottom: 30px;
  font-size: 28px;
  text-transform: uppercase;
}
.Section p {
  font-size: 18px;
  line-height: 1.5em;
  max-width: 750px;
  margin: 20px 0;
}
.Section p:last-child {
  margin-bottom: 30px;
}
.Section-dark {
  background: #2e2b2e;
}
.Section-dark .title {
  color: #37e2a6;
  font-size: 34px;
}
.Section-dark p {
  color: white;
}

.Section .title.accent {
  font-size: 48px;
  font-weight: bold;
  color: black;
}

.Section-dark .title.accent {
  color: #37e2a6;
}

.Figures {
  background: #313131;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}
.figure {
  display: inline-block;
  margin: 20px;
}

.open-source {
  float: left;
  margin-right: 30px;
}
.many-nodes {
  width: 100%;
  height: 390px;
  background-image: url('/static/assets/many_nodes_bg.png');
  background-position: center;
  background-size: cover;
}
.conclusion {
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  margin: 60px auto;
  max-width: 460px;
}

.RegistrationRequired {
  margin: 0 auto;
  max-width: 300px;
}

.auth-form-fields {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

#register-agreements label {
  margin-bottom: 2rem;
}

.register-button-container {
  text-align: center;
}

.icon-arduino {
  background: url("/static/arduino-logo.svg") no-repeat 50%;
  background-size: 100%;
  opacity: .9;
}

.icon-arduino:hover {
  opacity: 1;
}

.Profile, .ProfileEdit {
  box-shadow: none !important;
}

.Profile .content,
.Profile .extra.content,
.ProfileEdit .content,
.ProfileEdit .extra.content {
  border: none !important;
}

.ProfileEdit .header .image {
  cursor: pointer;
  position: relative;
}

.ProfileEdit .header #crop-upload,
.ProfileEdit .header #crop-cancel {
  cursor: pointer;
  position: absolute;
  right: -3rem;
  top: 0;
  visibility: hidden;
}

.ProfileEdit .header #crop-upload[data-visible=true],
.ProfileEdit .header #crop-cancel[data-visible=true] {
  visibility: visible;
}

.ProfileEdit .header #crop-cancel {
  top: 3rem;
}

.PatchDescription {
  margin: 10px 0;
}

.header + .header {
  margin-top: 0;
}
