@import url("https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --primary: #fff;
  --secondary: #000;
  --action-colour: #000;
  --muted: #727272;
}

* {
  margin: 0;
  padding: 0;
  font-family: "Work Sans", sans-serif;
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

/* LOADER */
/* ----------------------------------- */

@keyframes fadeOut {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.fill-colour-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  z-index: 99;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  animation-name: fadeOut;
  animation-duration: 2.5s;
  animation-fill-mode: forwards;
  gap: 20px;
}

.fill-colour-loader img {
  width: 100px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
}

.fill-colour-loader h1 {
  font-weight: 600;
  color: var(--white-colour);
}

/* PAGE */
/* --------------------------------- */

.navbar {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: space-around;
  padding: 10px;
  margin-top: 5px;
  margin-bottom: 5px;
  border-bottom: 1px solid #f3f3f3;
}

.navbar a {
  text-decoration: none;
  color: var(--secondary);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.navbar a img {
  width: 45px;
  border-radius: 4px;
  height: auto;
}

.navbar h1 {
  padding: 10px;
}

.navlist {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style-type: none;
}

.nav-item {
  padding: 10px;
  border-radius: 4px;
}

.nav-item a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  transition: 0.3s ease;
}

.nav-item:hover {
  transition: 0.3s ease;
  background-color: #f3f3f3;
  cursor: pointer;
}

.nav-item:hover a {
  color: var(--secondary);
  transition: 0.3s ease;
}

.landing-page {
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.landing-page .section-1 {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
}

.landing-page .section-1 .section-1-container {
  width: 100%;
  height: auto;
  margin-top: 2rem;
}

.section-1-container .logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--secondary-colour);
  gap: 5px;
}

.section-1-container .logo h1 {
  font-size: 72px;
  font-weight: 800;
  text-align: center;
}

.section-1-container .logo img {
  width: 100px;
  height: auto;
  border-radius: 8px;
}

.section-1-container .description-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
  text-align: center;
}

.description-container p {
  font-size: 18px;
  font-weight: 500;
}

.section-1-container .button-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 1.5rem;
  min-height: 75px;
}

.section-1-container .statistics {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 1.25rem;
}

.statistic-container {
  padding: 20px;
  width: 200px;
  border: 2px solid var(--secondary);
  text-align: left;
  border-radius: 8px;
  position: relative;
  transition: top 0.3s ease;
  top: 0;
}

.statistic-container:hover {
  top: -5px;
  transition: top 0.3s ease;
  box-shadow: 0px 0px 5px -1px #000000;
}

.statistic-container h1 {
  font-size: 32px;
  font-weight: 700;
}

.statistic-container p {
  font-weight: 500;
  font-size: 16px;
}

.section-2 {
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-2-container {
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.section-2-container .header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.section-2-container .header h1 {
  font-size: 64px;
  font-weight: 700;
  margin-top: 4.5rem;
  text-align: center;
}

/* GAMES */
/* ------------------------------------------- */
.experience-page {
  width: 100%;
  height: auto;
  background-color: var(--primary);
  color: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.5rem;
}

.experience-page .experience-grid {
  margin-top: 2rem;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.experience-grid .experience-item {
  color: inherit;
  text-decoration: inherit;
  position: relative;
  aspect-ratio: 16 / 9;
  width: 500px;
  max-width: 100%;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 1rem;
}

.experience-item img {
  position: absolute;
  height: 100%;
  width: 100%;
  inset: 0px;
  color: transparent;
  transition: 0.3s ease;
}

.experience-item .game-icon {
  width: 150px;
  height: auto;
  display: flex;
  margin: auto;
  filter: blur(0px);
  border-radius: 8px;
  filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.85));
}

.experience-item:hover img {
  scale: 1.075;
  transition: 0.3s ease;
}

.experience-item .experience-details {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  height: 50%;
  /* background: linear-gradient(rgba(0, 00, 00, 0), rgba(0, 0, 0, .9)); */
  background: linear-gradient(
    180deg,
    rgba(31, 31, 31, 0) 0%,
    rgba(7, 7, 7, 0.44) 46%,
    rgba(0, 0, 0, 0.8) 69%,
    rgba(0, 0, 0, 1) 100%
  );
}

.experience-details .details-container {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
}

.details-container .game-name {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowwrap;
  text-wrap: nowwrap;
  font-size: 1.75rem;
  line-height: 2.5rem;
  font-weight: 600;
}

.details-container .publisher-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.publisher-details .author {
  margin: 0;
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.25rem;
  overflow: hidden;
  font-size: 1.125rem;
  line-height: 1.25rem;
  color: rgb(229, 229, 229);
  text-overflow: ellipsis;
}

.author span {
  font-weight: 600;
  text-overflow: ellipsis;
  overflow: hidden;
}

.publisher-details .experience-stats {
  display: flex;
  flex-shrink: 0;
  gap: 1.15rem;
  font-size: 1.25rem;
  line-height: 1.25rem;
}

.experience-stats p {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin: 0;
  gap: 5px;
}

.experience-stats p i {
  margin-right: 2.5px;
  color: var(--primary);
  font-weight: 800;
}

.section-3 {
  width: 100%;
  height: auto;
  background-color: var(--secondary);
  color: var(--primary);
}

.section-3-container {
  width: 90%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: start;
  flex-direction: column;
  text-align: center;
  margin: auto;
  margin-bottom: 4.5rem;
}

.section-3-container .header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.section-3-container .header h1 {
  font-size: 64px;
  font-weight: 700;
  margin-top: 4.5rem;
  margin-bottom: 1.25rem;
}

.section-3-list {
  width: 75%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  font-size: 18px;
}

/* MEDIA SIZES */
/* -------------------------------- */

@media only screen and (max-width: 900px) {
  .section-1-container .statistics {
    margin-bottom: 1.25rem;
    align-items: center;
    justify-content: center;
  }
  .statistic-container {
    width: 125px;
  }
  .statistic-container p {
    font-size: 11px;
  }
  .section-1-container .logo h1 {
    font-size: 50px;
  }
}

@media only screen and (max-width: 650px) {
  .section-1-container .statistics {
    justify-content: start;
    flex-direction: column;
    margin-bottom: 1.25rem;
  }
  .statistic-container {
    width: 75%;
  }
}

@media only screen and (max-width: 450px) {
  .navbar .logo-holder {
    display: none;
  }
  .button-container {
    flex-direction: column;
    width: 75%;
  }
  .button-container a {
    width: 100%;
  }
  .section-2-container .header h1 {
    font-size: 45px;
  }
}
