* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #e7f5d7;
  font-family: "Inclusive Sans";
  color: #446e35;
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.navbar-container {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 70px;

  position: sticky;
  top: 10px;
  z-index: 1000;
}

.navbar {
  max-width: 1200px;
  width: 820px;
  background: linear-gradient(to right, #e1ffce, #d3fdba);

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 12px 24px;
  border-radius: 50px;
  font-size: 20px;
  color: #446e35;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition:
    background 0.5s ease,
    box-shadow 0.5s ease;
}

.navbar.scrolled {
  background: rgba(200, 238, 189, 0.75);
  box-shadow: 0 5px 20px rgba(68, 110, 53, 0.15);
}

.navbar.scrolled .logo span {
  opacity: 0;
  transform: translateX(-20px);
}

.navbar.scrolled .logo img {
  transform: translateX(60px);
}

.left-navbar {
  display: flex;
  align-items: center;
  gap: 25px;
}

.left-navbar span {
  font-weight: 600;
}

.logo {
  display: flex;
  align-items: center;
  gap: 25px;
  text-decoration: none;
  color: #446e35;
}

.logo img {
  transition: transform 0.35s ease;
}

.logo span {
  transition:
    opacity 0.2s ease,
    transform 0.35s ease;
}

.logo:hover span {
  opacity: 0;
  transform: translateX(-20px);
}

.logo:hover img {
  transform: translateX(60px);
}

.right-navbar {
  display: flex;
  align-items: center;
  gap: 25px;
}

.right-navbar a {
  text-decoration: none;
  color: #124d15;
  transition: 0.2s;
}

.right-navbar a:hover {
  transition: 0.2s;
  color: #9bc485;
}

.slider-container {
  max-width: 1240px;
}

.slider {
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  max-width: 620px;
  margin-bottom: 40px;
}

.slider img {
  width: 100%;
  max-width: 379px;
  height: auto;
}

.slider span {
  font-size: 32px;
  text-align: center;
  font-weight: 600;
}

.section-title {
  width: 100%;
  max-width: 820px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
.section-title::before,
.section-title::after {
  content: "";
  height: 1px;
  background-color: #446e35;
  flex: 1;
}

.section-title span {
  font-size: 24px;
  font-weight: bold;
}

.game-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.box {
  width: 610px;
  display: flex;
  flex-direction: column;
  background-color: #e6ffca;
  margin-bottom: 20px;
  border-radius: 20px;
  overflow: hidden;
}

.image-container {
  height: 349px;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.title-container {
  padding: 20px 24px 18px 24px;
}

.title-container h3 {
  margin: 0;
  margin-bottom: 6px;
  font-size: 28px;
}

.title-container a {
  display: flex;
  align-items: center;
  gap: 8px;

  text-decoration: none;
  color: #307d34;
  width: fit-content;

  transition: color 0.2s ease;
}

.title-container a:hover {
  color: #124d15;
}

.title-container a span {
  font-size: 20px;
  transition: transform 0.2s ease;
}

.title-container a:hover span {
  transform: translate(3px, -3px);
}

.small-box-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 24px;
}

.small-box {
  max-height: 30px;
  background-color: #c8eebd;
  border-radius: 35px;
  padding: 8px 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.small-box span {
  font-weight: bold;
  font-size: 14px;
}

.team-box {
  width: 680px;
  padding: 28px 40px;
  border-radius: 25px;
  background: linear-gradient(to left, #c8eebd, #d3fdba);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;

  position: relative;
  overflow: hidden;
}

.team-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, #bcd8bc, #bbfe96);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.team-box:hover::before {
  opacity: 1;
}

.team-box > * {
  position: relative;
  z-index: 1;
}

.team-box span {
  font-size: 24px;
  padding-right: 24px;
  display: flex;
  align-items: center;
}

.right-team-box {
  display: flex;
  align-items: center;

  transition: transform 0.4s ease;
}

.left-team-box {
  display: flex;
  align-items: center;

  transition:
    opacity 0.3s ease,
    transform 0.4s ease;
}

.team-box:hover .right-team-box {
  transform: translateX(10px);
  text-align: center;
}

.team-box:hover .left-team-box {
  opacity: 1;
  transform: translateX(-10px);
}

#flag {
  font-size: 32px;
}

.decs-container {
  padding: 0 24px;
}

.game-detail-container {
  display: flex;
  flex-wrap: wrap;
  margin: 0 24px 24px;
  gap: 20px;
}

.game-detail {
  display: flex;
  flex-direction: column;
}

.game-credit-container {
  display: flex;
  flex-direction: column;
  margin: 0 24px 24px 24px;
}

.game-credit-title {
  margin-bottom: 14px;
}

.game-credit-title span {
  font-size: 20px;
}

.game-credit-detail-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.game-credit-detail {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: start;
}

.game-credit-left {
  display: flex;
}

.game-credit-right {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.contact-container {
  width: 100%;
  margin-top: 40px;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-box {
  width: 610px;
  padding: 40px 35px;
  box-sizing: border-box;
  margin-bottom: 45px;

  background: linear-gradient(to right, #c8eebd, #d3fdba);
  border-radius: 25px;

  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;
  gap: 15px;
}

.contact-title {
  font-size: 28px;
  font-weight: bold;
}

.contact-desc {
  max-width: 500px;
  font-size: 16px;
  line-height: 1.5;
}

.socials {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 10px;
}

.socials a {
  color: #446e35;
  font-size: 24px;
  text-decoration: none;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.socials a:hover {
  color: #124d15;
  transform: translateY(-4px);
}

.contact-box-btn {
  padding: 12px 24px;
  border: 0;
  background-color: #93e269;
  border-radius: 5px;
  font-size: 14px;
  transition: transform 0.3s ease;
  box-shadow: 1px 1px 1px 1px #307d34;
}

.contact-box-btn:hover {
  cursor: pointer;
  transform: scaleX(1.05);
  box-shadow: 3px 3px 3px 3px #307d34;

  transition: 0.2s;
}

.copyright {
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.7;
}

@media (max-width: 600px) {
  .navbar {
    width: 100%;
    flex-direction: column;
    gap: 5px;
    height: fit-content;
  }
  .logo img {
    width: 60px;
  }
  .logo:hover img {
    transform: translateX(50px);
  }
  .navbar a {
    font-size: 16px;
    font-weight: bold;
  }
  .box {
    width: 100%;
  }
  .image-container {
    height: auto;
    aspect-ratio: 610 / 349;
  }

  .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .team-box {
    width: 100%;
    flex-direction: column;
    text-align: center;
    gap: 5px;
  }

  .team-box span {
    font-size: 18px;
    text-align: center;
    padding: 6px;
  }
  #flag {
    font-size: 20px;
  }
  .team-box-name {
    font-weight: bold;
  }
  .contact-box {
    width: 100%;
  }
}
