/*initial document reset - removes any styles*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
}

/*fonts*/
@font-face {
    font-family: raleway;
    src: url("Raleway/Raleway-Regular.ttf");
}

/*navigation styling*/
.bar {
    z-index: 99;
    margin-top: 4px;
    width: 22px;
    height:2px;
    //border-radius: 100px;
    color: white;
    ;background: white;
    background: rgba(81, 160, 113,1);
}

.menu-button {
    height: 10vh;
    z-index: 9;
    display: flex;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-button:hover {
    //background: black;
    cursor: pointer;
}

.nav-toggle {
    cursor: pointer;
}

a {

}

#click-area {
    z-index: 9999999;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0);
}

.menu {
    margin-top: 2px;
    font-family: 'Open Sans', sans-serif;
    font-size: 80%;
    font-weight: 500;
    letter-spacing: 2px; 
    color: black;
    
    margin-left: 10px;
}

.menu-container {
    background: white;
    width: 100%;
    height: 10vh;
    display: flex;
    align-content: center;
    justify-content: center;
}

#icon-container {
    width: 100%;
    position: absolute;
    height: 10vh;
    display: flex;
    align-items: center;
}

#home-icon {
    width: 32px;
    margin-left: 10px;
}

.main-nav {
    display: flex;
    z-index: 10;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(81, 160, 113,1);
    text-align: center;
    transform: translateX(-100%);
    transition: transform 0.9s ease;
    
}

.main-nav.open {
    transform: translateX(0);
}

.main-nav .nav-toggle {
    position: absolute;
    right: 1.6%;
    top: 2.5%;
    color: white;
}

nav ul {
    display: flex;
    flex:1;
    
    font-size:100%;
    list-style-type: none;
    
    justify-content:space-around;
    align-items: center;
}

nav li {
    display: flex;
    align-items: center;
    
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1.5px;
    display: block;
    padding: 10px;
}

a {
    font-family: 'Raleway', sans-serif;
    text-decoration: none;
    list-style: none;
}

a:hover {
    color:lightgray;
}

#close-icon {
    width: 40px;
}

/*END of nav styling*/

/*Heading Stylings*/

h1 {
    padding: 8px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    margin-top: 10px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255,1);
    font-size: 120%;
    text-align: left;
    letter-spacing: 2px; 
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    transition-property: all;
    transition-duration: 1;
}

h2 {
    width: 100px;
    text-align: center;
    font-family: 'Raleway', sans-serif;
    border: none;
    background-color: #51a071;
    padding: 10px;
    cursor: pointer;
    letter-spacing: 1px;
    margin: 20px;
    font-size: 140%;
    font-weight: 500;
    color:white;
    list-style: none;
    text-decoration: none;
    border-radius: 40px;
}

h3 {
    font-weight: 400;
}

.navigation {
    z-index: 999;
    top: 0;
    font-size: 130%;
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
}

/*END of header styling*/

/*main body stlying*/

#container {
    margin-top: 10vh;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*container for characters*/
.characters {
    height: 100%;
    width: 100%;
    display: flex;
}

/*each 'character'*/
.box {
    flex:1;
    flex-direction: row;
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
}

.fa {
    color: rgba(255,255,255,0.9);
}

/*individual character styling*/
.char1 {
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient( rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35) ), url(wife_sat_compressed2.jpg);
    background-position: 20% 50%;
    background-size: cover;
    background-repeat: no-repeat;    
    transition: flex 0.5s;
    -moz-transition: flex 0.5s;
    -webkit-transition: flex 0.5s;
    -o-transition: width 0.5s;
}

/*change size on hover*/
.char1:hover  {
    flex: 1.3;
    background: linear-gradient( rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2) ), url(wife_sat_compressed2.jpg);
    background-position: 20% 50%;
    background-size: cover;
    background-repeat: no-repeat;    
}

.char2{
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient( rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35) ), url(maid_compressed_50.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 50%;
     transition: flex 0.5s;
    -moz-transition: flex 0.5s;
    -webkit-transition: flex 0.5s;
    -o-transition: width 0.5s;
}

.char2:hover {
    flex: 1.3;
    background: linear-gradient( rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2) ), url(maid_compressed_50.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}

.char3 {
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient( rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35) ), url(IMG_0345.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 20%;
    transition: flex 0.5s;
    -moz-transition: flex 0.5s;
    -webkit-transition: flex 0.5s;
    -o-transition: width 0.5s;
}

.char3:hover {
    flex: 1.3;
     background: linear-gradient( rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1) ), url(IMG_0345.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 20%;
}

/* Keyframes for the fade-in */
@-webkit-keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@-moz-keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

/*Fade in each item by id*/
.fade-in {
  opacity:0;
  opacity: 1 \9; /*just in case ie*/
  -webkit-animation:fadeIn ease-in 1;
  -moz-animation:fadeIn ease-in 1;
  animation:fadeIn ease-in 1;

  -webkit-animation-fill-mode:forwards;
  -moz-animation-fill-mode:forwards;
  animation-fill-mode:forwards;

  -webkit-animation-duration:1s;
  -moz-animation-duration:1s;
  animation-duration:1s;
}

.fade-in.char1 {
    -webkit-animation-delay: 0.5s;
  -moz-animation-delay: 0.5s;
  animation-delay: 0.5s;
}

.fade-in.char2 {
    -webkit-animation-delay: 0.8s;
  -moz-animation-delay: 0.8s;
  animation-delay: 0.8s;
}

.fade-in.char3 {
    -webkit-animation-delay: 1.1s;
  -moz-animation-delay: 1.1s;
  animation-delay: 1.1s;
}

/*Media Quries for mobile devices*/
@media only screen 
and (min-width: 200px)
and (max-width: 760px) {
    
    body {
        height: 100vh;
    }
    
    /*text resize*/
    h1, h2 {
        font-size: 125%;
    }
    
    #pb {
        //width: 65px;
    }
    
    /*prevent hobver effects - no resize*/
    .char1:hover {
    flex: 1;
    }
    
    .char2:hover {
    flex: 1;
    }
    
    .char3:hover {
    flex: 1;
    }
    
    /*switch layout to column*/
    .characters {
        flex-direction: column;
    }
    
    #container {
    margin-top: 10vh;
    height: 100vh;
    }
    .char1 {
        background-position: 20% 10%;
    }
    
    .char2 {
    order: 3;
     background-position: 20% 15%;   
    }
    
    .char1:hover  {
    background: linear-gradient( rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2) ), url(wife_sat_compressed2.jpg);
    background-position: 20% 10%;
    background-size: cover;
    background-repeat: no-repeat;    
    }
    
    .char2:hover {
    background: linear-gradient( rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2) ), url(maid_compressed_50.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 20% 15%;
    }
    
    .char3:hover {
     background: linear-gradient( rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1) ), url(IMG_0345.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 20%;
    }
    
    /*navigation change to column layout*/
    nav ul {
        flex-direction: column;
    }

}
