/* Some default styling for cookbook examples */
/*
rgb(53,43,34)
rgb(75,70,74)
rgb(95,97,110)
rgb(137,151,188)
rgb(160,178,226)
*/
body {
  background-color: #fff;
  color: #333;
  font: 1em / 1.4 Helvetica Neue, Helvetica, Arial, sans-serif;
  margin: 0 auto;
  text-align: center;
}
header {
  background-color: #f4f7f8;
  padding: 20px;
  border-bottom: 1px solid #ccc;
  margin: 0 auto 20px;
}
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

h1 {
  font-size: 2rem;
  margin: 0;
}

h2 {
  font-size: 1.6rem;
  margin: 0;
}

p {
  margin: 0.5em 0;
  text-align: left;
}

/* Style for sections */
section {
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f9f9f9;
}
section h2 {
  margin-top: 0;
  font-size: 1.4rem;
  color: #333;
  font-weight: 700;
  text-align: center;
  padding: 10px auto;
  margin: 10px 0;
  border-bottom: 2px solid #558abb;
  background-color: #e9f2f9;
  border-radius: 5px;
}

section p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin: 10px 0;
}

/* styles for the editor */

.playable {
  font-family: monospace;
  display: block;
  margin-bottom: 10px;
  background-color: #f4f7f8;
  border: none;
  border-left: 6px solid #558abb;
  color: #4d4e53;
  width: 90%;
  max-width: 700px;
  padding: 10px 10px 0px;
  font-size: 90%;
}

.playable-css {
  height: 80px;
}

.playable-js {
  height: 160px;
}

.playable-buttons {
  text-align: right;
  width: 90%;
  max-width: 700px;
  padding: 5px 10px 5px 26px;
  font-size: 100%;
}

.preview {
  width: 90%;
  max-width: 700px;
  border: 1px solid #4d4e53;
  border-radius: 2px;
  padding: 10px 14px 10px 10px;
  margin-bottom: 10px;
}

.preview input {
  display: block;
  margin: 5px;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 3rem;
  text-align: center;
  color: #666;
  padding: 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-top: 1px solid #dee2e6;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

footer p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

footer p:first-child {
  font-weight: 600;
  color: #495057;
  font-size: 1rem;
}

footer p:last-child {
  font-size: 0.9rem;
  color: #6c757d;
}

footer a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 2px 4px;
  border-radius: 4px;
}

footer a:hover {
  color: #0056b3;
  background-color: rgba(0, 123, 255, 0.1);
  transform: translateY(-1px);
}

footer a:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

footer a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #007bff, #0056b3);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

footer a:hover::after {
  width: 100%;
}

#last-updated {
  font-weight: 500;
  color: #495057;
}
