// Max book cover width = 600px
// Custom icon font created, using some IcoMoon free icons and some of my own creation (nook, kobo and indiebound icons)
// Feather Pen graphic adapted from: https://www.vecteezy.com/vector-art/578891-feather-pen-write-sign-logo-template-app-icons

@import url('https://fonts.googleapis.com/css?family=Merriweather|Montserrat');

/* Variables and Mixins */
// Font
$heading-font: 'Merriweather', serif;
$body-font: 'Montserrat', sans-serif;

// Colors
/* Color Theme Swatches in Hex */
$palewhite-hex: #D9D8D2;
$darkblue-hex: #011526;
$paleblue-hex: #B0BDC5;
$turquoise-hex: #08495B;

/* General */

body {
  background-color: $palewhite-hex;
  font-family: $body-font;
  height: 100%;
  margin-bottom: 1rem;
}

.quill {
  max-width: 160px;
  margin-bottom: 20px;
}

/* Typography */

nav a {
  color: $paleblue-hex;
  &:hover {
    color: $turquoise-hex;
    background-color: $paleblue-hex;
  }
}

h1, h2, h3, h4 {
  font-family: $heading-font;
}

h1 {
  font-size: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 40px;
}

.tagline {
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer {
  h3 {
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: right;
    border-bottom: 1px dashed $darkblue-hex;
    color: $darkblue-hex;
    margin-bottom: 15px;
  }
}

/* Header */

.header {
  background-color: $darkblue-hex;
  color: $palewhite-hex;
  top: 0;
  bottom: 0;
  position: fixed;
  z-index: 9;
  text-align: center;
  width: 300px;
  padding-top: 20px;
  padding-bottom: 20px;
}

header {
  margin-left: 30px;
  margin-right: 30px;
}

.tables {
  display: table;
  width: 100%;
  height: 100%;
}

.table-cell {
  display: table-cell;
  vertical-align: middle;
}

.social {
  padding-top: 10px;
  list-style: none;
  display: flex;
  padding-left: 0;
  justify-content: center;
  li {
    padding: 5px;
  }
  font-size: 18px;
  a {
    color: $paleblue-hex;
    &:hover {
      color: $palewhite-hex;
      background: none;
      text-decoration: none;
    }
  }
}
.nav {
  font-size: 18px;
}

/* Book Body */

.books {
  padding: 20px;
  padding-left: 80px;
  text-align: center;
  display: flex;
  justify-content: center;
}
.book {
  text-align: center;
	margin:5px;
  float: left;
  position:relative;
  &:hover {
    animation: 1s ease pulse;
  }
  
  .book-hover {
    z-index:5;	
		-webkit-transition: all 300ms ease-out;
		-moz-transition: all 300ms ease-out;
		-o-transition: all 300ms ease-out;
		transition: all 300ms ease-out;	
		opacity:0;
		cursor:pointer;			
		display:flex;
    flex-direction: column;
		text-decoration:none;
		text-align:center;
    .mask {
       background-color:#000;
      -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
      filter: alpha(opacity=50);
      opacity:0.5;
      z-index:0;
    }
  }
  .book-info {
    z-index:10;
    color:$palewhite-hex;
    position:relative;
    z-index:5;
    .blurb {
      margin-right: 20px;
      margin-left: 20px;
    }
    .line {
      height:2px;
			width:0%;
			margin:15px auto;
			background-color:#ffffff;
		  -webkit-transition: all 300ms ease-out;
			-moz-transition: all 300ms ease-out;
			-o-transition: all 300ms ease-out;
			transition: all 300ms ease-out;	
    }

  }
}

.book-hover {
  position:absolute;
	top:0;
	left:0;	
  height: 100%;
  .mask {
    position:absolute;
	  top:0;
	  left:0;	
    width: 100%;
    height: 100%;
  }
  
}
.book-hover.active {
  opacity:1;
  .line {
    width: 90%;
  }
}

.btn-darkblue-op {
  color: $paleblue-hex;
  background-color: $darkblue-hex;
  border-color: $darkblue-hex;
  opacity: 0.5;
  &:hover {
    color: $turquoise-hex;
    background-color: $paleblue-hex;
    opacity: 0.75;
  }
}
.btn-darkblue {
  color: $paleblue-hex;
  background-color: $darkblue-hex;
  border-color: $darkblue-hex;
  &:hover {
    color: $turquoise-hex;
    background-color: $paleblue-hex;
  }
}

/* Footer */

.footer-inner {
  margin-left: 60px;
  border-top: 1px solid $darkblue-hex;
  margin-top: 60px;
  padding-top: 40px;
}

// Twitter Widget
.twitter-item {
 border-left:1px solid $darkblue-hex;
 position:relative;
 padding:.5rem .5rem .5rem 1.5rem;
 font-size:.9rem;
 margin-left:1rem;
 min-height:4rem;
  .twitter-icon {
    line-height:2rem;
    position:absolute;
    left:-1rem;
    width:2rem;
    height:2rem;
    text-align:center;
    border: 1px solid $darkblue-hex;
    background-color: $palewhite-hex;
    border-radius:50%;
    font-size:1.5rem;
    a {
      color:$darkblue-hex;
      &:hover {
        color:$turquoise-hex;
      }
    }
  }
   &:last-child {
     padding-bottom:1rem;
   }
  .twitter-date {
    margin-bottom: .5rem;
    font-size: .8rem;
    span {
      color: #888;
      font-size:85%;
      padding-left:.4rem;
    }
  }
}

/* Responsive */

.mobile {
  display:none;
  margin-bottom: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
  background-color: $darkblue-hex;
  .mobile-menu {
    width: 60px;
    height: 60px;
    display: inline-block;
    position: fixed;
    z-index: 999;
    .item {
      display: block;
      width: 22px;
      height: 2px;
      background-color: $palewhite-hex;
      position: relative;
    }
    .item-1 {
      top: 23px;
    }
    .item-2 {
      top: 29px;
    }
    .item-3 {
      top: 35px;
    }
  }
  .logo {
    padding-bottom: 0px;
    padding-top: 10px;
    text-align: center;
    font-size: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 40px;
    font-family: $heading-font;
    a {
      color: $palewhite-hex;
      text-decoration: none;
    }
  }
}

.hide-menu {
  visibility: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 998;
  background-color: rgba(1, 21, 38, 0.7);
  opacity: 0;
  -webkit-transition: visibility 0.3s ease, opacity 0.3s ease;
  -moz-transition: visibility 0.3s ease, opacity 0.3s ease;
  -ms-transition: visibility 0.3s ease, opacity 0.3s ease;
  -o-transition: visibility 0.3s ease, opacity 0.3s ease;
  transition: visibility 0.3s ease, opacity 0.3s ease;
}

@media screen and (max-width: 991px) {
  .mobile {
    display: block;
  }
  .mobile-quill {
    max-height: 50px;
    margin-right: -32px;
  }
  .book {
    &:hover {
      animation: none;
    }
  }
  .header {
    left: 0;
    width: 250px;
    z-index: 9999;
    background-color: $darkblue-hex;
    text-align: center;
    -webkit-transform: translateX(-101%);
    -moz-transform: translateX(-101%);
    transform: translateX(-101%);
    -webkit-transition: transform 0.3s ease;
    -moz-transition: transform 0.3s ease;
    -ms-transition: transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
  }
  .header.active {
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    transform: translateX(0);
  }
  .hide-menu.active {
    visibility: visible;
    opacity: 1;
  }
  .books {
    padding: 20px;
  }
  .footer-inner {
    margin-left: 0px;
    margin-top: 40px;
    padding-top: 30px;
  }
  .footer {
    h3 {
      margin-top: 20px;
    }
  }
}
@media screen and (max-width: 540px) {
  h1 {
    font-size: 30px!important;
    line-height: 30px!important;
  }
  .logo {
    font-size: 30px!important;
    line-height: 30px!important;
  }
  .main-menu {
    font-size: 16px;
  }
  .quill {
    max-width: 120px;
  }
  .mobile-quill {
    margin-left: 10px;
  }
  .header {
    width: 220px;
  }
}