* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: 'Geist';
  src: url('../fonts/webfonts/Geist-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Moderustic';
  src: url('../fonts/Moderustic-VariableFont_wght.ttf') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ModerusticRegular';
  src: url('../fonts/Moderustic-Regular.ttf') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ModerusticExtra';
  src: url('../fonts/Moderustic-ExtraBold.ttf') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


@font-face {
  font-family: 'PTSans';
  src: url('../fonts/PTSans-Regular.ttf') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SofiaSans Italic';
  src: url('../fonts/SofiaSans-Italic.woff2') format('woff2');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Bold';
  src: url('../fonts/webfonts/Geist-ExtraBold.woff2') format('woff2');
  font-weight: normal;
  font-style: bold;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/webfonts/GeistMono-SemiBold.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PTMono';
  src: url('../fonts/PTMono-Regular.ttf') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono Bold';
  src: url('../fonts/webfonts/GeistMono-Bold.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sofia Sans';
  src: url('../fonts/SofiaSans-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sofia Sans';
  src: url('../fonts/SofiaSans-Italic.woff2') format('woff2');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Sofia Sans Condensed';
  src: url('../fonts/SofiaSansCondensed-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sofia Sans Condensed';
  src: url('../fonts/SofiaSansCondensed-Italic.woff2') format('woff2');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Exo 2';
  src: url('../fonts/Exo2-VariableFont_wght.ttf') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Exo 2';
  src: url('../fonts/Exo2-Italic-VariableFont_wght.ttf') format('woff2');
  font-weight: italic;
  font-style: swap;
}

@font-face {
  font-family: 'PTSansCaption';
  src: url('../fonts/PTSansCaption-Bold.ttf') format('woff2');
  font-weight: normal;
  font-style: swap;
}

/* @import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100..900;1,100..900&family=Moderustic:wght@300..800&display=swap'); */
/* @import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@100;200;300;400;500;600;700;800;900&display=swap'); */

html {
  text-rendering: optimizeLegibility;

  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}
body,
html {
  /* font-family: 'Exo 2', 'Sofia Sans', Arial, sans-serif; */
  /* font-family: Geist, sans-serif; */
  font-family: PTSans, sans-serif;
  /* font-family: Moderustic, sans-serif; */
  /* font-family: ModerusticRegular, sans-serif; */

  color: #333;
}

html {
  /* font-family: 'Sofia Sans', Arial, sans-serif; */
  font-optical-sizing: auto;
  font-style: normal;

  max-width: 85%;
  margin: auto;
  /* font-size: calc(16.5px + 0.390625vw); */
  font-size: calc(13.375px + 0.390625vw);

  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  scroll-behavior: smooth;

  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
}

.hashtags {
  color: #555555;
  /* font-family: PTMono, 'Geist Mono', sans-serif; */
}

.content {
  /* margin: auto; */
  /* padding: 5px; */
}

.cta {
  /* background: #333; */
  color: #fff;
  padding: 10px;
  text-align: center;
  text-transform: uppercase;
}

.cta a {
  /* color: #fff; */
  text-decoration: none;
}

.cta a:hover {
  text-decoration: underline;
}

.course {
  margin-bottom: 20px;
}

.highlighted-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-center {
  align-items: center;
}

.highlighted-left {
  /* display: flex;
  flex-direction: column; */
  margin: auto;
  align-items: left;
}

.piece {
  display: inline-block;
  padding: 15px 10px; /* Внутренние отступы */
  border: 1px solid #ffd591; /* Оранжевая рамка */
  border-radius: 12px; /* Закруглённые углы */
  margin: 20px 0; /* Добавляет отступы сверху и снизу */

  width: 100%;
  /* margin: 5px 0; */
  /* margin-bottom: 15px; */
  /* padding: 5px; */
  padding-left: 1em;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: PTMono, 'Geist Mono', Consolas, Monaco, 'Courier New', Courier, monospace;
}

.piece:nth-child(even) {
  /* margin-left: 10%; */
  /* transform: rotate(1deg); */
  background-color: #f4f4f4;
}

.piece:nth-child(odd) {
  margin-left: 0;
  /* transform: rotate(-1deg); */
  background-color: #ffebcd;
}

.piece:hover {
  transform: rotate(0deg); /* Reset rotation on hover */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Additional color styles */
.piece:nth-child(1) {
  background-color: #ffebcd;
}

.piece:nth-child(2) {
  background-color: #ffebcd;
}

.piece:nth-child(3) {
  background-color: #e0f7fa;
}

.piece:nth-child(4) {
  background-color: #ffe4e1;
}

.piece:nth-child(5) {
  background-color: #f4f4f4;
}

.piece:nth-child(6) {
  background-color: #ffebcd;
}

.piece:nth-child(7) {
  background-color: #e0f7fa;
}

.inner {
    margin: 0 auto;
    max-width: 1040px;
    width: 100%;
}

.copy-btn {
  margin-top: 10px;
  padding: 5px 10px;
  font-size: 0.9em;
  color: #333;
  background-color: #e0e0e0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.copy-btn:hover {
  background-color: #ccc;
}

.piece {
  position: relative; /* For positioning the button if needed */
}

.copy-btn {
  align-self: flex-end; /* Aligns the button to the bottom right */
}

.copy-placeholder {
  margin-top: 8px;
  padding: 5px;
  font-size: 0.5em;
  color: #999;
  /* background-color: #f0f0f0; */
  border: 1px solid #ddd;
  border-radius: 4px;
  display: none; /* Initially hidden */
}

.piece .copy-placeholder {
  display: block; /* Show when text is copied */
}

.condensed,
.sofia-sans-condensed-font {
  font-family: 'Sofia Sans Condensed', sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-size: calc(17.5px + 0.390625vw);
}

pre,
code,
xmp {
  font-family: PTMono, monospace, system-ui, sans-serif;
}

:is(h1, h2, h3, h4, h5, h6) {
  letter-spacing: -0.01em;
  max-inline-size: 52rem;
  margin-block-end: 0.83em;
  line-height: 1.4em;
  max-width: 40em;
  font-optical-sizing: auto;
  /* font-family: 'Exo 2', 'Sofia Sans', Arial, sans-serif; */
  /* font-family: 'PTSansCaption', 'Sofia Sans', Arial, sans-serif; */
  font-family: 'ModerusticExtra', 'Sofia Sans', Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
blockquote,
.balanced {
  white-space: unset;
  text-wrap: balance;
}

:is(h4, h5, h6) {
  margin-block-end: 1em;
}

example,
.example,
.subheader {

  font-family: 'Sofia Sans Condensed', sans-serif;

  /* font-size: 1.1em; */
  /* color: #888; */
  color: #5291ff;
  /* font-style: italic; */
  font-weight: 250;
  width: 80%;
}

.text-caps {
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgb(114, 114, 114);
}
.text-smaller {
  font-size: 0.75rem;
}
.text-smallest {
  font-size: 15px !important;
  max-width: 60em;
  color: #000;
  font-weight: 500;
}
.text-wrapper {
  /* display: flex; */
  /* width: 75px; */
  display: inline-block;
  width: max-content;
  justify-content: space-evenly;
  border-radius: 2px;
  border: 1px solid #aaa;
  padding: 5px 5px 1px 5px;
  background-color: #f3f3f3;
  font-style: italic;
  font-stretch: semi-expanded;
}

a:focus {
    background-color: #b426ff;
    outline: 5px solid #ea3bcb;
}

a:focus:hover {
  border: 2px solid #004c99;
}

/* #region a */
a {
  text-decoration: none;
  /* border-bottom: #eaeaea 0.125em solid; */

  text-decoration: none;
  /* color: #cc4b00; */
  /* color: #5f10f5; */
  color: #4C5578;
  opacity: 1;
  cursor: pointer;
  transition: opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1),
    color 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

p a {
    /* font-family: 'Geist Mono Bold', sans-serif; */
}

p def, p dfn {
  display: inline-block; /* Позволяет применять стили к содержимому */
  background-color: #f5f5f5; /* Светлый фон */
  padding: 15px 10px; /* Внутренние отступы для выделения */
  border-radius: 5px; /* Закруглённые углы */
  font-weight: bold; /* Усиление текста внутри */
  font-size: 1em;
}

hr {
  border: none; /* Убираем стандартную рамку */
  border-top: 1px solid #ccc; /* Добавляем верхнюю линию */
  margin: 40px 0; /* Устанавливаем отступы сверху и снизу */
}

a::after {
  content: ' \2192';
  opacity: 0.1;
  font-size: 0.4em;
  white-space: nowrap;
  display: inline;
  margin-left: -2px;
}
a:hover::after {
  content: ' \2192';
}

A:link {
  /* color: #af500d; */
  /* color: #450ab4; */
  color: #4C5578;
  text-decoration: none;
  border-radius: 4px;

  /* padding-left: 4px;
  padding-right: 4px; */
  border-bottom: 1px dashed;
  border-bottom-right-radius: 0px;
  border-bottom-left-radius: 0px;
}

A:visited {
  text-decoration: none;
}

A:active {
  text-decoration: underline;
}

a:hover {
  /* color: #900; */
  color: #000000;
  /* transition: color 0.3s ease-in-out; */
  /* text-decoration: underline dotted #ff8a00; */
  /* text-decoration-skip: ink; */
  border-color: #5f10f5;

}

table {
  width: 100%; /* Таблица занимает всю доступную ширину */
  border-collapse: collapse; /* Убирает двойные границы между ячейками */
  margin: 40px auto; /* Центрирование таблицы */
}

thead th {
  text-align: left; /* Выравнивание текста в заголовках */
  background-color: #f5f5f5; /* Фон для заголовков */
  padding: 10px; /* Внутренний отступ */
  border-bottom: 2px solid #ddd; /* Граница под заголовками */
}

tbody td {
  padding: 10px; /* Внутренние отступы для содержимого */
  border-bottom: 1px solid #ddd; /* Линии между строками */
  word-wrap: break-word; /* Разрыв слов, если текст слишком длинный */
}

table, th, td {
  border: 1px solid #ccc; /* Общие границы таблицы */
}

tr:hover {
  background-color: #f9f9f9; /* Подсветка строки при наведении */
}

@media (min-width: 768px) {
  table {
    table-layout: fixed; /* Фиксированная ширина колонок */
  }
  thead th, tbody td {
    white-space: nowrap; /* Отключение переноса строк в ячейках */
    overflow: hidden; /* Скрытие лишнего содержимого */
    text-overflow: ellipsis; /* Добавление "..." для длинных текстов */
  }
}

p span.example {
  display: inline-block; /* Чтобы выделение выглядело аккуратно */
  background-color: #fff4e6; /* Светло-оранжевый фон для примеров */
  padding: 15px 10px; /* Внутренние отступы */
  border: 1px solid #ffd591; /* Оранжевая рамка */
  border-radius: 12px; /* Закруглённые углы */
  font-style: normal; /* Отключает наклонный текст, если нужно */
  /* font-weight: bold; */
  color: #fa8c16; /* Оранжевый текст для акцента */
  margin: 20px 0; /* Добавляет отступы сверху и снизу */
  font-size: 1em;
}

pre,
code,
xmp {
  font-family: PTMono, 'Geist Mono', monospace;
  tab-size: 2;
  white-space: pre-wrap;
  word-wrap: break-word;
}

pre {
  counter-reset: line;
  overflow-x: auto;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  padding: 10px;
}

pre line {
  padding: 10px;
}

pre line:before {
  counter-increment: line;
  content: counter(line);
  display: inline-block;
  width: 30px;
  color: #888;
}

pre code {
  letter-spacing: -0.06em;
  line-height: 1.5em;
  color: #333;
  letter-spacing: -0.4px;
  line-height: 28px;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

strong {
  /* color: #1a0849; */
   color: #28487e;
  /* letter-spacing: 0.12em; */
  /* font-family: 'Geist Bold', sans-serif; */

  /* font-weight: bold; */
  font-weight: 800;
  border-bottom: 0px dotted rgba(252, 128, 29, 0.15);

  /* box-shadow: 0 -10px 0 rgba(249, 208, 172, 0.1) inset; */

  transition: all 0.15s cubic-bezier(0.33, 0.66, 0.66, 1);
}

.good-code,
.bad-code,
.non-optimal,
.error-code {
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-underline-offset: 0.3em;
}

.bad-code,
.non-optimal,
.error-code {
  text-decoration-style: wavy;
  text-underline-offset: 0.3em;
}

.non-optimal,
.bad-code {
  text-decoration-color: darkorange;
}

.good-code {
  text-decoration-color: mediumvioletred;
}

.bad-code {
  background-color: #ffe6e6;
  color: #900;
  text-decoration-style: wavy;
  text-decoration-color: darkorange;
}

.error-code {
  text-decoration-color: red;
}

p {
  font-size: clamp(18px, 18px + 2 * ((100vw - 375px) / 1065), 18px);
  line-height: 1.38;
  font-weight: 400;
  font-variation-settings: 'slnt' 80, 'wdth' 65, 'opsz' 16;
}
p, ul, ol, li {
  /* padding: 0.5em; */
  padding-bottom: 0.5em;
}

p,
dt,
dd {
  margin-block-start: 0.8em;
  margin-block-end: 0.8em;

  /* margin-bottom: 7px; */

  max-width: 40rem;
  padding-bottom: 15px;
}

p {
    margin: 0 0 0px;
}



p,
.subheader,
blockquote,
ol li,
ul li,
.note,
.warning,
.tip,
.important,
.error,
.info,
.success,
ribbon,
.ribbon,
.callout {
  max-width: 50em;
}

ol, ul {
    margin-top: 1em;
    margin-bottom: 10px;
}

/* ------------------- COPYING RULES ----------------------- */

/* Элементы с классом noncopyable не могут быть выделены или скопированы */
/* body *, .noncopyable {
  user-select: none;
} */
.noncopyable {
  user-select: none;
}

/* Классы, которые должны оставаться копируемыми */
code, .piece, .copyable {
  user-select: text; /* Разрешаем выделение текста */
}

/* ------------------- COPYING STYLES ----------------------- */
/* Стили для копируемых элементов */
code,
.piece,
.copyable {
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s ease;
}

code:hover,
.piece:hover,
.copyable:hover {
  background-color: #f0f8f5;
}

/* Стиль для знака, который появляется при наведении */
code:hover::after,
.piece:hover::after,
.copyable:hover::after {
  content: '¶'; /* Знак параграфа */
  font-size: 1.2em;
  color: rgba(
    40,
    167,
    69,
    0.6
  ); /* Меньше яркости (полупрозрачный зеленый) */
  position: absolute;
  right: -1.5em; /* Расположим знак справа от текста */
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.3s ease;
  opacity: 1;
}

/* Убираем знак, если не наводим */
code::after,
.piece::after,
.copyable::after {
  opacity: 0;
}

/* Стиль для уведомления */
#copyNotification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #28a745;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

ul, ol {
  /* padding: 0; */
}

ul li, ul li {
  /* padding: 0.5em 1em; */
  transition: background-color 0.3s ease; /* Плавная смена фона */
}

ul li:hover {
  background-color: #f0f8f5; /* Цвет фона при наведении */
}

li {
  /* margin: 5px 0; */
  /* padding: 0px; */
  /* line-height: 1.6; */
}

li > p {
    display: inline-block;
    margin: 0;
    padding: 5px;
}
/* li {
    display: inline-block;
} */
/* li > p {
    display: inline-block;
} */
/* li > p > strong {
    display: list-item;
} */
 /* ul li p {
    list-style-type: none;
} */

li p {
  display: inline; /* Устанавливаем строчный режим для абзацев */
  margin: 0; /* Убираем стандартные отступы абзацев */
}

li p + p {
  margin-left: 10px; /* Добавляем небольшой отступ между абзацами внутри li, если их несколько */
}

ol {
  padding-inline-start: 10px;
}

p code {
  font-family: PTMono, monospace;

  color: #c7254e;
  background-color: #f9f2f4;
  padding: 2px 4px;
  border-radius: 4px;
  line-height: 1.5;
  font-size: clamp(20px, 20px + 2 * ((100vw - 375px) / 1065), 20px);
}

q {
  quotes: '“' '”' '‘' '’';
}

q {
  font-style: italic;
  color: #4b0082;
  background-color: #e6e6fa;
  padding: 2px 5px;
}

em {
  color: #4b0082;
  font-weight: bold;
}

em {
  position: relative;
  padding: 0.2em 0.4em;
  color: #333;
}

q,
em {
  font-size: 1.1em;
}
q,
em, i {
  /* font-family: 'SofiaSans Italic', sans-serif; */
  color: #28487e;
}

blockquote {
  color: #4b0082;
  /* background-color: #e6e6fa; */
  font-size: 1.05em;
  /* font-style: italic; */
  line-height: 1.4;

    padding: 15px 10px 15px 35px;
  border: 10px solid #ffd591; /* Оранжевая рамка */
  border-radius: 12px; /* Закруглённые углы */
  margin: 40px 0px 50px 0px; /* Добавляет отступы сверху и снизу */
}

blockquote p {
  line-height: 2.0;
  font-stretch: expanded;
  margin: auto;
}

q:nth-of-type(2) {
  font-weight: 500;
}

em:nth-of-type(2) {
  font-weight: 500;
}

.code-snippet {
  background-color: #f9f9f9;
  border-left: 3px solid #f36d33;
  overflow: auto;
  color: #333;
  font-family: monospace;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 1.6em;
  max-width: 100%;
  padding: 1em 1.5em;
  display: block;
  word-wrap: break-word;
}

/* .sidebar {
  position: fixed;
  width: 200px;
  height: 100%;
  overflow: auto;
} */

.sidebar {
  float: left;
  width: 200px;
  padding: 20px;
  justify-content: space-around;
  align-items: center;
  height: 100%;
  background-color: #fff; /* changed from pastel light gray to white */
  border-radius: 10px;
  height: 100vh; /* sets height to full height of the viewport */
  max-height: max-content;
}
aside div {
  padding-bottom: 15px;
  font-size: 18px;
}
aside ol li {
  padding-bottom: 15px;
  font-size: 18px;
}

@media (max-width: 1290px) {
  aside {
    display: none; /* smaller screens */
    visibility: hidden;
    width: 40%;
  }
}

b {
  width: 80%;
  padding-top: 5px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gradient-box {
  width: 80%;
  padding: 5px;
  background: linear-gradient(
    135deg,
    rgba(255, 0, 150, 0.5),
    rgba(0, 204, 255, 0.5)
  );
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  /* position: relative; */
  /* color: transparent; */
  -webkit-background-clip: text;
  background-clip: text;
}

.gradient-box p {
  /* margin: 0;
    color: #000;
    text-align: center; */
}

.sticky {
  position: sticky;
  /* z-index: 40;  */
  top: 0;
  width: 100%;
  background: rgba(
    255,
    255,
    255,
    0.8
  ); /* Transparent white background */
  backdrop-filter: blur(8px); /* Apply blur effect */
  -webkit-backdrop-filter: blur(8px); /* Safari support */
  padding: 1em;
  border-bottom: 1px solid #ccc;
  /* text-align: center; */
  z-index: 1000;
}

.text-span {
  /* background-image: linear-gradient(112deg, #fe4bd1;, #3f5ff5); */
  background: linear-gradient(135deg, #835aea, #3cc4ad);

  color: #d2a5ff;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.container {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 1em;
}

/* .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
} */

h4 {
  /* font-size: calc(26px + 0.19048vw); */
}

h4 {
  text-decoration: none;
}

/* Article container */
.article {
  width: 95%;
  margin: 0 auto;
  /* padding: 10px; */
  padding: 1em;
}

/* Article title */
h1, .article h1 {
  font-size: 1.7em;
  color: #333;
}

/* Article subheading */
h2, .article h2 {
  font-size: 1.4em;
  color: #666;
}

/* Article content */
.article p {
  font-size: 1em;
  color: #333;
}

/* Code blocks */
.article pre {
  background-color: #f4f4f4;
  padding: 10px;
  line-height: 1.6;
}

/* Recommendations */
.recommendations {
  background-color: #f9f9f9;
  padding: 10px;
  border-left: 5px solid #7c7c7c;
}

/* Prompt styling */
.prompt {
  background-color: #f4f4f4;
  padding: 10px;
  line-height: 1.6;
  border-left: 5px solid #7c7c7c;
}

p,
dt,
dd,
ul li,
ol li,
.text-xl {
  font-size: 1rem;
  line-height: 1.5;
}

section {
  align-items: center;
  box-sizing: border-box;
  color: var(--neutral-foreground-rest);
  /* grid-column: span 2; */
  justify-content: center;
  /* margin: var(--section-height-spacing-mobile); */
}

/* section *  {
  padding-left: 1.4em;
  padding-right: 1em;
} */
section {
  padding: 1em;
}

ol, ul {
  padding-left: 1em; padding-right: 0.5em;
  list-style-position:inside;
}
li {
  padding-left: 0.5em; padding-right: 0.5em;
}
/* section ol, section ul {
  padding-left: 1em; padding-right: 0.5em;
  list-style-position:inside;
}  */

section li {
  padding-left: 0.5em; padding-right: 0.5em;
}

/* section:nth-of-type(2n) {
  background-color: #edf2f7;
} */

section {
  /* text-align: left; */
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  background-color: #f9f9f9;
}

/* Scroll-Driven Animations */


/* HEADER STYLES */

header {
  text-align: center;
  padding: calc(8px + 0.85625vw);
  margin-bottom: 2rem;
  font-family: 'Sofia Sans Condensed', sans-serif;
}

header + A:link {
  text-decoration: none;
}

header h1 {
  font-size: 2.25rem;
  font-weight: bold;
}

header nav a {
  margin: 0 0.5rem;
}

header nav a:hover {
  color: #c3dafe;
}

header a {
  margin: 0 0.5rem;
}

/* CARDS & CALLOUTS */

card,
.card {
  color: #001733;
  margin: 0px;
  margin-top: 5px;
  padding: calc(12px + 0.85625vw);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(224, 224, 224, 0.5);
  justify-content: space-evenly;
}

.card-title {
  font-size: 24px;
  margin-bottom: 5px;
}

.card-actions {
  display: flex;
  align-items: center;
  margin-top: 30px;
  list-style: none;
  justify-content: space-around;
}

.card-actions > * {
  margin-bottom: 0;
}

.callout {
  border: 2px solid black;
  padding: 1rem;
}

.card h4,
card h4,
ribbon,
.ribbon {
  font-family: 'Sofia Sans Condensed', sans-serif;
}

/* GRID */

/* .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  grid-gap: 1.5rem;

  margin-left: 0.1%;
  margin-right: 0.1%;
} */

.grid2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));

  grid-gap: 0.1rem;
}

.grid2 > div:hover {
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12),
    0 2px 2px rgba(0, 0, 0, 0.12), 0 4px 4px rgba(0, 0, 0, 0.12),
    0 8px 8px rgba(0, 0, 0, 0.12), 0 16px 16px rgba(0, 0, 0, 0.12);
}

.gridp {
  background-color: rgba(0, 132, 157, 0.25);
  padding: 10px;
  border: 1px solid rgba(0, 132, 157, 0.9);
}

#grid {
  display: grid;
  width: 100%;
  grid-template-columns: 50px 1fr;
}

/* DFN */

dfn {
  /* background-color: #fff3a9; */
  padding: 8px 8px;
  font-weight: bold;
  /* letter-spacing: 0.1rem; */
  text-decoration-color: #4b0082;
  text-decoration-style: dotted;
  text-decoration-line: underline;
  text-underline-offset: 0.3em;
}

dfn:hover {
  color: #4b0082;
}

dfn a:link {
  color: #1e1e1e;
}

/* NOTES ETC */

.note {
  background-color: #f9f9f9;
  border-left: 6px solid #2196f3;
  padding: 1rem;
  margin: 1rem 0;
  font-style: italic;
  box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.2);
  padding: calc(12px + 0.85625vw);
}

.note {
  animation: fadeIn 2s;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.warning {
  background-color: #ffeb3b;
  border-left: 6px solid #ff9800;
  padding: 1rem;
  margin: 1rem 0;
  font-style: italic;
}

.tip {
  background-color: #e7f3fe;
  border-left: 6px solid #8bc34a;
  padding: 1rem;
  margin: 1rem 0;
  font-style: italic;
}

.important {
  background-color: #ffebee;
  border-left: 6px solid #f44336;
  padding: 1rem;
  margin: 1rem 0;
  font-style: italic;
}

.info {
  background-color: #e3f2fd;
  border: 1px solid #2196f3;
  padding: 1rem;
  margin: 1rem 0;
  color: #2196f3;
  font-weight: bold;
}

.highlight {
  background-color: #ffff00;
  font-weight: bold;
}

.error {
  background-color: #ffebee;
  border: 1px solid #f44336;
  padding: 1rem;
  margin: 1rem 0;
  color: #f44336;
  font-weight: bold;
}

.success {
  background-color: #e8f5e9;
  border: 1px solid #4caf50;
  padding: 1rem;
  margin: 1rem 0;
  color: #4caf50;
  font-weight: bold;
}

/* NAVIGATION */

/* TOOLTIPS */

/* HTML: <div class="tooltip">This is a Tooltip with a solid coloration and without border radius </div> */
.tooltip {
  color: #fff;
  font-size: 18px;
  max-width: 28ch;
  text-align: center;
}

.tooltip {
  /* triangle dimension */
  --b: 2em;
  /* base */
  --h: 1em;
  /* height */

  --p: 50%;
  /* triangle position (0%:left 100%:right) */

  padding: 1em;
  clip-path: polygon(
    0 100%,
    0 0,
    100% 0,
    100% 100%,
    min(100%, var(--p) + var(--b) / 2) 100%,
    var(--p) calc(100% + var(--h)),
    max(0%, var(--p) - var(--b) / 2) 100%
  );
  border-image: fill 0 //var(--h)
    conic-gradient(#cc333f 0 0);
  /* the color */
}

/* RIBBONS */

/* HTML: <div class="ribbon">Your text content</div> */
ribbon,
.ribbon {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  padding-bottom: 10px;
}

ribbon,
.ribbon {
  --f: 0.5em;
  /* control the folded part*/
  --r: 0.8em;
  /* control the ribbon shape */

  position: relative;
  top: 20px;
  left: calc(-1 * var(--f));
  padding-inline: 0.25em;
  line-height: 1.8;
  background: #987f69;
  border-bottom: var(--f) solid #0005;
  border-right: var(--r) solid #0000;
  clip-path: polygon(
    0 0,
    0 calc(100% - var(--f)),
    var(--f) 100%,
    var(--f) calc(100% - var(--f)),
    100% calc(100% - var(--f)),
    calc(100% - var(--r)) calc(50% - var(--f) / 2),
    100% 0
  );
}

/* NAVI */

nav li {
  display: inline-block;
  padding: 0 0.4em;
  height: 1.4em;
  line-height: 1.4em;
  position: relative;
  background-color: #6b46c1;
}

nav li ul {
  display: none;
}

nav li li {
  display: block;
  width: 8em;
}

nav li:hover > ul {
  display: block;
  position: absolute;
  top: 1.4em;
  left: -1px;
  /* align with respect to horizontal row */
  width: 8em;
  z-index: 2;
}

nav li li:hover ul {
  left: 8em;
  top: -1px;
  /* subnav menus align next to their menu item */
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: [column-1] 1fr [column-2] 1fr [column-3] 1fr;
}

@media only screen and (max-width: 1090px) {
  /* For mobile phones: */
  [class*='grid'] {
    display: grid;
    gap: 1rem;
    grid-template-columns: [column-1] 1fr;
  }

  [class*='html'] {
    max-width: 100%;
  }

  [class*='p'] {
    font-size: 18px;
  }
}
