
/* *** Utilising: SIMPLE GRID (C) ZACH COLE 2016 */

/* google fonts */
@import url(https://fonts.googleapis.com/css?family=Neuton:400,300,300italic,400italic,700,700italic);

/* UNIVERSAL */

html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  left: 0;
  top: 0;
  font-size: 100%;
}

a:hover{
  background: linear-gradient(to top, #ff6ec7 30%, transparent 30%);
}

main{
  padding-top: 50px;
}

img{
  width: 100%;
  background-color: transparent !important;
}

figure {
  margin: 16px;
}

hr {
    color: #ff6ec7;
    border-style: dashed;
}

/* ROOT FONT STYLES */

* {
  font-family: 'Neuton', serif;
  color: #333447;
  line-height: 1.5;
}

/* TYPOGRAPHY */

h1 {
  font-size: 1.5rem;
}

h2 {
  font-size: 1.4rem;
}

h3 {
  font-size: 1.375rem;
}

h4 {
  font-size: 1.125rem;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: 0.875rem;
}

p {
  font-size: 1.125rem;
  font-weight: 200;
  line-height: 1.8;
}

.font-light {
  font-weight: 300;
}

.font-regular {
  font-weight: 400;
}

.font-heavy {
  font-weight: 700;
}

/* POSITIONING */

.left {
  text-align: left;
}

.right {
  text-align: right;
}

.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.justify {
  text-align: justify;
}

/* +++++ forms ++++ */
form.search{
  margin-top: 45px;
}

/* Style the search field */
form.search input[type=text] {
  box-sizing: border-box;
  padding: 8px;
  font-size: 1.125rem;
  border: 0;
  float: left;
  width: 70%;
  background: #f1f1f1;
}

form.search input:focus-visible {
    outline: none;
}

/* Style the submit button */
form.search button {
  float: left;
  width: 20%;
  padding: 8px;
  background: #2e106a;
  border-color: #2e106a;
  color: white;
  font-size: 1.125rem;
  border: 0;
  border-left: none; /* Prevent double borders */
  cursor: pointer;
}

form.search button:hover {
  background: #ff6ec7;
}

/* Clear floats */
form.search::after {
  content: "";
  clear: both;
  display: table;
}

/*
input {
    border-radius: 0;
    padding: 10px;
    border-width: 0;
    -webkit-box-shadow: 5px 5px 15px 5px rgba(0,0,0,0.53);
    box-shadow: 5px 5px 15px 3px rgba(0,0,0,0.53);
    margin: 10px;
    font-size: larger;
}

form{
  margin-top: 30px;
  margin-bottom: 30px;
}

.ufn-button{
    -webkit-box-shadow: none;
    box-shadow: none;
}

.ufn-button:hover {
    -webkit-box-shadow: 5px 5px 15px 5px rgba(0,0,0,0.53);
    box-shadow: 5px 5px 15px 3px rgba(0,0,0,0.53);
}
*/
/* ++++ marginalia ++++ */

#marginalia{
  display: none;
  position: absolute;
  z-index: -100;
}

/* ++++ SIDBAR PLUGIN ++++ */

.side-excerpt {
  text-align: left
  font-style: italic;
  color: #16195d;
}

#side-notes {
  font-style: italic;
  color: #16195d;
}

.side-item{
  padding-top: 25px;
}

.team{
  margin-top: 0px;
}

.team-member-name {
  padding-top: 10px;
  /*white-space: nowrap;*/
  color: #16195d;
}

.team-member {
  font-style: italic;
  padding-bottom: 10px;
  /*white-space: nowrap;*/
  color: #16195d;
}


.team-member p{
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.2;
}

.bio{
  padding-top: 25px;
}

.location{
  padding-top: 20px;
}

/* ++++ MENU & HEADER ++++ */

.header{
 /*position: fixed;*/
 /*width: inherit;*/
 z-index: 1000;
}

.logo{
  width: 100%;
  margin-top: 0px;
  display: block;
  z-index: 1001;
  background: transparent !important;
}

.menu{
  /*float: right;*/
  text-align: center;
}

#menu{
    margin-top: 25px;
}

#menu a {
    margin-left: 15px;
    margin-right: 15px;
    text-decoration: underline;
    font-size: 1.375rem;
}

.clearMe{
  clear: both;
}

/* +++++ footer ++++ */
.footer_inner{
  line-height: 1.2;
  padding-top: 18px;
}

.footer{
  padding-top: 20px;
  padding-bottom: 45px;
}

/* +++ main content ++ */
.story-excerpt{
  line-height: 1.4;
  text-align: left;
  padding-top: 8px;
}

.story-exerpt-title{
  font-size: 1.125rem;
  display: block;
  font-style: italic;
}

.story-item{
  margin-bottom: 45px;
}

.featured{
  background: transparent !important;
}

.video {
    margin-bottom: 35px;
    margin-top: 25px;
}

/* +++++ resources page ++++*/
.downloadable-text{
  text-align: center;
  font-size: 1.25rem;
  padding-top: 15px;
  padding-bottom: 20px;
}

/* +++ pagination ++ */

.pagination{
  padding-top: 25px;
  font-size: 1.4rem;
}

.next{
  float: left;
}

.prev{
  float: right;
}

/* ++++ image modal lightbbox stuff ++++ */
/* Style the Image Used to Trigger the Modal */
.clickable {
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.clickable:hover {opacity: 0.7;}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 50px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (Image) */
.modal-content {
  margin: auto;
  display: block;
  /*width: 80%;
  max-width: 1024px;*/
}

/* Caption of Modal Image (Image Text) - Same Width as the Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Add Animation - Zoom in the Modal */
.modal-content, #caption {
  animation-name: zoom;
  animation-duration: 0.1s;
}

@keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* ==== GRID SYSTEM ==== */

.container {
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.row {
  position: relative;
  width: 100%;
}

.row [class^="col"] {
  float: left;
  margin: 0.5rem 2%;
  min-height: 0.125rem;
}

.col-1,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-10,
.col-11,
.col-12 {
  width: 96%;
}

.col-1-sm {
  width: 4.33%;
}

.col-2-sm {
  width: 12.66%;
}

.col-3-sm {
  width: 21%;
}

.col-4-sm {
  width: 29.33%;
}

.col-5-sm {
  width: 37.66%;
}

.col-6-sm {
  width: 46%;
}

.col-7-sm {
  width: 54.33%;
}

.col-8-sm {
  width: 62.66%;
}

.col-9-sm {
  width: 71%;
}

.col-10-sm {
  width: 79.33%;
}

.col-11-sm {
  width: 87.66%;
}

.col-12-sm {
  width: 96%;
}

.row::after {
	content: "";
	display: table;
	clear: both;
}

.hidden-sm {
  display: none;
}

/* TK begin custom css for map */
/* TK style map*/
#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}
#size{
  width: 100%;
  height:60vh;
}

#console {
    position: absolute;
    margin-top: 10px;
    margin-left: 20px;
    text-align: center;
}

#genreTitle,
#tagTitle {
    min-width: 100px;
    padding: 10px;
    font-size: 1rem;
    color: #2e106a;
    background-color: white;
}

/*tk styling of text in the popup */
.popupText h4,
h6,
p {
    padding-top: 5px;
    padding-bottom: 5px;
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.5;
}

.popupText p {
    font-size: .8rem;
}

/* MAP STUFF */
/*tk end of popup text styling */
/* TK some of the dropdown function is from https://css-tricks.com/solved-with-css-dropdown-menus/ */
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

ul li {
    display: inline-block;
    position: relative;
}

ul li ul {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    display: none;
}

ul li:hover > ul,
ul li ul:hover {
    visibility: visible;
    opacity: 1;
    display: block;
}

ul li ul li {
    width: 100%;
    padding-top: 5px;
    padding-bottom: 5px;
    background-color: #cccee1;
    -webkit-transition: background-color 0.25s ease-out;
    -moz-transition: background-color 0.25s ease-out;
    -o-transition: background-color 0.25s ease-out;
    transition: background-color 0.25s ease-out;
    margin-bottom: 5px;
}

ul li ul li:hover {
    background-color: #9c9ead;
}

input[type="radio"] {
    /* TK using opacity rather than visibility because it's more accessible to keyboard users */
    opacity: 0;
    position: fixed;
    border: 0px;
    width: 100%;
    height: 2em;
}

/* TK begin popup styling */
.mapboxgl-popup-content {
    background-color: #cccee1;
    color: #2e106a;
    max-height: 250px;
    margin: 0;
    padding: 15px;
}

.mapboxgl-popup-anchor-top .mapboxgl-popup-tip {
    border-bottom-color: #cccee1;
}

.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip {
    border-top-color: #cccee1;
}

.mapboxgl-popup-anchor-left .mapboxgl-popup-tip {
    border-right-color: #cccee1;
}

.mapboxgl-popup-anchor-right .mapboxgl-popup-tip {
    border-left-color: #cccee1;
}

/* TK end popup styling */
/* TK end custom css */


@media only screen and (min-width: 33.75em) {  /* 540px */
  .container {
    width: 80%;
  }
}

@media only screen and (min-width: 720px) {  /* 720px */
  .side-item{
    padding-top: 200px;
  }

  .bio{
    padding-top:180px;
  }

  .logo{
    margin-top: -50px;
  }

  .story-item{
    margin-bottom: 0px;
  }

  #marginalia{
    display: inline;
  }

  .side-excerpt {
    padding-top: 45px;
  }

  .team{
    margin-top: 190px;
  }

  .menu{
    float: right;
  }

  .col-1 {
    width: 4.33%;
  }

  .col-2 {
    width: 12.66%;
  }

  .col-3 {
    width: 21%;
  }

  .col-4 {
    width: 29.33%;
  }

  .col-5 {
    width: 37.66%;
  }

  .col-6 {
    width: 46%;
  }

  .col-7 {
    width: 54.33%;
  }

  .col-8 {
    width: 62.66%;
  }

  .col-9 {
    width: 71%;
  }

  .col-10 {
    width: 79.33%;
  }

  .col-11 {
    width: 87.66%;
  }

  .col-12 {
    width: 96%;
  }

  .hidden-sm {
    display: block;
  }
}


@media only screen and (min-width: 1200px) { /* 960px */
  .modal {
    padding-top: 100px; /* Location of the box */
  }

  .container {
    width: 1200px;
  }
}
