/* Table of contents
––––––––––––––––––––––––––––––––––––––––––––––––––
- Grid
- Base Styles
- Typography
- Links
- Code
- Spacing
- Utilities
- Misc
- Credit footer
*/

/* Grid
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.container {
  position: relative;
  width: 100%;
  max-width: 600px;
  text-align: center;
  margin: 0 auto;
  box-sizing: border-box;
}

.column,
.columns {
  width: 100%;
  box-sizing: border-box;
}

/* For devices larger than 400px */
@media (min-width: 400px) {
  .container {
    width: 85%;
    padding: 0;
  }
}

/* For devices larger than 550px */
@media (min-width: 550px) {
  .container {
    width: 80%;
  }

  .column,
  .columns {
    margin-left: 0;
  }

  .column:first-child,
  .columns:first-child {
    margin-left: 0;
  }
}

/* Base Styles
–––––––––––––––––––––––––––––––––––––––––––––––––– */
html {
  font-size: 100%;
}

body {
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  font-family: 'Rubik', 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif !important;
}

body:lang(ar),
body.rtl {
  direction: rtl;
  text-align: right;
  font-family: 'IBM Plex Sans Arabic', 'Rubik', 'Readex Pro', sans-serif !important;
}

@media (prefers-color-scheme: dark) {
  body {
    background: #292929;
    background: radial-gradient(circle, #292929 28%, #1b1b1b 100%);
    color: #ffffff;
  }
}

@media (prefers-color-scheme: light) {
  body {
    background: #f1f1f1;
    color: #222222;
  }
}

/* Typography
–––––––––––––––––––––––––––––––––––––––––––––––––– */
h1 {
  margin-top: 0;
  margin-bottom: 16px;
  font-weight: 800;
  font-size: 24px;
  line-height: 64px;
  letter-spacing: 0;
}

@media (min-width: 550px) {
  h1 {
    font-size: 48px;
    line-height: 96px;
  }
}

p {
  margin-top: 0;
}

/* Links
–––––––––––––––––––––––––––––––––––––––––––––––––– */
a {
  color: #0085ff;
  text-decoration: none;
}

a:hover {
  color: #0085ff;
}

.spacing {
  padding: 0 10px;
}

.social-icon {
  font-size: 32px;
  padding: 10px;
  color: #fff;
}

.social-icon-div {
  padding-bottom: 30px;
}

/* Code
–––––––––––––––––––––––––––––––––––––––––––––––––– */
code {
  padding: 0.2rem 0.5rem;
  margin: 0 0.2rem;
  font-size: 90%;
  white-space: nowrap;
  background: #f1f1f1;
  border: 1px solid #e1e1e1;
  border-radius: 4px;
}

pre > code {
  display: block;
  padding: 1rem 1.5rem;
  white-space: pre;
}

/* Spacing
–––––––––––––––––––––––––––––––––––––––––––––––––– */
button,
.button {
  margin-bottom: 1rem;
}

input,
textarea,
select,
fieldset {
  margin-bottom: 1.5rem;
}

pre,
blockquote,
dl,
figure,
p,
ol {
  margin-bottom: 2.5rem;
}

/* Utilities
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.u-full-width {
  width: 100%;
  box-sizing: border-box;
}

.u-max-full-width {
  max-width: 100%;
  box-sizing: border-box;
}

.u-pull-right {
  float: right;
}

.u-pull-left {
  float: left;
}

/* Misc
–––––––––––––––––––––––––––––––––––––––––––––––––– */
hr {
  margin-top: 3rem;
  margin-bottom: 3.5rem;
  border-width: 0;
  border-top: 1px solid #e1e1e1;
}

@media (prefers-color-scheme: dark) {
  * {
    scrollbar-width: thin;
    scrollbar-color: #171a1d #31363b;
  }

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

  *::-webkit-scrollbar-track {
    background: #31363b;
  }

  *::-webkit-scrollbar-thumb {
    background-color: #171a1d;
    border-radius: 30px;
    border: 3px none #ffffff;
  }
}

@media (prefers-color-scheme: light) {
  * {
    scrollbar-width: thin;
    scrollbar-color: #323232 #dbdbdb;
  }

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

  *::-webkit-scrollbar-track {
    background: #dbdbdb;
  }

  *::-webkit-scrollbar-thumb {
    background-color: #323232;
    border-radius: 30px;
    border: 3px none #ffffff;
  }
}

/* Credit footer
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.credit-txt {
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}

/* Some fonts shift the credit footer icon around
.credit-icon {
  display: none;
}
.credit-footer {
  position: relative;
  right: 15px;
}
*/

@media (prefers-color-scheme: dark) {
  .credit-txt-clr {
    color: #fff !important;
  }
}

@media (prefers-color-scheme: light) {
  .credit-txt-clr {
    color: #100a26 !important;
  }
}
