@charset "UTF-8";
/* CSS Document */
.hero-image-blog {
  background-image: url("../images/forest-at-night.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  padding-top: 20px;
  background-attachment: fixed;
    height: 100%;
    max-height: 630px;
}

/*BLOG PAGES*/
.icon-bar {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
    background-color: #31353D;
	background-color: rgba(49,53,61,0.8);
}

.icon-bar a {
  display: block;
    width:100px;
    height:auto;
  text-align: center;
  padding: 16px;
  transition: all 0.3s ease;
  color: aliceblue;
  font-size: 36px;
}

.icon-bar a:hover {
  background-color: #1C1D21;
}

.icon-bar a.active {
  background-color: #92CDCF;
}

/* Style the tab */
.tab {
  float: left;
  background-color: #445878;
  width: 100%;
}

/* Style the buttons that are used to open the tab content */
.tab a {
  display: block;
  background-color: inherit;
  color: aliceblue;
  padding: 22px 16px;
  width: 100%;
  text-align: center;
    text-decoration: none;
  cursor: pointer;
  transition: 0.3s;
}

/* Change background color of tab buttons on hover */
.tab a:hover {
  background-color: aliceblue;
    color: #445878;
}

/* Create an active/current "tab button" class */
.tab a.active {
  background-color: #92CDCF;
}
/* Style the tab content */
.tabcontent {

}
/*HEADER Images for Subtopics*/
.yqf-title-img{
    background-image: url("../images/yqf/elements-backdrop.jpg");
    background-size: cover;
    background-position: center;
}
.travel {
    background-image: url("../images/mountains.jpeg");
    background-size: cover;
    background-position: center;
}
.reading {
    background-image: url("../images/book-mockup-blank.png");
    background-size: cover;
    background-position: center;
}
.writing {
    background-image: url("../images/editing-is-madness.jpeg");
    background-size: cover;
    background-position: center;
}
.writing-tools {
    background-image: url("../images/sealed-letter.jpeg");
    background-size: cover;
    background-position: center;
}
.resources {}
.obsessions {}
.film {}
.bookshop {}
.science {}
.school {}
.timesinks {
    background-image: url("../images/blue-smoke.jpeg");
    background-size: cover;
    background-position: center;
}
.littleprettythings {}
/*Style container of individual posts*/
.card{
    background-color:#31353D;
    padding: 5%;
}
/*container of the image, opens the Modal*/
.title-img{
	width: 100%;
	height: 200px;
	overflow: hidden;
	position: relative;
	background-color: #92CDCF;
	cursor: pointer;
    background-size: cover;
    background-position: center;
}

.img-hidden{opacity: 0;}

.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: #445878;
  color: aliceblue;
  text-align: center;
    font-size: 0.5em;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: 100%;
  left: 0;
  margin-left: -10px;
  opacity: 0;
  transition: opacity 0.3s;
}
/*Makes Tooltip a speaking bubble*/
.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: px;
  border-style: solid;
  border-color: #445878 transparent transparent transparent;
    transition: .5s ease;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}
/*For Images*/
.text-overlay{
    width: 100%;
    background-color: #1C1D21;
    background-color: rgba(28,29,33,0.5);
    color: aliceblue;
    padding:10 20px;
    font-family: lato, sans-serif;
    position:absolute;
    bottom:0;
    z-index:1;
    transition: .5s ease;
    opacity:0;
}
.title-img:hover .text-overlay{
    opacity:1;
}
/*READ MORE READ LESS*/
.more{
    display: none;
}

/* THE MODAL*/
/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* 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: 700px;
}

/* 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: #f0f8ff;
  padding: 10px 0;
  height: 150px;
}

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

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

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

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

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
  .modal-content {
    width: 100%;
  }
    .hero-image-blog{
        background-attachment: scroll;
    }
}