
/******************************************************************************/
/* Global Styles */
/******************************************************************************/

:root {
  /* 
  --blue10: #5AF;
  --blue20: #1188fe;
  --blue30: #0065cb;
  --blue40: #048;
  --blue50: #036;
  */
  --blue10: #4096FF;
  --blue20: #3987E6;
  --blue30: #3070BF;
  --blue40: #204B80;
  --blue50: #102540;
  /* this is Chrome's color for checkboxes and radio buttons */
  --blue: #0075ff;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  overflow: hidden;

  color: #333;
  font-size: 14px;
  /* font-family: sans-serif; */
  font-family: 'Lucida Grande', monospace;
  /* Some weird feature where browsers adjust the size of h1, p, etc. when
  on a mobile browser. Setting this to none fixes the issue... */
  text-size-adjust: none;
  -webkit-text-size-adjust: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* @keyframes blue-pulse {
  0% {
    outline-color: var(--blue10);
    outline-style: solid;
    outline-width: 1px;
    outline-offset: -2px;
  }
  80% {
    outline-color: transparent;
    outline-style: solid;
    outline-width: 8px;
    outline-offset: 6px;
  }
  100% {
    outline-color: transparent;
    outline-style: solid;
    outline-width: 1px;
    outline-offset: -2px;
  }
} */

code {
  font-size: 12px;
  font-family: monaco, 'Courier New', monospace;
}

.mono {
  font-family: monaco, 'Courier New', monospace;
}

.no-color,
.no-color:active, .no-color:hover, .no-color:visited {
  color: transparent;
}

.cta {
  display: inline-block;
  
  min-width: 48px;
  min-height: 48px;
  height: 48px;

  padding: 12px;
  font-size: 24px;

  background-color: orange;
  color: var(--blue50) !important;
}

/******************************************************************************/
/* backround */
/******************************************************************************/
.bg {
  position: fixed;
  z-index: -99999;
  height: 100vh;
  width: 100vw;
  background: linear-gradient(225deg, rgb(154, 189, 239), rgb(7 71 184), rgb(13 39 96));
  background-position: center;
  background-repeat: no-repeat;
}

  .bg-image {
    z-index: -99999;
    transform: perspective(80rem) rotate3d(1, 1,-.75, 55deg) translateX(20%) translateY(20%) scale(2);
    filter: blur(.5px);
  }

/******************************************************************************/
/* Images */
/******************************************************************************/
img:hover {
  filter: none !important;
}

figure img {
  max-width: 100%;
}

/******************************************************************************/
/* Links */
/******************************************************************************/
a {
  color: var(--blue20);
  text-decoration: none;
}
a:active, a:hover, a:visited {
  color: var(--blue30);
}


/******************************************************************************/
/* Buttons */
/******************************************************************************/
button {
  min-width: 48px;
  min-height: 48px;
  width: max-content;
  height: 48px;
  /* padding: 0 24px; */
  /* margin-left: 5px; */
  /* margin-right: 5px; */

  /* background: #3992c6; */
  /* background: var(--blue20); */
  background: var(--blue40);
  color: #FFF;
  /* border-radius: 5px; */
  /* border: 1px solid #ddd; */
  border: none;
  font-size: 14px;
  font-family: 'Lucida Grande', monospace;
  text-wrap: nowrap;

  cursor: pointer;
}

button.p {
  padding: 0 24px;
}

button:disabled {
  cursor: not-allowed;
  background: #888;
}

/******************************************************************************/
/* Inputs */
/******************************************************************************/
input, select {

  padding: 0;
  margin: 0;
  border-radius: 0;

  border: none;
  background-color: transparent;
  color: #333;
  accent-color: var(--blue40);
  outline-color: var(--blue10);
  font-size: 14px;
  /* font-family: sans-serif; */
  font-family: 'Lucida Grande', monospace;
  /* -webkit-appearance: none; */
}

input::placeholder {
  color: #ccc;
}

input:invalid,
textarea:invalid,
select:invalid {
  /* border: 1px solid #8f0000; */
  /* background: #8f0000; */
  /* text-decoration: dashed underline #bd2e2e; */
  text-decoration: dashed underline 2px #ffa303;
  text-underline-offset: 2px; 
}

input:disabled,
textarea:disabled,
select:disabled {
  opacity: 1;
  color: #aaa;
  -webkit-text-fill-color: #aaa;
}

/* input:focus,
select:focus {
  animation: blue-pulse 2s linear infinite;
} */

/******************************************************************************/
/* Tables */
/******************************************************************************/
table {
  border-collapse: collapse;
}

.table {
  background-color: #fff;
  border: 1px solid #bbb;
}

.table th,
.table td {

  padding: 6px;

  border-top: 1px solid #bbb;
  border-bottom: 1px solid #bbb;
  border-left: 1px solid #bbb;
  border-right: 1px solid #bbb;
}

.table th {
  background-color: #ddd;
}

.table tr:hover {
  background-color: #eee;
}

/******************************************************************************/
/* Lists */
/******************************************************************************/
ul.comma {

  padding: 0;
  margin: 0;

  display: inline;

  list-style: none;
}
ul.comma li {
  display: inline
}
ul.comma li:not(:last-child):after {
  content: ', '
}

/******************************************************************************/
/* 850px or less */
/******************************************************************************/
@media (max-width: 850px) {

  .bg-image {
    transform: perspective(80rem) rotate3d(1, 1,-.75, 55deg) translateX(20%) translateY(40%) scale(4);
    filter: blur(.25px);
    /* transform: perspective(70rem) rotate3d(1, 1,-.75, 55deg); */
  }

}

.banner-ad {
  display: block;
  width: 320px;
  height: 100px;
}
@media(min-width: 500px) {
  .banner-ad {
    width: 468px;
    height: 60px;
  }
}
@media(min-width: 800px) {
  .banner-ad {
    width: 728px;
    height: 90px;
  }
}

/******************************************************************************/
/* Course
/******************************************************************************/

.course {
  display: grid;
  grid-template-columns: 265px 1fr;
  grid-template-rows:
    60px 
    1fr 
    40px 
    200px;
  grid-template-areas: 
    "toc menu"
    "toc article"
    "footer footer"
    "ads ads";

  font-size: 18px;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;

  transition: grid-template-columns .15s ease-out;
}
.course.closed {
  grid-template-columns: 0px 1fr;
}

/******************************************************************************/
.course-toc {
  grid-area: toc;
  
  overflow: auto;

  padding: 20px;
  border-right: 2px solid #ccc;
  /* opacity: 1; */

  transition: padding .15s ease-out;
}
.course.closed .course-toc {
  padding: 0;
}

.course-toc h1 {
  margin: 0;
}

.nav-toggle {
  width: 50px;
  height: 50px;
  padding: 0;

  font-size: 36px;
  /* color: var(--blue40); */
  color: #333;
  background: none;
}

.course-toc li .selected {
  font-weight: bold;
}

/******************************************************************************/
.course-menu {
  grid-area: menu;
  display: flex;
  align-items: center;

  overflow: auto;

  margin: 0;
  padding: 4px;

  border-bottom: 2px solid #ccc;
}

/******************************************************************************/
.course-article {
  grid-area: article;

  padding: 20px;

  overflow: auto;
}

/******************************************************************************/
.course-footer {
  grid-area: footer;

  align-items: center;
  padding: 5px;

  border-top: 2px solid #ccc;
  border-bottom: 2px solid #ccc;
}

/******************************************************************************/
.course-ads {
  grid-area: ads;
}

