body {
    margin: 0 auto;
    font-family: sans-serif;
    font-weight: 100;
    text-decoration: none;
    list-style: none;
    background-color: #f4f4f4;
}

h1 {
    font-size: 1.4em;
    font-family: sans-serif;
    font-weight: 100;
    text-shadow: 3px 3px 3px #e1e1e1;
    color: #ffa500;
}

h2 {
    font-size: 1.4em;
    font-family: sans-serif;
    font-weight: 100;
    text-shadow: 3px 3px 3px #e1e1e1;
    color: #ffa500;
}

h3 {
    font-size: 1.4em;
    font-family: sans-serif;
    font-weight: 100;
    text-shadow: 3px 3px 3px #e1e1e1;
    color: #ffa500;
}

a {
    text-decoration: none;
}

p, li {
    font-size: 1.0em;
    font-family: sans-serif;
    font-weight: 100;
    color: #808080;
}

@font-face {
    src: url('fonts/KGSomebodyThatIUsedToKnow.ttf');
}

/* Navigation Menu */

.nav {
    background-color: #f4f4f4; /* Facebook color #3b5998 */
    text-decoration: none;
    text-align: center;
    list-style: none;
    border-top: 1px solid #c1c1c1;
    border-bottom: 1px solid #c1c1c1;
/*    box-shadow: 0px 3px 3px #c1c1c1;*/
    padding: 20px;
}

/*.nav > li { 
    padding: 10px 5px;
    display: inline-block;
}*/

.nav > a { 
    color: #808080;
    padding: 10px;
    text-decoration: none;
}

.nav > a:hover { 
    color: #000000;
    background: #c1c1c1;
    text-shadow: 2px 2px 3px #808080;
    border-radius: 5px;
}

.nav > a:hover:not(.active) {
    color: black;
}

.active {
    background-color: #ffa500;
    border-radius: 5px;
}



/* End of Navigation Menu */




#container {
/*    margin-left: auto;
    margin-right: auto;
    padding: 10px;*/
    width: 100%;
    background-color: #f4f4f4;
}

.incontainer {
    margin-left: auto;
    margin-right: auto;
    padding: 10px;
    max-width: 900px;
    background-color: #f4f4f4;
    height: auto;
}

.boxmain {
    display: inline-block;
    margin-top: 8px;
    margin-bottom: 8px;
    max-width: 535px;
    height: auto;
    padding: 20px;
    /*background-color: #ffffff;*/
    border: 0px solid #808080;
    border-radius: 5px;
    text-align: justify;
    /*box-shadow: 3px 3px 3px #c1c1c1;*/
}

.boxright {
    float: right;
    max-width: 300px;
    height: auto;
    background-color: inherit;
}

.inboxright {
    margin-top: 20px;
    margin-bottom: 8px;
    margin-left: auto;
    margin-right: auto;
    width: 300px;
    height: auto;
    background-color: inherit; /* orange */
    border-radius: 5px;
}

.inboxright > a > img {
    width: 100.2%;
    border-radius: 5px 5px 5px 5px;
}

.inboxright > p {
    font-size: 1.0em;
    font-family: sans-serif;
    font-weight: 100;
    color: #ffffff;
    background-color: inherit;
    text-align:center;
}





/* FOOTER */

footer {
    margin-bottom: 0;
    background-color: inherit;
    padding: 10px;
    clear: both;
}

/* Social Media - Every Page */

.socialmedia {
    margin-left: auto;
    margin-right: auto;
    max-width: 70%;
    padding: 10px;
    text-align:center;
    border-top: 1px solid #ffa500; /* orange */
}

.socialmedia > p > a {
    color: #ffa500; /* orange */
}

.socialmedia > p > a:hover {
    color: #8fbc8f; /* dark green */
}

.socialmedia > a > img {
    padding: 2px 2px;
}

.socialmedia > a > img {
    width: 26px;
}

.socialmedia > a > img:hover {
    padding: 2px 2px;
    background-color: #ffa500; /* Orange */
    border-radius: 20px;
}

/* Top of each page */

.socialmediatop {
    max-width: 100%;
    padding: 10px;
    text-align:right;
    border-top: 3px solid #ffa500;
    background-color: #f4f4f4;
}

.socialmediatop > a > img {
    padding: 2px 2px;
}

.socialmediatop > a > img {
    width: 22px;
}

.socialmediatop > a > img:hover {
    padding: 2px 2px;
    background-color: #ffa500; /* Orange */
    border-radius: 20px;
}

/* End of Social Media - Every Page */


/* CREDIT CARD */

.socialmedia > .creditcards > img {
    height: 26px;
    margin: 0px 10px 0px 10;
    border-radius: 3px;
}

/* END OF CREDIT CARD */


/* END OF FOOTER */




/* INDEX PAGE */

.mainpicture {
    max-width: 600px;
    margin-right: auto;
    margin-left: auto;
/*    box-shadow: 5px 5px 5px #c1c1c1;*/
/*    margin: 15px 7px;*/
}

/* END OF INDEX PAGE */






/*Back (Return) BUTTON */

.backbutton > a {
    font-size: .8em;
    color: #808080;
    /*background-color: #eaeaea;*/
    text-shadow: 3px 3px 3px #c1c1c1;
    text-decoration: none;
    padding: 10px;
    /*border: 1px solid #808080;*/
    /*border-radius: 10px;*/
}

.backbutton > a:hover {
    font-size: .8em;
    color: #ffa500;
    text-shadow: 3px 3px 3px #c1c1c1;
    text-decoration: none;
    padding: 10px;
    /*border: 1px solid #ffa500;*/
}

/*END of Back (Return) BUTTON */

/* Blog / Article Page */

.picsonly > a {
    font-size: .8em;
    color: #808080;
    /*background-color: #eaeaea;*/
    text-shadow: 3px 3px 3px #c1c1c1;
    text-decoration: none;
    padding: 10px;
    /*border: 1px solid #808080;*/
    /*border-radius: 10px;*/
}

.picsonly > a:hover {
    font-size: .8em;
    color: #ffa500;
    text-shadow: 3px 3px 3px #c1c1c1;
    text-decoration: none;
    padding: 10px;
    /*border: 1px solid #ffa500;*/
}

.textandpics > a {
    font-size: .8em;
    color: #808080;
    /*background-color: #eaeaea;*/
    text-shadow: 3px 3px 3px #c1c1c1;
    text-decoration: none;
    padding: 10px;
    /*border: 1px solid #808080;*/
    /*border-radius: 10px;*/
}

.textandpics > a:hover {
    font-size: .8em;
    color: #ffa500;
    text-shadow: 3px 3px 3px #c1c1c1;
    text-decoration: none;
    padding: 10px;
    /*border: 1px solid #ffa500;*/
}


.article {
    max-width: 500px; /* it was "width= 70%" */
    padding: 10px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 5px 5px 5px #e1e1e1;
    border-radius: 5px;
    overflow: auto;
    background-color: #ffffff;
    border: 1px solid #c1c1c1;
}

.pictureleft {
    margin: 10px;
    float: left;
    display: inline-block;
    padding: 10px;
    border: 1px solid #c1c1c1;
    box-shadow: 2px 2px 4px #e1e1e1;
    background-color: #ffffff;
}

.pictureleft > a:hover {
    filter: grayscale(100%);
    -webkit-filter:grayscale(100%); /* Chrome 19+, Safari 6+, Safari 6+ iOS */
    -moz-filter: grayscale(100%);
    -o-filter: grayscale(100%);
}

.pictureright {
    margin: 10px;
    float: right;
    display: inline-block;
    padding: 10px;
    border: 1px solid #c1c1c1;
    box-shadow: 5px 5px 5px #e1e1e1;
    background-color: #ffffff;
}

.pictureright > a:hover {
    filter: grayscale(100%);
    -webkit-filter:grayscale(100%); /* Chrome 19+, Safari 6+, Safari 6+ iOS */
    -moz-filter: grayscale(100%);
    -o-filter: grayscale(100%);
}

.article > p {
    padding: 10px;
}

.article > a {
    text-decoration: none;
}

.article > a > h1:hover {
    color: #ffa500; /* Orange color */
    text-shadow: 3px 3px 3px #c1c1c1;
}

.date {
    font-size: .8em;
    color: #c1c1c1;
}

/* END of Blog / Article Page */


/* Pictures Webpage */ 

#container > .incontainer > .picmenu {
    max-width: 700px;
    line-height: 50px;
    padding: 10px;
}

#container > .incontainer > .picmenu > a > img {
    width: 150px;
    height: 75px;
    box-shadow: 4px 4px 4px #c1c1c1;
}

#container > .incontainer > .picmenu > a {
    padding: 5px;
}

#container > .incontainer > .picmenu > a:hover {
    opacity: .5;
    -webkit-opacity: .5;
    -ms-opacity: .5;
    -o-opacity: .5;
}

/* End of Pictures Webpage */ 



/* FLIP 3D */

.flip3d {
    display: inline-block;
    width: 240px;
    height:200px;
    margin-left: 5px;
    margin-right: 5px;
    /*float:left;*/
}

.flip3d > .front {
    position: absolute;
    transform: perspective(600px) rotateY(0deg);
    -webkit-transform: perspective(600px) rotateY(0deg);
    -ms-transform: perspective(600px) rotateY(0deg);
    -o-transform: perspective(600px) rotateY(0deg);
/*    width: 240px;
    height: 200px;
    /*border-radius: 7px;*/
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    -o-backface-visibility: hidden;
    transition: transform .5s linear 0s;
    transition: -webkit-transform .5s linear 0s;
    transition: -ms-transform .5s linear 0s;
    transition: -o-transform .5s linear 0s;
}

.flip3d > .back {
    position: absolute;
    transform: perspective(600px) rotateY(180deg);
    -webkit-transform: perspective(600px) rotateY(180deg);
    -ms-transform: perspective(600px) rotateY(180deg);
    -o-transform: perspective(600px) rotateY(180deg);
/*    width: 240px;
    height: 200px;
    /*border-radius: 7px;*/
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    -o-backface-visibility: hidden;
    transition: transform .5s linear 0s;
    transition: -webkit-transform .5s linear 0s;
    transition: -ms-transform .5s linear 0s;
    transition: -o-transform .5s linear 0s;
}

.flip3d:hover > .front {
    transform: perspective(600px) rotateY(-180deg);
    -webkit-transform: perspective(600px) rotateY(-180deg);
    -ms-transform: perspective(600px) rotateY(-180deg);
    -o-transform: perspective(600px) rotateY(-180deg);
}

.flip3d:hover > .back {
    transform: perspective(600px) rotateY(0deg);
    -webkit-transform: perspective(600px) rotateY(0deg);
    -ms-transform: perspective(600px) rotateY(0deg);
    -o-transform: perspective(600px) rotateY(0deg);
}

.flip3d > .front > a > img {
    border-radius: 10px;
    box-shadow: 5px 5px 5px #dddddd;
    background: #dddddd;
    border: 1px solid #c1c1c1;
}

.flip3d > .back > a > img {
    border-radius: 10px;
    box-shadow: 5px 5px 5px #dddddd;
    background: #ffa500;
    border: 1px solid gray; /*#ffa500*/
    height: 75px;
}

/* END of Flip3d */

.boxright > .twitter {
    margin-left: auto;
    margin-right: auto;
}



/* BOX ON THE RIGHT SIDE AND REFERENCE PAGE */

.box {
    background: white;
    padding: 0px 20px 0px 20px;
    border: 1px solid #c1c1c1;
    border-radius: 6px;
    box-shadow: 3px 3px 3px #dddddd;
}

/* END OF REFERENCE PAGE */

.pictures {
    padding: 15px;
    max-width: 800px;
    background: #ffffff;
    border: 1px solid #c1c1c1;
    box-shadow: 3px 3px 15px #dddddd;
}

.pictures > img {
    margin: 10px;
    border-radius: 10px;
    border: 1px solid #c1c1c1;
    box-shadow: 3px 3px 15px #dddddd;
    max-width: 350px;
}



/* PICTURE "BEFORE and AFTER" PAGE */



/* END OF PICTURE "BEFORE and AFTER" PAGE */


/* --- Responsive-enhanced CSS for Four Seasons Enterprise --- */

/* Existing styles remain unchanged at the top */

/* Mobile / Tablet Responsive Layout */
@media (max-width: 1024px) {
  .incontainer {
    max-width: 100%;
    padding: 15px;
  }

  .boxmain,
  .boxright {
    float: none;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 10px 0;
    padding: 15px;
  }

  .inboxright {
    width: 100%;
    margin: 0 auto;
  }

  .nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
  }

  .nav > a {
    display: block;
    margin: 5px 0;
    width: 90%;
    padding: 10px;
    text-align: center;
  }

  .socialmediatop,
  .socialmedia {
    text-align: center;
  }

  .socialmedia > .creditcards > img {
    margin: 5px;
  }

  .article,
  .pictures {
    max-width: 100%;
    margin: 10px auto;
  }

  .flip3d {
    display: block;
    margin: 15px auto;
    width: 90%;
    height: auto;
  }

  .flip3d > .back > a > img,
  .flip3d > .front > a > img {
    width: 100%;
    height: auto;
  }

  .mainpicture > img,
  .pictures > img {
    max-width: 100%;
    height: auto;
  }

  footer {
    padding: 15px 10px;
  }
}

