html {
  height: 100%;
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body
{
	font-family: 'PT Sans Caption', sans-serif;
	background-color: #fffef5;


  position: relative;
  margin: 0;
  padding-bottom: 54px;
  min-height: 100%;
}

.yarns_wrapper
{
    display: flex;
	width: 990px;
	margin: 0 auto;
}

.back
{
    margin: 0 auto;
    margin-left: 50px;
    margin-right: 50px;
}

.leftBar
{
    width: 200px;
}

.footer_menu
{
    width: 200px;
	text-align: center;
}

.yarn_list{
flex-grow: 1;
    padding-left: 10px;
	display: flex;
	flex-wrap: wrap;
}

.yarn_block
{
    float: left;
    width: 240px;
    height: 240px;
    text-align: center;
    padding: 5px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    margin-bottom: 10px;
    margin-right: 5px;
    border: 1px solid white;
}

.yarn_block:hover
{
    border: 1px solid silver;
}

.yarn_image{
    width: 228px;
    height: 200px;
    object-fit: contain;
    flex-grow: 8;
}

.yarn_title{
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
	font-weight: bold;

}
.yarn_price{
    flex-shrink: 0;
	font-weight: bold;
}

.filter_item
{
    text-overflow: ellipsis;
    overflow: hidden;
    width: 200px;
    white-space: nowrap;
    cursor: pointer;
}

.filter_subitem
{
    text-overflow: ellipsis;
    overflow: hidden;
    width: 190px;
    white-space: nowrap;
    cursor: pointer;
    margin-left: 10px;
}

.non_select
{
 -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}

.paging_bar
{
    width: 100%;
    margin-top: 20px;
    clear: both;
    float: left;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    height: 42px;
}

.page_link
{
    cursor: default;
    width: 25px;
    margin: 5px;
    padding: 5px;
    float: left;
    border: 1px solid silver;
    text-align: center;
}

.page_link_active
{
    cursor: pointer;
    border: 1px solid white;
}
.page_link_active:hover
{
    text-decoration: underline;
}
.page_link_prevnext
{
    cursor: default;
    text-decoration: none;
    border: 1px solid silver;
}
.page_link_prevnext:hover
{
    text-decoration: none;
    border: 1px solid gray;
}
.visible_link
{
    cursor: pointer;
}

.yarn_main
{
    margin: 0 auto;
    width: 990px;
    display: flex;
}

.yarn_left_side
{
    width: 100%;
    display: flex;
    flex-direction: column;
}

.yarn_image_box
{
    width: 570px;
    display: flex;
}
.yarn_image_large
{
    width: 400px;
    height: 300px;
    object-fit: contain;
    flex-grow: 0;
    cursor: pointer;
}

.yarn_image_large2
{
	width: 800px;
	height: 600px;
	object-fit: contain;
}

.yarn_thumbs
{
    width: 570px;
    height: 50px;
    display: flex;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.yarn_image_thumb
{

    height: 50px;
    width: 50px;
    object-fit: contain;
	margin-left: 10px;
	cursor: pointer;
	border: 1px solid white;
}

.yarn_image_thumb:hover
{
	border: 1px solid silver;
}

.yarn_image_switch
{
    flex-grow: 1;
    text-align: center;
    cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
}

.yarn_info
{
    width: 100%;
    padding: 30px;
}

.yarn_description
{
}

.breadcrumbs
{
	font-size: 14px;
	display: flex;
	height: 20px;
	font-family: 'Verdana';
	margin-bottom: 10px;
	margin-top: 10px;
}
.breadcrumb
{
	margin-left: 10px; 
	color: black;
	margin-right: 10px;
}

a.breadcrumb
{
	text-decoration: none;
	cursor: pointer;
}
a.breadcrumb:hover
{
	text-decoration: underline;
}

.main_menu_picbox
{
	text-align: center;
	margin-bottom: 50px;
	margin-top: 50px;
	font-family: 'Pacifico'; 
	font-decoration: none; 
	font-size: 22px;
}

.top_menu
{
	float: left;
	text-align: center;
	font-family: 'Pacifico'; 
	font-decoration: none; 
	font-size: 22px;
	color: #731615;
	margin-right: 30px;
}

a
{
	text-decoration: none;
	color: black;
}
a:hover
{
	text-decoration: underline;
}


.ajax_rotate {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    margin:-60px 0 0 -60px;
    -webkit-animation:spin 4s linear infinite;
    -moz-animation:spin 4s linear infinite;
    animation:spin 4s linear infinite;
}
@-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); } }
@-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } }
@keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } }
