body{
  margin:0;
  padding:0;
  font-size:100%;
  line-height: 1.6;
  background: #eeeeee;
  font-family: Arial, Helvetica, sans-serif;
}

#wrapper {
  position: relative;
  width: 100%;
  height: calc(100vh - 80px); /* adjust to header height */
  overflow: hidden;
}


/* HEADEN AND CONTROLS BACKGROUND */
.top-ui {
  background:
    radial-gradient(
      circle at 20% 30%,
      rgb(37 30 218 / 37%),
      #6f006d0d 40%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgb(178 2 183 / 61%),
      #93aeff1f 45%
    ),
    linear-gradient(
      135deg,
      #a25aff,
      #1737ff
    );
}






.layer{
  position: absolute;
  width:100vw;
  min-height: 55vw;
  overflow: hidden;
}

.layer .content-wrap{
  position: absolute;
  width:100vw;

}

.layer .content-body{
  margin-top: 80px;
  width:75%;
  position:absolute;
  top:50%;
  text-align: center;
  color:#fff;
}


.layer h1{
  font-size:2em;
}

.bottom{
  background:#eeeeee;
  z-index:1;
}

.bottom .content-body{
  right:12%;
  color: #222;
}

.bottom h1{
  color:#282828;
}

.top{
  background:#eee;
  color:#222;
  z-index:2;
  width:50vw;
  transition: width 0.6s ease;
}

.top .content-body{
  left: 12%;
  color:#222;
}

.handle {
  position: absolute;
  top: 50%;
  left: 0;
  width: 5px;
  height: 200%;
  background-color: #9c77ff;
  z-index: 10;
  cursor: pointer;

  transform: translate(-50%, -50%);
  transform-origin: top;

  transition: left 0.6s ease;
}



.handle {
  cursor: pointer;
}

/*
.skewed .handle{
  top:50%;
  transform:rotate(0deg) translateY(-50%);
  height: 200%;
  transform-origin:top;
}
*/

.skewed .top{
  transform: skew(0deg);
  margin-left:-1000px;
  width: calc(50vw + 1000px);
}

.skewed .top .content-wrap{
  transform: skew(0deg);
  margin-left:1000px;
}

@media(max-width:768px){
  body{
    font-size:75%;
  }
}









.split-controls {
  padding-top: 60px;
  height: 130px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
}

/* Purple container */
.split-toggle {
  position: relative;
  display: flex;
  background: transparent; /* purple */
  border-radius: 999px;
  padding: 6px;
  gap: 6px;
}

/* White sliding bubble */
.toggle-indicator {
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc(50% - 1px);
  height: calc(100% - 12px);

  background: white;
  border-radius: 999px;

  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}



/* Buttons */
.split-btn {
  position: relative;
  z-index: 2;

  padding: 12px 28px;
  border: none;
  background: transparent;

  font-weight: 600;
  color: black;
  cursor: pointer;
}

/* Optional: slightly darker text for inactive */
.split-btn:not(.active) {
  opacity: 0.9;
  color: #ffffff;
  border: 2px solid #ffffff66;
  border-radius: 25px;
}






/* ---------- SOCIAL HEADER (NEW) ---------- */
.social-header {
  height: 80px;                 /* important: matches your #wrapper calc(100vh - 80px) */
  background: transparent;
  display: flex;
  align-items: center;
}

.social-links {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 28px;

  justify-content: center;   /* ← THIS is the missing line */
  align-items: center;
}


.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;

  color: #fff;
  text-decoration: none;
}

.social-icon {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  fill: currentColor;
}



.project-card-2 {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}


.project-card-shell {
  max-width: 1100px;
  margin: 0 auto;

  cursor: pointer;

  padding: 26px;                /* space between shell & inner */
  border-radius: 36px;

  background: #ededed;          /* slightly darker than page */

  box-shadow:
    -2px 8px 15px rgb(60 55 55 / 19%),
    inset 2px -4px 8px rgb(22 22 22 / 28%);

  border: 1.5px solid rgba(0, 0, 0, 0.25);
  
}

.project-card-shell:hover {
  transform: translateY(-4px);
  box-shadow:
    -2px 8px 15px rgb(0 24 127 / 19%),
    inset 2px -4px 8px rgb(22 22 22 / 28%);
}

  .project-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}




/* 4 rows layout (one per row) */
@media (max-width: 420px) {
  .social-links {
    grid-template-columns: 1fr;
  }

  .social-link {
    justify-content: center;
  }
}












/* ======================================================
   GAMES GRID – WEBSITE CARDS (INDEX PAGE) – BASE STYLES
====================================================== */

.games-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  justify-items: center;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Optional variant already used by you */
.games-grid.two-cols {
  grid-template-columns: repeat(2, 1fr);
}

.game-card {
  width: 100%; /* Changed from fixed 300px to flexible */
  max-width: 300px; /* Added max-width for cap */
  border-radius: 12px;
  background: #ebebeb;
  border: 1.5px solid rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box; /* Added for better sizing */
  box-shadow:
    -2px 8px 15px rgb(60 55 55 / 19%),
    inset 2px -4px 8px rgb(22 22 22 / 28%);
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow:
    -2px 8px 15px rgb(0 24 127 / 19%),
    inset 2px -4px 8px rgb(22 22 22 / 28%);
}

.game-link {
  display: block;
  padding: 18px;
  text-decoration: none;
  color: inherit;
}

.game-media {
  background: transparent;
  border: 1px solid #000eaa;
  box-shadow:
    -2px 2px 10px rgb(0 4 165 / 14%);
  border-radius: 16px;
  overflow: hidden;
}


.game-media img {
  width: 100%;
  border-radius: 12px;
  height: 140px;
  object-fit: cover; /* Changed from contain to cover for better fit */
  display: block;
  max-width: 100%; /* Added for safety */
}

.game-body {
  padding-top: 16px;
  text-align: center;
}

.game-title {
  font-size: 16px;
  font-weight: 800;
  text-decoration: underline;
  margin-bottom: 10px;
}

.game-desc {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.75);
}

/* Disabled / Soon cards */
.game-card.is-disabled {
  opacity: 0.95;
}

.game-card.is-disabled:hover {
  transform: none;
  cursor: default;
}

.game-card.is-disabled .game-link {
  cursor: default;
}








/* ======================================================
   GAMES ACTION BUTTONS (UNDER CARDS)
====================================================== */

.games-actions {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.games-btn {
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  text-align: center;
}

/* Primary (main CTA) */
.games-btn.primary {
  background: #9c77ff;
  color: white;
}

.games-btn.primary:hover {
  background: #8460f0;
  transform: translateY(-2px);
}

/* Secondary */
.games-btn.secondary {
  background: #4b6ef5;
  color: white;
}

.games-btn.secondary:hover {
  background: #3454d1;
  transform: translateY(-2px);
}

/* Outline style */
.games-btn.outline {
  background: transparent;
  color: #222;
  border: 2px solid #222;
}

.games-btn.outline:hover {
  background: #222;
  color: white;
  transform: translateY(-2px);
}







/* ======================================================
   BACK TO HOME BUTTON (INFO PAGES)
====================================================== */

.back-home-btn {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  
  background: #9c77ff;
  color: white;
  text-decoration: none;

  padding: 14px 36px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;

  z-index: 999;
}

.back-home-btn:hover {
  background: #8460f0;
  transform: translateX(-50%) translateY(-2px);
}







/* ======================================================
   MEDIA QUERIES – RESPONSIVE OVERRIDES
====================================================== */

@media (max-width: 1000px) {
  /* Completely disable split behavior */
  #wrapper {
    position: static;
    height: auto;
    overflow: visible;
  }

  .project-card-2 {
    flex-wrap: wrap; /* KEY */
    max-width: 700px;
    align-content: center;
    justify-content: center;
    margin: 0 auto;
  }

  .project-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  }

  .social-header {
    height: auto;
    padding: 14px 0;
  }

  .social-links {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 18px;
  }

  .handle {
    display: none !important;
  }

  .layer {
    position: static;
    width: 100%;
    min-height: auto;
  }

  .layer .content-wrap,
  .layer .content-body {
    position: static;
    width: 100%;
    min-height: auto;
    transform: none;
    margin: 0;
    padding: 40px 20px;
    text-align: center;
  }

  /* Remove skew system entirely */
  .skewed .top,
  .skewed .top .content-wrap {
    margin: 0;
    width: 100%;
    transform: none;
  }

  /* Stack layers vertically */
  .top {
    order: 1;
  }

  .bottom {
    order: 2;
  }

  /* Optional: simplify controls */
  .split-controls {
    display: none;
  }

  /* 1) Hard stop any horizontal overflow from children */
  html, body {
    overflow-x: hidden;
  }

  /* 2) Make the grid responsive (tablet/mobile) */
  .games-grid {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* tablet = 2 columns */
    gap: 16px;
    justify-items: stretch;
  }

  /* 3) Cards must not have fixed width on mobile */
  .game-card {
    width: 100%;
    max-width: 100%;
    height: auto; /* IMPORTANT: remove fixed height behavior */
    border-radius: 10px;
    overflow: hidden;
  }

  /* 4) Images must scale within the card */
  .game-card img {
    display: block;
    width: 100%;
    height: auto;
  }
}

@media (max-width: 600px) {
  .games-grid {
    grid-template-columns: 1fr; /* phone = 1 column */
  }
}