@font-face {
  font-family: 'Grandstander';
  src: url('Assets/Grandstander/static/Grandstander-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Grandstander';
  src: url('Assets/Grandstander/static/Grandstander-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Grandstander';
  src: url('Assets/Grandstander/static/Grandstander-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}

body {
  background: #F1E4C6;
  font-family: 'Fredoka One', Arial, sans-serif;
  margin: 0;
  color: #222;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 40px 16px 40px;
  background: none;
}

.header-left {
  display: flex;
  align-items: center;
}

.logo {
  height: 110px;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 1.2rem;
  font-family: 'Fredoka One', Arial, sans-serif;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s;
  padding: 4px 10px;
  border-radius: 12px;
}
.nav-link.home { color: #36b45e; }
.nav-link.about { color: #E64D45; }
.nav-link.games { color: #2389DA; }
.nav-link.contact { color: #F99D1C; }
.nav-link:hover, .nav-link:focus {
  text-decoration: none;
  background: none;
  transform: translateY(-3px);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
  margin-bottom: 48px;
  gap: 24px;
  text-align: center;
}

.hero-content {
  width: 100%;
  max-width: 600px;
}

.hero-title {
  font-size: 3rem;
  margin: 0 0 16px 0;
  line-height: 1.1;
}
.hero-title .fun {
  color: #F99D1C;
  display: block;
  font-size: 2.5rem;
  letter-spacing: 2px;
}
.hero-title .everyone {
  color: #36b45e;
  display: block;
  font-size: 3.2rem;
  letter-spacing: 2px;
}
.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 28px;
  color: #222;
}
.shop-btn {
  display: inline-block;
  background: #e76f51;
  color: #fff;
  font-size: 1.2rem;
  font-family: 'Fredoka One', Arial, sans-serif;
  padding: 16px 40px;
  border-radius: 32px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.10);
  transition: background 0.2s, transform 0.15s;
  border: none;
}
.shop-btn:hover {
  background: #f4a261;
  color: #fff;
  transform: scale(1.04);
}
.hero-image {
  width: 100%;
  display: flex;
  justify-content: center;
}
.main-board-image {
  width: 100%;
  max-width: 480px;
  border-radius: 32px;
  box-shadow: 0 4px 24px rgba(44, 62, 80, 0.10);
}

.our-games {
  margin-top: 32px;
  margin-bottom: 48px;
  text-align: center;
}
.section-title {
  color: #e76f51;
  font-size: 2.3rem;
  margin-bottom: 8px;
  letter-spacing: 2px;
}
.section-subtitle {
  color: #222;
  font-size: 1.2rem;
  margin-bottom: 28px;
}
.games-gallery {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: pointer;
}
.game-item:focus {
  outline: 2px solid #e76f51;
  outline-offset: 2px;
  cursor: pointer;
}
.game-item:hover {
  cursor: pointer;
}
.game-item:hover .game-img {
  transform: scale(1.14);
}
.game-item:hover {
  /* Card wrapper transform */
  /* For first card */
  transform: scale(1.001) rotate(-1deg);
  transition: transform 0.25s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.game-item:nth-child(2):hover {
  transform: scale(1.001) rotate(1deg);
}
.game-title {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(34, 34, 34, 0.75);
  color: #fff;
  font-family: 'Fredoka One', Arial, sans-serif;
  font-size: 1.1rem;
  letter-spacing: 1px;
  padding: 6px 18px;
  border-radius: 16px;
  z-index: 2;
  margin: 0;
  pointer-events: none;
}
.game-img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  object-position: center;
  border-radius: 24px;
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.10);
  background: #fff;
  aspect-ratio: 3 / 2;
  display: block;
  transition: transform 0.35s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #F99D1C;
  color: #fff;
  font-family: 'Fredoka One', Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.10);
  z-index: 2;
  letter-spacing: 1px;
}

.about-section, .contact-section {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.about-section h2 {
  color: #2389DA;
  font-size: 2.3rem;
  font-family: 'Fredoka One', Arial, sans-serif;
  margin-bottom: 8px;
  letter-spacing: 2px;
  margin-top: auto;
}
.contact-section h2 {
  color: #36b45e;
  font-size: 2.3rem;
  font-family: 'Fredoka One', Arial, sans-serif;
  margin-bottom: 8px;
  letter-spacing: 2px;
  margin-top: auto;
}
.about-section p, .contact-section p {
  font-size: 1.2rem;
  color: #222;
  font-family: 'Grandstander', Arial, sans-serif;
  margin: 0 auto;
  max-width: 600px;
  line-height: 1.7;
}
@media (max-width: 700px) {
  .about-section, .contact-section {
    padding: 28px 8px 24px 8px;
  }
}

.hero-subtitle,
.section-subtitle,
.about-section p,
.contact-section p {
  font-family: 'Grandstander', Arial, sans-serif;
}

.modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34, 34, 34, 0.55);
}
.modal-content {
  background: #fff;
  border-radius: 24px;
  padding: 32px 24px 24px 24px;
  max-width: 400px;
  width: 90vw;
  box-shadow: 0 8px 32px rgba(44, 62, 80, 0.18);
  position: relative;
  text-align: center;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-title {
  font-family: 'Fredoka One', Arial, sans-serif;
  font-size: 1.7rem;
  color: #e76f51;
  margin-bottom: 16px;
}
.modal-image {
  width: 300px;
  height: 200px;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  margin-bottom: 18px;
  box-shadow: 0 2px 12px rgba(44, 62, 80, 0.10);
  aspect-ratio: 3 / 2;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: auto;
}
.modal-description {
  font-family: 'Grandstander', Arial, sans-serif;
  font-size: 1.1rem;
  color: #222;
  margin-top: 2rem;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 2rem;
  color: #e76f51;
  cursor: pointer;
  font-weight: bold;
  background: none;
  border: none;
  z-index: 2;
  line-height: 1;
  transition: color 0.2s;
}
.modal-close:hover, .modal-close:focus {
  color: #b8322b;
}
.modal-subtitle {
  font-family: 'Grandstander', Arial, sans-serif;
  font-size: 1.05rem;
  color: #2389DA;
  margin-bottom: 12px;
  margin-top: -8px;
}

.modal-media-wrapper {
  position: relative;
  width: 300px;
  height: 200px;
  margin: 0 auto 18px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.media-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #F99D1C;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.92;
  transition: background 0.2s, opacity 0.2s;
}
.media-arrow:hover, .media-arrow:focus {
  background: #e76f51;
  opacity: 1;
}
.modal-video {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: contain;
  object-position: center;
  background: #000;
  aspect-ratio: 3 / 2;
  display: block;
}

@media (max-width: 700px) {
  .header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 0 12px 0;
  }
  .header-left {
    justify-content: center;
    width: 100%;
  }
  .logo {
    display: block;
    margin: 0 auto;
    height: 80px;
  }
  .nav {
    display: none;
  }
}

a, .nav-link, .game-item, .media-arrow {
  cursor: pointer;
} 