@fontface {
  font-family: 'Didot'';
  src: url(Didot.ttc);
}

html {
  scroll-behavior: smooth;
}

body {
  width: 80%;
  margin: 0 auto;
  max-width: 800px;
}

header {
  position: fixed;
  background-color: #fff;
  z-index: 1;
  width: 100%;
  top: 0;
}

header img {
  height: 100px;
}

.sitetop {
  margin-top: 125px;
}

.sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 11;
  top: 0;
  right: 0;
  background-color: rgba(143,67,67,0.8);
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
}

.sidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: #fff;
  display: block;
  transition: 0.3s;
  font-family: 'Didot', serif;
}

.sidenav a:hover {
  color: #000;
}

.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

.open {
  cursor: pointer;
  margin-top: 20px;
  z-index: 10;
  position: fixed;
  right: 20%;
}

h1, h2, h4 {
  font-family: 'Didot', serif;
  color: #8f4343;
}

p {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  text-align: justify;
  color: #000;
}

img a {
    opacity: 1.0;
}

img a:hover {
    opacity: 0.8;
}

.name {
  height: 100vh;
  text-align: center;
}

.name h1 {
  margin-top: 40%;
  font-size: 4.5em;
}

.name h4 {
  font-family: 'Montserrat', sans-serif;  
  color: #000;
}

.scroller {
  width: 20px;
  height: 20px;
  background-color: transparent;
  border: 2px #8f4343 solid;
  border-radius: 50%;
  position: relative;
  margin: 0 auto;
  margin-top: 20%;
  -webkit-animation-name: example; /* Safari 4.0 - 8.0 */
  -webkit-animation-duration: 4s; /* Safari 4.0 - 8.0 */
  -webkit-animation-iteration-count: infinite; /* Safari 4.0 - 8.0 */
  animation-name: example;
  animation-duration: 2s;
  animation-iteration-count: infinite;
}

/* Safari 4.0 - 8.0 */
@-webkit-keyframes example {
  0%   {top:0px;}
  100% {top:100px;}
}

/* Standard syntax */
@keyframes example {
  0%   {top:0px;}
  100% {top:100px;}
}

.scroll-img1 {
  height: 200px;
  width: 100%;
  background-image: url("../imgs/si1.jpg");
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

.scroll-img2 {
  height: 200px;
  width: 100%;
  background-image: url("../imgs/si2.jpg");
  background-attachment: fixed;
  position: center;
  background-size: cover;
}

.scroll-img3 {
  height: 200px;
  width: 100%;
  background-image: url("../imgs/si3.jpg");
  background-attachment: fixed;
  position: center;
  background-size: cover;
}

.scroll-img4 {
  height: 200px;
  width: 100%;
  background-image: url("../imgs/si4.jpg");
  background-attachment: fixed;
  position: center;
  background-size: cover;
}

.scroll-img5 {
  height: 200px;
  width: 100%;
  background-image: url("../imgs/si5.jpg");
  background-attachment: fixed;
  position: center;
  background-size: cover;
}

#about, #web, #photo, #illustration, #print {
  margin: 80px 0;
}

.arrow {
  height: 100px;
  float: right;
  margin-top: 20%;
  padding: 0;
}

.arrow:hover {
  transform: translate(30px);
  animation: animate 1.5s infinite;
}

@keyframes animate {
 0%		{transform: translate(0px);}
 100%	{transform: translate(30px);}
}

@-webkit-keyframes animate {
 0%		{transform: translate(0px);}
 100%	{transform: translate(30px);}
}

section {
  margin-bottom: 50px;
}

hr {
  margin-bottom: 50px;
  border: .6px solid #000;
  width: 80%;
}


/*flip cards*/
.image-flip:hover .backside, .image-flip.hover .backside {
-webkit-transform: rotateY(0deg);
-moz-transform: rotateY(0deg);
-o-transform: rotateY(0deg);
-ms-transform: rotateY(0deg);
transform: rotateY(0deg);
}
.image-flip:hover .frontside, .image-flip.hover .frontside {
-webkit-transform: rotateY(180deg);
-moz-transform: rotateY(180deg);
-o-transform: rotateY(180deg);
transform: rotateY(180deg);
}
.image-flip {
margin: 10px 30px 175px 0;
width: 100%;
height: 250px;
}
.mainflip {
-webkit-transition: 1s;
-webkit-transform-style: preserve-3d;
-ms-transition: 1s;
-moz-transition: 1s;
-moz-transform: perspective(1000px);
-moz-transform-style: preserve-3d;
-ms-transform-style: preserve-3d;
transition: 1s;
transform-style: preserve-3d;
position: relative;
}
.frontside, .backside {
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
-ms-backface-visibility: hidden;
backface-visibility: hidden;
-webkit-transition: 1s;
-webkit-transform-style: preserve-3d;
-moz-transition: 1s;
-moz-transform-style: preserve-3d;
-o-transition: 1s;
-o-transform-style: preserve-3d;
-ms-transition: 1s;
-ms-transform-style: preserve-3d;
transition: 1s;
transform-style: preserve-3d;
position: absolute;
top: 0;
left: 0;
}
.frontside {
-webkit-transform: rotateY(0deg);
-ms-transform: rotateY(0deg);
z-index: 2;
}
.backside {
background: white;
-webkit-transform: rotateY(-180deg);
-moz-transform: rotateY(-180deg);
-o-transform: rotateY(-180deg);
-ms-transform: rotateY(-180deg);
transform: rotateY(-180deg);
}
.card, .card-img-top {
border-radius: 0;
}

.btn, .btn-info, .btn-md {
  background-color: rgba(143,67,67,0.7);
  border: 0px;
}

.btn:hover {
  background-color: rgba(143,67,67,1.0);
}

/*Modal*/
.modal {
  background-color: rgba(192,192,192,0.3);
}


.modal-dialog {
  width: 100%;
}

.modal-content {
  background-color: #fff;
}

.modal img {
  width: 100%;
  margin: 0 auto;
} 

img.space {
  padding: 10px 0px 20px 0px;
}

.close {
  color: #8f4343 !important;
}

.modal-footer button {
  background-color: #8f4343;
  color: #fff;
  border: 0;
}

.modal-footer button:hover {
  background-color: #000;
}

.inner {
  padding-top: 10px;
}

/*footer*/

footer {
  margin-bottom: 50px;
}

footer a {
  text-decoration: none;
  color: #000;
}

footer a:hover {
  text-decoration: none;
  color: #8f4343;
}

/*Media queries*/

@media screen and (max-width: 576px) and (max-height: 898) {
  .sidenav {
  padding-top: 15px;
  }
  .sidenav a {
  font-size: 18px;
  }
  .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {
    width: 100%;  
  }
}


@media screen and (max-width: 1000px) {
  .image-flip {
    height: 350px;
  }
  
    .scroll-img1 {
      height: 200px;
      width: 100%;
      background-attachment: fixed;
      background-position: center;
      background-size: cover;
    }

    .scroll-img3 {
      height: 200px;
      width: 100%;
      background-attachment: fixed;
      background-position: center;
      background-size: cover;
    }
    
    .scroll-img4 {
      height: 200px;
      width: 100%;
      background-attachment: fixed;
      background-position: right;
      background-size: cover;
    }


}