﻿@font-face {
	font-family: "Montserrat";
	src: url('fonts/MontserratAlternates-Bold.ttf') format('truetype');
	font-weight: bold;
}

@font-face {
	font-family: "Montserrat";
	src: url('fonts/MontserratAlternates-Regular.ttf') format('truetype');
	font-weight: normal;
}

@font-face {
  font-family: "Nunito";
  src: url('fonts/Nunito-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Nunito";
  src: url('fonts/Nunito-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: "Nunito";
  src: url('fonts/Nunito-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Nunito";
  src: url('fonts/Nunito-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: "Nunito";
  src: url('fonts/Nunito-SemiBold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}


/* General Reset & Styling */
body {
  margin: 0;
  padding: 0;
  background-color: #FAF0F3;
  font-family: "Montserrat", sans-serif;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

footer {
    margin-top: auto;
    background-color: #092F4D;
    font-family: "Nunito", sans-serif;
    position: relative;
    display: block;
    padding: 1rem 0;
    width: 100%;
    z-index: 1;
}

/* Header */
header {
  background-color: #FAF0F3;
  padding: 2rem 1rem 1rem;
  text-align: left;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  z-index: 2;
  position: sticky;
}

.main-content {
    flex: 1;
}

.main-content.start-main {
    padding-top: 5rem;
}

.header-start {
    text-align: center;
}

.header-subpage
{
  padding-left: 50%;
  transition: padding-left 1s ease;
}

header.align-left {
  padding-left: 1rem; /* your normal padding */
}

.site-title{
  position: relative;
  display: inline-block;
  font-size: 2.5rem;
  font-weight: bold;
  color: black;
  text-align: center;
  text-decoration: none;     /* Removes underline */
  color: inherit;            /* Uses the surrounding text color */
  cursor: default;
}

.sub-title-wrapper {
  display: flex;
  justify-content: center;
}

.sub-title{
    font-size: 2rem;
    font-weight: bold;    
    color: black;
    padding: 0 0 4rem 0;
    margin: 2rem 0 2rem 0;
}

.site-title::before,
.site-title::after {
  content: "";
  position: absolute;
  height: 15px;
  width: 100%;
  left: 0;
  z-index: -1;
}

.site-title::before {
  background-color: #4192c3;
  bottom: -12px;
  transform: translateX(-10px);
}

.site-title::after {
  background-color: #e35100;
  bottom: -20px;
  transform: translateX(15px);
}

/* Layout */
.linkNoDecoration {
  display: block;
  text-decoration: none;     /* Removes underline */
  color: inherit;            /* Uses the surrounding text color */
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: pointer;
}

.linkLine {
    whitespace: nowrap;
}

.container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  /*height: calc(65vh - 150px);*/
  position: relative;
}

.vertical-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: black;
  z-index: 1;
  transition: box-shadow 0.3s ease;
}

.center-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 20%;
  z-index: 2;
}

.center-image {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 2px solid black;
  object-fit: cover;
  object-position: top;
  background-color: black;
  transition: box-shadow 0.3s ease;
}

.container.hover-left .vertical-line {
  box-shadow: -5px 0 10px rgba(0, 0, 0, 0.6);
}

.container.hover-left .center-image {
  box-shadow: -5px 0 10px rgba(0, 0, 0, 0.6);
}

.container.hover-right .vertical-line {
  box-shadow: 5px 0 10px rgba(0, 0, 0, 0.6);
}

.container.hover-right .center-image {
  box-shadow: 5px 0 10px rgba(0, 0, 0, 0.6);
}

.footerContainer {
    font-size: 0.8rem;
    color: #FAF0F3;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}


.tableOnFooter
{
    text-align: center;    
    padding: 5px 15px 5px 15px;
}

/* Flex Item Containers */
.side {
  width: 60%;  
  display: flex;
  flex: 0 1 400px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 40%;
  gap: 0rem;
  padding: 0rem;
  margin: 0;
  text-align: left;
}

.left {
  padding-left: 3vw;
}

.right {
  padding-right: 3vw;
}

.title {
  font-family: "Montserrat", Helvetica, sans-serif;
  font-weight: bold;
  font-size: 2rem;
  text-align: left;
  color: #ccc;
  border-bottom: 15px solid #ccc;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.text-box {
  font-family: "Montserrat", Helvetica, sans-serif;
  font-weight: normal;
  font-size: 1rem;
  line-height: 1.4;
  color: black;
  text-align: left;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.privacy {
  display: flex;
  flex-direction: column;
  font-family: "Montserrat", Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.4;
  color: black;
  text-align: left;
  transition: opacity 0.3s ease;

  max-width: 100vh;
  /* max-height: calc(60vh); */ /* remove this */
  /* overflow-y: auto; */       /* not needed if no height limit */
  padding-right: 0.5rem;
  padding-top: 0rem;
  box-sizing: border-box;
  margin-top: 0rem;
}


/* Hover highlight for wide screens */
@media (min-width: 769px) {
  .container.hover-left .right .title {
    color: black;
    border-bottom-color: #e35100;
  }

  .container.hover-right .left .title {
    color: black;
    border-bottom-color: #4192c3;
  }

  .container.hover-left .right .text-box {
    opacity: 1;
  }

  .container.hover-right .left .text-box {
    opacity: 1;
  }
}

/* Scroll-triggered in-view activation for stacked layout */
@media (max-width: 768px) {
  .site-title::before,
  .site-title::after {
    content: "";
    position: absolute;
    height: 15px;
    width: 150%;
    left: 15px;
    z-index: -1;
  }  

  .main-content.start-main {
    padding-top: 1rem;
  }

  .container {
    flex-direction: column;
    align-items: center;    
    padding: 1rem;
  }
  .side {
    max-width: 80%;
    max-height: 150px;
  }

  .side, .center-image-wrapper {
    width: 90%;
    align-items: center;
    text-align: center;
  }

  .left {
      padding: 0rem;
      justify-content: flex-start
  }
  .right {
    padding: 0rem;
    justify-content: flex-end
  }
  .title {
    font-size: 1.5rem;
    border-bottom-width: 10px;
  }
  .text-box {
    font-size: 0.95rem;
    text-align: left;
  }
  .center-image {
    width: 180px;
    height: 180px;
  }

  .side .title {
    color: #ccc;
    border-bottom: 10px solid #ccc;
  }
  .side .text-box {
    opacity: 0.4;
  }
  .side.in-view .title {
    color: black;
    border-bottom-color: var(--highlight-color, #e35100);
  }
  .side.in-view .text-box {
    opacity: 1;
  }

  .sub-title{
    font-size: 2rem;
    font-weight: bold;    
    color: black;
    padding: 0;
    margin: 2rem 0 0rem 0;
}
}

@media (max-width: 480px) {
  .title {
    font-size: 1.3rem;
    border-bottom-width: 6px;
  }
  .text-box {
    font-size: 0.85rem;
  }
  .center-image {
    width: 150px;
    height: 150px;
  }
}

/* Carousel stuff */
.carousel {
  width: 100%;
  max-width: 800px;
  overflow: visible;
  border: 0px solid #ccc;
  border-radius: 8px;
}

.carousel-track {
  display: flex;
  transition: transform 0.17s ease-in-out;
  gap: 1rem;
  padding: 0 15%;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%; /* Each slide takes full width */
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  align-items: flex-start;
  justify-content: center;
  font-size: 2rem;
  background: transparent;
  min-height: 400px;
  min-width: 80%;
  transition: transform 0.5s ease, filter 0.5s ease;
  padding: 1rem 2rem 1rem 2rem;         /* Reduce vertical padding */
  margin: 0;               /* Reset margin */
  box-sizing: border-box;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.carousel-title {
  font-family: "Montserrat", Helvetica, sans-serif;
  font-weight: bold;
  font-size: 2rem;
  text-align: left;
  color: black;
  border-bottom: 15px solid #4192c3;
}

.carousel-text-box {
  font-family: "Montserrat", Helvetica, sans-serif;
  font-weight: normal;
  font-size: 1rem;
  line-height: 1.4;
  color: black;
  text-align: left;
  padding: 0rem;
}

@media (max-width: 768px) {
  .carousel {
    margin-top: 0rem;
    overflow: hidden;
    min-height: 100%;
  }

  .carousel-track {
    flex-direction: row;
    width: 100%;
    gap: 1rem;
    padding: 0; /* REMOVE padding to avoid shifting transform */
    margin-left: 5%; /* aligns slides to center visually */
  }

  .carousel-slide {
    flex: 0 0 90%;
    width: 90%;
    /*min-height: 65vh; /* better vertical space */
    padding: 1rem;
    font-size: 1.1rem;
    align-items: flex-start;
    justify-content: flex-start;
    box-sizing: border-box;
    transition: transform 0.3s ease, filter 0.3s ease;
    scroll-snap-align: center;
  }

  .carousel-title {
    font-size: 1.5rem;
    border-bottom-width: 10px;
  }

  .carousel-text-box {
    font-size: 0.9rem;
  }
  
  .swipe-hint {
      bottom: 1rem;
  }
}

.swipe-hint {
  display: block;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: #666;
  opacity: 0.5;
  pointer-events: none;
  bottom: -2rem;
}

/* Base nav styles */
.nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  opacity: 1;
  transition: opacity 1s ease;
}

.nav.fade-in {
  opacity: 0;
  animation: fadeInNav 1.2s ease forwards;
}

@keyframes fadeInNav {
  to {
    opacity: 1;
  }
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
}

/* Mobile styles */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  margin-left: 1rem;
  cursor: pointer;
}

/* Responsive collapse */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: flex-end;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    gap: 1rem;
    background: #f9f9f9;
    padding: 1rem;
    border: 1px solid #ddd;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 10;
  }

  .nav-list.show {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}


/* My Game Page Stuff */
.games-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
}

.nav-button {
  height: 100%;
  min-height: 600px;
  width: 40px;
  background-color: #ccc;
  border: none;
  font-size: 24px;
  cursor: pointer;
  border-radius: 10px;
}


.tiles {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 600px; /* sets the overall height */
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

.big-tile {
  flex-shrink: 0;
  height: 100%;
  aspect-ratio: 2 / 3;
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}


.tile-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: 100%; /* allow overlay to expand */
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.4s ease;
  box-sizing: border-box;
  overflow-y: auto;
}

.big-tile:hover .tile-overlay {
  opacity: 0.85;
}


.tile-title {
  margin: 0;
  font-size: 1.2rem;
  word-break: break-word;
}

.tile-description {
  font-size: 0.9rem;
  margin: 0.5rem 0;
  word-break: break-word;
  flex-grow: 1;
  overflow: auto;
}

.tile-button {
  align-self: flex-end;
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.tile-button:hover {
  background-color: #0056b3;
}

.tile-button.steam { background-color: #092F4D; }
.tile-button.itch { background-color: #fa5c5c; }
.tile-button.browser { background-color: #4caf50; }

.side-tiles {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 20px;
}


.small-tile {
  display: flex;
  aspect-ratio: 3 / 2;
  height: calc(50% - 10px); /* half of side-tiles height minus gap */
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  background-color: #fff;
}

.small-tile-img {
  width: 50%;
  height: 100%;
  object-fit: cover;
}


.tile-textbox {
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}


.tile-textbox .tile-title {
  font-size: 1rem;
}

.tile-textbox .tile-description {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  flex-grow: 1;
}

.tile-textbox .tile-button {
  margin-top: 0.5rem;
  align-self: flex-end;
}



@media screen and (max-width: 768px) {
  .games-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .tiles {
    flex-direction: column;
    height: auto;
  }

  .big-tile,
  .small-tile {
    width: 100%;
    height: auto;
  }

  .nav-button {
    display: none;
  }

   .tile-overlay {
    padding: 10px;
    height: auto;
    max-height: 70%; /* allow it to expand more */
  }

  .tile-title {
    font-size: 16px;
  }

  .tile-description {
    font-size: 14px;
  }

  .tile-button {
    font-size: 12px;
    padding: 6px 10px;
  }
    
}

/* All Games List */
.all-games-section {
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  padding: 0;
  text-align: left;
  align-items: flex-start;
}

.toggle-header {
  cursor: pointer;
  color: #333;
  user-select: none;
  font-size: 1.25rem;
  transition: color 0.3s;
}

.toggle-header:hover {
  color: #0077cc;
}

.game-list {
  margin-top: 1rem;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
}

.game-list.visible {
  display: flex;
}

.game-entry {
  padding: 0.75rem 1rem;
  background-color: #f8f8f8;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: background 0.2s;
}

.game-entry:hover {
  background-color: #eef;
}

.game-entry a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.game-entry h4 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.game-entry p {
  margin: 0;
  font-size: 0.95rem;
  color: #444;
}

@media screen and (max-width: 768px) {
    .all-games-section {
    width: 90%;
    }
}

/*My Career stuff*/
.cv-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
}

.cv-left, .cv-right {
  color: black;
  font-size: 0.95rem;
}

.cv-left h2, .cv-right h2 {
  color: black;
  margin-bottom: 0.5rem;
  border-bottom: 15px solid #4192c3;
}

.cv-left h3, .cv-right h3 {
  color: black;
  margin-bottom: 0.2rem;
}

.cv-left p, .cv-right p {
  margin: 0.4rem 0;
  line-height: 1.4;
}

.cv-right ul {
  padding-left: 1.2rem;
  margin: 0.5rem 0 1.5rem;
}

.cv-right li {
  margin-bottom: 0.4rem;
}

/* Responsive */
@media (max-width: 768px) {
  .cv-grid {
    grid-template-columns: 1fr;
  }

  .cv-left, .cv-right {
    padding: 0;
  }
}








