html {
  background: #F4F4F4;
}

body {
  margin: 0px;
  background: #fff;
  color: #333;
  text-rendering: optimizeLegibility;
  font-size: 15px;
  line-height: 1.6;
  font-family: 'Helvetica Neue', Arial, 'Liberation Sans', FreeSans, sans-serif;
}

h1 {
  font-weight: normal;
  font-size: 3em;
  margin: 0.5em 0 1em;
}

h2 {
  font-weight: normal;
  font-size: 2em;
  margin: 1em 0 0.5em;
}

h2 em {
  display: inline-block;
  width: 50px;
  font-style: normal;
  font-weight: bold;
  margin-left: -50px;
  color: #CCC;
}

h3 {
  font-weight: normal;
  font-size: 1.5em;
  margin: 2em 0 0.8em;
}

h4 {
  font-size: 1.2em;
  margin: 2em 0 0.5em;
}

h5 {
  font-size: 17px;
  margin: 2em 0 0.5em;
}

h6 {
  font-size: 15px;
  margin: 2em 0 0.5em;
}

p {
  font-size: 16px;
  margin-bottom: 1em;
  line-height: 1.5;
}

h3, h4, h5, a {
  line-height: 1.1;
}

ul {
  list-style: disc;
}

ol {
  list-style: decimal;
}

ul li, ol li {
  line-height: 1.5;
}

a, a:focus {
  color: #E0330C;
}

a:focus {
  outline: 1px dotted;
}

a:hover {
  color: #E0330C;
  text-decoration: underline;
}

hr {
  border: 0;
  border-top: 1px solid #ddd;
  margin: 2em 0;
  clear: both;
  height: 0;
}

/* Common margin for block elements */
dl, table, address, fieldset {
  margin-bottom: 20px;
}

/* Header and Navigation */
header {
  color: #fff;
  padding: 10px 0;
  background: #d3360b;
  margin-bottom: 40px;
  position: relative;
}

header .logo {
  width: 240px;
  float: left;
}

nav span:not(.navbar-toggler-icon),
nav a {
  display: inline-flex;
  align-items: center;
  height: 100%;
  color: #ffffff;
  text-decoration: none;
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 1px;
  margin-left: 10px;
  padding-bottom: 3px;
}

nav a.nav-link:after {
  margin-left: 10px;
  content: url(/images/star.png);
}

nav a:last-child:after {
  content: none;
}

nav a:hover{
  color: #ffffcc;
  text-decoration: underline;
}

footer {
  color: #666;
  overflow: hidden;
  width: 100%;
  padding: 40px 0;
  background: #F4F4F4;
  line-height: 1.5;
  text-align: center;
}

footer a {
  color: #111;
  border-color: #111;
}

.indent {
  margin-left: 70px;
}

.home {
  list-style: none;
  margin: 0;
}

.home li {
  padding: 1.5em 0;
  border-bottom: 1px solid #ddd;
}

.home li:last-child {
  border-bottom: 0;
}

.home li i {
  display: inline-block;
  width: 70px;
  height: 70px;
  background-color: #d0d0d0;
  float: left;
  text-align: center;
  vertical-align: middle;
  font-size: 2em;
  color: #fff;
  line-height: 70px;
  font-style: normal;
  font-weight: bold;
  border-radius: 70px;
  transition: 0.10s background-color ease-in;
}

.home li:hover i {
  background-color: #d3360b;
  transition: 0.10s background-color ease-in;
}

.home li > a,
.home li > a:hover {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.home h3 {
  margin: 0 0 0.5em;
  margin-left: 90px;
  color: #E0330C;
}

.home li:hover h3 {
  text-decoration: underline;
}

.home p {
  font-size: 18px;
  margin-left: 90px;
}

.hero-links em {
  margin: 0 0.8em;
  color: #999;
}

.hero-links {
  margin: 2em 0;
}

.hero {
  padding: 20px 320px 20px 0;
  background: url(../images/guides-hero.png) right 80px no-repeat;
}

.highlight {
  margin-left: 40px;
}

/* Icons for the guide */
i.icon-text-editor, i.icon-prompt, i.icon-browser {
  background-position: 0 0;
  display: inline-block;
  margin-left:   0px;
  margin-right: 14px;
  float: left;
  width: 50px;
  height: 50px;
  line-height: 50px;
  background-repeat: no-repeat;
}

i.icon-text-editor {
  background-image: url("/images/icon-text-editor.png");
}

i.icon-prompt{
  background-image: url("/images/icon-prompt.png");
}

i.icon-browser {
  background-image: url("/images/icon-browser.png");
}

i.icon-small-text-editor, i.icon-small-prompt, i.icon-small-browser {
  background-position: 0 0;
  display: inline-block;
  margin-left: 0px;
  float: left;
  width: 50px;
  height: 20px;
  line-height: 20px;
  background-repeat: no-repeat;
}

i.icon-small-text-editor {
  background-image: url("/images/icon-small-text-editor.png");
}

i.icon-small-prompt{
  background-image: url("/images/icon-small-prompt.png");
}

i.icon-small-browser {
  background-image: url("/images/icon-small-browser.png");
}

.os-specific {
  margin-bottom: 4em;
}

.os-specific .picker {
  display: block;
  float: right;
}

.os-specific .active {
  font-weight: bold;
}

.event {
  box-shadow: 0 2px 3px #ddd;
  border: 1px solid #eee;
  height: 200px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  margin-bottom: 40px;
  margin-left: 20px;
  max-width: 300px;
  padding-left: 0px;
  padding-right: 0px;
  transition: 0.4s box-shadow;
  flex: 0 0 300px;
}

.event:hover {
  transition:0.4s all;
  box-shadow:0 2px 3px #999;
  border-color: #ddd;
}

.event.tba {
  box-shadow:none;
  border:1px solid #eee;
}

.event.tba h3 {
  color:#888;
  border-color:#888;
}

.event.tba h3 small {
  color:#888;
}

.event h3 {
  margin-top:129px;
  padding:10px 15px;
  background:#fff;
  border-top:3px solid #d3360b;
}

.event h3 small {
  line-height:1.5;
  display:block;
  font-size:80%;
  color:#000;
  font-weight:400;
}

.row-eq-height {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
  margin-bottom: 20px;
  width: 100%;
}

.entry {
  position: relative;
  overflow: hidden;
  margin: 0;
  box-sizing: border-box;
  border-radius: .2em;
  flex: 0 0 calc(33.333% - 14px);
}

.entry-header {
  position: relative;
  width: 100%;
  line-height: 1.4;
}

.entry-header, .entry-inner {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
}

.entry-title {
  padding: .1em;
  width: 100%;
  font-size: 1.2em;
  font-weight: 600;
}

.entry-content {
  padding: .5em;
}

.entry-content p {
  margin: 0 0 .5em;
}

.entry-date {
  padding: .1em;
  font-size: 1em;
  font-weight: 200;
}

/* Correct padding on smaller screens */
@media (max-width: 767px) {
 header, footer{
   margin-left:-20px;
   margin-right:-20px;
   padding-left:20px;
   padding-right:20px;
 }
}

/* Don't show the homepage image on mobile */
@media (max-width: 480px) {
  .hero {
    padding: 20px 0;
    background:none;
  }
}

.page__header .page__title{
  position: relative;
  padding: 0.4em;
  color: #444444;
  font-weight: 600;
  font-family: "YuGothic","Yu Gothic","Meiryo","ヒラギノ角ゴ","sans-serif";
  border-bottom: solid 3px #EC644B;
}

/*
.page__header .page__title::before {
  position: absolute;
  content: " ";
  display: block;
  border-bottom: solid 3px #EC644B;
  bottom: -3px;
  left: -1px;
  width: 100%;
}
*/

.page__body {
  word-break: break-all;
}

.page__link {
  margin-top: 3em;
  padding: 0.8em;
}

.page__link div {
  width: calc(50% - 2em);
}

.page__link .page__link--next {
  float: left;
}

.page__link .page__link--prev {
  float: right;
  text-align: right;
}

.page__link div p {
  padding: 1em .3em;
  margin: .2em;
}

.github-corner:hover .octo-arm {
  animation:octocat-wave 560ms ease-in-out
}

@keyframes octocat-wave {
  0%, 100% {
    transform:rotate(0)
  }
  20%,60% {
    transform:rotate(-25deg)
  }
  40%,80% {
    transform:rotate(10deg)
  }
}

@media (max-width:500px) {
  .github-corner:hover .octo-arm {
    animation:none
  }
  .github-corner .octo-arm {
    animation:octocat-wave 560ms ease-in-out
  }
}

.navbar-toggler {
  border-color: rgba(255,255,255,0.5);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar .nav-link {
  color: #fff;
  font-weight: 400;
  text-decoration: none;
}

.navbar .nav-link:focus,
.navbar .nav-link:hover {
  color: #f6e58d;
}

.navbar-brand {
  font-size: 22px;
  font-weight: 400;
  color: #fff;
}

@media (max-width: 350px) {
  .navbar-brand {
    font-size: 15px;
  }
}

/* Remove old Bootstrap 3 specific navbar styles */
.navbar .btn-navbar,
.navbar .btn-navbar:hover,
.navbar .btn-navbar:focus,
.navbar .btn-navbar:active,
.navbar .btn-navbar.active,
.navbar .btn-navbar.disabled,
.navbar .btn-navbar[disabled],
.navbar .btn-navbar .icon-bar,
.navbar .brand,
.navbar .nav > li > a {
  /* Remove these styles as they're replaced by Bootstrap 5 classes */
  all: unset;
}

.guides-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.guides-list li {
  padding: 20px 0;
  min-height: 84px;
}

.guides-list li:not(:last-child) {
  border-bottom: 1px solid #ddd;
}

.guides-list h3 {
  margin: 0;
  margin-left: 90px;
  color: var(--highlight);
}

.guides-list p {
  margin-left: 90px;
  font-size: 18px;
}

.guide-icon {
  position: relative;
  top: 3px;
  margin-right: 20px;
  width: 70px;
  height: 70px;
  float: left;
  color: #fff;
  font-size: 1.8em;
  line-height: 70px;
  font-weight: bold;
  text-align: center;
  background-color: #d0d0d0;
  border-radius: 70px;
  transition: 0.1s background-color ease-in;
}

.guide-icon:before {
  content: attr(data-icon);
  font-size: 120%;
}

.guide-icon-meta:before {
  content: "?";
  position: relative;
}

.guide-icon-other:before {
  content: "❯";
  position: relative;
}

a:hover .guide-icon,
.guide-icon:hover {
  background-color: #d3360b;
  transition: 0.1s background-color ease-in;
}

.os-specific .picker {
  display: block;
  float: none; /* override upstream */
  text-align: right;
}

.os-specific .picker-options .active {
  font-weight: bold;
}

.os-specific .picker-options > span:not(:last-child):after {
  content: " | ";
}

.os-specific.big {
  margin-bottom: 20px;
}

.os-specific.big .picker {
  display: block;
  text-align: center;
}

.os-specific.big .picker > span {
  display: block;
}

.os-specific.big .picker-label {
  font-size: 1.2rem;
  font-weight: bold;
}

.os-specific.big .picker-options > span:not(:last-child) {
  margin-right: 15px;
}

.os-specific.big .picker-options > span:after {
  content: "";
}

.os-specific.big .picker-options {
  padding-top: 20px;
  font-size: 1.3rem;
}

.os-specific.big .picker-options a {
  display: inline-block;
  margin-bottom: 20px;
  padding: 2px 10px;
  border: 2px solid #DDD;
  border-radius: 10px;
}

.os-specific.big .picker-options a.active,
.os-specific.big .picker-options a:focus,
.os-specific.big .picker-options a:hover {
  border-color: currentcolor;
}

[class*=-notice] {
  margin-bottom: 20px;
  padding: 10px 15px;
  font-size: 120%;
  border-radius: 10px;
}

[class*=-notice] :last-child {
  margin-bottom: 0;
}

.guide-notice {
  background-color: #FEF8EA;
}

.help-notice {
  background-color: #FEF8EA;
}

.help-notice:before {
  content: "ℹ️";
  margin-right: 10px;
}

.coach-notice {
  border: 2px solid #8102BB;
}

.coach-notice > div {
  cursor: help;
}

.warning-notice {
  border: 2px solid var(--highlight);
}

.warning-notice:before {
  content: "Warning";
  display: block;
  font-weight: bold;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

article.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  margin-top: 20px;
}

.col-lg-10 {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  article.container {
    padding: 20px;
  }
  
  .col-lg-10 {
    padding: 0;
  }
}

pre {
  display: block;
  padding: 9.5px;
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 20px;
  word-break: break-all;
  word-wrap: break-word;
  white-space: pre;
  white-space: pre-wrap;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

img {
  max-width: 100%;
}

.blog-post blockquote {
  margin: 1rem auto;
  border-left: #d3360b solid 3px;
  padding-left: 1rem;
  font-style: italic;
  color: #555;
}

.blog-post figcaption::before {
  content: "――"
}