/*
Theme Name: Taffy
Description: Taffy Simple Gallery child Arzaquna
Author: Ample
Version: 1.0
*/



/**********************************
GENERAL
***********************************/

body {
  font-family: "Karla", "Helvetica", Arial, Sans-Serif;
  line-height: 1.612;
  -webkit-font-smoothing: antialiased;
}

#attachment {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 5%;
}

#wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 5%;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
}

h3 {
  margin: 0 0 1em 0;
}

.clear {
  clear: both;
}

#single {
  text-align: center;
}



/**********************************
HEADING
***********************************/

header {
  float: left;
  margin: 0 0 30px 0;
  width: 100%;
}

#logo {
  text-align: center;
  margin: 10px 0 0;
}

.headinghome {
  margin: 0.83em 0;
}

h1 {
  margin: 0 0 20px;
  font-size: 1.5em;
  font-weight: normal;
  text-transform: uppercase;
}

h2 {
  margin: 0.83em 0;
  text-transform: uppercase;
  font-size: 1.75em;
}

#crumb {
  text-align: left;
  font-size: calc(0.4em + 1vw);
  padding-bottom: 30px;
}


/**********************************
NAVIGATION
***********************************/
.menu {
  background: #007bff69;
  width: 100%;
  text-transform: capitalize;
  z-index: 101;
}
.menu a {
  color:#fff;
}
.submenu-lv1 {
    text-align: center;
    margin: 0;
    padding: 10px 0;
}
.li-lv2{
  display: inline;
  margin: 0;
}
.li-lv2 > a{
  padding: 10px;
}
.submenuinput[type=checkbox]{
    display: none;
}


/*  The ul will have display:none by default */

.submenu-lv2{
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
    z-index: 100;
    display: none;
    padding-top: 10px;
}

.cat-item{
    background: #007bff;
    cursor: pointer;
    padding: .5% 1%;
    margin-bottom: .3%;
    display: inline-block;
    width: 100%;
    max-width: 150px;
}

/* Click to expand button */

.submenulabel{
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.cat-item:hover{
    background-color: #fff;
    transition: .35s ease;
    color:  #b2a8dd;
    transition: 1s cubic-bezier(0, 1.22, .56, 1.39);
}

.cat-item a{
    color: inherit;
    text-decoration: none;
}


/**

    By using the Following-sibling selector (~),
    we can target elements positioned after our checkbox in the DOM tree.

    With the state pseudo selector (:checked),
    we can make changes depending on the state of the checkbox.

    Using this combination of selectors
    allows to change the color of the label
    and show the list of items
    only when the checkbox is checked.

*/

.submenuinput[type=checkbox]:checked ~ ul {
    display: block;
    -webkit-animation: slide-down .3s ease-out;
    -moz-animation: slide-down .3s ease-out;
}

@-webkit-keyframes slide-down {
      0% { opacity: 0; -webkit-transform: translateY(0); }   
    100% { opacity: 1; -webkit-transform: translateY(0); }
}
@-moz-keyframes slide-down {
      0% { opacity: 0; -moz-transform: translateY(0); }   
    100% { opacity: 1; -moz-transform: translateY(0); }
}
/**********************************
FOOTER
***********************************/

footer {
  font-size: 0.75em;
  text-align: center;
  clear: both;
  padding-top: 50px;
  color: #ccc;
}

.social-icon {
  margin: 0;
  padding: 0;
}

.social-icon li{
  display: inline-block;
  list-style: none;
  margin: 0;
  padding: 1%;
}



/**********************************
PAGE: PORTFOLIO
***********************************/

#index {
  text-align: center;
}

#frame {
  margin: 0;
  padding: 0;
  width: 100%;
  height: auto;
}

#frame li {
  display: inline-block;
  width: 280px;
  height: 220px; 
  list-style: none;
  margin: 2.5%;
  overflow: hidden;
  position: relative;
  background-color: #f5f5f5; 
}
.textoverlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    -webkit-transform: translateY(100%);
            transform: translateY(100%);
}
#frame h3 {
  margin: 0;
  padding: 4%;
  width: 92%;
  font-size: .95em;
  text-transform: capitalize;
  font-weight: normal;
  background: #f5f5f5;
  color: #798083;
  overflow: hidden;
  opacity: 0;
  white-space: normal;
  -webkit-transform: translateY( -webkit-calc(-100%) );
          transform: translateY( calc(-100%) );
}

#frame li:hover h3 {
transition: .35s ease;
opacity: 1;
}

.container img {
  max-width:170%;
  height: auto;
  margin-top: -15%;
  margin-left: -15%;
}



/**********************************
SIDEBAR
***********************************/

#secondary {
  text-align: left;
}

#secondary ul {
  padding: 0 0 0 10px;
}

.side-box {
  list-style: none;
  width: 95%;
  padding: 1.5%;
  display: inline-block;
}

.side-box h3 {
  font-size: .85em;
  font-weight: normal;
  padding-left: 45%;
}

.imgcont {
  width: 40%;
  height: 90px;
  float:left;
  overflow: hidden;
}

.imgcont img {
  max-width: 140%;
  height: auto;
}



/**********************************
PAGINATION
***********************************/

.pagination {
  display: inline-block;
  padding-left: 0;
  margin: 20px 0;
  clear: both;
}

.pagination a {
  color: #27ae60;
}

.pagination > li {
  display: inline;
}

.pagination > li > a,
.pagination > li > span {
  position: relative;
  float: left;
  padding: 6px 12px;
  margin-left: -1px;
  line-height: 1.42857143;
  color: #bdc3c7;
  text-decoration: none;
  background-color: #f5f5f5;
}

.pagination > li:first-child > a,
.pagination > li:first-child > span {
  margin-left: 0;
}

.pagination > li:last-child > a,
.pagination > li:last-child > span {
}

.pagination > li > a:hover,
.pagination > li > span:hover,
.pagination > li > a:focus,
.pagination > li > span:focus {
  color: #bdc3c7;
  background-color: #f5f5f5;
  box-shadow: inset 0 0 0 3px #b2a8dd;
  transition:all 0.3s ease;
}

.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
  z-index: 2;
  color: #949da4;
  cursor: default;
  background-color: #cfcfcf;
  box-shadow: inset 0 0 0 3px #007bff;
}

.pagination > .disabled > span,
.pagination > .disabled > span:hover,
.pagination > .disabled > span:focus,
.pagination > .disabled > a,
.pagination > .disabled > a:hover,
.pagination > .disabled > a:focus {
  cursor: not-allowed;
  background-color: #162024;
}



/**********************************
SINGLE
***********************************/

.img-responsive{
  width: 90%;
  height: 100%;
}
a:hover img{
  opacity: .7;
  transition: opacity 2s cubic-bezier(0, 1.22, .56, 1.39);
  -ms-transform: translate(-50%, -50%)
}

#single a p {
  font-weight: normal;
  color: #bdc3c7;
}

.gallery {
  height: 110px;
  width: 150px;
  margin: 1% 1%;
  display: inline-block;
  overflow: hidden;
}

.gallery a img {
  width: 170%;
  max-width: 150%;
  height: auto;
  margin-top: -10%;
  margin-left: -15%;
}

.pict-desc {
  width: 85%;
  font-size: calc(0.5em + .8vw);
  text-align: justify;
  margin: 0 auto;
  padding: 1% 0;
  color: #777;
}

.post-btn {
  width: 100%;
  margin-bottom: 5%;
}

.post-btn h2 {
  display: inline-block;
  width: 70%;
  margin: 2% 0 0 0;
  font-size: 1em;
  text-transform: uppercase;
}

.btn:hover {
  color:  #4fa48d;
  background-color: #dfe5e9;
  transition: 1.5s cubic-bezier(0, 1.22, .56, 1.39);
}

.btn {
  background-color: #bdc3c7; /* Green */
  border: none;
  color: white;
  padding: 10px 8px;
  text-align: center;
  text-decoration: none;
  font-size: .7em;
}

.r {
  float:right;
}

.l {
  float: left;
}

.attimg {
  height: auto;
  width: 90%;
}

#attachment p {
  text-align: justify;
  padding: 0 3%;
  font-size: calc(.5em + 1vw);
}


/**********************************
SINGLE
.h3-single {
  font-size: calc(0.4em + 1vw);***********************************/
.h3-single {
  font-size: calc(0.4em + 1vw);
  text-transform: capitalize;
}



/**********************************
COLORS
***********************************/

/* site body */
body {
  background-color: #fff;
  color: #666;
;
}

/* green header */
header {
  background: #212529;
  background: -webkit-linear-gradient(left top, #c9daff, #343a40); /* For Safari 5.1 to 6.0 */
  background: -o-linear-gradient(bottom right, #c9daff, #eec9ff); /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(bottom right, #c9daff, #eec9ff); /* For Firefox 3.6 to 15 */
  background: linear-gradient(to bottom right, #007bff80, #00b9eb66); /* Standard syntax (must be last) */
}

/* logo text */
h1, h2 {
  color:  #666;
}

/* links */
a {
  color:  #666;
}

a:hover {
  color:  #b2a8dd;
  transition: 1s cubic-bezier(0, 1.22, .56, 1.39);
}

@media screen and (min-width: 580px) {


  .post-btn h2 {
    font-size: 1.2em;
  }

  .btn {
    padding: 13px 15px;
    font-size: .8em;
  }

      .search-box:focus {
    width: 30% !important;
  }

}



@media screen and (min-width: 480px) {
  
  /**********************************
  HOME
  ***********************************/


  
  #frame li:nth-child(4n) {
    clear: left;
  }

}

@media screen and (min-width: 760px) {
 
  #attachment p {
    font-size: calc(.08em + .9vw);
  }
  .pict-desc {
    font-size: calc(0.2em + .8vw);
  }

  .h3-single {
    font-size: calc(0.1em + .8vw);
  }

  #crumb {
    font-size: calc(0.15em + .8vw);
  }

  .post-btn h2 {
    font-size: 1.2em;
  }

  .btn {
    padding: 20px 20px;
    font-size: .8em;
  }

  #primary {
    width: 75%;
    float: left;
  }
  
  #secondary {
    width: 25%;
    float: right;
  }

}



@media screen and (min-width: 660px) {

  /**********************************
  HEADER
  ***********************************/

  #logo {
    margin-left: 5%;
    width: 45%;
  }
  
  h1 {
    font-size: 21px;
  }
  
  h2 {
    font-size: 21px;
  }
  
  header {
    margin-bottom: 40px;
  }

  .headinghome {
    margin:0;
  }

  h2 {  
    margin:0;
  }

}
.colcol {
  font-weight: 400;
  text-shadow: 1px 1px #ccc;
  color:  #fff;
}
.cocol {
  font-weight: 400;
  color:  #fff;
}


.beautfont {
  letter-spacing: 0.2em;
}
.font {
  text-transform: uppercase;
}




.search-container {
  padding: 40px;
}

.search-box {
  background: white;
  background-color: transparent;
  border-width: 2px;
  border-style: solid;
  border-color: grey;
  cursor: pointer;
  height: 40px;
  -webkit-transition: width .5s, background .5s, -webkit-box-shadow .5s;
  transition: width .5s,  background .5s, -webkit-box-shadow .5s;
  transition: width .5s,  background .5s, box-shadow .5s;
  transition: width .5s,  background .5s, box-shadow .5s, -webkit-box-shadow .5s;
  width: 40px;
}

.search-box + label {
  max-width: 0;
}

.search-box + label .search-icon {
  color: grey;
  -webkit-transition: all .5s;
  transition: all .5s;
}

.search-box:hover {
  background: #d4caff;
  opacity: .8;
  -webkit-box-shadow: 0 0 0 5px rgba(128, 128, 128, 0.1);
          box-shadow: 0 0 0 5px rgba(128, 128, 128, 0.1);
}

.search-box:hover + label .search-icon {
  color: white;
}

.search-box:focus {
  border: none;
  background: #f5f5f5;
  -webkit-box-shadow: none;
          box-shadow: none;
  color: black;
  cursor: text;
  outline: none;
  padding-left: 15px;
  -webkit-transition: width .5s cubic-bezier(0, 1.22, .56, 1.39),  background .5s;
  transition: width .5s cubic-bezier(0, 1.22, .56, 1.39),  background .5s;
  width: 70%;
}

.search-box:focus + label .search-icon {
  color: grey;
}

.search-box:not(:focus) {
  text-indent: 100%;
  white-space: nowrap;
  overflow: hidden;
}

.search-icon {
  cursor: pointer;
  left: -35px;
  position: relative;
  top: 2px;
}

.search-btn {
  display: none;
  position: relative;
}

.sidebarsearch{
  padding: 0;
}




.sidebox {
  background: white;
  background-color: transparent;
  border-width: 2px;
  border-style: solid;
  border-color: grey;
  cursor: pointer;
  height: 40px;
  margin-left: 15px;
  -webkit-transition: width .5s, background .5s, -webkit-box-shadow .5s;
  transition: width .5s,  background .5s, -webkit-box-shadow .5s;
  transition: width .5s,  background .5s, box-shadow .5s;
  transition: width .5s,  background .5s, box-shadow .5s, -webkit-box-shadow .5s;
  width: 40px;
}

.sidebox + label {
  max-width: 0;
}

.sidebox + label .search-icon {
  color: grey;
  -webkit-transition: all .5s;
  transition: all .5s;
}

.sidebox:hover {
  background: #b2a8dd;
  opacity: .8;
  -webkit-box-shadow: 0 0 0 5px rgba(128, 128, 128, 0.1);
          box-shadow: 0 0 0 5px rgba(128, 128, 128, 0.1);
}

.sidebox:hover + label .search-icon {
  color: white;
}

.sidebox:focus {
  border: none;
  background: #f5f5f5;
  -webkit-box-shadow: none;
          box-shadow: none;
  color: black;
  cursor: text;
  outline: none;
  margin-left: 10px;
  padding-left: 15px;
  -webkit-transition: width .5s cubic-bezier(0, 1.22, .56, 1.39),  background .5s;
  transition: width .5s cubic-bezier(0, 1.22, .56, 1.39),  background .5s;
    width: 73%;
}

.sidebox:focus + label .search-icon {
  color: grey;
}

.sidebox:not(:focus) {
  text-indent: 100%;
  white-space: nowrap;
  overflow: hidden;
}
