/* Structural styles only. Add your own colors, fonts, images, and decoration. */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  background-color: #d3d3d3;
  background-image: url("resources/background2.jpg");
  background-repeat: repeat;
  /*background-size: 128px 128px; */
}

.site-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  gap: 1rem;
  width: min(1200px, calc(100% - 2rem));
  min-height: calc(100vh - 4rem);
  margin: 2rem auto;
}

.site-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 250, 240, 0.9);
  border: 1px solid #222;
}

.header-cube {
  width: 80px;
  height: auto;
  flex: 0 0 auto;
}

.site-title {
  display: inline-block;
  font-size: 2rem;
  font-weight: bold;
  text-decoration: none;
}

.title-a {
  color: #d00;
}

.title-b {
  color: #080;
}

.title-c {
  color: #06c;
}

.site-header p {
  margin: 0.25rem 0 0;
}

.ad-banner {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ad-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.site-sidebar {
  grid-column: 1;
  grid-row: 3;
  padding: 1rem;
  background: rgba(255, 250, 240, 0.9);
  border: 1px solid #222;
}

.site-sidebar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-sidebar a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: #111;
  text-decoration: none;
  border: 1px solid #222;
  border-radius: 0.25rem;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.25);
}

.site-sidebar li:nth-child(1) a {
  background: linear-gradient(#ff8080, #e53935);
}

.site-sidebar li:nth-child(2) a {
  background: linear-gradient(#ffd180, #fb8c00);
}

.site-sidebar li:nth-child(3) a {
  background: linear-gradient(#fff59d, #fdd835);
}

.site-sidebar li:nth-child(4) a {
  background: linear-gradient(#a5d6a7, #43a047);
}

.site-sidebar li:nth-child(5) a {
  background: linear-gradient(#90caf9, #1e88e5);
}

.site-sidebar a:hover,
.site-sidebar a:focus-visible {
  filter: brightness(1.08);
}

.site-sidebar li + li {
  margin-top: 0.5rem;
}

.site-content {
  grid-column: 2;
  grid-row: 3;
  min-width: 0;
  padding: 1rem;
  background: rgba(255, 250, 240, 0.9);
  border: 1px solid #222;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.contact-list span {
  display: inline-block;
  width: 100px;
}

.contact-list img {
  display: block;
  width: 80px;
  max-width: 100%;
  height: auto;
}

.downloads-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.downloads-title img {
  width: 140px;
  height: auto;
}

.platform-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: fit-content;
  max-width: 100%;
  margin: 0.5rem auto 1rem;
  padding: 0.75rem;
  border: 1px solid currentColor;
  text-align: center;
}

.platform-notice > img {
  width: 40px;
  height: auto;
}

.platform-notice-copy p {
  margin: 0.25rem 0;
}

.page-section + .page-section {
  margin-top: 2rem;
}

.page-section h2 img {
  display: inline-block;
  width: 30px;
  height: auto;
  vertical-align: middle;
}

.construction-image {
  display: block;
  width: calc(100% - 1rem);
  max-width: none;
  height: auto;
  margin: 1rem 0.5rem 0;
}

.releases-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.releases-table caption {
  margin-bottom: 0.5rem;
  text-align: left;
}

.releases-table th,
.releases-table td {
  border: 1px solid currentColor;
  padding: 0.5rem;
  text-align: left;
  vertical-align: top;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.team-member {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1rem;
  border: 1px solid currentColor;
}

.team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 0 1rem;
  overflow: hidden;
}

.team-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member-info h3 {
  margin: 0;
}

.team-role {
  margin: 0.25rem 0 1rem;
  font-style: italic;
}

.site-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 250, 240, 0.9);
  border: 1px solid #222;
}

.site-footer p {
  margin: 0;
}

.contact-footer-image {
  width: 150px;
  height: auto;
  vertical-align: middle;
}

.geocities-footer-image {
  width: 100px;
  height: auto;
  margin-left: auto;
}

@media (max-width: 640px) {
  .site-layout {
    display: block;
    width: calc(100% - 1rem);
    min-height: calc(100vh - 1rem);
    margin: 0.5rem auto;
  }

  .site-header,
  .site-sidebar,
  .site-content,
  .site-footer {
    margin-bottom: 1rem;
  }

  .site-sidebar,
  .site-content,
  .site-footer {
    padding: 1rem;
  }

  .site-sidebar li {
    display: inline-block;
    margin: 0 1rem 0.5rem 0;
  }

  .site-sidebar li + li {
    margin-top: 0;
  }
}
