html, body, #page_content {
    min-height: 100%;
}

body {
    font-family: "PT Sans", Arial;
    font-size: 19px;
    background: #7A7A7A;
    color: #222c37;
    font-weight: 400;
    margin: 0;
    padding: 0;
    letter-spacing: 1px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

#wrapper {
    padding-top: 95px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    min-height: 100%;
    height: auto;
    margin-bottom: -331px;
}

#header {
	height: 95px;
	-webkit-transition: all ease-out 0.2s;
    -o-transition: all ease-out 0.2s;
    transition: all ease-out 0.2s;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 9999;
    background: #000;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    -ms-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    -ms-justify-content: center;
    justify-content: center;
    -webkit-transform: translateZ(100px);
    transform: translateZ(100px);
}

#logo {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    -ms-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    -ms-justify-content: center;
    justify-content: center;
    width: 310px;
	height: 100%;
    background: #3B3B3B;
}

#logo a {
    background: url(../images/squiddy_logo.png?v=1) no-repeat center;
    width: 100%;
    height: 70px;
    background-size: auto 70px;
    display: block;
    margin: 0 auto;
    position: relative;
    text-indent: -9999px;
    -webkit-transition: all cubic-bezier(.165, .84, .44, 1) 0.2s;
    -o-transition: all cubic-bezier(.165,.84,.44,1) 0.2s;
    transition: all cubic-bezier(.165, .84, .44, 1) 0.2s;
}

#navigation {
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    -ms-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    -ms-justify-content: center;
    justify-content: center;
}

#navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#navigation ul li {
    float: left;
    height: 95px;
    margin: 0;
}

#navigation a {
    font-family: "Brandon Grotesque", Arial;
    text-transform: uppercase;
    color: #fff;
    display: block;
    padding: 0 60px;
    height: 95px;
    line-height: 100px;
	text-decoration: none;
    -webkit-transition: color cubic-bezier(.165, .84, .44, 1) 0.2s;
    -o-transition: color cubic-bezier(.165,.84,.44,1) 0.2s;
    transition: color cubic-bezier(.165, .84, .44, 1) 0.2s;
}

#navigation a:hover {
  font-weight: bold;
  color: #FFCC00;
}

#social {
    width: 310px;
    background: #3B3B3B;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    -ms-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    -ms-justify-content: center;
    justify-content: center;
	height: 100%;
}

#social>div {
    display: flex;
}

#social a {
	display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 36px;
    background: #f0f2f5;
    display: inline-block;
    vertical-align: middle;
    margin: 5px;
    -webkit-transition: all ease-out 0.2s;
    -o-transition: all ease-out 0.2s;
    transition: all ease-out 0.2s;
    line-height: 2.1;
    text-align: center;
    font-size: 22px;
    color: #3B3B3B;
}

#social a:hover {
	background: #FFCC00;
	color: #FFF;
}

#games-carousel {
	padding: 0px 50px;
	background: #000;
}

#games-carousel img {
  width:100%;
  height:800px;
  object-fit:cover;
  box-shadow:0 6px 20px rgba(0,0,0,.2);
}

#games-carousel .cap {
	margin-top:.5rem;
	text-align:center;
	opacity:.85;
	color: #FFF;
}

#games-carousel a {
	text-decoration: none;
}

.cap-below {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.85;
}

/* Game summary sections */
#game-sections,
#game-sectionss {
  margin: 40px auto;
  max-width: 1200px;
}

#game-sections {
  padding: 160px 20px 0 20px;
}

#game-sectionss {
  padding: 280px 20px 0 20px;
}

.game-summary {
  padding: 60px 0;
}

.game-summary:nth-child(odd) {
  background-color: #BCBCBC;
  color: #333;
}

.game-summary:nth-child(even) {
  background-color: #FFF;
  color: #555;
}

.game-summary img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.game-summary img:hover {
  transform: scale(1.03);
}

.game-summary h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #333;
}

.game-summary p {
  font-size: 1.1em;
  line-height: 1.6;
}

/* For spacing between text & image on smaller screens */
.game-summary .row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.game-summary .col-md-6 {
  padding: 20px;
}

.vert-list {
	padding-left: 50px;
}

.horizontal-list {
  display: flex;
  flex-wrap: wrap;   /* wrap onto next line if needed */
  gap: 12px;
  list-style: none;  /* remove numbers */
  padding-left: 0;
  margin-top: 15px;
}

.horizontal-list li {
  position: relative;
  padding: 8px 16px 8px 40px;
  background: #555;
  color: #fff;
  border-radius: 20px;
  font-size: 0.95em;
}

.horizontal-list.icons li::before {
  content: "\f005";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #FFCC00;
  font-size: 1em;
}

.photo-tilt {
  display: inline-block;
  transform: rotate(-5deg);
  transition: transform 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 4px solid #fff;
  border-radius: 6px;
}

.photo-ltilt {
  display: inline-block;
  transform: rotate(5deg);
  transition: transform 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 4px solid #fff;
  border-radius: 6px;
}

.photo-tilt:hover, .photo-ltilt:hover {
  transform: rotate(0deg) scale(1.05);
}

.sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #3B3B3B;
  color: #fff;
  text-align: center;
  padding: 10px 0;
  z-index: 1000;
}

.sticky-footer nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 50px;
}

.sticky-footer nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.sticky-footer nav a:hover {
  font-weight: bold;
}

/* ------- Keep desktop pristine; apply these only on phones/tablets ------- */
@media (max-width: 768px) {
  /* Make room for your fixed/sticky header on small screens only */
  #game-sections {
    padding: 110px 16px 0 16px;
    max-width: 100%;
  }

  /* Stack image above text */
  .game-summary .row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .game-summary .col-md-6 {
    padding: 12px 10px;
  }

  /* Slightly smaller type for tight mobile layout */
  .game-summary h2 {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 12px;
  }
  .game-summary p {
    font-size: 1rem;
    line-height: 1.55;
  }

  /* Horizontal icon list: tighter pills on mobile */
  .horizontal-list { gap: 8px; }
  .horizontal-list li {
    font-size: 0.95rem;
    padding: 8px 12px 8px 36px;
  }

  /* Tilted photo: avoid hover/transform jumps on touch UIs only */
  .photo-tilt, .photo-ltilt {
    border-width: 3px;
    box-shadow: 0 6px 14px rgba(0,0,0,.25);
    transform: none;
  }
  .photo-tilt:hover, .photo-ltilt:hover { transform: none; }

  /* Compact header on small screens only */
  #header { height: 64px; }
  #logo { width: 320px; }
  #navigation a {
    padding: 0 16px;
    height: 64px;
    line-height: 64px;
  }
  #social { display: none; }

  /* Footer overlap fix only on mobile */
  body { padding-bottom: 64px; }
  .sticky-footer { min-height: 64px; }
  
  .sticky-footer nav ul {
    display: flex;
    justify-content: center;   /* center links horizontally */
    gap: 12px;                 /* space between links */
    padding: 8px 0;
    margin: 0;
  }

  .sticky-footer nav ul li {
    list-style: none;
  }

  .sticky-footer nav ul li a {
    font-size: 0.85rem;        /* shrink link text */
    color: #fff;               /* adjust to match your theme */
    text-decoration: none;
  }
}

/* Desktop ordering helpers (unchanged behavior on desktop) */
@media (min-width: 768px) {
  .order-md-1 { order: 1; }
  .order-md-2 { order: 2; }
}

/* ===== Mobile menu (hamburger) — CSS-only toggle ===== */
@media (max-width: 768px) {
  /* Hide the checkbox itself */
  .nav-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  /* Hamburger button */
  .hamburger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    margin-left: 12px;         /* adjust as needed */
    cursor: pointer;
    z-index: 1001;             /* above the nav */
  }
  .hamburger span {
    display: block;
    height: 3px;
    width: 28px;
    background: #fff;          /* visible on your dark header */
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
  }

  /* Place hamburger near the left logo; tweak if needed */
  #header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  /* Collapse the desktop nav into a panel off-canvas */
  #navigation {
    position: fixed;
    top: 64px;                 /* header height on mobile; adjust if different */
    left: 0;
    right: 0;
    background: #222;          /* mobile panel background */
    transform: translateY(-120%);
    transition: transform .25s ease;
    box-shadow: 0 8px 18px rgba(0,0,0,.35);
  }

  /* Stack menu items vertically with generous tap targets */
  #navigation .menu {
    display: flex;
    flex-direction: column;
    padding: 12px 8px;
    margin: 0;
    list-style: none;
    gap: 2px;
  }
  #navigation .menu > li > a {
    display: block;
    padding: 14px 16px;
    color: #fff;
    text-decoration: none;
  }
  #navigation .menu > li > a:hover {
    background: rgba(255,255,255,.08);
  }

  /* Hide desktop social links on mobile to save space */
  #social { display: none; }

  /* Toggle: when checked, slide the nav panel down */
  .nav-toggle:checked ~ #navigation {
    transform: translateY(0);
  }

  /* Animate hamburger into an “X” when open */
  .nav-toggle:checked + .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked + .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Keep desktop exactly as-is */
@media (min-width: 769px) {
  .hamburger, .nav-toggle { display: none; }
  #navigation { position: static; transform: none; box-shadow: none; }
}

@media (max-width: 1024px) {
  #header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #222;
  }
  
  #logo a {
	display: inline-block;
	padding: 12px 0;   /* vertical breathing room */
	font-size: 1.6rem; /* scale if needed */
	line-height: 1.2;  /* prevent clipping descenders */
	color: #fff;
	text-decoration: none;
  }

  body {
    padding-top: 80px; /* match header height */
  }
}

@media (min-width: 768px) {
  /* Make every row under #game-sections a flex row */
  #game-sectionss > .row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
  }

  /* Give each "col-md-6" half width (since Bootstrap grid isn't loaded) */
  #game-sectionss > .row > .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  /* Ensure order helpers actually apply on desktop */
  .order-md-1 { order: 1; }
  .order-md-2 { order: 2; }
}

.photo-pair {
  display: flex;
  gap: 50px; /* space between the photos */
  justify-content: center;
  align-items: flex-start;
  margin-top: 100px;
}

/* Shared photo look */
.photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;                 /* crops to fit */
  transition: transform 0.3s ease;
}

.photo-wrapper {
  position: relative;
  width: clamp(260px, 32vw, 534px);
  aspect-ratio: 1 / 1;              /* both images share this ratio */
  border: 6px solid #fff;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  overflow: hidden;                  /* keeps caption/edges tidy */
}

.photo-item {
  display: flex;
  justify-content: center;
}

.photo-link {
  display: inline-block;
  text-decoration: none; /* remove underline */
  color: inherit;        /* captions keep their original color */
}

.photo-link:hover {
  cursor: pointer;
}

.caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.92);
  padding: 16px 12px;
  font: 600 1.45rem/1.2 "PT Sans", Arial, sans-serif;
  color: #333;
  text-align: center;
}

/* Left-leaning tilt */
.tilt-left  { transform: rotate(-5deg) scale(1.03); }
.tilt-right { transform: rotate( 5deg) scale(1.03); }
.tilt-left:hover,
.tilt-right:hover { transform: rotate(0deg) scale(1.06); }

/* On smaller screens stack vertically */
@media (max-width: 768px) {
  .photo-pair { flex-direction: column; gap: 24px; }
  .photo-wrapper { width: min(92vw, 420px); }
}
