:root {
  /* colors */
  --color-body: #000000;
  --color-heading: black;
  --color-link: #014ff7;


  /* font family */
  --font-family-serif: "Georgia", "Garamond", "Times", serif;
  --font-family-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;

  /* typography settings */
  --font-weight-bold: 800;
  --font-weight-regular: 300;
  --font-size-xsmall: calc(0.7rem + 0.75vw);
  --font-size-small: calc(0.8rem + 0.75vw);
  --font-size-medium: calc(1rem + 0.75vw);
  --font-size-large: calc(1.2rem + 0.75vw);
  --font-size-xlarge: calc(1.4rem + 0.75vw);
  --font-size-xxlarge: calc(1.8rem + 0.75vw);
  --font-size-body: var(--font-size-medium);
  --line-height-heading: 1.45;
  --line-height-body: 1.55;

  /* Media Breakpoints */
  --media-screen-large: 1201px;
  --media-screen-desktop: 1200px;
  --media-screen-tablet: 768px;
  --media-screen-mobile: 480px;

  /* other config */
  --heading-spacing: 0.9rem;
  --paragraph-spacing: 0.9rem;
  --border: 1px solid #d8d8d8;
  --border-radius: 5px;
  --component-spacing: 18px;
}

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

h1,
h2,
h3,
h4,
h5,
h6,
legend,
dt,
thead th,
figcaption,
li,
nav,
blockquote {
  font-family: var(--font-family-sans);
}

h1,
h2,
h3,
h4,
h5,
h6,
legend {
  -webkit-margin-after: var(--heading-spacing);
  margin-block-end: var(--heading-spacing);
  color: var(--color-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading);
}

h1 {
  line-height: calc(var(--line-height-heading) * 0.8);
  font-size: var(--font-size-xxlarge);
}

h2 {
  font-size: var(--font-size-xlarge);
}

h3 {
  font-size: var(--font-size-large);
}

h4 {
  font-size: var(--font-size-medium);
}

h5 {
  font-size: var(--font-size-small);
}

h5 {
  font-size: var(--font-size-xsmall);
}

p {
  color: var(--color-body);
  font-size: var(--font-size-body);
  font-family: var(--font-family-serif);
  -webkit-margin-after: var(--paragraph-spacing);
  margin-block-end: var(--paragraph-spacing);
}

small {
  font-size: var(--font-size-small);
}

strong {
  font-weight: var(--font-weight-bold);
}

button,
input,
optgroup,
select,
textarea {
  margin: 0;
  line-height: var(--line-height-heading);
  font-size: var(--font-size-medium);
}

input[type="text"],
input[type="color"],
input[type="date"],
input[type="datetime-local"],
input[type="email"],
input[type="month"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="time"],
input[type="url"],
input[type="week"],
textarea {
  display: inline-flex;
  max-width: 100%;
  border: var(--border);
}

button,
[type="button"],
[type="reset"],
[type="submit"],
::-webkit-file-upload-button {
  cursor: pointer;
  font-family: var(--font-family-serif);
  font-weight: var(--font-weight-regular);
  -webkit-appearance: button;
  border-radius: var(--border-radius);
}

textarea {
  width: 100%;
  overflow: auto;
}

.container {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  grid-template-rows: 1fr 1fr 1fr;
  grid-auto-columns: 1fr;
  gap: 0% 0%;
  grid-auto-flow: row;
  grid-template-areas:
    "preview markup"
    "preview styling"
    "preview js";
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.preview {
  grid-area: preview;
  overflow-y: auto;
}

.preview iframe {
  width: 100%;
  height: 100%;
}

.markup {
  grid-area: markup;
}

.styling {
  grid-area: styling;
}

.js {
  grid-area: js;
}

div.title {
  font-weight: bold;
  font-size: 20px;
  margin: 20px 0px 10px;
}

.code-wrapper {
  align-items: center;
  background: #2d2d2d;
  border: 2px solid black;
  display: flex;
  justify-content: flex-start;
  overflow: scroll;
  position: relative;
}

.code-wrapper .lang {
  background-color: #000;
  color: #fff;
  font-size: 12px;
  left: 00px;
  padding: 5px;
  position: absolute;
  top: 0px;
  z-index: 100;
}

.code-wrapper pre {
  height: 100%;
  width: 100%;
}

.code-wrapper code {
  -webkit-user-select: all;
  /* Chrome all / Safari all */
  -moz-user-select: all;
  /* Firefox all */
  -ms-user-select: all;
  /* IE 10+ */
  user-select: all;
  /* future? */
}

.code-wrapper code:focus-visible {
  outline: none;
}