body{
  background-color:#D9DBE2;
  background-image: url("images/background2.jpg");
  background-repeat: repeat;
  background-size: 100%;
  font-family: 'Merriweather Sans', sans-serif;
  font-family: 'Permanent Marker', cursive;
    width: 80%;
  padding: 20px 0px;
  margin: 20px auto;
  text-align: center;
}

h {
  font-family: 'Permanent Marker', cursive;
  font-size: 1.5em;
}
p {
font-family: 'Merriweather Sans', sans-serif;
font-size: 1em;
}



*{
  margin: 0;
  padding:0;
  list-style: none;
  text-decoration: none;
}

nav{
  height: 80px;
  background: #D9DBE2;
    border: #005461 medium solid;
}

nav img{
  width: 150px;
  position: absolute;
  top: 17px;
  left: 12%;
  padding-left: 5%;
}

nav ul{
  float: right;
  padding-bottom: 5%;
  margin-right: 25px;
}

nav ul li{
  display: inline-block;
  line-height: 80px;
  margin: 0 15px;
}

nav ul li a{
  position: relative;
  color: #005461;
  font-size: 18px;
  padding: 5px 0;
  text-transform: uppercase;
}

nav ul li a:before{
  position: absolute;
  content: '';
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: #005461;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s linear;
}
nav ul li a:hover:before{
  transform: scaleX(1);
  transform-origin: left;
}
label #btn,
label #cancel{
  color: #005461;
  font-size: 30px;
  float: right;
  line-height: 80px;
  margin-right: 40px;
  cursor: pointer;
  display: none;
}

#check{
  display: none;
}
#leftbar {

text-align: center;

background-color: #D9DBE2;

width: 30%;

float: left;

margin-right: 2%;

padding-top: 4%;

padding-left: 4%;

padding-right: 4%;

padding-bottom: 4%;

border: #005461 medium solid;

-webkit-box-shadow: 7px 9px 10px -5px rgba(0,0,0,0.12);

-moz-box-shadow: 7px 9px 10px -5px rgba(0,0,0,0.12);

box-shadow: 7px 9px 10px -5px rgba(0,0,0,0.12);
}

#main-content{
  margin: auto 0;
  padding-top: 5%;
}

#sidebar {

width: 55%;

float: left;

-webkit-box-shadow: 7px 9px 10px -5px rgba(0,0,0,0.12);

-moz-box-shadow: 7px 9px 10px -5px rgba(0,0,0,0.12);

box-shadow: 7px 9px 10px -5px rgba(0,0,0,0.12);

padding: left:10%;
padding: top:4%;
padding: bottom:4%;
padding: right:4%;

margin-right: 2%;
}
#thumbnails {

width: 100%;

float: left;

margin: 20px 0;

margin-bottom: 10%;

border: #005461 medium solid;

background-color: #D9DBE2;

-webkit-box-shadow: 7px 9px 10px -5px rgba(0,0,0,0.12);

-moz-box-shadow: 7px 9px 10px -5px rgba(0,0,0,0.12);

box-shadow: 7px 9px 10px -5px rgba(0,0,0,0.12);
clear: both;

text-align: center;
}

#thumbnails :hover {

  color: #76E0D7;
}

th {
  width: 13%;
}

#par1 {

text-align: center;

background-color: #D9DBE2;

width: 90%;

float: none;

margin: auto;

padding-top: 4%;

padding-left: 4%;

padding-right: 4%;

padding-bottom: 4%;

border: #005461 medium solid;

-webkit-box-shadow: 7px 9px 10px -5px rgba(0,0,0,0.12);

-moz-box-shadow: 7px 9px 10px -5px rgba(0,0,0,0.12);

box-shadow: 7px 9px 10px -5px rgba(0,0,0,0.12);
}
#par2 {

text-align: center;

background-color: #D9DBE2;

width: 90%;

float: none;

margin: auto;

padding-top: 4%;

padding-left: 4%;

padding-right: 4%;

padding-bottom: 4%;

border: #005461 medium solid;

-webkit-box-shadow: 7px 9px 10px -5px rgba(0,0,0,0.12);

-moz-box-shadow: 7px 9px 10px -5px rgba(0,0,0,0.12);

box-shadow: 7px 9px 10px -5px rgba(0,0,0,0.12);
}
#par3 {

text-align: center;

background-color: #D9DBE2;

width: 90%;

float: none;

margin: auto;

padding-top: 4%;

padding-left: 4%;

padding-right: 4%;

padding-bottom: 4%;

border: #005461 medium solid;

-webkit-box-shadow: 7px 9px 10px -5px rgba(0,0,0,0.12);

-moz-box-shadow: 7px 9px 10px -5px rgba(0,0,0,0.12);

box-shadow: 7px 9px 10px -5px rgba(0,0,0,0.12);
}


input[type=text], select, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #005461;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: 6px;
  margin-bottom: 16px;
  resize: vertical;
}

input[type=submit] {
  background-color: #005461;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

input[type=submit]:hover {
  background-color: #76E0D7;
}


.container {
  margin: auto;
  width: 90%;
  border: 3px solid #005461;
  border-radius: 5px;
  background-color: rgba(217,219,226,0.7);
  padding: 50px;
}


footer {
  position: fixed;
  left: 0;
  bottom: 0;
  padding: 10px;
  width: 100%;
  background-color: #D9DBE2;
  text-align: center;
    border: 3px solid #005461;
    margin-top: 20px;
}
.wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  > * {
    margin: 5px;
  }
}

.media {
  width: 400px;
  height: 250px;
    border: 1px solid #76E0D7;
    border-radius: 10px;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  img {
      max-width: 100%;
      height: auto;
    }
}

.layer {
  font-size: 3em;
  opacity: 0;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 10px;
  height: 90%;
  background: #D9DBE2;
  color: #005461;
  border-radius: 10px;
  transition: all 0.5s ease;
  p {
    transition: all 0.5s ease;
    transform: scale(0.1)
  }
}

.media:hover .layer {
  opacity: 0.8;
  width: 90%;
  transition: all 0.5s ease;
  p {
    transform: scale(1);
    transition: all 0.9s ease;
  }
}

.container2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  flex-direction: row;
  justify-content: center;
}
.container2 img {
  margin: 10px;
  box-shadow: 3px 3px 8px 0px rgba(0,0,0,0.3);
  border-radius: 10px;
}
.container2 img:hover {
  cursor: pointer;
  opacity: 0.5;
  transition: 0.5s;
}
a.thumb1 {
    position: relative;
    float: none;
    margin: 20px 10px 10px 660px;
    display: block;
    width: 75px;
}
button{
  background-color: #005461;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
button:hover{
    background-color: #76E0D7;
}
