/******************************
* The banner wrap at the top: *
*******************************/

.banner-wrap {
  min-height: 20%;
  background-position: center 43%;
}

/*****************
* Body sections: *
******************/

#projects {
  padding: 4% 10%;
  height: fit-content;
  background-color: white;
}

.header2 {
  margin-top: 1%;
}

.text {
  margin-top: 2%;
  margin-left: 10%;
  color: white;
  font-family: 'Quando', serif;
  font-weight: 400;
  text-align: left;
  font-size: small;
}

#header-page {
  text-align: center;
  margin-top: 3%;
}

.projects-container {
  display: grid;
  gap: 50px 40px;
  grid-template-columns: 50% 50%;
  grid-template-rows: 300px 300px 300px;
  justify-items: center;
}

.project {
  background-color: #272323cf;
  border-radius: 25px;
  width: 100%;
  height: 100%;
  transition: transform 0.3s;
}

.img-project {
  width: 80%;
  height: 65%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  margin-top: 5%;
  display: inline-block;
  border-radius: 15px;
}

.project-container {
  width: 100%;
  height: 100%;
}

#tda {
  background-image: url(../imgs/top-down-adventurer.png);
}

#ms {
  background-image: url(../imgs/minesweeper.jpg);
}

#pp {
  background-image: url(../imgs/portal-platformer.png);
}

#pm {
  background-image: url(../imgs/pac-man.png);
}

#this {
  background-image: url(../imgs/website.png);
}

.card-img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  position: relative;
}

.info {
  z-index: 2;
  background-color: #393434d8;
  border-radius: 10px;
  padding: 5px 10px;
  text-align: center;
  color: white;
  right: 10px;
  bottom: 10px;
  font-family: 'DM Sans', sans-serif;
  user-select: none;
}

.header3 {
  font-size: large;
  font-weight: 800;
  color: #dea111;
  margin-bottom: 3px;
}

.description {
  font-size: small;
  font-style: oblique;
}

/***********
* Buttons: *
************/

#button-github {
  margin-top: 3%;
  margin-bottom: 1%;
}

/********************
* Phone resolution: *
*********************/

@media screen and (max-width: 850px) {
  /* Body sections: */
  .projects-container {
    grid-template-columns: 100%;
    grid-auto-rows: 300px;
    gap: 30px 40px;
    height: fit-content;
  }
}

@media screen and (min-width:850px) {
  .project:hover {
    transform: scale(1.05);
  }
}