/* Top Nav Fixed */

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

* {
  box-sizing: border-box;
}

body {
  background: #000;
  font-family: Raleway, sans-serif;
  font-weight: 100;
  color: #FFF;
  letter-spacing: 0.05em;
  font-size: 0.8em;
  text-shadow: 1px 1px 4px #057287;
  overflow-x: hidden;
}

@media only screen and (min-width: 340px) {
  /* For more than really, really tiny screens */
  body {
    font-size: 0.9em;
  }
}

@media only screen and (min-width: 420px) {
  /* For more than really tiny screens */
  body {
    font-size: 16px;
  }
}

a {
  color: inherit;
  text-decoration: none;
  font-weight: 900;
  color: #eee;
}

a:hover {
  color: #fff;
}

address {
  font-size: 1em;
  font-weight: 900;
}

@media only screen and (min-width: 768px) {
  /* For iPads & Desktop: */
  address {
    font-size: 1.3em;
  }
}

#wrapper {
  position: absolute;
  top: 0;
  left: 0;
  min-height: 100vh;
  min-width: 100vw;
  background: linear-gradient(#4ec3d8, #07a4c1) fixed;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 0;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #000;
  text-align: center;
  box-shadow: 0 3px 1px #222;
  z-index: 2;
}

nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

nav li {
  padding: 30px 45px;
  background: #000;
  font-size: 1.2em;
  text-shadow: 2px 2px 2px #333;
  transition: background 1s;
}

nav ul:hover {
  cursor: context-menu;
}

nav li:hover {
  background: #057287;
}

#homeLink {
  background: #333;
}

/* Nav for Mobile: */

.mobile:hover {
  background: #222;
}

.dropdown-content {
    display: none;
    z-index: 100;
}

.show {
  display: block;
}

@media only screen and (min-width: 768px) {
  /* For iPads & Desktop: */

  .mobile {
    display: none;
  }

  .dropdown-content {
    display: block;
  }

  nav li {
    display: inline-block;
  }
}

header {
  display: block;
  margin: 100px 0 80px 0;
  padding: 10px;
  line-height: 2em;
  text-align: left;
  cursor: default;
  overflow: auto;
}

h1 {
  font-size: 2em;
  line-height: 1em;
  font-weight: 900;
  padding: 10px 30px 30px 30px;
  animation-name: h1-animation;
  animation-duration: 3s;
  transition: transform 1s;
  text-align: center;
  white-space: nowrap;
}

@media only screen and (min-width: 420px) {
  /* For larger than really, really tiny mobile screens: */

  header {
    margin: 110px 0 80px 0;
    padding: 30px 40px;
  }
}

@media only screen and (min-width: 768px) {
  /* For iPads & Desktop: */

  header {
    margin-left: 50px;
    margin-right: 50px;
    text-align: center;
  }

  h1 {
    font-size: 3em;
  }

  h1:hover {
    transform: translate(10px, 0);
  }

  @keyframes h1-animation {
    from { opacity: 0; margin-right: 500px; }
    to { opacity: 1; margin-right: 0; }
  }
}

header p a:hover {
  cursor: auto;
}

header #headerNext {
  font-size: 1.2em;
  text-align: right;
  margin: 20px;
}

section {
  position: relative;
  margin: 100px 10px 80px 10px;
  padding: 10px;
  line-height: 2em;
  overflow: auto;
  border-radius: 20px;
  opacity: 1.0;
}

h2 {
  font-size: 2em;
  line-height: 1em;
  font-weight: 900;
  text-align: center;
  padding-bottom: 40px;
  animation-name: h2-animation;
  animation-duration: 2.5s;
  transition: transform 1s;
}

@media only screen and (min-width: 420px) {
  /* For larger than really, really tiny mobile screens: */

  section {
    margin: 110px 10px 80px 10px;
    padding: 30px 40px;
  }
}

@media only screen and (min-width: 768px) {
  /* For iPads & Desktop: */
  section {
    margin-left: 50px;
    margin-right: 50px;
  }

  h2 {
    font-size: 3em;
  }

  @keyframes h2-animation {
    from { margin-left: 500px; opacity: 0; }
    to { margin-left: 0px; opacity: 1; }
  }

  h2:hover {
    transform: translate(10px, 0);
  }
}

img {
  border: solid 3px #fff;
  border-radius: 5px;
  opacity: 0.9;
  transition: opacity 1s;
}

img:hover {
  opacity: 1.0;
}

#templatesSection img {
  vertical-align: middle;
  width: 200px;
  height: auto;
  margin: 10px 30px 10px 10px;
  box-shadow: 1px 1px 2px #333;
}

#templatesSection img:hover {
  box-shadow: 2px 2px 2px #000;
}

#displayTemplates {
  text-align: center;
}

.templateWidth {
  display: inline-block;
  width: 270px;
}

button {
  margin: 10px;
  padding: 20px;
  font-size: 1.2em;
  border-radius: 10px;
  border: solid 2px #000;
  background: #fff;
  color: #000;
  box-shadow: 2px 2px 2px #000;
}

button:hover {
  border: solid 2px #ededed;
  background: #000;
  color: #fff;
  box-shadow: 1px 1px 2px #333;
}

button:focus {
  outline: 0;
}

.pageBottomButtons {
  margin-top: 20px;
  text-align: center;
}

@media only screen and (min-width: 768px) {
  /* For iPads & Desktop: */
  .pageBottomButtons {
    text-align: right;
  }
}

#templatesSection #templatesNextButton {
  margin-right: 50px;
}

#colorsSection input, #backgroundsSection input {
  margin: 30px 10px 30px 0;
}

#colorsSection label {
  font-size: 1.4em;
  vertical-align: middle;
}

#backgroundsSection label {
  font-size: 1.2em;
  vertical-align: middle;
}

#colorsForm :nth-child(1) {
  margin-left: 0;
}

#colorsForm, #backgroundsForm {
  text-align: center;
}

input {
  border: solid 2px #000;
  border-radius: 5px;
  padding: 5px;
}

input:focus {
  background: #333;
  outline: 0;
}

.defaultColor {
  color: #b3edff;
}

.red {
  color: #ffb5c0;
}

.orange {
  color: #ffdcb4;
}

.yellow {
  color: #fffdb3;
}

.green {
  color: #e4ffb3;
}

.blue {
  color: #bfe8fc;
}

.purple {
  color: #e6ccff;
}

.defaultColor:hover, .red:hover, .orange:hover, .yellow:hover, .green:hover, .blue:hover, .purple:hover {
  color: #fff;
}

#aboutSection {
  text-align: justify;
}

#aboutSection p {
  margin-bottom: 30px;
}

#aboutSection img {
  float: left;
  margin-right: 20px;
  width: 150px;
  height: 150px;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #000;
  text-align: center;
  color: #8c8c8c;
  text-shadow: 1px 1px 1px #333;
  box-shadow: 0 -2px 1px #333;
  padding: 20px;
  z-index: 1;
  transition: color 1s;
}

footer:hover {
  cursor: default;
  color: #fff;
}

#colorsSection, #aboutSection, #templatesSection, #backgroundsSection {
  display: none;
}

#backgroundsInstructions {
  text-align: center;
}

.bgWidth {
  display: inline-block;
  width: 300px;
}

.nowrap {
  white-space: nowrap;
}

.colorMargin {
  margin: 0 20px;
}

.backgroundsMargin {
  margin: 0 40px 0 10px;
}

.backgroundsMargin:hover {
  color: #eee;
}

@keyframes slide-down {
  from { margin-top: -100%; }
  to { margin-top: 100px; }
}

@media only screen and (min-width: 420px) {
  /* For iPads & Desktop & Larger Mobiles: */
  @keyframes slide-down {
    from { margin-top: -100%; }
    to { margin-top: 110px; }
  }
}

/* IE Flex Fix */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
   header { width: 90vw; }
   section { width: 90vw; }
}
