/* ==========================================================================
   #TOOLS
   ========================================================================== */
/* put global CSS variables here */
:root {
  /* l-colour or brand-colour */
  /* .<l-colour> { color: var(--<l-colour>); }
  .bg-<l-colour> { background-color: var(--<l-colour>); }
  .b-<l-colour> { border-color: var(--<l-colour>); }
  .hover-<l-colour>:hover { color: var(--<l-colour>); }
  .hover-bg-<l-colour>:hover { background-color: var(--<l-colour>); }
  .hover-b-<l-colour>:hover { border-color: var(--<l-colour>); } */
}

/* CUSTOM COLOURS */
/* colour - color, background, border, hover */
/* I may need 2 or 3 of these */
/* This is handy for inline css, css only for that page
*  l-colour or brand-colour
* Work out how I'll do this, I don't want many css variables
* maybe just --color-brand, --color-primary, --color-secondary
*/
/* CUSTOM COLOURS */
/* colour - color, background, border, hover */
/* I may need 2 or 3 of these */
/* This is handy for inline css, css only for that page
*  l-colour or brand-colour
* Work out how I'll do this, I don't want many css variables
* maybe just --color-brand, --color-primary, --color-secondary
*/
/* ==========================================================================
   #BADGE
   ========================================================================== */
.badge {
  display: inline-block;
  height: auto;
  width: auto;
  padding: 5px 7px;
  margin: 4px;
  border-radius: 8px;
  text-align: left;
}

.badge p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
  padding: 0;
}

.badge {
  background-color: #5555f0;
  color: #ffffff;
}

/* ==========================================================================
   #CODE
   ========================================================================== */
/**
 * To put a black code box on to a webpage

 * Usage:
 * <p>Here is a line of code <span class="code code-inline"></span></p>
 * <div class="code code-block"><pre>
 * ..............
 * Put the code here.
 * ........................
 * </code></pre>
 */
pre {
  height: auto;
  color: #fff;
  text-shadow: none;
  text-align: left;
  word-wrap: normal;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;
  overflow: auto;
  padding: 6px;
  background-color: #222222;
  border-radius: 3px;
  margin-bottom: 1.5rem;
  /* white-space: pre-line; */
}

code,
pre {
  font-family: monospace;
}

.code {
  display: inline-block;
  height: auto;
  max-width: 100%;
  color: #ffffff;
  font-family: "Operator Mono", Inconsolata, Monaco, Consolas, "Andale Mono", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace;
  font-size: 16px;
  font-style: normal;
  background-color: #222222;
  font-family: monospace;
}

.code-block {
  padding: 20px 85px 20px 15px;
  border-radius: 6px;
  margin-bottom: 5px;
  overflow-x: auto;
}

.code-inline {
  width: auto;
  padding: 3px 10px;
  margin-top: 2px;
  margin-bottom: 2px;
  border-radius: 4px;
  font-weight: 500;
}

/* VS Code colors
*  Colours VS Code uses for HTML elements, CSS, just use the colour name
*/
.code-green {
  color: #92f066;
}

.code-blue {
  color: #32c9f9;
}

.code-red {
  color: #ff3c23;
}

.code-grey {
  color: #a0a0a0;
}

.code-p {
  color: #c082ff;
}

.code-o {
  color: #ffbe23;
}

.code-y {
  color: #e6dc17;
}

/* ==========================================================================
   #MIXINS
   ========================================================================== */
.bg-tools {
  background: #283048;
  /* fallback for old browsers */
  background: -webkit-linear-gradient(to right, #859398, #283048);
  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right, #859398, #283048);
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

.bg-games {
  background: #3d7eaa;
  /* fallback for old browsers */
  background: -webkit-linear-gradient(to right, #fee000, #f9a11b);
  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right, #fee000, #f9a11b);
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

.sheet {
  width: 100%;
  margin-top: 120px;
  margin-bottom: 120px;
  padding: 15px 15px;
  background-color: #ffffff;
}

.sheet.project {
  padding: 50px 15px;
}

.sheet-border {
  position: relative;
  margin: 5px 5px;
  padding: 20px 20px;
  border: 3px solid #fee000;
  border-radius: 40px;
}

.sheet-border__title {
  text-align: center;
  color: #231f20;
}

.sheet-border__descr {
  padding: 0px 100px;
}

@media screen and (max-width: 1050px) {
  .sheet-border__descr {
    padding: 0 50px;
  }
}
@media screen and (max-width: 800px) {
  .sheet-border__descr {
    padding: 0;
  }
}
article {
  position: relative;
  margin: 60px 5px;
}

article::after {
  position: absolute;
  top: -30px;
  display: block;
  width: 100%;
  content: "";
  height: 1px;
  background-color: #aaaaaa;
}

.game {
  flex-wrap: nowrap;
  gap: 25px;
}

.game--left {
  position: relative;
  height: 300px;
  width: 300px;
  z-index: 10;
  transition: transform 250ms linear;
  background-color: #fee000;
  background-color: #a55e00;
}

.game--left:hover {
  transform: scale(1.2);
}

.game--left-size {
  height: 275px;
  width: 275px;
}

.game--left-background {
  height: 300px;
  width: 300px;
  background-color: #fee000;
  background-color: #a55e00;
}

.game--right {
  flex: 0 1 450px;
}

.game--right h2 {
  margin-bottom: 2px;
  color: #231f20;
  text-decoration: none;
  font-size: 24px;
  overflow: hidden;
}

.game p {
  margin-bottom: 15px;
}

.game--right__border {
  padding: 8px;
  background-color: #fee000;
  border: 10px solid #e85200;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 2px 2px 2px rgba(0, 0, 0, 0.1), 4px 4px 4px rgba(0, 0, 0, 0.1), 8px 8px 8px rgba(0, 0, 0, 0.1);
}

.game--right h2 .char {
  transition: transform 0.6s;
  transition-delay: calc(0.5s * var(--char-index) / var(--char-total));
  text-decoration: underline;
}

.game--right h2[data-scroll=out] .char {
  transform: translateY(100%);
}

.game--right h2[data-scroll=in] .char {
  transform: translateY(0);
}

@media screen and (max-width: 1250px) {
  .game--right {
    flex: 0 1 350px;
  }
}
@media screen and (max-width: 1000px) {
  .game {
    flex-direction: column !important;
    justify-content: center;
    align-items: center;
    gap: 35px;
  }

  .game--right {
    width: 80%;
    flex: 0 1 auto;
  }
}
@media screen and (max-width: 750px) {
  .game--right {
    width: 100%;
  }
}
@media screen and (max-width: 450px) {
  .game--left,
.game--left-size img,
.game--left-size {
    width: 100%;
    height: 100%;
  }
}
.whitespace {
  text-decoration: none;
}

.sheet img.project__img {
  width: 175px;
  height: auto;
  margin: 50px auto;
}

li.body-text {
  margin: 0;
}

h3 {
  margin: 50px 0 10px;
}

h4 {
  margin: 35px 0 10px;
}

h5 {
  margin: 30px 0 10px;
}

h6 {
  margin: 30px 0 10px;
}

strong {
  font-size: inherit;
}

@media screen and (max-width: 450px) {
  .bg-games .o-container,
.bg-tools .o-container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .bg-games .sheet,
.bg-tools .sheet {
    padding-left: 10px;
    padding-right: 10px;
  }

  .bg-games .sheet-border,
.bg-tools .sheet-border {
    padding-left: 0;
    padding-right: 0;
    overflow-x: hidden;
    word-wrap: break-word;
  }

  .game--right__border {
    padding: 4px;
  }
}
