/*GENERAL*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Montserrat, sans-serif;
  transition: color 0.3s, background-color 0.3s;
}

body {
  color: white;
  background-color: #333333;
  text-align: center;
}

.container {
  max-width: 540px;
  margin: 0 auto;
}

h2 {
  margin-top: 20px;
}

/*COMMON*/

.header .container .row,
.jumbotron .container .banner {
  /*Matching margins within container
  to align vertically with swatch grid*/
  margin-left: 1.66%;
  margin-right: 1.66%;
}

/*HEADER*/

.header {
  background-color: #5e5e5e;
}

.header .row #reset-btn {
  float: left;
}

.header .row .menu {
  float: right;
  list-style: none;
  font-size: 0; /* no space between inline-block elements*/
}

.header .row:after { /*clearfix*/
  content: "";
  display: block;
  clear: both;
}

.header .row .menu li {
  display: inline-block;
}

.header button {
  font-size: 16px;
  letter-spacing: 0.4px;
  font-weight: 500;
  background-color: #e1e1e1;
  height: 40px;
  outline: none;
  border: none;
  padding: 0 18px;
}

.header button:hover {
  color: white;
  background-color: black;
  cursor: pointer;
}

.header button.active {
  color: white;
  background-color: #333333;
}

/*JUMBOTRON*/

.jumbotron .banner {
  min-height: calc(540px * 0.3);
  background-color: #666666;
  margin-top: 3.33%; /*Same top margin as swatches*/
  padding: 5% 20px;
}

/*GALLERY*/

.gallery {
  padding-bottom: 10px;
  font-size: 0; /* no space between inline-block elements*/
}

.gallery .swatch {
  display: inline-block;
  padding-bottom: 30%; /*in lieu of height*/
  width: 30%;
  background-color: white;
  margin: 3.33% 1.66% 0;
}

.gallery .swatch:hover {
  cursor: pointer;
}

.gallery .swatch.hidden {
  display: none;
}
