/* Style sheet for chanchala.co.uk */

/* Sinhala font required for logo */
/* Note, that many users will not have a preinstalled font */
/* capable of doing this, so we provide both EOT, ttf and */
/* a bunch of possible fallbacks. */
@font-face {
 font-family: Sinhala;
 src: url("Sarasavi_Uni.eot") /* EOT file for IE */
}
@font-face {
    font-family: Sinhala;
    font-style: normal;
    font-weight: normal;
    src: local("Sinhala MN"),
    local("SARASAVI UNICODE"),
    local("LKLUG"),
    local("KandyUnicode"),
    local("Iskoola Pota"),
    url("Sarasavi_Uni.ttf") /* TTF file for CSS3 browsers */
}

body {
    margin: 0px;
    padding: 0px;
    font-size: 1em;
}

.left {
    width: 45%;
    text-align: left;
    min-width: -webkit-max-content;
    min-width: -moz-max-content;
    display: inline-block;
}

.right {
    width: 45%;
    text-align: right;
    min-width: -webkit-max-content;
    min-width: -moz-max-content;
    display: inline-block;
}

/* Styles for the top 'logo' bar */
#header {
    font-family: 'Meddon', 'SARASAVI UNICODE', 'Iskoola Pota', 'Sinhala MN', Sinhala, cursive;
    vertical-align: middle;
    text-align: center;
    background-color: white;
}
#header a {
    text-decoration: none;
    color: black;
}
#header h1 {
    margin: 0px;
}

.logo_sinhala {
    display: inline-block;
    font-style: normal;
    font-size: 1.75em;
    line-height: 1.0em;
    font-weight: normal;
    width: 45%;
    text-align: right;
    min-width: -webkit-max-content;
    min-width: -moz-max-content;
}
.logo_english {
    display: inline-block;
    width: 45%;
    text-align: left;
    min-width: -webkit-max-content;
    min-width: -moz-max-content;
}

.logo_tortoise {
    width: 100px;
    height: 100px;
    background-image: url('../img/logo-light.png');
    background-size: auto 100%;
    background-repeat: no-repeat;
    display: inline-block;
    vertical-align: text-top;
    padding: 0;
    margin-right: -24px;
    -moz-border-radius: 7px;
    -webkit-border-radius: 7px;
    border-radius: 7px;
}
.logo_tortoise_dark {
    width: 128px;
    height: 128px;
    background-image: url('../logo.jpeg');
    display: inline-block;
    vertical-align: text-top;
    padding: 0;
    -moz-border-radius: 7px;
    -webkit-border-radius: 7px;
    border-radius: 7px;
}

/* Styles for the 'social' bar */
#social {
    color: black;
    font-style: italic;
    font-size: smaller;
    background: #C4BD97;
    text-align: center;
    vertical-align: middle;
    min-width: -webkit-max-content;
    min-width: -moz-max-content;
}
#social .right {
    height: 100%;
    min-height: -webkit-max-content;
    min-height: -moz-max-content;
    vertical-align: middle;
    width: initial;
}
#social .left {
    width: 60%;
}
#social img {
    margin-top: 4.5px;
}
/* MailChimp Form Embed Code - Slim - 08/17/2011 */
#mc_embed_signup {
    min-width: 450px;
    vertical-align: middle;
    font-style: italic;
}
#mc_embed_signup form {display: inline-block; width: 100%;}
#mc_embed_signup div {display: inline-block;}
#mc_embed_signup input {
    border:1px solid #999;
    -webkit-appearance:none;
    font-family: 'Times New Roman';}
#mc_embed_signup input:focus {border-color:#333; background-color: #E7E5D5;}
#mc_embed_signup .button {
    background-color:#9D9779;
    border: 1px solid #999;
    border-radius: 2px;
    color: black;
    cursor: pointer;
    display: inline-block;
    margin: 0 5px 10px 0; 
    padding:0;
}

textarea {
    vertical-align: middle;
}
/*
#mc_embed_signup .button:hover {background-color: #white;}
*/
/*
#mc_embed_signup label {display:inline-block; font-size:16px; padding-bottom:10px; font-weight:bold;}
*/
#mc_embed_signup input.email {
    display:inline-block;
    padding:4px 0;
    margin:2px 0px;
    text-indent:5px;
    width:38%;
    min-width:130px;
    font-size: 100%;
    background-color: #C4BD97;}
#mc_embed_signup input.email:hover { background-color: #E7E5D5;}
#mc_embed_signup input.button {
    
    font-size: 100%;
    
    display:inline-block; width:15%; padding:4px 0; margin:0 2px 0 2px; min-width:60px;}
#mc_embed_signup input.button:hover {background-color: #E7E5D5;}


#search_form {
    font-family: 'Times New Roman', serif;
    width: fit-content;
}
#search_form input.query {
    font-family: 'Times New Roman', serif;
    display:inline-block;
    //padding:4px 0;
    //margin:2px 0px;
    margin-right: 0.2em;
    text-indent:5px;
    width:60%;
    //min-width:130px;
    font-size: 80%;
    background-color: white;
    vertical-align: top;
}
#search_form input.query:hover { background-color: #DDD;}
#search_form input.button {
        background:none;
    border:none; 
    padding:0!important;
    font: inherit;
    cursor:pointer;
    font-size: 100%;
    
    display:inline-block; width:15%; padding:4px 0; margin:0 1px 0 1px; min-width:30px;}
#search_form input.button:hover {background-color: #DDD;}



/* Styles for the main 'navigation' bar */
#nav {
    font-family: 'Times New Roman', serif;
    font-size: x-large;
    vertical-align: middle;
    text-align: center;
    margin-top: 0.5em;
    margin-bottom: 1em;
    padding: 0px;
}


#nav li {
    width: 16%;
    display: inline-block;
}

#nav a, #nav form, #nav li {
    text-align: center;
    text-decoration: none;
    color: black;
    padding: 0px;
    margin: 0px;
    // min-width: 102px;
}

#nav a:hover {
    background: #DDD;
    border-radius: 2px;
}

#nav .button:hover {
    background: #DDD;
}

#nav .button {
    background:none;
    border:none; 
    padding:0!important;
    font: inherit;
    cursor:pointer;

    border-radius: 2px;
    color: black;
    font-family: 'Times New Roman', serif;
    font-size: x-large;
    text-align: center;
    margin: 0px;
}

/* Styles for content */
#content {
    text-align: center;
    font-style: normal;
    font-family: 'Times New Roman', serif;
    line-height: 150%;
    background-color: white;
}
.narrowcontent {
    margin: auto;
    max-width: 60em;
}
/* blog page */
.blogcontent {
    margin: auto;
    width: 90%;
    max-width: 60em;
    display: inline-block;
}
#content h1 {
    font-style: normal;
    margin-top: 1em;
    margin-bottom: 0.2em;
    font-weight: normal;
    line-height: normal;
}
h1.item {
    text-align: center;
}
h1.category {
    text-align: left;
}
#content h3 {
    font-style: normal;
}
#content .back {
    display: block;
    text-align: left;
    font-style: normal;
    margin-top: 0em;
    font-weight: normal;    
}
a.back {
    text-decoration: none;
    color: black;
}

/* Front page (index.html) */
.contentgrid {
  display: grid;
  grid-template-columns: auto auto auto;
  grid-gap: 10px;
  background-color: white;
  padding: 10px;
}
.contentgrid > .thumbnail {
    width: auto;
    max-width: none;
    min-width: 128px;
    margin: 0px;
}

.contentgrid > .thumbnail:first-child {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
}

.contentgrid > .thumbnail:nth-child(2) {
  grid-column: 2 / span 2;
  grid-row: 3 / span 2;
}

@media (max-width: 450px) {
    .contentgrid {
	grid-template-columns: auto auto;
    }
    .contentgrid > .thumbnail:first-child {
	grid-column: 1 / span 2;
	grid-row: 1 / span 2;
    }

    .contentgrid > .thumbnail:nth-child(2) {
	grid-column: 1 / span 2;
	grid-row: 4 / span 2;
    }
}
@media (min-width: 1200px) {
    .contentgrid {
	grid-template-columns: auto auto auto auto;
    }
    .contentgrid > .thumbnail:first-child {
	grid-column: 1 ;
	grid-row: 1 / span 2;
    }

    .contentgrid > .thumbnail:nth-child(2) {
	grid-column: 4;
	grid-row: 1 / span 2;
    }
}

.small_thumbnail {
    width: 20%;
}
.large_thumbnail {
    width: 30%;
}
.thumbnail {
    margin: 1%;
    display: inline-block;
    position: relative;
    min-width: 12em;
    max-width: 256px;
    border: 2px solid #DDDDDD;
    // border-radius: 16px;
     overflow:hidden; 
}
.large_thumbnail:after {
    padding-top: 90%; /*16:9 ratio*/
    display: block;
    content: '';
}
.small_thumbnail:after {
    padding-top: 80%; /*8x10 ratio*/
    display: block;
    content: '';
}
.small_thumbnail img {
    top: 0; bottom: 0; right: 0; left: 0;
    // width: 100%;
    // height: auto;
    width: 100%;
    height: 100%;
    object-fit: cover;
	       
}
.necklaces_and_lockets_thumbnail img {
    object-position: bottom;
}
.large_thumbnail img {
    top: 2%; bottom: 10%; right: 7%; left: 7%;
    width: 86%;
    height: auto;
}
.thumbnail img {
    position: absolute;
    margin: auto;
    color: white;
    vertical-align: middle;
}

.thumbnail .caption {
    position: absolute;
    bottom: 0; right: 0; left: 5%;
    width: 90%;
    color: black;
    text-decoration: none;
    text-align: center;
    font-size: larger;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow:hidden; 
}

.thumbnail .smaller {
    font-size: smaller;
    width: 95%;
    left: 2.5%;
    line-height: 105%;
}
.thumbnail .price {
    color: black;
    text-decoration: none;
    text-align: right;
    font-size: smaller;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow:hidden; 
}



a.thumbnail {
    text-decoration: none;
    color: black;
}

a:hover.thumbnail {
    box-shadow: 0px 0px 18px rgba(180,180,180,0.9);
}

/* Shop listings */
#gallery {
    display: inline-block;
    vertical-align: top;
    width: 100%;
    max-width: 500px;

    margin: 0px;
}
.gallery {
    display: inline-block;
    vertical-align: top;
    width: 100%;
    // max-width: 500px;

    margin: 0px;
}

#description {
    display: inline-block;
    width: 100%;
    max-width: 500px;
    vertical-align: top;
}

#news {
    display: inline-block;
    width: 100%;
    max-width: 750px;
    vertical-align: top;
    max-height: 999999px;
    font-size: 100%;
}

#instagram {
    max-width: 658px;
    display: inline-block;
    width: 100%;
}

#about {
    display: inline-block;
    width: 100%;
    max-width: 750px;
    vertical-align: top;
    max-height: 999999px;
}
#about ul {
    text-align: left
}
.blog {
    display: inline-block;
    width: 100%;
    text-align: justify;
    max-width: 750px;
    width: 90%;
}
.blog h1 a {
    text-decoration: none;
    color: black;
}
.blog h1 a:hover {
    background: #DDD;
    border-radius: 2px;
}
.blog_nav {
    display: inline-block;
    border-radius: 0.2em;
    text-align: left;
    vertical-align: top;
    margin: 3em;
    margin-top: 5%;
}
.blog_nav a {
    color: black;
}
.blog_nav a:hover {
    background: #EEE;
}
.blog_nav li {
    border-radius: 0.2em;
    margin: 0.1em;
}
.blog_nav .selected {
    background: #DDD;
    
}
#faq {
    display: inline-block;
    width: 100%;
    max-width: 750px;
    vertical-align: top;
    max-height: 999999px;
	text-align: left;
}
#faq ul {
	margin-top: 0;
	margin-bottom: 0;
}
#faq p {
	margin-top: 0.1em;
	margin-bottom: 0.1em;
}
#faq h1 {
	margin-bottom: 1.2em;
}
#about h1 {
	margin-bottom: 1.2em;
}
.category_nav {
    font-weight: normal;
    font-style: normal;
    font-size: 130%;
    font-family: 'Times New Roman', serif;
    color: gray;
    background: #E8E5D5;
}

.category_nav a {
    display: inline-block;
    margin-left: 1%;
    margin-right: 1%;
    margin-top: 0.6em;
    text-decoration: none;
    color: black;
}
.commission {
    font-weight: bold;
    font-size: 90%;
    color: black;
    padding: 0.3em;
    padding-left: 1em;
    padding-right: 1em;
    border-radius: 0.2em;
    border:1px solid #ccc9bb;
    text-decoration: none;
    background: #E8E5D5;
}

#add-to-cart {
    font:inherit;
    font-weight: bold;
    font-size: 90%;
    color: black;
    padding: 0.3em;
    padding-left: 1em;
    padding-right: 1em;
    border-radius: 0.2em;
    border:1px solid #ccc9bb;
    text-decoration: none;
    background: #E8E5D5;
    cursor:pointer;
    text-align: center;
    margin: 0px;
}
a:hover.commission {
    box-shadow: 0px 0px 18px rgba(242,239,222,0.9);
}
#add-to-cart:hover {
    box-shadow: 0px 0px 18px rgba(242,239,222,0.9);
}
.ui-dialog {
    font-family: 'Times New Roman', serif;
}

.ui-dialog a {
    color: blue;
    text-decoration: underline;
}

.ui-dialog-titlebar {
    background: #C4BD97;
}

.connect_link {
    font-size: smaller;
    color: black;
}

.news_img {
    width: auto;
    max-width: 100%;
    height: auto;
}

.news_heading {
    margin: auto;
    margin-top: 2em;
    max-width: -webkit-max-content;
    background: #E8E5D5;   
    padding: 0 4.5em;
    font-weight: normal;
}

.question {
	font-style: italic;
	margin-top: 1.5em;
	margin-bottom: 0.5em;
}
.slicknav_menu {
  display:none;
}
.sub_nav {
  display:none;
}
  #mobile_cart_div {
      display: none;
  }
@media (max-width: 600px) {
  #header {
    display: none;
  }
  #mc_embed_signup {
    display: none;
  }
  #nav {
    display: none;
  }
  .slicknav_menu {
    display: block;
  }
  #social {
      padding-left: 5px;
      padding-right: 5px;
  }
  #social:before {
    content: " ";
    display: table; }
  #social:after {
    content: " ";
    display: table;
    clear: both; }
  .right {
      float: left;
  }
  #mobile_cart_div {
      display: inline-block;
      position: relative;
      float: right;
  }
}

@media (max-width: 400px) {
  .large_thumbnail {
    width: 80%;
  }
}

#paypal {
  font-size: 0pt;
  position: absolute;
  z-index: -1;
}

#mobile_cart {
    background-color: #222;
    border-radius: 4px;
    border: 0px;
    height: 33px;
    width: 38px;
    vertical-align: baseline;
    /* padding: 0px; */
    margin-right: 5px;
    margin-bottom: 5px;
}
#mobile_cart img {
    height: 22px;
    vertical-align: baseline;
    /* width: 24px; */
}
.filter {
    background: darkgrey;
    color: white;
    padding: 4px;
    margin: 2px;
    border-radius: 4px;
}

.filteritem {
    cursor:pointer;
}
.filteritem:hover {
    color:lightgrey;
}
.filteritem.enabled {
    color:yellow;
}
.filteritem.disabled {
    color:grey;
}

#show_filters {
    cursor:pointer;
}
#clear_filters {
    background: darkgrey;
    color: white;
    padding: 4px;
    margin: 2px;
    border-radius: 4px;
    cursor:pointer;
}

.cart a {
    text-decoration: none;
    color: black;
}
.cart a:hover {
    background: #DDD;
    border-radius: 2px;
}
.cart_variations {
    list-style: none;
    text-align: left;
    vertical-align: top;
}
.cart_description {
    width: 45%;
    display: inline-block;
    vertical-align: top;
}
.cart_pricing {
    width: 20%;
    display: inline-block;
    vertical-align: top;
}
.blog .button {
    font:inherit;
    font-weight: normal;
    font-size: 90%;
    color: grey;
    padding: 0.3em;
    padding-left: 1em;
    padding-right: 1em;
    border-radius: 0.2em;
    border:1px solid #ccc9bb;
    text-decoration: none;
    background: #E8E5D5;
    cursor:pointer;
    text-align: center;
    margin: 0px;
    display:inline-block;
}
.blog .button:hover {

}
.blog .button.dirty {
    font-weight: bold;
    color: black;
}
.blog .button.dirty:hover {
    background: #ccc9bb;
}
.comment {
    border-radius: 0.4em;
    margin: 0.4em;
    padding: 0.4em;
    background: #EEE;
    white-space: pre-line;
}
.comment .name {
    font-weight: bold;
}

#newcomment textarea {
    width: 100%;
    max-width: 40em;
}

#newcomment input.name {
    width: 100%;
    max-width: 40em;
}
