@font-face {
  font-family: navfont;
  src: url('../fonts/TooFreakinCuteDemo.eot?#iefix') format('embedded-opentype'),
       url('../fonts/TooFreakinCuteDemo.woff') format('woff'),
       url('../fonts/TooFreakinCuteDemo.ttf')  format('truetype'),
       url('../fonts/TooFreakinCuteDemo.svg#svgFontName') format('svg');
}

@font-face {
  font-family: mainfont;
  src: url('../fonts/DejaVuSans.eot?#iefix') format('embedded-opentype'),
       url('../fonts/DejaVuSans.woff') format('woff'),
       url('../fonts/DejaVuSans.ttf')  format('truetype'),
       url('../fonts/DejaVuSans.svg#svgFontName') format('svg');
}

::-moz-selection {
  background-color: #f78aa5;
  color: white;
}

::selection {
  background-color: #f78aa5;
  color: white;
}

body {
  font-family: mainfont, sans-serif;
  margin: 0;
  padding: 0 40px;
  background-color: #ffedf6;
  background-image: url("../media/pixie-bg.png");
  background-attachment: fixed;
}

main {
  max-width: 1100px;
  min-width: 800px;
  border: 1px dashed;
  border-radius: 10px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 10px;
  margin-bottom: 20px;
  padding: 20px;
  text-align: center;
  background-color: white;
}

header {
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 50px;
}

header img {
  width: 100%;
}

footer {
  text-align: center;
  margin-bottom: 20px;
  font-size: 50pt;
}

section {
  width: 100%;
  border-top: 1px solid;
  margin-bottom: 20px;
}

a {
  font-family: navfont, cursive;
  text-decoration: none;
  color: black;
}

a:hover {
  color: #f78aa5;
}

img {
  display: block;
}

.box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
  padding: 30px;
  border: 1px dashed;
  border-radius: 10px;
  background-color: #ffedf6;
}

.box img {
  width: 100%;
  margin: 0 0 5px 0;
}

.box div {
  margin: 20px 0 -20px 0;
  text-align: left;
  width: 100%;
}

.box strong {
  color: #f78aa5;
}

.box p {
  width: 50%;
  margin-left: auto;
  margin-right: auto;
}

.box h2 {
  margin: 0 0 20px 0;
  text-align: center;
}

.emoji {
  display: inline-block;
  white-space: nowrap;
}

.gallery {
  display: flex;
  margin: auto;
}

.media {
  font-family: mainfont, sans-serif;
  position: relative;
  margin: 2.5px;
  flex-grow: 1;
  min-width: 100px;
  overflow: hidden;
}

.no-grow {
  flex-grow: 0;
}

.media img {
  font-family: mainfont, sans-serif;
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.hover {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: .5s ease;
  background: rgba(255, 255, 255, 0.7);
}

.hover div {
  position: absolute;
  width: 100%;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
}

.hover-text {
  font-family: mainfont, sans-serif;
  font-weight: normal;
  font-size: 10pt;
  margin: 5px 0 0 0;
}

.hover-title {
  font-size: 20pt;
  font-weight: normal;
  margin: 0;
  padding: 0 10px;
}

.hover:hover {
  opacity: 1;
  color: black;
}

.view-content {
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 70%;
  background: #ffedf6;
  border-radius: 10px;
  padding: 20px;
  border: 1px black solid;
  margin-top: 10px;
}

.view-container {
  width: 80%;
  margin-top: 10px;
}

.view-media {
  width: 80%;
  height: 100%;
  margin: auto;
  overflow: auto;
}

.view-media img {
  display: inline-block;
  max-width: 100%;
}

.view-text {
  color: #f78aa5;
  background: white;
  padding: 10px;
  border-radius: 10px;
  border: 1px black dashed;
  margin-bottom: 5px;
  text-align: center;
}

.view-content h1 {
  margin: 0;
}

.view-description {
  color: black;
  text-align: left;
}

.button, .grey {
  font-family: mainfont, sans-serif;
  display: inline-block;
  color: white;
  background: #f78aa5;
  font-size: 12pt;
  border-radius: 10px;
  border: 1px solid #f78aa5;
  margin-top: 10px;
  padding: 5px 10px;
}

.button:hover {
  color: black;
  background: #ffedf6;
  border: 1px dashed;
}

.grey {
  background: #ffedf6;
  border-color: #ffedf6;
}

.cursive {
  font-family: navfont, cursive;
  font-weight: normal;
  font-size: 30pt;
  background: #f78aa5;
  color: white;
  border-radius: 10px;
  padding-top: 7pt;
}

.cursive::-moz-selection {
  background-color: #ffedf6;
  color: black;
}

.cursive::selection {
  background-color: #ffedf6;
  color: black;
}

@media only screen and (max-width: 600px) {
  body {
    padding: 0 10px;
  }

  main {
    min-width: auto;
  }

  .box p {
    width: 80%;
  }

  .gallery {
    flex-wrap: wrap;
  }

  .no-grow {
    flex-grow: 1;
  }

  .view-media, .view-container {
    width: 100%;
  }

  .view-content {
    width: calc(100% - 40px);
  }
}
