@import url("https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Bree+Serif&family=Fira+Code:wght@300;400;500;600;700&family=Noto+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap");

:root {
  /*Customize*/
  --body-bgcolor: rgb();
  --accent-color: rgb(163, 73, 164);
  --accent-semitransparent: rgba(163, 73, 164, 0.7);
  --accent-light: rgb(184, 82, 185);
  --accent-lighter: rgb(216, 99, 218);
  --accent-dark: rgb(138, 70, 138);
  --accent-darker: rgb(73, 35, 73);

  --shade-red: rgb(223, 1, 1);
  --shade-red-dark: rgb(189, 15, 15);

  --shade-green: rgb(0, 207, 0);
  --shade-green-dark: rgb(0, 182, 0);

  --shade-blue: rgb(70, 70, 255);
  --shade-blue-dark: rgb(0, 0, 165);

  --border-color: rgb(212, 212, 212);
  --border-radius: 5px;

  --text-color: rgb(10, 10, 10);
  --link-color: rgb(0, 116, 170);
  --link-hover-color: rgb(2, 83, 83);
  --accent-text: #ffffff;

  --serif-font: "Noto Serif"; /*Serif*/
  --sans-serif-font: "Ubuntu", sans-serif; /*Sans-serif*/
  --code-font: "Fira Code", monospace; /*Monospace*/

  --code-color: rgb(86, 185, 252);
  --code-bgcolor: rgb(31, 31, 31);
  --code-label-color: rgb(255, 117, 117);

  --tooltip-color: rgb(255, 255, 255);
  --tooltip-bgcolor: rgba(0, 0, 0, 0.9);

  --navbar-text-color: rgb(255, 255, 255);
  --navbar-height: 70px;
  --navbar-type: fixed;
  /*Choose whether you want your navbar to be fixed or hide on scroll 
   options: fixed or absolute;
   */

  --background-blur: 5px;
  --aside-width: 200px;

  --actual-viewport-width: calc(100vw - var(--default-scrollbar-width));

  font-size: calc(1em - 1px);

  /*!Don't dare to touch the following variables, it will break stuff!*/
  --default-scrollbar-width: 0px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  padding: 0;
  margin: 0;
  width: 100vw;
  max-width: 100vw;
  min-height: 100vh;
  font-family: var(--sans-serif-font);
  font-size: 1rem;
  color: var(--text-color);
  scrollbar-color: var(--accent-color) var(--accent-text);
  scrollbar-width: normal;
  display: inline-block;
  /* overflow-y: scroll; */
  overflow-x: hidden;
}

.modal-overlay {
  position: fixed;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(var(--background-blur));
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1010;
  visibility: hidden;
  opacity: 1;
  pointer-events: none;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  height: 0;
}
.modal-overlay:target {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  height: 100%;
}
.modal-overlay > .modal {
  width: 500px;
  max-width: 90%;
  height: auto;
  max-height: 60%;
  overflow-y: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  padding: 1rem;
  background: #ffffff;
  border-radius: var(--border-radius);
}

.modal-overlay h1 {
  font-size: 2rem;
  margin: auto auto 1rem 1rem;
}

.modal p,
.modal .text {
  margin: auto;
}

.modal-close {
  color: #aaa;
  font-size: 2rem;
  position: fixed;
  right: 0;
  text-align: center;
  top: 1rem;
  margin-right: 1rem;
  text-decoration: none;
}
.modal-close:hover {
  color: black;
  text-decoration: none;
}

.container {
  margin-top: calc(var(--navbar-height) + 1.2rem);
  margin-left: calc(var(--aside-width) + 20px);
  margin-right: auto;
  max-width: 100vw;
}

section {
  height: 100vh;
}

.hero-section {
  background: linear-gradient(var(--accent-color), var(--accent-lighter));
  background: var(--accent-color)
    url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/162656/city.jpg) no-repeat
    center / cover;
  background-attachment: fixed;
  background-size: cover;
  background-blend-mode: luminosity;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-container {
  background-color: var(--accent-semitransparent);
  backdrop-filter: blur(var(--background-blur));
  padding: 2rem;
  border-radius: var(--border-radius);
}

.hero-container p {
  color: var(--accent-text);
  font-size: 1.5rem;
}

.hero-container h1 {
  color: var(--accent-text);
  font-size: 3rem;
}

.hero-container .btn {
  background-color: #fff;
  border: 3px solid var(--accent-text);
  color: var(--accent-color);
  margin: 10px;
}

.hero-container .btn.btn-secondary {
  color: var(--accent-text);
  border: 3px solid var(--accent-text);
}

.hero-container .hero-cta {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap-reverse;
}

footer {
  min-height: var(--navbar-height);
  background-color: var(--border-color);
  width: 100vw;
  height: auto;
  color: var(--text-color);
  margin: 0px;
  padding: 0px;
}

footer p {
  color: var(--text-color);
  font-size: 1rem;
}

blockquote {
  border-left: 4px solid var(--accent-color);
  padding-left: 1rem;
  margin-left: 5px;
  font-family: var(--serif-font);
}

.highlight {
  background-color: var(--accent-color);
  color: var(--accent-text);
  padding: 0.4rem;
  border-radius: var(--border-radius);
}

[data-tooltip] {
  text-decoration: underline dotted;
  position: relative;
  cursor: default;
}

[data-tooltip]::after {
  visibility: hidden;
  opacity: 0;
  transform: translateY(1rem);
  content: attr(data-tooltip);
  position: absolute;
  width: 10rem;
  height: auto;
  left: calc(50% - 5rem);
  bottom: 70%;
  padding: 0.5rem;
  text-align: center;
  border-radius: var(--border-radius);
  background-color: var(--tooltip-bgcolor);
  color: var(--tooltip-color);
  font-weight: 400;
  transition: all 0.4s;
}

[data-tooltip]:hover::after,
[data-tooltip]:active::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hidden {
  display: none;
}

.noselect {
  user-select: none;
}

.center-align {
  text-align: center;
}
.right-align {
  text-align: right;
}
.left-align {
  text-align: left;
}
.serif {
  font-family: var(--serif-font);
}
.sans-serif {
  font-family: var(--sans-serif-font);
}
.monospace {
  font-family: var(--code-font);
}

.semitransparent {
  background-color: rgba(0, 0, 0, 0.5);
}

.fl-embed {
  max-width: 100px;
  transform: translateY(20px);
}

ul {
  list-style-type: square;
}

p,
.text {
  margin: 20px;
  color: var(--text-color);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

p img,
.text img {
  max-width: 90%;
  margin-bottom: 1rem;
  margin-top: 1rem;
  margin-left: 0;
}

p.hero-text,
.text.hero-text {
  font-size: 2rem;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

a:hover {
  color: var(--link-hover-color);
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--accent-darker);
  margin: 20px;
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-weight: normal;
  /* border-bottom: 1px solid var(--border-color); */
}

@media screen and (min-width: 768px) {
  p,
  .text {
    max-width: 60vw;
    margin: auto;
  }
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    max-width: 60vw;
    margin: auto;
  }
}

hr {
  width: 60%;
  border: none;
  background-color: var(--border-color);
  height: 3px;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

::selection {
  background-color: var(--accent-color);
  color: var(--accent-text);
}

code {
  overflow: auto;
  background-color: var(--code-bgcolor);
  color: var(--code-color);
  font-family: var(--code-font);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border-radius: var(--border-radius);
  line-height: 1.5rem;
}

code .comment {
  opacity: 0.7;
}

pre.code {
  width: 80%;
  background-color: var(--code-bgcolor);
  color: var(--code-color);
  padding: 10px;
  overflow: auto;
  margin-left: auto;
  margin-right: auto;
  font-family: --code;
  border-radius: var(--border-radius);
}

pre.code[data-lang]::before {
  content: attr(data-lang);
  display: block;
  font-family: var(--code-font);
  color: var(--code-label-color);
  text-align: left;
  font-size: 1rem;
  user-select: none;
}

code::selection,
pre.code::selection {
  background-color: rgba(102, 102, 102, 0.5);
  color: var(--code-color);
}

pre.code .line-number {
  display: block;
}

pre.code .line-number {
  float: left;
  margin: 0 1em 0 -1em;
  border-right: 1px solid;
  text-align: right;
  line-height: 1.5rem; /*Should be same as line height for <code element>*/
  opacity: 0.5;
  user-select: none;
}

pre.code .line-number span {
  display: block;
  padding: 0 0.5em 0 1em;
}

pre.code .cl {
  display: block;
  clear: both;
}

/*Custom Scrollbar for WEbkit browsers*/
/* width */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: var(--accent-text);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-dark);
}

.btn {
  background-color: var(--accent-color);
  border: 3px solid var(--accent-color);
  color: var(--accent-text);
  padding: 10px 20px 10px 20px;
  font-size: 1.2rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  margin: 0.5rem;
}

.btn:hover {
  background-color: var(--accent-dark);
  border: 3px solid var(--accent-dark);
  color: var(--accent-text);
  text-decoration: none;
}

.btn.btn-secondary {
  background-color: transparent;
  color: var(--accent-color);
}

.btn.btn-secondary:hover {
  border: 3px solid var(--accent-dark);
  background-color: var(--accent-dark);
  color: var(--accent-text);
}

.btn.btn-block {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.btn.btn-pill {
  border-radius: 30px;
}

.btn.btn-green {
  background-color: var(--shade-green);
  border: 3px solid var(--shade-green);
}

.btn.btn-green:hover {
  background-color: var(--shade-green-dark);
  border: 3px solid var(--shade-green-dark);
}
.btn.btn-red {
  background-color: var(--shade-red);
  border: 3px solid var(--shade-red);
}
.btn.btn-red:hover {
  background-color: var(--shade-red-dark);
  border: 3px solid var(--shade-red-dark);
}

.btn.btn-blue {
  background-color: var(--shade-blue);
  border: 3px solid var(--shade-blue);
}
.btn.btn-blue:hover {
  background-color: var(--shade-blue-dark);
  border: 3px solid var(--shade-blue-dark);
}

*:disabled,
.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.checkbox-input {
  display: none;
}

.checkbox-box {
  width: 1.2rem;
  height: 1.2rem;
  margin-right: 0.5rem;
  border: 0.2rem solid var(--accent-color);
  border-radius: calc(var(--border-radius) / 2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease-in-out;
}

.checkbox:hover > .checkbox-box {
  border: 0.2rem solid var(--accent-light);
  background-color: var(--accent-light);
}

.checkbox-box::after {
  content: "\2714";
  font-size: 0.8rem;
  color: transparent;
  transform: scale(0);
  transition: all 0.2s ease-in-out;
  user-select: none;
}

.checkbox-input:checked + .checkbox-box {
  background-color: var(--accent-color);
}

.checkbox:hover > .checkbox-input:checked + .checkbox-box {
  background-color: var(--accent-light);
}

.checkbox-input:checked + .checkbox-box::after {
  transform: scale(1);
  color: var(--accent-text);
}

.radio {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.radio-input {
  display: none;
}

.radio-radio {
  height: 1.2rem;
  width: 1.2rem;
  border-radius: 50%;
  margin-right: 0.5rem;
  border: 0.2rem solid var(--accent-color);
  transition: all 0.2s ease-in-out;
}

.radio:hover > .radio-radio {
  border: 0.2rem solid var(--accent-light);
}

.radio:hover > .radio-input:checked + .radio-radio {
  border: 0.4rem solid var(--accent-light);
}

.radio-input:checked + .radio-radio {
  border: 0.4rem solid var(--accent-color);
}

.toggle {
  --width: 3rem;
  --height: calc(var(--width) / 2);
  --toggle-border-radius: calc(var(--height) / 2);

  display: inline-flex;
  cursor: pointer;
}

.toggle-input {
  display: none;
}

.toggle-input:checked + .toggle-switch {
  background-color: var(--accent-color);
}

.toggle-switch {
  position: relative;
  width: var(--width);
  height: var(--height);
  border-radius: var(--toggle-border-radius);
  background-color: var(--border-color);
  margin-right: 1rem;
  transition: all 0.2s;
}

.toggle:hover > .toggle-switch {
  box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.3);
}

.toggle-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  height: calc(var(--height) - 6px);
  width: calc(var(--height) - 6px);
  border-radius: var(--toggle-border-radius);
  background-color: var(--accent-text);
  transition: all 0.2s;
}

.toggle-input:checked + .toggle-switch::after {
  transform: translateX(var(--height));
}

.text-input {
  width: 80%;
  border: none;
  border: 2px solid var(--border-color);
  padding: 10px 20px 10px 20px;
  font-size: 1.2rem;
  border-radius: var(--border-radius);
  transition: all 0.2s ease-in-out;
  margin: 0.5rem auto 0.5rem auto;
}

.text-input:focus {
  border: 2px solid var(--accent-color);
  outline: none;
}

.text-input.success {
  border: 2px solid var(--shade-green);
  color: var(--shade-green-dark);
}

.text-input.error {
  border: 2px solid var(--shade-red);
  color: var(--shade-red-dark);
}

.text-input.info {
  border: 2px solid var(--shade-blue);
  color: var(--shade-blue-dark);
}

nav {
  height: var(--navbar-height);
  position: var(--navbar-type);
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--accent-color);
  color: var(--navbar-text-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
}

nav div.links,
nav div.logo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

nav div.logo img {
  max-height: 100%;
}

nav a {
  padding: 23px;
  color: var(--navbar-text-color);
}

nav a:hover {
  background-color: var(--accent-dark);
  color: var(--navbar-text-color);
  text-decoration: none;
}

.sidenav {
  height: 0px;
  width: 250px;
  position: fixed;
  z-index: 100;
  top: var(--navbar-height);
  right: 0;
  background-color: var(--accent-semitransparent);
  backdrop-filter: blur(--background-blur);
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 0px;
  backdrop-filter: blur(10px);
  overflow-y: hidden;
}

.sidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: var(--navbar-text-color);
  display: block;
  transition: all 0.3s ease-in-out;
  background: none;
}

.sidenav a:hover,
.sidenav a:focus {
  background-color: var(--accent-dark);
}

@media screen and (max-height: 450px) {
  .sidenav {
    padding-top: 15px;
  }
  .sidenav a {
    font-size: 18px;
  }
}

#contr-nav {
  display: none;
}

aside {
  background-color: inherit;
  z-index: 10;
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  height: calc(100vh - var(--navbar-height));
  width: var(--aside-width);
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
  scrollbar-color: var(--accent-color) var(--accent-text);
  scrollbar-width: normal;
}

aside p,
aside a,
aside ul,
aside ol,
aside li {
  margin: 20px;
  font-weight: 300;
}

aside ul {
  list-style: none;
  padding: 0px;
  font-weight: 400;
}

aside ul > a {
  font-weight: 400;
  color: var(--text-color);
}

@media screen and (max-width: 768px) {
  aside {
    position: relative;
    width: 100%;
    border: none;
    border-bottom: 2px solid var(--border-color);
    margin: none;
    height: auto;
    max-height: 40vh;
  }
  .container {
    margin-left: 0;
  }
}

/*For resizeable CodePen Embeds*/
.cp_embed_wrapper {
  /* required for resize to work */
  overflow: hidden;

  /* make resizeble! */
  resize: both;

  /* required to see the handle */
  background: #333333;
  padding-bottom: 10px;

  /* default height */
  height: 400px;
}
.cp_embed_wrapper iframe {
  height: 100% !important;
}
