/* Tobi Games - restored from archive 2016, styled like original */

* {
  box-sizing: border-box;
}

body {
  font: 18px Georgia, serif;
  line-height: 160%;
  color: #555;
  max-width: 984px;
  margin: 0 auto;
  padding: 0 4px 2rem;
  -webkit-text-size-adjust: 100%;
}

/* Typography – original archive (Enriqueta for headings) */
h1, h2 {
  font-family: 'Enriqueta', Georgia, serif;
}

h1 {
  font-size: 350%;
  line-height: 106%;
  margin-bottom: 0.7em;
  letter-spacing: -1px;
  color: #99cc66;
}

.tagline {
  font-size: 125%;
  line-height: 150%;
  color: #555;
  margin: 0.25rem 0 0;
}

/* Page header: title left, kid image right */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #99cc66;
}

.header-title {
  flex: 1 1 auto;
}

.header-image {
  flex: 0 0 auto;
}

.header-image img {
  display: block;
  max-width: 100%;
  height: auto;
}

.page-header h1 {
  margin-bottom: 0.2em;
}

h2 {
  font-size: 140%;
  line-height: 114%;
  margin-bottom: 1.5em;
  padding-bottom: 0.2em;
  border-bottom: 1px dashed #ccc;
  color: #99cc66;
}

h3 {
  font-family: 'Enriqueta', Georgia, serif;
  font-size: 125%;
  line-height: 138%;
  margin-bottom: 0.5em;
  font-style: italic;
  font-weight: normal;
  color: #333;
}

h3:before {
  content: '>';
  display: inline-block;
  font-family: 'Enriqueta', Georgia, serif;
  font-style: normal;
  font-weight: bold;
  font-size: 130%;
  margin-right: 0.3em;
  color: #99cc66;
}

.intro {
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* Games – original layout1 style */
.games {
  margin-bottom: 2.5rem;
}

.games > h2 {
  margin-bottom: 1em;
  display: block;
}

.games-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 2em;
}

.game-card {
  flex: 0 0 228px;
  text-align: left;
  vertical-align: top;
  background: transparent;
  border: none;
  padding: 0;
}

.game-card .game-img {
  display: block;
  margin: 0 auto 1.5rem;
  border-radius: 0;
  width: 152px;
  height: 152px;
}

.game-card h3 {
  margin: 0 0 0.5rem;
}

.game-card p {
  margin: 0 0 0.5rem;
}

.game-card a {
  color: #99cc66;
  text-decoration: none;
  font-weight: bold;
}

.game-card a:hover {
  color: #abd581;
  text-decoration: underline;
}

/* Section spacing */
section {
  margin-bottom: 2.5rem;
}

.about p,
.contact p {
  margin: 0.25rem 0;
}

/* Contact – original #e4 greenscheme (dashed border style) */
.contact address,
.contact .contact-line {
  font-style: normal;
  display: block;
  font-size: 110%;
  line-height: 115%;
}

.contact a {
  color: #99cc66;
  text-decoration: none;
}

.contact a:hover {
  color: #abd581;
  text-decoration: underline;
}

.contact .company {
  font-style: italic;
  font-weight: bold;
}

.contact .contact-line {
  margin: 1em 0;
  padding: 0.3em 0.6em;
  border: 1px dashed #99cc66;
  border-radius: 5px;
  margin-left: 0;
  display: inline-block;
  min-width: 200px;
}

/* Facebook Page Plugin */
.facebook {
  margin-bottom: 2.5rem;
}

.facebook-embed {
  margin: 1rem 0;
  max-width: 280px;
}

.facebook-embed iframe {
  max-width: 100%;
}

.facebook a {
  color: #99cc66;
  text-decoration: none;
}

.facebook a:hover {
  color: #abd581;
  text-decoration: underline;
}

.credits p {
  margin: 0.5rem 0;
}

.credits strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* Footer – original #footer */
footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
  text-align: center;
  font-size: 75%;
  line-height: 150%;
  color: #999;
  background: #fff;
}

footer a {
  color: #99cc66;
  text-decoration: none;
}

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

footer p {
  margin: 0.25rem 0;
}

/* Selection – greenscheme */
::selection {
  background: #beff9b;
}
::-moz-selection {
  background: #beff9b;
}

/* Responsive */
@media (max-width: 767px) {
  body {
    font-size: 17.1px;
    padding: 0 4px 1rem;
  }
  h1 {
    font-size: 200%;
  }
  .page-header {
    flex-direction: column;
    text-align: center;
  }
  .header-image img {
    margin: 0 auto;
  }
  .games-grid {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.5rem;
  }
  .game-card {
    flex: 0 0 180px;
    min-width: 180px;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  body {
    font-size: 17.64px;
  }
}

@media (min-width: 1440px) {
  body {
    font-size: 21.6px;
  }
}
