@font-face {
  font-family: "jsn";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/JSN55.woff") format("woff");
}
@font-face {
  font-family: "jsn";
  font-style: normal;
  font-weight: 600;
  src: url("../fonts/JSN75.woff") format("woff");
}
html {
	/* background-image: url('../images/bg_tape_v2.jpg'); */
	/* background-position: left top; */
}
body {
    color: #000;
    font-family: jsn, "DejaVu Sans", "Lucida Sans Unicode", Verdana, Arial, sans-serif;
    font-size: 14px;
	width: auto;
}

img { border: 0; }

table td, table th {
    padding: 4px;
    height: 100%;
    font-size: 16px;
}

h3 {
    font-size: 18px;
	margin-top: 1.5em;
	margin-bottom: 0.5em;
}

li {
    padding-top: 5px;
}

/*
h1 img {
	width: 252px;
	height: 80px;
}
*/

h1.logo {
	float: left;
	position: absolute;
	top: 6px;
	left: 281px;
	/*width: 252px;*/
	margin-top: 12px;
}

.sans {
    font-family: Verdana, "DejaVu Sans", "Bitstream Vera Sans", sans-serif;
}

.image img, #gallery img {
    border-radius: 5px;
}

.help {
    font-size: larger;
    padding: 5px 0 10px 0;
    /*text-align: center;*/
}

.htext {
	margin-left: 272px;
	/*margin-top: 25px;*/
	padding-top: 18px;
	/*padding-bottom: 10px;*/
	text-align: center;
	color: #d01010;
}

.inner table, div#contact table {
	margin: auto;
}

div#gallery, div#contact {
	text-align: center;
}

.contact {
    font-size: large;
}

#gallery.equipment p {
	text-align: left;
}

#gallery .intro, #gallery .sale {
    display: none;
}

.news .intro {
    margin-top: 0;
    font-weight: bold;
}

.column {
	padding-top: 10px;
}

#prices.column {
	padding-top: 0;
}

#prices.column p {
    text-align: left;
}

#prices.column table {
    margin: auto;
}

#tapes, #boxes {
    text-align: center;
}

#gallery .image {
    display: inline-block;
    vertical-align: top;
    width: min-content;
}

h2 {
    font-family: jsn, "DejaVu Sans", "Lucida Sans Unicode", Verdana, Arial, sans-serif;
	text-align: left;
	border-top-width: 1px;
	border-top-style: solid;
	border-top-color: #000000;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: #000000;
	padding-top: 12px;
	padding-bottom: 9px;
    margin-top: 12px;
}

.simple h2 {
    text-align: center;
    border: none;
}

.menu {
	/* margin-left: 272px; */
	list-style: none;
	text-align: center;
	padding: 18px 16px 10px 16px;
}
.menu li {
	display: inline;
	white-space: nowrap;
}
.menu li a {
	line-height: 1.6em;
	background-color: #589abf; /*#7798aa;*/
	color: black;
	height: auto;
	margin-right: 0.1em;
	padding: 0em 1.25em;
	text-decoration: none;
	font-size: 140%;
    border-radius: 5px;
}

.menu li a.active {
	background-color: #999999;
}

.submenu {
    margin-left: auto;
    padding-bottom: 2px;
    padding-top: 5px;
}

/* This stile will make vertical menu:
.submenu li {
	display: block;
	text-align: left;
}
*/

.submenu li a {
	font-size: 120%;
}

.message { color: red; } /* maybe move to common.css? */

div#result {
	background: #601010;
	color: white;
	margin-top: 10px;
	margin-bottom: 10px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 10px;
	padding-right: 10px;
	text-align: center;
	font-size: 110%;
}

.center {
    text-align: center;
}

div.center, form.center {
    display: block;
    margin: auto;
}

.calc-buttons {
	padding-top: 10px;
}

.calc-buttons input {
	padding-left: 10px;
	padding-right: 10px;
	margin-left: 5px;
	margin-right: 5px;
    margin-bottom: 5px;
}

table.price td {
	padding-bottom: 0.7em;
	vertical-align: top;
}

table.price td.price {
	width: 6em;
	text-align: center;
}

#sales {
	width: 100%;
}

#sales p {
	font-size: 120%;
	text-align: center;
	white-space: pre-line;
}

#sales p.image {
	white-space: normal;
}

#sales span.strong {
	font-size: 150%;
}

#sales span.normal {
	font-size: 90%;
}

/* div.image p { */
	/*width: 315px;*/ /* picture width + some gap */
/* } */

div.layout-files {
	clear: both;
	padding-top: 20px;
}

div.layout-files td.th {
	width: 350px;
}

div.layout-files tr.images {
	vertical-align: top;
}

h4.th {
	font-size: 16px;
}

td h4 {
    margin-top: 0;
}

.prices table, .prices td, .prices th,
#prices table, #prices td, #prices th,
.tborder, .tborder th, .tborder td {
    border: 1px solid black;
    border-collapse: collapse;
}

.prices td {
	width: 10%;
    text-align: center;
}

#prices td {
    text-align: center;
}

.prices td:first-child {
	width: 40%;
    text-align: left;
}

#prices td:first-child {
    text-align: left;
}

.prices .slipcase-table, .prices .bradpack-table {
    width: 95%; /* this is some hack, due to which the table width gets correct */
}

.obistrip-table {
    width: 40%;
}

.prices .obistrip-table td {
    width: 50%;
}

.prices .slipcase-table td:first-child, .prices .bradpack-table td:first-child {
    width: 25%; /* this is some hack, due to which the column width gets correct */
}

.prices .slipcase-table td:not(:first-child), .prices .bradpack-table td:not(:first-child) {
    text-align: center;
}

.nb { color: red; }

#left, #main {
	margin-left: 273px;
	margin-right: 25px;
}

#left {
    min-height: 154px; /* To make sure that page's H2 won't cover the logo on too wide screens */
}

.news {
    font-family: Verdana, "DejaVu Sans", "Bitstream Vera Sans", sans-serif;
    font-size: small;
	background-color: #eeeeee;
	border: none;
	margin-top: 5px;
	padding: 7px;
	width: 236px;
	position: absolute;
	top: 3px;
	left: auto;
	float: left;
}

.news h3 { /* Header of the whole News column */
	margin-top: 0px;
	/* margin-bottom: 10px; */
}

#news h4, .news h4 {  /* Dates in News */
    margin-bottom: 0;
}

.news-text { /* Smaller vertical skip after date on the News page */
    margin-top: 0px; /* Default was 14 */
} 

#main .news { /* is it used? */
	position: static;
	float: none;
	width: 100%;
	background-color: inherit;
}

/* Language select */

div#langs {
	position: absolute;
	top: 5px;
	right: 5px;
	width: auto;
}
div.lang {
	text-align: center;
	font-weight: bold;
	background-color: #44bb66;
	background-color: purple;
	padding: 4px 4px 2px 4px;
	margin: 3px;
	line-height: 1;
	color: #ffffff;
    border-radius: 5px;
}

div.lang a {
	text-decoration: none;
	color: inherit;
}

div.full {
	text-align: center;
	margin-top: 50px;
}

li ul {
	list-style-type: initial;
}

#shelves div.image {
    text-align: center;
}

#shelves div.image img {
    width: 100%;
    max-width: 694px;
}

img.gallery {
	vertical-align: top;
}

.news-images {
    line-height: 0;
}

.news-images a {
    text-decoration: none;
}

.news-images img {
    vertical-align: top;
}

.left {
    float: left;
}

.right {
    float: right;
}

/* Calc table redefined in divs */

.table {
    display: table;
    padding-top: 1px;
    margin: auto; /* center table */
}

.tr {
    display: table-row;
}

.td {
    display: table-cell;
    padding: 5px;
    font-size: 16px;
}

.td input[type=checkbox] {
    margin: 1px 3px 4px 1px;
    vertical-align: middle;
}

/* Calc table for news column */

.news .table {
    display: block;
    margin: 0;
}

.news .tr {
    display: block;
    padding-bottom: 4px;
}

.news .td {
    display: inline-block;
    padding: 0;
    font-size: 14px;
    padding: 2px 2px 2px 0;
}

.news #tdcover {
    display: inline;
}

.news .td small {
    display: inline-flex;
    padding-top: 4px;
}

.news select {
    max-width: 236px;
}

#shelves .left {
    max-width: 30%;
    padding-right: 20px;
}

#shelves .right {
    max-width: 65%;
    padding-top: 14px;
}

.tapekit .left {
    width: calc(100% - 320px);
}

.tapekit .right {
    width: 320px;
}

#sales div.tape {
    display: inline-block;
    width: 300px;
    margin: 10px 20px 0px 20px; 
    vertical-align: top;
}

#news, .tapekit, .about, .shipping, .faq, .printing div {
    font-family: Verdana, "DejaVu Sans", "Bitstream Vera Sans", sans-serif;
}

.about table th, .about table td {
    font-size: 14px; 
}

.printing #examples {
    text-align: center;
}

.printing #faq, .printing #examples {
    /* width: 50%; */
    float: left;
}

.printing.slipcases #examples {
    float: right;
    width: 350px;
}

.printing.slipcases #faq {
    float: none;
}

.printing #templates {
    width: 400px;
    float: right;
}

.covers #templates, .stickers #templates {
    width: auto;
    float: none;
    vertical-align: top;
}

.covers .tmpl {
    /* float: none !important; */
    display: inline-block;
    vertical-align: top;
}

.tmpl img {
    display: block;
}

a.download {
    margin-bottom: 10px;
    display: block;
}

.printing #templates img, .printing #examples img {
    padding-bottom: 10px;
}

.printing #examples img {
    vertical-align: top;
}

.printing #examples a, div.gallery a {
    text-decoration: none;
}

.printing #prices {
    float: left;
    width: 56%;
}

.printing.stickers #prices {
    width: 59%;
}

.printing #prices table {
    margin: 14px 0 14px 0;
    width: 100%;
}

.obistrip #prices table {
    width: 70%;
}

.uv-printing #templates,
.pad-printing #templates {
    float: left;
}

#templates table {
    margin: auto;
    border-collapse: collapse;
}

#templates table td {
    vertical-align: top;
    font-size: 14px;
    border: 1px solid;
    padding: 15px 20px 5px 20px;
}

.printing #prices table td, .printing #prices table th {
    font-size: small;
}

li img {
    display: block;
    padding-top: 5px; /* like in normal li */
}

#gallery #prices.block { /* Prices block on the main page */
    width: 50%;
    margin: auto;
}

#prices .loop-prices {
    width: 100%;
}

#prices .loop-prices td {
    border-bottom: none;
}

#prices .loop-prices td.noname {
    border-top: none;
}

.news .star {
    font-size: smaller;
    vertical-align: super;
}

.gtcode, .stock, .qr {
    display: block;
}

.bank {
    text-align: left;
}

.bank td:first-child {
    padding-right: 20px;
}

.payment-icon {
    float: left;
}

.clearfix {
    overflow: auto;
}

.inline {
    display: inline;
}

#cform table {
    width: min-content;
}

/* Responsive redefinitions */

@media screen and (max-width: 900px) {

    /* Hide news panel and show intro on the main page instead */
    .news { display: none; }
    #gallery .intro, #gallery .sale {
        display: block;
    }

    .menu {
	margin-left: auto;
        margin-top: auto;
        margin-bottom: auto;
        clear: both;
        padding-top: 10px;
    }

    .htext {
        height: 115px;
    }
    
    #left, #main {
	margin-left: auto;
	margin-right: auto;
    }

    h1.logo {
	position: absolute;
        top: 0;
        left: auto;
    }

    p.intro {
        margin: auto;
    }

    #calc-form select {
        max-width: 60vw;
    }

    #calc-form .tr .td:first-child {
        max-width: 30vw;
        word-wrap: break-word;
    }
}

@media screen and (max-width: 768px) {

    #tapes, #boxes {
        float: none;
        width: auto;
    }

    #gallery #prices.block { /* Prices block on the main page, 50% normally */
        width: 100%;
    }

    .printing #templates {
        float: none;
        width: auto;
    }

    .printing #prices {
        width: auto;
    }

    #calc-form .tr .td small {
        display: block;
    }
}

@media screen and (max-width: 480px) {

    body {
        font-size: 12px;
    }
    
    .htext {
	margin-left: auto;
        margin-top: auto;
        margin-bottom: auto;
        height: auto;
    }

    .menu {
        padding-top: 6px;
    }
    
    h1.logo {
	    float: none;
	    position: static;
        text-align: center;
        margin-bottom: 0;
    }

    #shelves .left {
        float: none;
        max-width: 100%;
        padding-right: auto; /* Warning: Error in parsing value for 'padding-right'.  Declaration dropped. */
    }

    .tapekit .left {
        width: 100%;
    }
    
    #shelves .right, .tapekit .right {
        float: none;
        max-width: 100%;
    }
}

@media screen and (max-width: 400px) {
    /* otherwise 399px may be hardcoded in the template for a 300px image */
    .tmpl {
        width: 320px !important;
    }
}
