@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');

* {
  font-family: 'Poppins', sans-serif;
}

html {
  padding: 0px;
  margin: 0px;
}

body {
  background-color: #f0666b;
}

hr {
  color: gray !important;
}

.text-white {
  color: #fff;
}

header {
  background-color: #ffea5f;
  position: sticky;
  top:0;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  width: 100%;
}

.logo {
  margin-top: 0.5rem;
  width: 15%;
}

.pratham-logo {
  width: 8%;
}

.nav-item {
  text-align: center;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 15px;
  padding: 3%;
  width: 7rem;
  height: 6rem;
}


/* .nav-list {
  width: 75%;
  margin-top: 1rem;
  text-align: center;
  margin-left: 25%;
} */

.nav-list {
  margin-left: 35%;
  display: flex;
  flex-direction: row;
}

.nav-bar ul {
  list-style: none;
  margin-left: 10%;
}

.nav-bar ul li {
  display: inline-block;
  width: 8rem;
  cursor: pointer;
}

.li-style {
  padding: 3%;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 15px;
}

.play {
  background-color: #f0666b;
}

.explore {
  background-color: #594da2;
}

.challenge {
  background-color: #0255c2;
}

.create {
  background-color: #158995;
}

.mb-nav-list {
  display: none;
}

.mb-nav-list ul {
  list-style: none;
}


.mb-nav-list .li-style {
  display: inline-block;
  color: white;
  font-weight: bold;
  border-radius: 20px;
  margin-bottom: 2%;
  cursor: pointer;
}

.search-box input {
    width: 35rem !important;
    border: none !important;
    height: 4rem !important;
    border-radius: 0.8rem !important;
    outline: none !important;
    font-size: large;
    font-weight: 600;
    box-shadow: 0px 7px 10px 4px #5d6b844d;
}

.search-box button {
  width: 5rem;
  height: 4rem;
  border: none !important;
  border-radius: 0.8rem !important;
  box-shadow: 0px 7px 10px 4px #5d6b844d;
}

/* main section */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18.75rem), 1fr));
  gap: 1rem;
  max-width: 100em;
  margin: auto;
}

.grid-container>div {
  background: whitesmoke;
  text-align: center;
  border-radius: 10px;
  padding: 0px !important;
  overflow: hidden;
  transition: transform 0.3s ease;
  box-shadow: 0px 7px 10px 4px #5d6b844d;
  cursor: pointer;
}

.grid-container>div:hover {
  transform: scale(1.15);
}

.grid-container>div:hover .hover-text {
  opacity: 1;
}


 /* .grid-container>div:nth-child(5) {
 grid-column: 1 / 3; OR 
    grid-column: 1 / span 2;
  grid-column: 5 / 6;
} */


.hover-text {
  position: absolute;
  bottom: 0px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 8px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.3s ease;
  width:-webkit-fill-available;
}



.thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}



/* footer section */

footer {
   bottom:0;
   width:100%;
   height:60px;  
}


/* Small Mobile (e.g., old iPhones) */
@media (max-width: 320px) {

  /* Styles for very small screens */
  header {
    padding-bottom: 2%;
  }

  .logo {
    width: 30%;
  }

  .pratham-logo {
    width: 15%;
  }

  .nav-list {
    display: none;
  }

  .mb-nav-list {
    display: block;
    margin-top: 2%;
    margin-top: 1rem;

  }
}

/* All mobile portrait (<= 480px) */
@media (max-width: 480px) {

  .grid-container {
    grid-template-columns: repeat(2, 1fr);
    /* 1fr is 1 fraction so here 4 fractions */
    grid-template-rows: repeat(3, 150px);
  }

  /* Styles for smartphones in portrait */
  header {
    padding-bottom: 2%;
  }

  .logo {
    width: 30%;
  }

  .pratham-logo {
    width: 15%;
  }

  .mb-nav-list {
    display: block;
    margin-top: 2%;
    margin-top: 1rem;
  }

  .nav-list {
    display: none;
  }
}

/* Mobile landscape (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
  /* Styles for smartphones in landscape */

}

/* Large phones & small tablets (phablets) */
@media (min-width: 600px) and (max-width: 767px) {
  /* Styles for large phones or small tablets */
}