/* main container of page */
.container {
  max-width: 1280px;
  padding: 0 2rem;
  margin: auto;
  overflow: hidden;
}

.nav__logo {
  display: none;
}

/* Button shape */
.btn-main,
.btn-light,
.btn-dark {
  display: inline-block;
  padding: 0.5rem 2rem;
  transition: all 0.5s;
  border: none;
  cursor: pointer;
}
/* light button color and bg color */
.btn-light {
  color: #333;
  background: #f4f4f4;
}
/* dark button color and bg color */
.btn-dark {
  color: #f4f4f4;
  background: #333;
}
/* Button hover effect */
button[class^="btn-"]:hover,
a[class^="btn-"]:hover,
input[class^="btn-"]:hover {
  background: #ffbc00;
}
/* bg color with text color  */
.bg-main {
  background: #ffbc00;
  color: set-text-color(#ffbc00);
}

.bg-light {
  background: #f4f4f4;
  color: set-text-color(#f4f4f4);
}

.bg-dark {
  background: #585858;
  color: set-text-color(#e2e0e0);
}

.bg-medium {
  background: #ccc;
  color: set-text-color(#ccc);
}

/* highlighted text in index.html on main piture and contact us page*/
.lead {
  color: #ffbc00;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}
/* text alignment */
.text-center {
  text-align: center;
}
/* padding sizes */
.py-1 {
  padding: 1rem 0;
}

.py-2 {
  padding: 2rem 0;
}

.py-3 {
  padding: 3rem 0;
}

.py-4 {
  padding: 4rem 0;
}
/* margin sizes */
.my-1 {
  margin: 1rem 0;
}

.my-2 {
  margin: 2rem 0;
}

.my-3 {
  margin: 3rem 0;
}

.my-4 {
  margin: 4rem 0;
}
/* title of all pages */
.section-title {
  font-size: 2rem;
  display: block;
  padding: 1.5rem;
  text-align: center;
  font-weight: 100;
  text-transform: uppercase;
}
/* highlight line under title of all pages */
.bottom-line {
  height: 2px;
  width: 6rem;
  background: #ffbc00;
  display: block;
  margin: 0 auto 1rem auto;
}

/* project page, portfolios grid */
.items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  box-shadow: 0 5px 10px 0 rgba(115, 113, 113, 0.3);
}
/* project page, portfolio bg color */
.item {
  position: relative;
  background: #ffbc00;
  overflow: hidden;
}
/* project page, yellow bg color effect when mouse over the portfolio
from top left to bottom right */
.item::after {
  content: "";
  position: absolute;
  display: block;
  background: inherit;
  opacity: 0.5; /* 50% opacity  */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: scale(2) translateX(-75%) translateY(-75%) rotate(-28deg);
  transition: transform 1s cubic-bezier(0.2, 1, 0.3, 1);
}
/* project page, yellow bg color effect when mouse over the picture */
.item:hover:after {
  transform: scale(2) translateX(0%) translateY(0%) rotate(-28deg);
}
/* project page, when mouse over, image will zoom 1.2 scale bigger */
.item:hover .item-img {
  transform: scale(1.2);
  transition: transform 0.5s ease-in-out;
}
/* project page, when mouse over the picture, text will appear and move 0 location */
.item:hover .item-text {
  opacity: 1;
  transform: translateY(0);
}
/* project page, text on the portfolio is hidden and moved down -20% */
.item-text {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  opacity: 0;
  z-index: 1;
  color: #fff;
  text-align: center;
  transform: translateY(-20%);
  transition: opacity 500ms ease-in-out, transform 1s ease-in-out;
}
/* project page, text wrap on the portfolio */
.item-text-wrap {
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
}
/* project page, text title on the portfolio */
.item-text-title {
  font-size: 1rem;
  padding: 0 1rem;
  margin: 5px 0 0 0;
}
/* project page, text category on the portfolio */
.item-text-category {
  text-transform: uppercase;
  font-size: 1.2rem;
  opacity: 0.7;
  margin: 0;
}

/* reset all page margin padding 0 */
* {
  margin: 0;
  padding: 0;
}
/* main body */
body {
  background: #fff;
  font-family: "Roboto Condensed", sans-serif;
  line-height: 1.6;
}
/* link */
a {
  text-decoration: none;
  color: #ffffff;
}
/* ul  */
ul {
  list-style: none;
}
/* text title  */
h2,
h3,
h4 {
  text-transform: uppercase;
}
/* image  */
img {
  width: 100%;
}
/* logo  */
#logo-min {
  display: none;
  width: 250px;
  height: 80px;
  color: #fff;
  text-transform: uppercase;
}
#logo {
  width: 300px;
  height: 100px;
  color: #fff;
  text-transform: uppercase;
}
/* main navigation */
#main-nav {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
}
#main-nav ul {
  display: flex;
}
#main-nav li {
  padding: 1rem 1.5rem;
}
#main-nav a {
  text-decoration: none;
  color: #fff;
  text-transform: uppercase;
  border-bottom: 3px transparent solid;
  padding-bottom: 0.5rem;
  transition: border-color 0.5s;
}
#main-nav a:hover {
  border-color: #ccc;
}
#main-nav a.current {
  border-color: #ffbc00;
}
/* header home showcase */
#header-home {
  position: relative;
  background: url("../img/showcase.jpg") no-repeat center right/cover;
  height: 100vh;
  color: #fff;
  z-index: 1;
}

#header-home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* бараан бүдэг давхарга */
  z-index: -1; /* ингэснээр үгнүүдийн ард орно */
}

/* header content location center */
#header-home .header-content {
  text-align: center;
  padding-top: 25%;
}
/* header home h1 size */
#header-home h1 {
  font-size: 2rem;
  line-height: 1.2;
}
/* header showcase image on other page */
#header-inner {
  position: relative;
  background: url("../img/showcase.jpg") no-repeat 20% 40% / cover;
  height: 20vh;
  border-bottom: 3px solid #ffbc00;
  z-index: 1;
}
/* бүдэгрүүлсэн */
#header-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* хар тунгалаг давхарга */
  z-index: -1;
}

/* status section in home page */
#home-b .stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
/* status section in home page height*/
#home-b .stats li {
  line-height: 3rem;
}
/* status section in home page title size*/
#home-b .stats li.stats-title {
  font-size: 1.5rem;
}
/* status section in home page number's size*/
#home-b .stats li.stats-number {
  font-size: 2rem;
  font-weight: bold;
}
/* status section in home page div padding*/
#home-b .stats div {
  padding: 3rem 0;
}
/* status section in home page odd color*/
#home-b .stats div:nth-child(odd) {
  background: #f4f4f4;
}
/* status section in home page even color*/
#home-b .stats div:nth-child(even) {
  background: #ccc;
}
/* about page about-image padding top */
#about-a .our-img {
  padding-top: 1rem;
  width: 100%;
}
/* about page, skill and experience  */
#about-b .progress {
  overflow: hidden;
  height: 20px;
  background: #ccc;
  border-radius: 5px;
  margin-bottom: 0.3rem;
}
/* about page, skill and experience percentage yellow */
#about-b .progress div {
  height: 100%;
  color: #fff;
  text-align: center;
  background: #ffbc00;
}

/* about page testimonials grid */
#about-d .testimonials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 0.5rem;
}
/* about page testimonials grid */
#about-d .testimonials ul {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  align-items: center;
}
/* about page testimonials paragraph border */
#about-d .testimonials p {
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 0.5rem;
}
/* contact us page, forum grid */
#contact-a .text-field {
  display: grid;
  grid-template-areas: "name email" "subject phone" "message message";
  grid-gap: 1.2rem;
  margin-bottom: 1.2rem;
}
/* contact us page, grid location */
#contact-a .text-field .name-input {
  grid-area: name;
}
/* contact us page, grid location */
#contact-a .text-field .email-input {
  grid-area: email;
}
/* contact us page, grid location */
#contact-a .text-field .subject-input {
  grid-area: subject;
}
/* contact us page, grid location */
#contact-a .text-field .phone-input {
  grid-area: phone;
}
/* contact us page, grid location */
#contact-a .text-field .message-input {
  grid-area: message;
  height: 100;
}
/* contact us page, text field */
#contact-a .text-field .text-input {
  padding: 0.5rem 1rem;
}
/* contact us page, button */
#contact-a button[type="submit"] {
  width: 30%;
}
/* contact us page, info grid */
#contact-b .contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  color: #fff;
  text-align: center;
}
/* contact us footer advertisement text */
#contact-c h1 {
  text-align: center;
  font-size: 3rem;
}
/* contact us footer text */
#main-footer {
  background: #333;
  color: #fff;
  height: 5rem;
  padding-left: 2rem;
  padding-right: 2rem;
}
/* contact us footer text configuration*/
#main-footer .footer-content {
  display: flex;
  justify-content: space-between;
  height: 5rem;
  align-items: center;
}

/* responsive web design part 850px max device */
@media (max-width: 850px) {
  /* about page testimonials grid */
  #about-d .testimonials {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 0.5rem;
  }
  /* status section in home page */
  #home-b .stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  /* project page, text title on the portfolio */
  .item-text-title {
    font-size: 0.6rem;
    padding: 0 1rem;
    margin: 5px 0 0 0;
  }
  /* project page, text category on the portfolio */
  .item-text-category {
    text-transform: uppercase;
    font-size: 0.6rem;
    opacity: 0.7;
    margin: 0;
  }
  #main-nav {
    flex-direction: column;
    align-items: center;
  }
  #header-home {
    height: 40rem;
  }
  #header-home .header-content {
    padding-top: 4rem;
  }
  #header-inner {
    height: 11rem;
  }
}
/* responsive web design part 500px max device phone*/
@media (max-width: 500px) {
  .nav__logo {
    display: block;
    padding-top: 5px;
    width: 160px;
    position: absolute;
    z-index: 10001;
  }
  #main-nav {
    display: none;
    flex-direction: column;
    align-items: center;
  }
  #main-nav li {
    padding: 1rem;
  }
  #header-home {
    height: 10rem;
    border-bottom: 3px solid #ffbc00;
  }
  #header-home .header-content {
    display: none;
  }
  #header-inner {
    height: 5rem;
  }
  #home-a .specials,
  #home-b .stats,
  #home-c .process,
  #about-d .testimonials,
  #contact-b .contact-info,
  .items {
    grid-template-columns: 1fr;
  }

  #home-b .stats div {
    padding: 2rem 0;
  }
  #about-a .about-info {
    grid-template-areas: "bioimage" "bio" "aw1" "aw2" "aw3";
  }
  #about-b h2,
  #about-b h4 {
    color: #000;
  }
  #about-c .about-logos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 2rem;
  }
  #about-d .testimonials ul {
    justify-content: center;
  }
  #contact-a .text-field {
    grid-template-areas: "name" "subject" "email" "phone" "message";
  }
  #contact-b div {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px #555 solid;
  }
  #contact-b div:last-child {
    border: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  #contact-c h1 {
    font-size: 2rem;
  }
  #main-footer {
    height: 7rem;
  }
  #main-footer .footer-content {
    flex-direction: column;
    padding: 1rem;
    height: 5rem;
  }
}
/* responsive web design part 580px max device */
@media (max-width: 580px) {
  #header-home .header-content {
    padding-top: 3rem;
  }
}
/* responsive web design part 330px max device */
@media (max-width: 330px) {
  #header-home .header-content {
    padding-top: 2rem;
  }
}
