/**
 * StackedGrid.css
 *
 * Copyright 2019 RealPatterns, Inc. All rights reserved.
 */



.StackedGrid {

  display: flex;
  flex-flow: row wrap;
  justify-content: flex-start;
  margin: auto;
  font: normal 12px sans-serif;
  background-color: #E7E7E7;
}



/*
 * Main section layout.
 */
.StackedGrid > div.Heading {

  display: flex;
  box-sizing: border-box;
  width: 25%;
  min-width: 120px;
  height: 240px;
  border: 0 solid #E7E7E7;
  cursor: pointer;
}
.StackedGrid > div.Heading > h1 {

  width: 100%;
  height: 100%;
  margin: auto;
  font: 1.5em sans-serif;
  text-align: center;
  color: white;
  transition: transform, 200ms;
}
.StackedGrid > div.Heading.Expanded > h1 {

  transform: scale(1.1);
  box-shadow: 0 0 6px rgba(0, 0, 0, .25);
  z-index: 1;
}
.StackedGrid > div.Heading:hover > h1,
.StackedGrid > div.Heading.Expanded > h1 {

  background-image: none !important;
}
.StackedGrid > div.Heading > h1 > span {

  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}



/*
 * Section title.
 */
.StackedGrid > div.Heading > h1 > span span.Title {

  display: inline-block;
  margin: auto 0 2%;
}
.StackedGrid > div.Heading:hover > h1 > span span.Title,
.StackedGrid > div.Heading.Expanded > h1 > span span.Title {

  margin: 6% 0 0;
  font-size: 1.2em;
  text-transform: uppercase;
}



/*
 * Section description.
 */
.StackedGrid > div.Heading > h1 > span span.Description {

  display: none;
}
.StackedGrid > div.Heading:hover > h1 > span span.Description,
.StackedGrid > div.Heading.Expanded > h1 > span span.Description {

  display: inline-block;
  margin: auto 15%;
}



/*
 * Section action indicator.
 */
.StackedGrid > div.Heading > h1 > span span.Action {

  display: inline-block;
  height: 2em;
  font: .8em/2 sans-serif;
  background-color: rgba(255, 255, 255, .5);
}
.StackedGrid > div.Heading > h1 > span span.Action .Retract {

  display: none;
}
.StackedGrid > div.Heading.Expanded > h1 > span span.Action .Expand {

  display: none;
}
.StackedGrid > div.Heading.Expanded > h1 > span span.Action .Retract {

  display: inline;
}
.StackedGrid > div.Heading > h1 > span span.Action i.material-icon {

  font: normal normal 2em/1 'Material Icons';
}



/*
 * Section panel.
 */
.StackedGrid > div.Panel {

  display: none;
  box-sizing: border-box;
  width: 100%;
  border: 0 solid #E7E7E7;
  background-color: lightgray;
}
.StackedGrid > div.Panel.Expanded {

  display: flex;
}
.StackedGrid > div.Panel > * {

  flex: 1;
  padding: 2em 0 1em;
}
.StackedGrid > div.Panel a {

  color: #222222;
  text-decoration: none;
}



/*
 * Simple panel setup (Copy Box).
 */
.StackedGrid > div.Simple > .CopyBox {

  padding: 1em;
}



/*
 * Module panel setup (Copy Box + Topic Browser).
 */
.StackedGrid > div.Module > .CopyBox {

  flex: 1;
  color: white;
  background-color: #888888;
}
.StackedGrid > div.Module > .CopyBox p {

  margin: 0;
  padding: .33em 1em 1em;
  font-size: 1.2em;
}
.StackedGrid > div.Module > .TopicBrowser {

  flex: 3;
}
.StackedGrid > div.Module > .TopicBrowser > ul {

  margin-left: .66em;
}



/*
 * Hyperlink list panel setup (Copy Box).
 */
.StackedGrid > div.Hyperlink > .CopyBox,
.StackedGrid > div.Hyperlinks > .CopyBox {

  display: flex;
  flex-flow: row wrap;
}
.StackedGrid > div.Hyperlink > .CopyBox > ul,
.StackedGrid > div.Hyperlinks > .CopyBox > ul {

  flex: 1;
  list-style: none;
  margin: 0 0 0 .66em;
  padding: 0;
}
.StackedGrid > div.Hyperlink > .CopyBox > ul > li,
.StackedGrid > div.Hyperlinks > .CopyBox > ul > li {

  padding: .33em 0;
}



/*
 * Media queries.
 */
@media screen and (max-width: 840px) {

  .StackedGrid > div.Heading {

    width: 33.3% !important;
  }
  .StackedGrid > div.Module > .CopyBox {

    flex: 1 !important;
  }
  .StackedGrid > div.Module > .TopicBrowser {

    flex: 2 !important;
  }
}
@media screen and (max-width: 600px) {

  .StackedGrid > div.Heading {

    width: 50% !important;
  }
  .StackedGrid > div.Panel.Expanded {

    display: block;
  }
  .StackedGrid > div.Panel > .CopyBox,
  .StackedGrid > div.Panel > .TopicBrowser {

    width: 100%;
  }
}
@media screen and (max-width: 360px) {

  .StackedGrid > div.Heading {

    width: 100% !important;
  }
  .StackedGrid > div.Panel > .TopicBrowser {

    display: block;
  }
  .StackedGrid > div.Hyperlink > .CopyBox,
  .StackedGrid > div.Hyperlinks > .CopyBox {

    display: block;
  }
}
