* {
  margin: 0;
  padding: 0;
  font-family: myfont;
}

html,
body {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

@font-face {
  font-family: myfont;
  src: url(../fonts/Supercell-Magic\ Regular.ttf);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem;
  height: 75px;
  background-color: #1e1e1e;
  z-index: 999;
  position: relative;
}

.navbar-list {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 5.4rem;
}

li {
  list-style: none;
}

.logo {
  height: 70px;
  color: #fff;
}

.navbar-link {
  color: rgb(96, 96, 96);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.15s linear;
  padding: 1rem 2rem;
  border-radius: 2rem;
}

.navbar-link:hover {
  color: #fff;
}

.active {
  color: #fff;
}

.hero {
  width: 100%;
  height: 84vh;
  object-fit: cover;
  background-image: url(../Random/bg_hero_games.7544fb6c.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-container {
  position: relative;
}

.hero-info {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.primar {
  margin-bottom: 15px;
  letter-spacing: 2px;
  font-size: 3rem;
}

span {
  margin-left: 8px;
}

.main {
  max-width: 1300px;
  margin: 0 auto;
}

.parent {
  width: 100%;
  height: 100%;
}

.hay-day {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.2s;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
}

.hay-day:hover {
  opacity: 0.8;
  transform: scale(0.9);
}

.hay-day:active {
  opacity: 0.5;
}

.op {
  width: 700px;
  text-align: center;
}

.griddy {
  display: grid;
  grid-template-columns: 700px 700px;
  justify-content: center;
  align-items: center;
  row-gap: 100px;
  column-gap: 45px;
  margin-top: 80px;
  margin-bottom: 80px;
}

.thumbnail-title {
  margin-top: 15px;
  margin-bottom: 15px;
  font-size: 14px;
  color: #fb4a9d;
}

.thumbnail-para {
  font-size: 20px;
}

footer {
  margin: 0 auto;
  height: 200px;
  background-color: black;
  color: white;
  margin-top: 30px;
}

.ye {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 50px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 2rem;
}

.hoew {
  font-size: 19px;
  padding-bottom: 20px;
}

.icon {
  font-size: 30px;
  cursor: pointer;
  color: #fff;
  position: relative;
}

.gu {
  width: 215px;
  height: 67px;
  margin-right: 30px;
  cursor: pointer;
  position: relative;
}

.po {
  display: flex;
  align-items: center;
  gap: 35px;
}

.oolo {
  display: inline-block;
  color: white;
}

.oolf {
  display: inline;
  color: white;
  width: 215px;
}

.logos {
  display: flex;
  align-items: center;
  gap: 35px;
}

/* Menu Bar */

.mobile-navbar-btn {
  display: none;
}

.mobile-nav-icon {
  font-size: 2.5rem;
}

.mobile-nav-icon[name="close"] {
  display: none;
}

@media only screen and (max-width: 1705px) {
  html,
  body {
    overflow-x: hidden;
  }
  .mobile-nav-icon[name="close"] {
    position: fixed;
    right: 40px;
    top: 50px;
  }

  .mobile-nav-icon {
    display: block;
  }

  .navbar-link {
    font-size: 25px;
  }

  .navbar-list {
    flex-direction: column;
    align-items: center;
  }

  .active .navbar {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-navbar-btn {
    color: #fff;
    display: block;
  }

  .mobile-navbar-btn {
    display: block;
    z-index: 999;
  }

  .mobile-nav-icon {
    height: 50px;
  }

  .navbar {
    width: 100%;
    height: 100vh;
    position: fixed;
    background-color: #1e1e1e;
    top: 0;
    left: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    transform: translateX(100%);
    transition: all 0.25s ease;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 999;
  }

  .navbar-list {
    flex-direction: column;
    align-items: center;
  }

  .active .navbar {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .active .mobile-navbar-btn .mobile-nav-icon[name="close"] {
    display: block;
  }

  .active .mobile-navbar-btn .mobile-nav-icon[name="menu"] {
    display: none;
  }
}

@media only screen and (max-width: 1604px) {
  .griddy {
    grid-template-columns: 500px;
  }

  .op {
    width: 500px;
  }

  .hay-day {
    height: 500px;
    width: 500px;
  }
}

@media only screen and (max-width: 1055px) {
  .ye {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .po {
    gap: 15px;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    width: 80%;
  }

  .hoew {
    font-size: 20px;
    text-align: center;
  }

  .icon {
    height: 30px;
  }

  .gu {
    width: 160px;
    height: 50px;
    margin: 0 auto;
  }

  .oolf {
    text-align: center;
  }

  footer {
    height: 340px;
  }
}

@media only screen and (max-width: 660px) {
  .griddy {
    grid-template-columns: 400px;
  }

  .op {
    width: 400px;
  }

  .hay-day {
    height: 400px;
    width: 400px;
  }

  .navbar-link {
    font-size: 16px;
  }

  .hero {
    background-image: url(../Hero-Image/lop.jpg);
    background-size: cover;
    background-position: left;
  }

  .primar-p {
    color: #1e1e1e;
  }
}

@media only screen and (max-width: 544px) {
  .logo {
    height: 50px;
  }

  .mobile-nav-icon {
    height: 30px;
  }

  header {
    height: 32px;
  }
  .mobile-nav-icon[name="close"] {
    position: fixed;
    right: 40px;
    top: 40px;
  }
}

@media only screen and (max-width: 455px) {
  body {
    background-color: #1e1e1e;
    color: white;
  }

  .oolf {
    text-align: center;
  }

  .gu {
    width: 160px;
    height: 50px;
  }

  .griddy {
    grid-template-columns: 300px;
  }

  .op {
    width: 300px;
    background-color: #fff;
  }

  .hay-day {
    height: 300px;
    width: 300px;
  }

  .bade {
    float: left;
    overflow: hidden;
  }

  .thumbnail-title {
    position: relative;
    top: 10px;
    font-size: 10px;
    margin: 0;
    padding: 10px;
  }

  .thumbnail-para {
    font-size: 14px;
    color: #1e1e1e;
    padding: 18px 0px;
  }

  .hoew {
    font-size: 14px;
  }

  .icon {
    height: 30px;
  }

  .hero {
    height: 77vh;
  }

  footer {
    background-color: #fff;
    color: #1e1e1e;
  }

  .icon {
    color: #1e1e1e;
  }

  .primar {
    color: #1e1e1e;
  }
}

@media only screen and (max-width: 340px) {
  .thumbnail-title {
    font-size: 11px;
  }

  .thumbnail-para {
    font-size: 15px;
  }
}
