
html, body{
  margin: 0;
  background-color: #fff;
  font-family: 'Source Sans Pro', Helvetica, sans-serif;
  padding: 0;
  box-sizing: border-box;
  font-size: 62.5%;
  font-size: 10px;
}
h1, h2{
  color: #303952;
  font-weight: bold;
}
/* Navbar section */

.nav {
    width: 100%;
    height: 65px;
    position: fixed;
    line-height: 65px;
    text-align: center;
}

.nav div.logo {
    float: left;
    width: auto;
    height: auto;
    padding-left: 3rem;
}

.nav div.logo a {
    text-decoration: none;
    color: #979dad;
    font-size: 2.5rem;
}

.nav div.logo a:hover {
    color: #303952;
}

.nav div.main_list {
    height: 65px;
    float: right;
}

.nav div.main_list ul {
    width: 100%;
    height: 65px;
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav div.main_list ul li {
    width: auto;
    height: 65px;
    padding: 0;
    padding-right: 3rem;
}

.nav div.main_list ul li a {
    text-decoration: none;
    color: #979dad;
    line-height: 65px;
    font-size: 2.4rem;
}

.nav div.main_list ul li a:hover {
    color: #303952;
}


/* Home section */

.home {
    width: 100%;
    height: 100px;
}

.navTrigger {
    display: none;
}

.nav {
    padding-top: 20px;
    padding-bottom: 20px;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
}


/* Media qurey section */

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .container {
        margin: 0;
    }
}

@media screen and (max-width:768px) {
    .navTrigger {
        display: block;
    }
    .nav div.logo {
        margin-left: 15px;
    }
    .nav div.main_list {
        width: 100%;
        height: 0;
        overflow: hidden;
    }
    .nav div.show_list {
        height: auto;
        display: none;
    }
    .nav div.main_list ul {
        flex-direction: column;
        width: 100%;
        height: 100vh;
        right: 0;
        left: 0;
        bottom: 0;
        background-color: grey;
        /*same background color of navbar*/
        background-position: center top;
    }
    .nav div.main_list ul li {
        width: 100%;
        text-align: right;
    }
    .nav div.main_list ul li a {
        text-align: center;
        width: 100%;
        font-size: 3rem;
        padding: 20px;
    }
    .nav div.media_button {
        display: block;
    }
}


/* Animation */
/* Inspiration taken from Dicson https://codemyui.com/simple-hamburger-menu-x-mark-animation/ */

.navTrigger {
    cursor: pointer;
    width: 30px;
    height: 25px;
    margin: auto;
    position: absolute;
    right: 30px;
    top: 0;
    bottom: 0;
}

.navTrigger i {
    background-color: #979dad;
    border-radius: 2px;
    content: '';
    display: block;
    width: 100%;
    height: 4px;
}

.navTrigger i:nth-child(1) {
    -webkit-animation: outT 0.8s backwards;
    animation: outT 0.8s backwards;
    -webkit-animation-direction: reverse;
    animation-direction: reverse;
}

.navTrigger i:nth-child(2) {
    margin: 5px 0;
    -webkit-animation: outM 0.8s backwards;
    animation: outM 0.8s backwards;
    -webkit-animation-direction: reverse;
    animation-direction: reverse;
}

.navTrigger i:nth-child(3) {
    -webkit-animation: outBtm 0.8s backwards;
    animation: outBtm 0.8s backwards;
    -webkit-animation-direction: reverse;
    animation-direction: reverse;
}

.navTrigger.active i:nth-child(1) {
    -webkit-animation: inT 0.8s forwards;
    animation: inT 0.8s forwards;
}

.navTrigger.active i:nth-child(2) {
    -webkit-animation: inM 0.8s forwards;
    animation: inM 0.8s forwards;
}

.navTrigger.active i:nth-child(3) {
    -webkit-animation: inBtm 0.8s forwards;
    animation: inBtm 0.8s forwards;
}

/* webkits */
@-webkit-keyframes inM {
    50% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(45deg);
    }
}

@keyframes inM {
    50% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(45deg);
    }
}

@-webkit-keyframes outM {
    50% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(45deg);
    }
}

@keyframes outM {
    50% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(45deg);
    }
}

@-webkit-keyframes inT {
    0% {
        -webkit-transform: translateY(0px) rotate(0deg);
    }
    50% {
        -webkit-transform: translateY(9px) rotate(0deg);
    }
    100% {
        -webkit-transform: translateY(9px) rotate(135deg);
    }
}

@keyframes inT {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(9px) rotate(0deg);
    }
    100% {
        transform: translateY(9px) rotate(135deg);
    }
}

@-webkit-keyframes outT {
    0% {
        -webkit-transform: translateY(0px) rotate(0deg);
    }
    50% {
        -webkit-transform: translateY(9px) rotate(0deg);
    }
    100% {
        -webkit-transform: translateY(9px) rotate(135deg);
    }
}

@keyframes outT {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(9px) rotate(0deg);
    }
    100% {
        transform: translateY(9px) rotate(135deg);
    }
}

@-webkit-keyframes inBtm {
    0% {
        -webkit-transform: translateY(0px) rotate(0deg);
    }
    50% {
        -webkit-transform: translateY(-9px) rotate(0deg);
    }
    100% {
        -webkit-transform: translateY(-9px) rotate(135deg);
    }
}

@keyframes inBtm {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-9px) rotate(0deg);
    }
    100% {
        transform: translateY(-9px) rotate(135deg);
    }
}

@-webkit-keyframes outBtm {
    0% {
        -webkit-transform: translateY(0px) rotate(0deg);
    }
    50% {
        -webkit-transform: translateY(-9px) rotate(0deg);
    }
    100% {
        -webkit-transform: translateY(-9px) rotate(135deg);
    }
}

@keyframes outBtm {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-9px) rotate(0deg);
    }
    100% {
        transform: translateY(-9px) rotate(135deg);
    }
}

.affix {
    padding: 0;
    background-color: #34495e;
}






.myH2 {
	text-align:center;
	font-size: 4rem;
}
.myP {
	text-align: justify;
	padding-left:15%;
	padding-right:15%;
	font-size: 20px;
}
@media all and (max-width:700px){
	.myP {
		padding:2%;
	}
}
/*

#navbar{
  color: #263044;
}
#navbar .navbar-brand img{
  height: 30px;
}
*/

.container-fluid .col-sm-4 img{
  height: 300px;
  box-sizing: border-box;
}
.card{

}
.card img{
  width: 30rem;
}
.card h5{
  font-weight: bold;
  font-size: 1.5rem;
}
.card p{
  text-align: justify;
}

#page1{
  width: 100%;
  height: 600px;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
}

#page1 img{
  width: 300px;
}
#page1 .text{
  width: 600px;
  font-size: 2rem;
  color: #303952;
  text-align: justify;
}

#page2 {
  width: 100%;
  height: 400px;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}
#page2 .book-picture img{
  width: 300px;
  margin: 20px;
}
#page2 .book-description{
  width: 480px;
  margin: 20px 80px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: justify;
}
#page2 .book-description p{

  font-size: 2rem;
  color: #303952;
}
#page2 a{
}

/*PAGE 3*/

#my-stories{
  display: flex;
  flex-direction: column;
  align-items: center;
}
#my-stories h1 {
  margin: 4rem;
  display: flex;
  justify-content: center;
  color: #303952;
}
#my-stories img{
  width: 350px;
  opacity: 80%;
  padding: 30px;
  margin: 0;
  transition: transform 0.3s;
}
#my-stories p{
  display:flex;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #303952;
}
#my-stories .stories-navigation {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  margin-bottom: 60px;
}
#my-stories .stories-navigation div {
  display: flex;
  flex-direction: column;
}
#my-stories .stories-navigation p{
  text-decoration: none;
}

#my-stories .stories-navigation div:hover{
  background-color: lightblue;
}

#my-stories .stories-navigation p:hover{
  text-decoration: none;
}


#contacts {
  height: 500px;
  margin-left: 4%;
  margin-right: 4%;
  font-family: 'Source Sans Pro', Helvetica, sans-serif;
  font-size: 2rem;
  line-height: 2.5rem;
  text-align: left;
}
#contacts h1 {
  padding-top: 130px;
  display: flex;
  flex-direction: row;
  justify-content: center;
}
#contacts p {
  margin-left: 4%;
  padding-top: 20px;
}


/*
#my-stories h1 {
  margin: 4rem;
  display: flex;
  justify-content: center;
  color: #303952;
}

#my-stories h1:hover{
}

#my-stories .stories-navigation {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  margin-bottom: 60px;
}

#my-stories .stories-navigation img{
  opacity: 80%;
  width: 350px;
  padding: 30px;
  margin: 0;
  transition: transform 0.3s;
}
#my-stories p{
  display:flex;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #303952;
}
#my-stories .stories-navigation div:hover{
  background-color: lightblue;
}

#my-stories .stories-navigation p:hover{
  text-decoration: none;
}
*/


#footer{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background-color: #34495e;
}
#footer p{
  font-size: 2rem;
  font-weight: 400;
  padding: 20px 30px 10px 30px;
  color: white;
}

#myBtn {
  display: none;
  position: fixed;
  bottom: 60px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: #303952;
  color: white;
  cursor: pointer;
  padding: 15px;
  font-size: 18px;
  border: 1px solid white;
}

#myBtn:hover {
  background-image: linear-gradient(to top, #5f75a7 0%, #828ea9 100%)
}
