html,
body {
    height: 100%;
    width: 100%;
    margin: 0px;
}

body {
    position: relative;
    background: url('media/linen_background.jpg') repeat top center;
    margin: 0 auto;
    -moz-background-size: cover;
    -o-background-size: cover;
    height: 100%;
    top: 0;
    align-content: center;
}

/* div {
    border: 2pt solid red;
}  */

#masterFlex-container {
    /* border: 2pt solid green; */
    display: flex;
    flex-direction: column;
    min-height: 150%;
    height: 100%;
    align-items: center;

}

#innerContainer {
    /* border: 2pt solid blue; */

    max-width: 800px;
    background-color: #248888;    
}

#header {
    /* position: relative; */
    display: flex;
    text-align: center;
    background-color: #e6e6e6;
    max-width: 800px;
    min-width: 800px;
    border-bottom: 2pt solid #878b8b;
}

#header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3em;
    background-color: #523D5A;
    padding: 10px;
    color: #ffffff;
    font-variant: small-caps;
    font-weight: lighter;
    margin: 5px 0px;
}

#mainBody {
    /* border: 2pt solid blue; */
    max-width: 800px;
    color: #ffffff;
    height: 100%;
    /* padding:0px 20px 0px 20px; */
}

nav {
    display: flex;
    justify-content: space-evenly;
    padding: 10px;
    border-bottom: 2pt solid #878b8b;
}

.navText a {
    font-family: 'Open Sans Condensed', sans-serif;
    font-weight: bold;
    font-size: 2em;
    color: #ffffff;
    text-decoration: none;
}

#intro {
    text-align: center;
    padding: 0px 80px 20px 80px;
}

#intro h1 {
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 1.65em;
    font-weight: lighter;
}

article {
    display: flex;
    flex-direction: row;
    align-items: top;
    padding: 20px 10%;
}

.postTitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.25em;
    margin-bottom: 0px;
    margin-top: 0px;
}

.postDate {
    font-family: 'Playfair Display', serif;
    font-size: 1em;
    margin-top: 0px;
}

.postBodyText {
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 1em;
}

article img {
    max-width: 300px;
}

.postText {
    margin-left: 50px;
}

/* About Page */
#aboutMe{
 margin: 50px;
}
.aboutBodyText{
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 2em;
}
#aboutMe img{
    max-width: 100%;
}

/* contact Form styling */
#contactFormdiv{
    /* border: 5pt solid purple; */

    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    background-color: #248888;
}

#contactForm{
    /* Just to center the form on the page */
  margin: 0 auto;
  max-width: 500px;
  /* To see the outline of the form */
  margin:1em;
  padding: 1em;
  height: 100%;
  background-color:#F0D879;
  border-radius: 25px;

}

#contactForm div{
    margin-top:1em;
}

#contactForm label{
    /* To make sure that all labels have the same size and are properly aligned */
  display: inline-block;
  width: 90px;
  text-align: right;
  font-family: 'Open Sans Condensed', sans-serif;
  font-size: 2em;
  padding-right: 20px;
  color:black;
}

#contactForm input, textarea{
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 2em;
}
#formSubmitButtondiv{
   text-align: center;
}

/*Detail page styling*/
.detailPageDiv{
    display: flex;
    flex-direction: column;
    align-items:center; 
}
.detailPageDiv h1{
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    color: #ffffff;
}
.detailPageDiv p{
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 1.25em;
    padding:5px 40px;
}


/* Modal image popup*/

 /* Style the Image Used to Trigger the Modal */
#indivpagePostimg{
    /* max-width: 80%; */
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

#indivpagePostimg: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: 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: 900px; */
}

/* 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.6s;
}

@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;
}

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

.alert-danger{
    background-color: red;
    padding: 20px;
    color: white;
}