@import url("https://fonts.googleapis.com/css?family=Chelsea+Market");

:root {
  --primary-color: #bf1592;
  --primary-dark-color: #8c2066;
  --secondary-color: #592246;
  --tertially-color: #0a5959;
  --tertially-light-color: #0a96a6;
  --light-color: #f3f0f0;
  --dark-color: #0d0c00;
}

*,
*:before,
*:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Chelsea Market", cursive;
  line-height: 1.4rem;
  background: #351429;
}

a {
  text-decoration: none;
  color: var(--light-color);
}

li {
  list-style: none;
}

/*----------------Utility classes--------------*/
.container {
  max-width: 82rem;
  margin: 0 auto;
  overflow: hidden;
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary-color);
}

.text-small {
  font-size: 0.8rem;
}

.bg-primary {
  background: var(--primary-color);
  color: var(--light-color);
}

.bg-secondary {
  background: var(--secondary-color);
  color: var(--light-color);
}

.bg-tertially {
  background: var(--tertially-color);
  color: var(--light-color);
}

.bg-dark {
  background: var(--dark-color);
  color: var(--light-color);
}

.l-heading {
  font-size: 4rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.m-heading {
  font-size: 2rem;
  line-height: 1.1;
}

.s-heading {
  font-size: 1.6rem;
  line-height: 1.3;
  padding-bottom: 1rem;
}

.lead {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  padding: 0 1rem;
}

/*----------Navbar---------------*/
.navigation {
  display: flex;
  justify-content: space-between;
  position: sticky;
  top: 0;
  left: 0;
  color: var(--light-color);
  z-index: 1;
  padding: 1.5rem 1rem;
  opacity: 0.95;
  border-bottom: 1px solid var(--primary-dark-color);
}

.navigation__list {
  display: flex;
  align-items: center;
  list-style: none;
}

.navigation__item {
  color: var(--light-color);
  padding: 0.75rem;
  margin: 0 0.25rem;
  transition: background-color 0.5s ease-in;
  border: 1px solid var(--primary-dark-color);
  border-radius: 5px;
}

.navigation__item:hover {
  background: var(--primary-dark-color);
}

/*--------------Showcase--------------*/
.intro {
  background: url("../img-bg/showcase.jpg") no-repeat center center/cover;
  height: 30vh;
  color: var(--light-color);
  z-index: -1;
}

.intro__content {
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  align-items: center;
  height: 30vh;
  background: rgba(0, 0, 0, 0.5);
}

.app-link {
  padding: 0.2rem 0.75rem;
  background: var(--dark-color);
  border: 1px solid var(--primary-dark-color);
  border-radius: 5px;
  transition: background-color 0.5s ease-in;
}

.app-link:hover {
  background: var(--primary-dark-color);
}

/* ---------Image cards--------------- */
.gallery__content {
  padding: 4rem 0;
}

.gallery__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 2fr));
}

.gallery__card {
  margin: 1rem;
  padding: 1rem;
  background-color: var(--tertially-color);
  color: var(--light-color);
  box-shadow: 2px 6px 8px var(--dark-color);
  display: grid;
}

.card__header {
  padding: 1rem 0;
}

.card__info {
  align-self: end;
}

.card__info li:not(:last-child) {
  width: 50%;
  margin: 0 auto;
  padding-bottom: 0.5rem;
  border-bottom: 1px dotted var(--light-color);
}

.card__image {
  padding: 1rem 0;
  cursor: pointer;
}

.card__image img {
  max-width: 100%;
  box-shadow: 2px 6px 8px var(--dark-color);
  transition: transform 0.5s ease-in;
}

/* ---------Contact--------------- */
.contact {
  height: 30vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
}

.items {
  display: flex;
  flex-direction: row;
}

.item {
  padding: 1.5rem 0.8rem;
}

/* ---------Footer--------------- */
footer > div {
  padding: 1rem 0;
  border-top: 1px solid var(--primary-dark-color);
}

/* ---------Media Queries--------------- */
@media screen and (max-width: 28.125rem) {
  .intro {
    height: 60vh;
  }

  .intro__content {
    height: 60vh;
  }

  .gallery__cards {
    grid-template-columns: repeat(auto-fit, minmax(18.75rem, 2fr));
  }
}
