/*! HTML5 Boilerplate v7.3.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */
/*IBM PLEX SANS FONT*/
@import url('https://fonts.googleapis.com/css?family=IBM+Plex+Sans:400,700i&display=swap');

/* Indie Flower font */
@import url('https://fonts.googleapis.com/css?family=Indie+Flower&display=swap');

/*Roboto font */
@import url('https://fonts.googleapis.com/css?family=Roboto&display=swap');

/* Rubik font */
@import url('https://fonts.googleapis.com/css?family=Rubik&display=swap');
* {
  box-sizing: border-box;
}
:root {
  --text-color: #212121;
  --background-color: rgb(230, 230, 230);
  --nav-color: #FFF;
  --card-color: #212121;
  --border-color: lightgrey;
  --card-text-color: white;
  --logo-color: #43a047;
  --sidenav-background: rgba(255, 255, 255, 0.75);
  --section-background: #FFF;
  --math-bg: #DCC7AA;
  --note-bg: #e2e2e2;
  --gist-bg: #f5f5f5;
  --ff-body: 'Roboto',
  sans-serif;

  --green-color: #43a047;
  --dark-green-color: #388e3c;
  --red-color: #f44336;
}

.darkmode {
   --text-color: #FFF;
   --background-color: #121212;
   --nav-color: #FFF;
   --card-color: #212121;
   --border-color: #303030;
   --card-text-color: #FFF;
   --logo-color: #FFF;
   --sidenav-background: rgba(12, 12, 12, 0.856);
   --section-background: #191c20;
   --math-bg: #283593;
   --note-bg: #2a2a2a;
   --gist-bg: #121212;
   --ff-body: 'Roboto',
   sans-serif;

   --green-color: #43a047;
   --red-color: #f44336;
   /*
  --ff-body: 'Rubik',
  sans-serif; */
}

body {
  font-size: 1rem;
  line-height: 1.4;
  font-family: var(--ff-body);
  background: var(--background-color);
  color: var(--text-color);
}

/* Scrollbar */
/* width */
::-webkit-scrollbar {
  width: 8px;
}

/* Track */
::-webkit-scrollbar-track {
  background-color: #222222;
  box-shadow: inset 0 0 5px rgb(39, 39, 39);
  border-radius: 0;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: rgb(49, 49, 49);
  border-radius: 0;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #353535;
}

/* Scrollbar end */

nav {
  background-color: var(--section-background);
  box-shadow: none !important;
  border-bottom: 1px solid var(--border-color);
}

nav i {
  color: var(--text-color);
}

.nav-wrapper {
  
}

.content-wrapper {
  width: 98%;
  margin-left: auto;
  margin-right: auto;
}

nav li a {
  font-size: 1.5rem;
  border-radius: 5px;
}

nav ul li {
  margin-left: 0;
  padding-left: 0.3rem;
  padding-right: 0.3rem;
}

nav ul li .icon {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

#logo {
  font-family: 'IBM Plex Sans',
  sans-serif;
  letter-spacing: 5px;
  color: var(--green-color);
  text-decoration: none;
}

nav ul a:hover {
  background-color: rgba(92, 92, 92, 0.4);
}

nav ul a:hover .icon {
  margin-top: -10%;
  transition: all 0.1s ease-in-out;  
}

.icon {
  width: 50px;
  height: 50px;
}

.darkmode-icon {
  width: 30px;
  height: 30px;
}

.material-tooltip {
  background-color: #242424;
  font-size: 1.2rem;
}

#dark-mode-toggle {
}

.switch i {
  line-height: 50px;
}

.switch label .lever {
  margin: 0 14px;
}


input[type=checkbox]:checked:not(:disabled)~.lever:active::before,
input[type=checkbox]:checked:not(:disabled).tabbed:focus~.lever::before {
  -webkit-transform: scale(2.4);
  transform: scale(2.4);
  background-color: rgba(83, 83, 83, 0.15);
}

.switch label input[type=checkbox]:checked+.lever:after {
  background-color: var(--green-color);
}

.switch label .lever:before,
.switch label .lever:after {
  transform: scale(1); /* Can change lever size */
  box-shadow: 0;
}

.switch label input[type=checkbox]:checked+.lever {
  background-color: var(--green-color);
}

label {
  font-size: 1rem;
  color: #9e9e9e;
}

.sidenav {
  background-color: var(--sidenav-background);
}

.sidenav li>a {
  color: var(--text-color);
  font-size: large;
  justify-content: space-between;
}

.sidenav li>a.btn,
.sidenav li>a.btn-large,
.sidenav li>a.btn-small,
.sidenav li>a.btn-large,
.sidenav li>a.btn-flat,
.sidenav li>a.btn-floating {
  margin: 20px 30px;
}

#close-sidenav-btn {
  border: 1px solid var(--green-color);
  background-color: rgba(109, 109, 109, 0.103);
  margin: 20px 30px;
}

#slide-out {}

#slide-out a {}

.responsive {
  width: 100%;
  height: auto;
}

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(16.5rem, 1fr));
  grid-auto-flow: row;
  overflow-x: scroll;
  grid-gap: 2rem;
  width: 100%;
  overflow-x: scroll;
  height: auto;
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-radius: 0.5rem;
  padding-left: 2rem;
  padding-right: 2rem;
  background: rgb(131, 58, 180);
  background: linear-gradient(90deg, rgba(131, 58, 180, 1) 0%, rgba(253, 29, 29, 1) 50%, rgba(252, 176, 69, 1) 100%);
}

.card {
  margin-left: auto;
  margin-right: auto;
  transition: all .15s ease-in-out;
}

.card img {
  height: 20vh;
}

.card-content, .card-content p {
  color: var(--card-text-color);
}

.card:hover {
  transform: scale(1.1);
  transition: all .175s ease-in-out;
}

.collapsible {
  border: var(--text-color);
}

.collapsible-header {
  border-top: 1px solid var(--text-color);
  border-bottom: 1px solid var(--text-color);
}

.collapsible-body {
  border-top: 1px solid var(--text-color);
  border-bottom: 1px solid var(--text-color);
}


.collection {
  border: 0;
}

.collection .collection-item {
  background-color: transparent;
  border: 0;
}

.collection a.collection-item {
  color: var(--text-color);
}

.collection .collection-item.active {
  color: var(--text-color);
  background-color: var(--section-background);
  border-left: 10px solid var(--green-color);
}

.collection a.collection-item:not(.active):hover {
  background-color: var(--green-color);
}

.dropdown-content {
  background-color: var(--background-color);
}

.dropdown-content li {
  background-color: var(--background-color);
  text-align: left;
}

.dropdown-content li:hover {
  background-color: var(--background-color);
  filter:brightness(150%);
  width: 100%;
}

.dropdown-content li>a,
.dropdown-content li>span {
  color: var(--green-color);
}

#main {
  margin-top: 3vh;
}

#course-nav {
  position: fixed;
  width: 15%;
  margin-top: 3vh;
}

#middle-content {
  background-color: var(--section-background);
  border-radius: 1rem;
  padding-left: 5rem;
  padding-right: 5rem;
  padding-top: 1rem;
  padding-bottom: 4rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

#middle-content a {
  font-size: 1.5em;
}

#middle-content a:hover {
  text-decoration: underline;
}

.container ul li {
  list-style: disc;
  margin-left: 2rem;
}
.content-box {
  background-color: var(--section-background);
  border-radius: 1rem;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.box {
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15),
  0 2px 2px rgba(0, 0, 0, 0.15),
  0 4px 4px rgba(0, 0, 0, 0.15),
  0 8px 8px rgba(0, 0, 0, 0.15);
  border-radius: 0.2em;
  margin-top: 0.2em;
  margin-bottom: 1.2em;
}

.section {

}

strong {
  color: #2196f3;
}

.img-section {
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem; 
}

.img-section img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

ol li {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.img-description {
  color: grey;
  font-size: 14px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.5rem;
  text-align: center;
  width: 90%;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.green-box {
  border: 1px solid var(--green-color);
  width: fit-content;
}

p {
  font-size: 1.3rem;
}

.flow-text {
  font-size: 1.3rem;
}

/* Github gist */

body .gist .gist-file {
  border: none;
  background-color: transparent;
}

body .gist .gist-data {
  overflow: auto;
  word-wrap: normal;
  background-color: transparent;
  border-radius: 3px;
  border: 1px solid;
  border-color: #616161;
}

body .gist tr, body .gist td {
  background-color: transparent;
  border: none;
}

body .gist .blob-num {
  color: var(--text-color);
}

body .gist .blob-code-inner {
  color: var(--text-color);
}

body .gist .pl-s {
  color: var(--text-color);
}

body .gist .blob-num:hover {
  color: red;
}

body .gist .pl-en {
  color: #e040fb;
}

body .gist .pl-c1 {
  color: #2196f3;
}

body .gist .highlight {
  background-color: var(--gist-bg);
}

body .gist .gist-meta {
  background-color: var(--gist-bg);
  color: var(--text-color);
  border-left: 1px solid #616161;
  border-right: 1px solid #616161;
  border-bottom: 1px solid #616161;
}

body .gist .gist-meta a {
  color: var(--green-color);
}

/* Gist end */

table.highlight>tbody>tr:hover {
  background-color: transparent;
  /* whatever color you want */
}

/*
td a {
  font-size: large;
  color: var(--green-color);
  text-decoration: underline;
}


table,
th,
td {
  font-weight: lighter;
  border: 1px solid var(--text-color);
  border-collapse: collapse;
  border-spacing: 0;
  overflow-x: auto;
}

tr:nth-child(even) {
  background-color: rgba(148, 148, 148, 0.281);
}

thead {
  background-color: var(--green-color);
  color: white;
}
*/

tr {
  border-bottom: 1px solid rgba(128, 128, 128, 0.25);
}

.math {
  background-color: var(--math-bg);
  padding: 10px;
  border-radius: 3px;
}

.note h5 {
  margin: 0;
  padding: 1rem;
  background-color: brown;
}

.note p {
  margin: 0;
  padding: 1rem;
  background-color: var(--note-bg);
}

a {
  color: var(--green-color);
}

.table-of-contents {
  position: fixed;
}

.table-of-contents a.active {
  color: var(--text-color);
}
/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
  display: none !important;
}

/*
* Hide only visually, but have it available for screen readers:
* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
*
* 1. For long content, line feeds are not interpreted as spaces and small width
*    causes content to wrap 1 word per line:
*    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
*/

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
* Extends the .sr-only class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
* Hide visually and from screen readers, but maintain layout
*/

.invisible {
  visibility: hidden;
}

/*
* Clearfix: contain floats
*
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
*    `contenteditable` attribute is included anywhere else in the document.
*    Otherwise it causes space to appear at the top and bottom of elements
*    that receive the `clearfix` class.
* 2. The use of `table` rather than `block` is only necessary if using
*    `:before` to contain the top-margins of child elements.
*/

.clearfix:before,
.clearfix:after {
  content: " ";
  /* 1 */
  display: table;
  /* 2 */
}

.clearfix:after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *:before,
  *:after {
    background: transparent !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }
  a,
  a:visited {
    text-decoration: underline;
  }
  a[href]:after {
    content: " (" attr(href) ")";
  }
  abbr[title]:after {
    content: " (" attr(title) ")";
  }
  /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */
  a[href^="#"]:after,
  a[href^="javascript:"]:after {
    content: "";
  }
  pre {
    white-space: pre-wrap !important;
  }
  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }
  /*
     * Printing Tables:
     * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
     */
  thead {
    display: table-header-group;
  }
  tr,
  img {
    page-break-inside: avoid;
  }
  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }
  h2,
  h3 {
    page-break-after: avoid;
  }
}

/* 
  ##Device = Laptops, Desktops
  ##Screen = B/w 1025px to 1280px
*/

/*iPad Pro */
@media (min-width: 1024px) and (max-width: 1280px) {

  #main {
    margin-top: 2vh;
  }

  #middle-content {
    padding-top: 1rem;
    padding-bottom: 4rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .container {
    width: 90%;
  }

  .card img {
    height: 15vh;
  }

  #logo {
    margin-left: 1rem;
  }
}

/* 
  ##Device = Tablets, Ipads (portrait)
  ##Screen = B/w 768px to 1024px
*/

@media (min-width: 768px) and (max-width: 1023px) {

  #main {
    margin-top: 0;
  }

  #logo {
    font-size: 1.2rem;
  }

  .table-of-contents {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  #middle-content {
    width: 80%;
    padding-left: 3rem;
    padding-right: 3rem;
    padding-bottom: 4rem;
    margin-top: 1vh;
  }

  .content-box {
    padding: 0;
  }

  .card img {
    height: 20vh;
  }
  
}
/* Media queries */
/* 
  ##Device = Tablets, Ipads (landscape)
  ##Screen = B/w 768px to 1024px
*/

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  #main {
    margin: 0;
  }

  #middle-content {
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 4rem;
    margin: 0;
  }

  .card img {
    height: 20vh;
  }

}

/* 
  ##Device = Low Resolution Tablets, Mobiles (Landscape)
  ##Screen = B/w 481px to 767px
*/

@media (min-width: 481px) and (max-width: 1023px) and (orientation: landscape) {

  #middle-content {
    width: 100%;
    padding: 1rem;
    margin: 0;
    padding-bottom: 4rem;
  }

  .card img {
    height: 30vh;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  #main {
    margin: 0;
  }
  #middle-content {
    width: 100%;
    padding: 1rem;
    margin: 0;
    padding-bottom: 4rem;
  }

  .card img {
    height: 25vh;
  }
}

@media (min-width: 481px) and (max-width: 767px) and (orientation: landscape) {

  #middle-content {
    width: 100%;
    padding: 1rem;
    margin: 0;
    padding-bottom: 4rem;
  }

  .card img {
    height: 35vh;
  }
}

/* 
  ##Device = Most of the Smartphones Mobiles (Portrait)
  ##Screen = B/w 320px to 479px
*/

@media (min-width: 320px) and (max-width: 480px) {
  body {
    background-color: var(--section-background);
  }
  #main {
    margin: 0;
  }
  #middle-content {
    width: 100%;
    padding: 1rem;
    margin: 0;
    padding-bottom: 4rem;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin: 0.5rem;
  }
}

/* For long vertical screens*/
@media (min-height: 800px) {
  .card img {
    height: 20vh;
  }
}
