body {
  font-family: 'Jost', sans-serif;
  margin: 0;
  background-color: #f4f4f4;
  text-align: center;
  letter-spacing: 0.15em;
  overflow-x: hidden;
}

header {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.top-bar {
  background: #000;
  height: 100px;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  justify-content: space-between;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1), opacity 0.5s cubic-bezier(0.4,0,0.2,1);
}

.top-bar.hide {
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
}

.logo {
  height: 40px;
  margin-right: 2rem;
}

.top-bar-text {
  color: #fff;
  font-size: 2rem;
  font-family: 'Jost', sans-serif;
  letter-spacing: 0.3em;
}

.top-bar-buttons {
  display: flex;
  gap: 1rem;
  padding: 0 3rem 0 0;
}

.top-bar-buttons button {
  background: #000;
  color: #fff;
  border: none;
  padding: 0.5rem 0.6rem;
  border-radius: 4px;
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: background 0.2s;
}

.top-bar-buttons button:hover {
  background: #4b4b4b;
}

.video-zone {
  position: relative;
  width: 100%;
  max-height: 800px;
  height: 800px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8rem;
}

.video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.video-zone::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  border-radius: 8px;
  background: linear-gradient(
    to right,
    rgb(0, 0, 0) 0%,
    rgba(0, 0, 0, 0.164) 60%,
    rgba(141, 1, 1, 0) 100%
  );
}

.video-content {
  position: relative;
  z-index: 3;
  color: #fff;
  text-align: left;
  width: 100%;
  max-width: 520px;
  padding: 2rem 2rem 2rem 3rem; 
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start; 
  opacity: 0;
  animation: fadeIn 1.2s ease-out 0.3s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.video-zone-text {
  font-family: 'Jost', sans-serif;
  font-size: 4rem;
  margin-bottom: 0rem;
  margin-top: 0;
  text-align: left;
  font-weight: bold;
}

.video-zone-subtext {
  font-family: 'Jost', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #e0e0e0;
  text-align: left;
}

.video-zone-btn {
  background: rgba(255, 248, 84, 1);
  color: #000;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 4px;
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  letter-spacing: 0.1em;
  font-weight: 600;
  transition: background 0.2s;
}

.video-zone-btn:hover {
  background: #e0e0e0;
}

.section-title {
  font-family: 'Jost', sans-serif;
  font-size: 2rem;
  margin: 1rem 0;
  text-align: center;
  font-weight: 500;
}

.game-list {
  display: flex;
  align-items: center;
  flex-direction: column; 
  gap: 2rem;
  padding: 0 4em;
}

.game-item {
  display: flex;
  flex-direction: row; 
  align-items: center;
  background: #fff;
  border-radius: 8px;
  width: 60%;
  padding: 1rem;
  height: 400px; 
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: left;
  justify-content: space-between;
  gap: 2rem;
}

.game-slideshow {
  width: 100%;
  height: 100%;
  display: flex;
}
.game-slideshow img {
  width: 100%;
  height: 95%;
  object-fit: cover;
  border-radius: 8px;
  transition: opacity 0.5s;
}

.game-title {
  font-family: 'Jost', sans-serif;
  flex: 1 1 0;
  font-size: 3rem;
  font-weight:600; 
}

.game-image {
  height: 95%;
  max-width: 50%;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.game-description {
  font-family: 'Jost', sans-serif;
  font-size: 1.5rem;
  color: #666;
  margin-top: 0.5rem;
  max-width: 500px;
}

.game-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Pushes image link to the bottom */
  align-items: flex-start;
  height: 100%;
}

.team-zone {
  background-color: #000;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  margin-top: 2rem;
  width: 100vw; 
}

.team-info {
  display: flex;
  flex-direction: column;
  align-items: center;   
  color: #fff;
  text-align: center;    
}

.team-member {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  align-items: center;   
  gap: 1rem;
  margin-top: 1rem;
}

.team-members{
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  gap: 4rem;
}

.team-member:hover
{
  transition: transform 0.2s;
  transform: scale(1.05);
}

.team-member:not(:hover) {
  transition: transform 0.2s;
  transform: scale(1);
}

.team-name {
  font-family: 'Jost', sans-serif;
  font-size: 1.5rem;
  max-width: 150px;
  margin-bottom: 0rem;
  text-align: center;
  flex-wrap: wrap;
}

.team-role {
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  color: #ccc;
  text-align: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.team-image{
  width: 150px;
  height: 150px;
  border-radius: 10%;
  object-fit: cover;
  align-items: center;
}

.footer {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  background: #ffffff;
  color: #000000;
  padding: 2rem 3rem;
  gap: 2rem;
  width: 100%;
  box-sizing: border-box;
}

.social-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.2rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: opacity 0.2s;
}

.itch-icon {
  height: 36px;
  object-fit: contain;
  transition: opacity 0.2s;
  margin-top: 1rem;
}

.itch-icon:hover {
  opacity: 0.7;
}

.social-icon:hover {
  opacity: 0.7;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.footer-text {
  margin-left: 2rem;
}

.scroll-to-top {
  position: fixed;
  bottom: 16rem;
  right: 2rem;
  z-index: 200;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  padding: 0;
  transition: opacity 0.4s, background 0.4s, color 0.4s;
}

.scroll-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.scroll-to-top img {
  width: 60%;
  height: 60%;
  z-index: 201;
  object-fit: contain;
  display: block;
  transition: filter 0.4s;
}

.scroll-to-top.light {
  background: #fff;
  color: #000;
}
.scroll-to-top.light img {
  filter: invert(1);
}
.scroll-to-top.dark {
  background: #000;
  color: #fff;
}
.scroll-to-top.dark img {
  filter: none;
}

.game-slideshow {
  position: relative;
  width: 50%;
  height: 95%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.game-slideshow img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: opacity 0.5s;
}
.slideshow-dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.slideshow-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s;
}
.slideshow-dots button.active {
  background: #000;
}


/* Keep slideshow images aspect ratio */
.game-slideshow img {
  object-fit: contain;
  width: 100%;
  height: 100%;
  background-color: #000; /* Optional: background for letterboxing */
}

/* Ensure game description directly below title */
.game-info .game-description {
  margin-top: 0.5rem;
}

/* Footer full width */
.footer {
  width: 100%;
  box-sizing: border-box;
}

/* Responsive layout */
@media (max-width: 768px) {
  .game-item {
    flex-direction: column;
    width: 90%;
    height: auto;
  }
  .game-slideshow {
    width: 100%;
    height: auto;
  }
  .game-slideshow img {
    max-height: 300px;
  }
  .game-info {
    width: 100%;
    text-align: center;
    align-items: center;
  }
  .slideshow-dots button {
    width: 16px;
    height: 16px;
  }
  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-contact {
    align-items: center;
    text-align: center;
  }
}
