/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 18px;
  line-height: 1.4;
  font-family: 'Lato', sans-serif;
  background-color: #f5f5f5;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: left center, right center;
}

body {
  color: #555555;
  margin: 0 auto;
  padding: 20px;
}

h1, h4 {
  text-transform: uppercase;
  color: #1ca0d9;
}

h1 {
  font-size: 2.5em;
  text-align: center;
  margin-top: 0;
}

h4 {
  text-align: left;
  font-weight: normal;
  font-size: 1em;
  margin-bottom: 0;
}

.main-content {
  /*margin-left: 180px;*/
}

.titles {
  width: fit-content;
  margin: 0 auto;
}

.subheading {
  font-size: 1.2em;
}

.larger {
  font-size: 1.1em;
}

.content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.highlight {
  color: #1ca0d9;
}

.uppercase {
  text-transform: uppercase;
}

.strong {
  font-weight: bold;
}

.announcement {
  color: #000000;
  font-size: 1.5em;
  font-weight: bold;
}

#contactBlock {
  margin-top: 30px;
}

#contactTextBlock {
  text-align: left;
  font-size: 0.9em;
}

#sideInfo {
  width: 250px;
  position: fixed;
  right: 40px;
  top: 50%;
  margin-top: -125px;
}

#paletteInfo {
  border-radius: 50%;
  width: 250px;
  height: 250px;
  display: table-cell;
  vertical-align: middle;
  background-color: #ffffff;
  color: #1ca0d9;
  font-size: 1em;
  line-height: 1em;
  text-align: center;
  text-transform: uppercase;
}

#paletteInfo h5 {
  font-size: 1em;
  font-weight: 900;
  margin-bottom: 0;
  margin-top: 0;
}

#paletteInfo ul {
  font-weight: 300;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

#sideInfo img {
  margin-top: 35px;
  margin-left: -67px;
  width: 150%;
}

#extraProductImage {
  display: none;
  height: 150px;
  margin: 35px auto 0;
}


/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: " ";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   Media Queries for Responsive Design.
   ========================================================================== */

@media only screen and (max-width: 1600px) {

}

@media only screen and (max-width: 1200px) {
  .main-content {
    margin-left: auto;
    padding-right: 280px;
    padding-left: 40px;
  }

  h4 {
    text-align: center;
  }
}

@media only screen and (max-width: 950px) {
  .main-content {
    padding-right: 40px;
  }

  #sideInfo {
    position: relative;
    right: auto;
    width: fit-content;
    margin: 0 auto 40px;
  }

  .side-info-container {
    float: left;
  }

  #sideInfo img {
    height: 200px;
    width: auto;
    margin-left: 40px;
  }
}

@media only screen and (max-width: 600px) {
  html {
    background-position: right top;
  }

  .main-content {
    padding: 0;
  }

  h1 {
    font-size: 2em;
  }

  .side-info-container {
    float: none;
  }

  #sideInfo img {
    margin-left: 0;
  }

  #extraProductImage {
    display: block;
  }
}
