﻿@font-face {
  font-family: "Intel One Mono";
  src: url(../intelone-mono-font-family-regular.woff);
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Intel One Mono";
  src: url(../intelone-mono-font-family-bold.woff);
  font-weight: bold;
  font-style: normal;
}

@font-face {
  /* sans-serif */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../KFOmCnqEu92Fr1Mu4mxK.woff2) format('woff2');
}

@font-face {
  /* sans-serif */
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../KFOkCnqEu92Fr1Mu51xIIzI.woff2) format('woff2');
}

@font-face {
  /* sans-serif */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../KFOlCnqEu92Fr1MmWUlfBBc4.woff2) format('woff2');
}

@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../u-440qyriQwlOrhSvowK_l5-fCZM.woff2) format('woff2');
}

@font-face {
  font-family: "Intel One Mono";
  src: url(../intelone-mono-font-family-italic.woff);
  font-weight: normal;
  font-style: italic;
}


/****************************************
    Document Wide Constants
****************************************/
:root {
  --background-color: #FEFEFE;
  --color: #333;
  --margin-left: 2rem;
  --margin-right: 2rem;
  --col-breakpoint: 700px;
  --col-max-point: 3000px;
}

/***************************
    html (Document) Styling
***************************/
html {
  margin-left: var(--margin-left);
  margin-right: var(--margin-right);
  background-color: var(--background-color);
  color: var(--color);
  font-size: 100%;
  font-family: Merriweather, serif;
}

@media (min-width: 1100px) {
  html {
    font-size: calc(100% + 1px); 
  }
}

@media (min-width: 1501px) {
  html {
    font-size: calc(100% + 4.00px);
  }
}

/***************************
    flexbox columns
***************************/
.column-wrap {
  display: flex;
  flex-direction: column;
}

.tutorial-links {
  font-size: 0.9rem;
  line-height: 0.8rem;
  margin: 1rem 0;
  font-family: Roboto, sans-serif;
  padding-left: 1.5rem;
}

details summary { 
  cursor: pointer;
}

summary::marker {
  color: chocolate;
}

@media (min-width: 700px) {
  .column-wrap {
    flex-direction: row-reverse;
    align-items: flex-start;
  }
  .align-links {
    flex: 1 1 50%;
    padding-left: 1.5rem;
    border-style: solid solid none solid;
    border-width: thin;
    border-color: lightgray;
  }
  .align-article {
    flex: 1 1 50%;
    overflow: auto;
    /*padding-left: 1.5rem;*/
    padding-left: 1rem;
    border-style: solid none solid solid;
    border-width: thin;
    border-color: lightgray;
    background-color: whitesmoke;
  }
  summary.summary-padding {
  padding-left: 0.5rem;
  }
  div.tutorial-links {
    padding-left: 2rem;
  }
  a.tutorials {
    font-size: 95%;
    padding: 0;
    text-decoration: none;
  }
  a:link.tutorials {
    color: dodgerblue;
  }
 a:visited.tutorials {
    color: mediumpurple;
  }
  details.tutorials {
    font-size: 95%;
  }
  .summary-color {
    color: peru;
  }
}

@media (min-width: 1100px) {
  .column-wrap {
    justify-content: center;
    align-items: flex-start;
  }
  .align-links {
    flex: 0 0 calc(1000px * 0.50);
/*    border-style: solid none solid solid;*/
    padding-right: 10px;
  }
  .align-article {
/*    border-style: solid solid none solid;*/
    border-width: thin;
    border-color: lightgray;
    flex: 0 0 calc(1000px * 0.50);
    padding-right: 0px;
  }
  a.tutorials {
    font-size: 95%;
  }
   details.tutorials {
    font-size: 95%;
  }
}

@media (min-width: 1501px) {
  .column-wrap {
    justify-content: center;
    align-items: flex-start;
  }
  .align-links {
    flex: 0 0 calc(1400px * 0.50);
/*    border-style: solid none solid solid;*/
  }
  .align-article {
/*    border-style: solid solid none solid;*/
    border-width: thin;
    border-color: lightgray;
    /*flex: 0 0 calc(1280px * 0.50);*/
    flex: 0 0 calc(1400px * 0.50);
    padding-right: 3rem;
  }
  a.tutorials {
    /*font-size: 85%;*/
    font-size: 95%;
  }
   details.tutorials {
    /*font-size: 85%;*/
    font-size: 95%;
  }
}

/*************************************************************
    Hide/show "MicroPython Tutorial Links" in "contents" block
**************************************************************/
a.is-disabled {
  display: inline-block;
}

li.is-disabled {
  list-style:inherit;
}

@media (min-width: 700px) {
  a.is-disabled {
    display: none;
  } 

  li.is-disabled {
    list-style: none;
  }
}

/***************************
    Fonts
***************************/
p {
  line-height: 1.54375rem; 
}

q, cite {
  font-family: Roboto, sans-serif;
  font-size: 0.98rem;
}

blockquote {
  font-family: Roboto, sans-serif;
  font-size: 1.05rem;
  padding-right: 10px;
  padding-left: 10px;
  background-color:rgb(251, 251, 251);
}

h1, h2, h3, h4, nav, aside, summary, ul li {
    font-family: Roboto, sans-serif;
    color: black;
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.75rem;
}

@media (min-width: 700px) {
  h2.tutorial-links-heading{
    font-size: 1.5rem;
    /*color: rgb(117, 117, 117);*/
    color: black;
  }
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1rem;
}

li {
  font-size: 1.05rem;
  line-height: 1.4rem;
  margin: 1rem 0;
}

ol li {
  line-height: 1.5rem;
}

/* Make list numbers bold */
ol ::marker {
  font-weight: bold;
}

/* Unordered list with no bullets */
.nobull {
  list-style-type: none;
}

.contents {
  font-family: Roboto, sans-serif; 
  font-size: 1.02rem;
  margin: 1rem 0;
  padding: 0;
}

details.gap {
  margin-top: 1em;
}

.example, code, pre {
  font-family: "Intel One Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.25rem;
  color: black;
}

var {
  font-family: "Intel One Mono", monospace;
  font-size: 1.05rem;
}

samp {
  font-family: "Intel One Mono", monospace;
  font-size: 0.95rem;
  line-height: 1.25rem;
  color: black;
}

mark {
  font-family: "Intel One Mono", monospace;
  line-height: inherit;
}

aside {
  line-height: 1.275rem;
}


sup {
  font-family: Roboto, sans-serif;
}

/********************************
     Menu Bar Styling
*********************************/

.menu {
  font-size: 1rem;
  min-height: 2.7rem;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  padding: 0 1rem;
}

.menu:last-child {
  padding: 0;
}

.menu_item {
  margin-right: 1rem;
  font-size: 110%;
}

a:link.menu_link {
    color: rgb(0, 0, 0, .7);
    text-decoration: none;
  }
 a:visited.menu_link {
    color: rgb(0, 0, 0, .7);
    text-decoration: none;
  }

.first_menu_item {
  margin-right: 0;
}

.last_menu_item {
  margin-right: auto;
}

.menu_item_hide {
  visibility: visible;
  color: black;
  flex-grow: 1;
  font-family: Roboto, sans-serif;
  text-align: center;
}

.menu_item_border {
  border: none;
  background-color: yellow;
  font-size: 75%;
  font-weight: bold;
}

.logo_size {
  height: 25px;
  width: auto;
}

/* Dropdown Menu styling */
.dropbtn {
  background-color: var(--background-color);
  font-family: Roboto, sans-serif;
  color: black;
  padding: 0px;
  width: 15px;
  border: none;
  cursor: pointer;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  font-size: 90%;
  background-color: #f1f1f1;
  min-width: 280px;
  overflow: auto;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 6px 16px;
  text-decoration: none;
  display: block;
}

.dropdown a:hover {background-color: #ddd;}

.show {display: block;}

@media (min-width: 420px) {
  .logo_size {
  height: 30px;
  width: auto;
  }
}

@media (min-width: 750px) {
  .logo_size {
  height: calc(65px + 1vw);
  width: auto;
  }
}

@media (min-width: 420px) {
  .menu_item_border {
    border-top: 3px solid red;
    border-bottom: 3px solid red;
    background-color: rgba(244, 244, 243, 0.862);
    font-weight: normal;
  }
}

@media (min-width: 750px) {
  .menu_item_border {
    padding: 3px 8px 3px 8px;
    font-size: 80%;
  }
}

@media (min-width: 900px) {
  .menu_item_border {
    font-size: 100%;
  }
}

@media (min-width: 1024px) {
  .menu_item_hide {
    visibility: visible;
  }
  .menu_item_border {
  padding: 15px 30px 15px 30px;
  font-size: 120%;
  }
}

@media (min-width: 700px) {
  .menu {
    min-height: 3.5rem;
  }
  .menu_item {
    margin-right: 2.5rem;
  }
  .dropdown-content {
    font-size: 100%;
  }
  .menu_item_hide {
    visibility: visible;
  }
}

@media (min-width: 800px) {
.menu_item {
  font-size: 140%;
}
}

@media (min-width: 1024px) {
  .menu_item_hide {
    visibility: visible;
  }
.menu_item {
  font-size: 150%;
}
}

@media (min-width: 1501px) {
  .menu_item {
  margin-right: 115px;
}
.first_menu_item {
  margin-right: calc(20px + (100vw - 1501px) / 2);
}
.last_menu_item {
  margin-right: auto;
  margin-left: calc(1px + (100vw - 1501px) / 2);
}
.logo_size {
  height: 100px;
  width: auto;
  }
}

/***************************************
    Previous/Next styling
****************************************/

.previous-next-wrapper {
  font-size: 1rem;
  display: flex;
  height: 5rem;
  align-items: center;
}

.previous {
  margin-top: 10px;
  margin-bottom: 10px;
}

.next {
  margin-left: auto;
  margin-top: 10px;
  margin-bottom: 10px;
}

a:link.previous-next-link, a:visited.previous-next-link { 
  color: #787F83;
  text-decoration: none;
}

/*********************************************
        a styling
*********************************************/
a:link.no-underline, a:visited.no-underline { 
  text-decoration: none;
  color: var(--color)
}

a:hover.no-underline { 
  text-decoration: underline;
  color: #0044cc
}

/****************************************
    section styling
****************************************/
section.last {
  padding-bottom: 2rem;
}

/****************************************
    footer styling
****************************************/
footer {
  padding: 10px;
 /* background: #4C4C4C;*/
  background: #303030;
  color: white;
  font-size: 0.7em;
}

footer a {
  color: white;
  text-decoration: none;
}

footer p {
  color: yellow;
  padding: 0;
  line-height: 0
}

footer div {
  margin-left: 20px;
  line-height: 1.5em;
}

.foot {
  margin-top: 30px;
  text-align: center;
  font-size: 1.5em;
}

.email {
  margin-top: 26px;
  font-size: 0.9em;
  font-family: Roboto, sans-serif;
  opacity: 0.35;
}

.microbit-series {
  margin-left: 10px;
}

/****************************************
    table styling
****************************************/
table {
  border-collapse: collapse;
  border-color: grey;
  caption-side: bottom;
  margin-left: auto;
  margin-right: auto;
}

.no_striping tr:nth-child(odd) {
  background-color: var(--background-color);
}

.first_col_shading {
  background-color: #FAFAF0;
}

.first_row_shading {
  background-color: #FAFAF0;
}

tbody tr:nth-child(odd) {
  background-color: #EEE;
}

td {
  border: 1px solid #999;
  padding: 0.5rem;
  text-align: left;
}

td.center {
  text-align: center;
}

td p {
  line-height: 1.29rem;
}

th {
  border: 1px solid #999;
  padding: 0.5rem;
  text-align: center;
}

.no_row_shading {
  background-color: #FAFAF0 !important;
  text-align: left;
  font-weight: bold;
  color: #307DEF;
}

caption {
   text-align:left;
   padding: 0.5rem;
}

/****************************************
    img styling
****************************************/

figure.vertical-space,
table.vertical-space,
aside.vertical-space,
p.vertical-space {
  margin-top: 50px;
  margin-bottom: 50px;
}

img.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  background-color: ivory;
}

img.center-graphic, div.center-graphic {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

img.width-size {
  width: clamp(300px, 1px + 80vw, 100%);
}

figcaption.center {
  text-align: center;
  padding-top: 7px;
}

img.frame {
  border: 1px solid silver;
  border-radius: 25px;
  padding: 5px 5px 5px 5px;
}

img.frame-no-padding {
  border: 1px solid #555;
  padding: 0 0 0 0;
}

img.frame-repl {
  margin-left: 2ch;
  border: 2px solid #2295CD;
  padding: 10px 10px 10px 10px;
  background-color:#F9F9F9;
  width: 25vw;
}

img.size {
  width: 60%;
  height: auto;
}

img.biggersize {
  width: 75%;
  height: auto;
}

img.bigsize {
  width: 100%;
  height: auto;
}

/****************************************
    p styling
****************************************/
p.indent {
  text-indent: 1.5vw;
}

p.exdent {
  text-indent: -2vw;
}

p.example-code {
  margin-left: auto;
  margin-right: auto;
  display: table;
  padding: 10px;
  background-color: #EEEEEE;
}

div.scroll-bars {
    overflow: auto;
}

/****************************************
    pre styling
****************************************/
pre {
  overflow: auto;
}

.shade {
  background-color: #F6F6F6;
  border-style: solid;
  border-width: thin;
  border-color: rgb(0, 0, 0, .1);
  padding-left: 5px;
}

/****************************************
    title styling
****************************************/

h1 {
  padding: 30px;
  text-align: center;
  background: #1abc9c;
  color: white;
  border-style: solid;
  border-color: lightgray;
  border-radius: 12px;
}

/*** title flexbox ***/

.title-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.title-item {
  width: 100%;
}

/*
@media (min-width: 1501px) {
  .title-item {
    flex: 0 0 1437px;
  }
}
*/


@media (min-width: 1901px) {
  .title-item {
    flex: 0 0 1900px;
  }
}


/****************************************
    aside styling
****************************************/

aside {
  margin-left: 1rem;
  margin-right: 2rem;;
  border-left:3px solid #DDDDDD;
}

aside.reference {
  padding-left: 2.2ch;
}

/****************************************
    mark styling
****************************************/
mark {
  background-color: inherit;
  color: #DC143C;
}

/****************************************
    var styling
****************************************/

var {
  font-style: normal;
  color: #0044cc;
}

/****************************************
    span styling
****************************************/

span.output {
  color: #0044cc;
}

span.comment {
  color: green;
}

span.left {
  margin-left: 3rem;
}

span.small-caps {
  font-variant: small-caps;
}

span.draw-border {
  border-style: solid;
  border-color: rgb(208, 208, 208);
  padding: 10px 15px 10px 15px;
  background-color:rgb(246, 246, 246);
}

/****************************************
    abbr styling
****************************************/

abbr {
  text-decoration-color:orangered /* underline color */
} 

/****************************************
    sup styling
****************************************/

sup.reference {
  color: blue;
}

sup.indent {
  margin-left: -1rem;
}

/* Prevent superscripts and subscripts from affecting Line-Height */
sup, sub {
  vertical-align: baseline;
  position: relative;
  top: -0.4em;
}
sub { 
  top: 0.4em; 
}

/****************************************
        Highlight a special item
****************************************/

.highlight {
  font-family: 'Intel One Mono', monospace;
  background-color:rgb(218, 218, 217);
  border: 1px solid lightgrey;
}

/***************************
 Menu dropdown list styling
***************************/
.main-menu-heading{
  font-size: 0.9rem;
  text-align: center;
  color: grey;
}

a.drpdwn {
  font-size: 95%;
  padding: 0;
  text-decoration: none;
}

a:link.drpdwn {
    color: dodgerblue;
  }
a:visited.drpdwn {
  color: mediumpurple;
}
details.drpdwn {
  font-size: 85%;
  line-height: 1.8rem;
}  

.summary-menu-color {
  color: peru;
}

summary.summary-padding {
  padding-left: 0.5rem;
  line-height: 1.5rem;
}

.drpdwn-links {
  font-size: 0.9rem;
  line-height: 0.8rem;
  margin: 1rem 0;
  margin: 0.8rem 0;
  font-family: Roboto, sans-serif;
  line-height: 0.8;
  padding-left: 1.1rem;
}

/****************************************
    hr styling
****************************************/

.light {
  border-color: rgb(0, 0, 0, .1);
}

/****************************************
    generic styling
****************************************/

/* Move first character of block left by one em */
.move-left::first-letter {
  margin-left: -1em;
}

.left {
  margin-left: -1rem;
}

#window-size {
  display: none; /* inherit or none */
}