@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap");
:root {
  --bg-white: #ffffff;
  --bg-clr-light-grey: #efefef;
  --bg-border-grey: #d9d9d9;
  --clr-main-blue: #000251;
  --clr-light-blue: #6f7ff7;
  --bs-sm: 0 0 16px rgba(32, 43, 74, 0.32);
}
/* gaeneral css start here */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
html {
  font-size: 62.5%;
}
body {
  font-family: "Roboto", sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0em;
  line-height: 1.86;
  background: var(--bg-white);
}
input:hover,
input:focus {
  outline: none !important;
  box-shadow: 0px 0px 0px 0px transparent;
}
:focus {
  outline: -webkit-focus-ring-color auto 0;
}
.custom-file-input:focus ~ .custom-file-label {
  border-color: transparent;
  box-shadow: none;
}
.form-control:focus {
  box-shadow: 0 0 0 0rem transparent !important;
  border-color: #dce1e9;
}
a {
  text-decoration: none;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  color: #696969;
}
a:hover {
  text-decoration: none;
}
p {
  color: #696969;
  margin-bottom: 1.5rem;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--clr-main-blue);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
a:focus,
.button:focus,
button:focus,
.btn:focus {
  text-decoration: none;
  outline: none;
  box-shadow: none;
  -webkit-transition: 1s;
  transition: 1s;
}
.img-responsive {
  max-width: 100%;
  height: auto;
}
/* end of general css here */

/* =======main css start here======== */

.wrapp-container {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
.wrapp-row {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.bg-white {
  background-color: var(--bg-white);
  box-shadow: var(--bs-sm);
}
.main-head {
  background-color: var(--clr-main-blue);
  padding: 1.5rem;
}

/* menu css */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}

.navbar-logo a {
  font-size: 2.5rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
}

.navbar-menu {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-menu li {
  margin-left:2rem;
}

.navbar-menu li a {
  color: #fff;
  text-decoration: none;
  font-size:1.6rem;
  font-weight: 500;
}

/* Navbar toggle */
.navbar-toggle {
  display: none;
}

.navbar-toggle-lines {
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 5px 0;
}

/* Media queries */
@media screen and (max-width: 768px) {
  .navbar {
    padding: 0 20px;
  }

  .navbar-menu {
    position: fixed;
    right: -300px;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    width: 25rem;
    height: 100vh;
    background-color:var(--clr-light-blue);
    padding: 1.5rem 0;
    overflow: hidden;
    transition: 0.4s;
    z-index: 1;
  }

  .navbar-menu li {
    margin: 1.5rem 0;
  }

  .navbar-toggle {
    display: block;
    cursor: pointer;
    z-index: 2;
  }

  .navbar-toggle.active .navbar-toggle-lines:nth-of-type(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .navbar-toggle.active .navbar-toggle-lines:nth-of-type(2) {
    opacity: 0;
  }

  .navbar-toggle.active .navbar-toggle-lines:nth-of-type(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .navbar-menu.active {
    right: 0px;
  }
}

.new-game-block,
.inner-page {
  width: 100%;
  background-color: var(--bg-clr-light-grey);
}
.center-cnt{
  text-align: center;
  padding:4rem 1.5rem;
}
.center-cnt p{
  font-size: 1.4rem;
}
.center-cnt a{
  color: var(--clr-light-blue);
}
.center-cnt a:hover{
  text-decoration: underline;
}
.block-head {
  border-top: 1px solid;
  border-bottom: 1px solid;
  border-color: var(--bg-border-grey);
  padding: 1.5rem;
  font-size: 1.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.parent-card {
  display: flex;
  flex-wrap: wrap;
}
.card-element {
  width: calc(20% - 2rem);
  margin: 1rem;
}
/* .popolar-card{
  width: calc(20% - 2rem);
  margin: 1rem;
} */
.popolar-card .card-element-block {
  padding-bottom: 150%;
}
.card-element-block {
  background-color: transparent;
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  overflow: hidden;
  border-radius: 1.5rem;
}
.card-element-block img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.5rem;
  transition: transform 0.5s ease-in-out;
}
img.lazy {
  background: var(--clr-light-blue);
}

.card-element-block:hover img {
  transform: scale(1.1);
}
.img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 1.5rem;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.5);
  transition: opacity 0.5s ease-in-out;
}
.card-element-block:hover .img-overlay {
  opacity: 1;
}
.main-footer {
  padding: 1.5rem;
  text-align: center;
}
.main-footer h3 {
  font-size: 1.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.main-footer p{
  margin-bottom: 0;
  font-size: 1.25rem;
}
#myBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: var(--clr-main-blue);
  color: white;
  cursor: pointer;
  padding: 1.5rem;
  border-radius: 50%;
  transition: opacity 0.3s;
}

#myBtn:hover {
  background-color: var(--clr-light-blue);
  opacity: 0.7;
}

@media screen and (max-width: 600px) {
  .wrapp-container {
    width: 100%;
  }
  .popolar-card-elem {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .popolar-card {
    width: calc(40% - 2rem);
    margin: 1rem;
    -webkit-box-flex: 0 0 auto; /* OLD - iOS 6-, Safari 3.1-6 */
    -moz-box-flex: 0 0 auto;
    -webkit-flex: 0 0 auto; /* Chrome */
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
  }
  .card-element {
    width: calc(50% - 2rem);
    margin: 1rem;
  }
}
