@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,400i,600,600i,700,700i');
@import url('https://fonts.googleapis.com/css?family=IBM+Plex+Mono&display=swap');
@import url('https://fonts.googleapis.com/css?family=Monda&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,400;0,600;1,400;1,600&display=swap');

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	height: 100%;
}

body {
	min-height: 100%;
	font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue", Arial, sans-serif;
	background-color: var(--color-body-background);
	padding-bottom: 51px;
  display: flex;
  flex-direction: column;
}

form {
	width: 100%;
}

h3 {
	font-weight: normal;
	font-size: 1em;
	margin-bottom: 10px;
}

p {
	margin-top: 16px;
	margin-bottom: 16px;
	font-size: 1em;
}

p.small {
	font-size: 0.8em;
}

h1 {
	font-size: 1.6em;
	font-weight: normal;
	margin-bottom: 10px;
}

h2 {
	font-size: 1.4em;
	font-weight: normal;
	margin-bottom: 10px;
}

ul {
	list-style: none;
}

li {
	list-style-position: inside;
}

table {
    border-collapse: collapse;
}

button, label.file_select, .button {
	/*
	padding: 5px 20px 4px 20px;
	display: inline-block;
	border-radius: 5px;
	background-color: rgba(23, 35, 59, 1);
	color: white;
	border: none;
	width: max-content;
  height: 34px;
 	font-size: 1.10em;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
	text-transform: uppercase;
	margin-bottom: 10px;
	*/
	padding: 0 20px 0 20px;
	display: inline-block;
	border-radius: 5px;
	background-color: rgb(57 134 179);
	color: white;
	border: none;
	width: max-content;
	height: 35px;
	font-size: 1.10em;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
	margin-bottom: 10px;
	font-family: Arial;
}

button.cancel, .button.cancel {
	background-color: rgba(0, 0, 0, 0.1);
	color: black;
	border: 1px solid black;
}

button.cancel:hover, .button.cancel:hover {
	background-color: white;
}

button:hover, label.file_select:hover, .button:hover {
	background-color: rgba(23, 35, 59, 0.85);
}

button:active, label.file_select:active, .button:active {
	/* background-color: rgba(23, 35, 59, 0.5); */
	box-shadow: 0 1px #666;
	transform: translateY(1px);
}

button:disabled, label.file_select:disabled, .button:disabled {
	color: #ccc;
}

input[type="text"], input[type="number"], input[type="tel"], input[type="email"], input[type="password"], select {
	font-size: 1.35em;
	border: 1px solid #ccc;
  padding: 4px 10px 4px 10px;
  border-radius: 5px;
  background-color: var(--color-input-background);
  color: var(--color-input-text);
}

hr {
	margin: 20px 0 20px 0;
	border-top: 1px solid rgba(0, 0, 0, 0.2);
}

input[type="checkbox"], input[type="radio"] {
	transform: scale(1.5);
	margin-bottom: 5px;;
}

select {
	font-size: 0.9em;
}

input[type="number"] {
	text-align: center;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--color-link);
}

figcaption {
	text-align: center;
	font-style: italic;
}

table {
	table-layout: fixed;
}

div.buttons {
  text-align: right;
}

.settings_box {
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 10px;
	padding: 20px 20px 15px 20px;
	width: 500px;
	position: relative;
}

.settings_box .settings_box_headline {
	position: absolute;
  top: -11px;
  background-color: var(--color-level1);
  padding: 0 10px 0 10px;
  text-transform: uppercase;
}

.box {
	border-radius: 10px;
	border: var(--border);
	box-shadow: var(--border-shadow);
	background-color: var(--color-level2);
}

.box:active {
	box-shadow: none;
}

.box2 {
	background-color: var(--color-level3);
	padding: 20px;
	margin-bottom: 20px;
}

.box2 .time {
	margin: 10px 0 0 10px;
}

form .box2:last-child {
	margin-bottom: 0;
}

div.headline {
	font-weight: 600;
	font-size: 1.8em;
	margin-bottom: 20px;
}

div.headline.medium {
	font-size: 1.5em;
	padding-bottom: 10px;
	margin-bottom: 10px;
	margin-top: 30px;
}

div.headline.medium:first-child {
	margin-top: 0;
}

div.headline.small {
	font-size: 1.3em;
	margin-bottom: 5px;
}

.headline.divider {
	border-bottom: var(--divider);
}

.headline_medium {
  width: 100%;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 5px;
  letter-spacing: 3px;
}

.headline_large {
  width: 100%;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 5px;
  font-size: 1.3em;
  letter-spacing: 6px;
}

#banner {
	text-align: center;
	padding: 20px 20px 10px 20px;
	background-color: var(--color-banner-background);
	z-index: 901; /* mobila menyn hamnar under om z-index är över 900? */
}

#banner img {
	max-height: 180px;
}

#menu {
	font-size: 1rem;
	background-color: var(--color-menu-background);
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	z-index: 900;
	text-align: center;

	height: 40px;
	padding-right: 52px;
	transform-style: preserve-3d;
}

#menu a {
	color: var(--color-menu-text);
	text-decoration: none;
}

#menu a:hover {
	color: var(--color-menu-text);
	color: black;
}

#menu .menu_item {
	text-transform: uppercase;
  height: 100%;
  display: inline-flex;
  align-items: center;
  padding: 0 10px 0 10px;
}

#menu .menu_item img {
	width: 24px;
	height: 24px;
	position: relative;
	top: 4px;
}

#menu .menu_image {
	text-align: center;
	margin-bottom: 3px;
	filter: invert(100%);
}

#menu a:hover .menu_image {
	filter: invert(0%);
}

#menu .menu_text {
	text-align: center;
	padding: 6px 10px 6px 10px;
	color: var(--color-menu-text);
}

#menu a#cart_button {
	border-top: 1px solid rgba(255, 255, 255, 0.25);
	width: 100%;
}

#content {
	background-color: var(--color-content-background);
	padding: 20px;
	margin-top: 10px;
	margin-bottom: 10px;
	flex: 1 0 auto;
	overflow-wrap: break-word;
	position: relative;
	color: var(--color-content-text);
}

:where(#content) input[type="checkbox"] {
    margin-right: 10px;
		position: relative;
		top: -1px;
}

#toaster {
	position: fixed;
	display: none;
	z-index: 100;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 80%;
	border: 1px solid #ccc;
	background-color: var(--color-level4);
	color: var(--color-content-text);
	padding: 20px;
	border-radius: 5px;
	font-size: 1.2em;
	opacity: 0.95;
	text-align: center;
	box-shadow: 0px 0px 83px 10px rgba(0,0,0,0.75);
}

#footer {
	background-color: var(--color-footer-background);
	padding: 10px;
	text-align: center;
	flex-shrink: 0;
	color: var(--color-footer-text);
}

#footer a {
	color: var(--color-footer-text);
}

#footer #platform_info {
	font-size: 0.8em;
	opacity: 0.5;
}

.info {
	width: 50%;
	text-align: center;
	padding: 10px 20px 10px 20px;
	border: 1px solid rgba(0, 0, 0, 0.2);
	background-color: rgba(0, 0, 0, 0.05);
	margin: 0 auto;
	border-radius: 5px;
	margin-bottom: 10px;
}

.info a {
	color: blue;
}

.info a:hover {
	text-decoration: underline;
}

#facebook {
	position: absolute;
	top: 20px;
	right: 60px;
}

#instagram {
	position: absolute;
	top: 20px;
	right: 20px;
}

#facebook img, #instagram img {
	width: 30px;
	height: 30px;
}

#top_links {
	font-size: 0.9em;
	text-transform: uppercase;
	margin-bottom: 10px;
}

#top_links span {
	margin: 0 10px 0 10px;
}

#top_links a:hover {
	text-decoration: none;
}

#toolbar {
	margin-top: 30px;
}

#toolbar_cp {
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	padding: 20px 20px 0 20px;
	width: 100%;
	text-align: right;
	margin-top: 20px;
}

#toolbar_cp button {
	margin-bottom: 0;
}

div#items {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin-bottom: 10px;
}

div#items div.item {
	padding: 10px;
	display: flex;
	width: 100%;
	align-items: center;
	flex-wrap: wrap;
	justify-content: center;
	margin-left: 0;
	border-radius: 5px;
	background-color: white;
	color: black;
}

div#items div.item .item_info {
	width: 100%;
}

div#items div.item .item_info img.stock_image {
	position: relative;
	top: 2px;
	width: 17px;
	margin: 0 6px 0 3px;
}

div#items div.item .photo {
	width: 100%;
}

div#items div.item .photo img {
	width: 100%;
	height: 150px;
	object-fit: contain;
}

div#items a {
	text-decoration: none;
	width: 100%;
	margin-bottom: 15px;
}

div#items a:last-child {
	margin-bottom: 0;
}

div#items div.item .name {
	text-transform: uppercase;
	text-overflow: ellipsis;
  padding: 0 10px 0 10px;
	/* background: linear-gradient(0deg, var(--color-level2) 40%, var(--color-level2) 100%); */
}

div#items div.item .name, div#items div.item .price {
	text-align: center;
}

.price-old {
	text-decoration: line-through;
	opacity: 0.5;
}

.price-sale {
	color: red;
}

#blog_container {
	max-width: 800px;
	margin: 0 auto;
}

#blog_container .blog_buttons {
	text-align: right;
}

#blog {
	width: 100%;
	font-family: 'Source Serif Pro', serif;
	margin: 0 auto;
}

#blog .post {
	padding: 20px 10px 10px 10px;
	margin-bottom: 40px;
}

#blog .post:last-child {
	margin-bottom: 0;
}

#blog .post img {
	max-width: 100%;
	height: auto;
}

#blog .post .title {
	font-size: 1.8em;
	border-bottom: var(--divider);
  padding: 0 10px 15px 10px;
  margin-bottom: 10px;
}

#blog .post .title a {
	text-decoration: none;
}

#blog .post .date {
	text-align: right;
	padding-right: 5px;
}

#blog .post .body {
	font-size: 1.2em;
}

#blog .comments {
	margin-bottom: 50px;
	text-align: right;
}

#blog .comments:last-child {
	margin-bottom: 0;
}

#blog iframe {
	max-width: 100%;
}

.system_warning {
	border: 5px solid red;
	color: black;
	padding: 20px 20px 20px 80px;
	border-radius: 10px;
	margin: 0 auto;
	margin-bottom: 10px;
	background-image: url("/img/warning.png");
	background-size: 50px 50px;
	background-repeat: no-repeat;
	background-position: 10px center;
	width: max-content;
}

.system_info {
	margin: 0 auto;
	border: 5px solid blue;
	color: black;
	padding: 20px 20px 20px 80px;
	border-radius: 10px;
	margin-bottom: 10px;
	background-image: url("/img/info.png");
	background-size: 50px 50px;
	background-repeat: no-repeat;
	background-position: 10px center;
	width: max-content;
}

#page ol {
	margin-left: 43px;
	margin-bottom: 14px;
}

label.file_select {
  padding: 11px 20px 0 20px;
 	width: max-content;
	height: 40px;
	margin-bottom: 0;
	display: block;
  margin: 0 auto;
}

label.file_select input[type="file"] {
	opacity: 0;
	width: 0;
	height: 0;
}

#content iframe {
	max-width: 100%;
}

#hamburger {
	position: absolute;
	right: 17px;
	bottom: -10px;
}

.hi_menu {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: 0.5s ease;
  height: 40px;
}

.hi_menu .hi_bar {
  width: 30px;
  height: 3px;
  background: var(--color-hamburger);
  border-radius: 2px;
  transition: 0.4s ease;
}
.hi_menu .hi_bar:not(:first-child) {
  margin-top: 6px;
}

#hi {
  position: absolute;
  left: -999px;
  top: -999px;
}

#hi:checked + .hi_menu {
  transform: translate(-50%, -50%) rotatey(180deg);
}
#hi:checked + .hi_menu .hi_bar {
  transform: rotatey(180deg) rotatex(360deg);
}
#hi:checked + .hi_menu .hi_bar:first-child {
  transform: rotate(-45deg);
  margin-top: 8px;
}
#hi:checked + .hi_menu .hi_bar:nth-child(2) {
  opacity: 0;
}
#hi:checked + .hi_menu .hi_bar:nth-child(3) {
  margin-top: -12px;
  transform: rotate(45deg);
}

#dropdown_menu {
	width: fit-content;
	position: absolute;
	bottom: -400%;
	/* right: 0px; */
	background-color: var(--color-menu-background);
	padding: 8px 10px 8px 10px;

	/* transform: translateZ(-10px); */
	width: calc(100% - 20px);
	left: 10px;
}

#dropdown_menu .menu_item {
	padding: 7px 10px 7px 10px;
}

#dropdown_menu .menu_text {
	text-align: right;
}

.modal {
	display: none; /* ändra till flex med JS för att visa */
	position: fixed;
	z-index: 10000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgb(0, 0, 0);
	background-color: rgba(0, 0, 0, 0.6);
	justify-content: center;
	align-items: center;
}
  
.modal-content {
	position: relative;
	background-color: #fefefe;
	margin: 15% auto;
	padding: 20px;
	border: 1px solid #888;
	border-radius: 5px;
	width: 80%;
	height: 80%;
	max-width: 80%;

}

.flash_tooltip {
	display: none;
	margin-left: 10px;
	background-color: #62ae66;
	color: white;
	padding: 5px 16px 7px 16px;
	border-radius: var(--border-radius);
	opacity: 0;
	width: fit-content;
}

.flash_tooltip_modal {
	display: block;
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%,-50%);
	font-size: 2em;
	border-radius: calc(var(--border-radius) * 2);
	padding: 10px 30px 10px 30px;
}

:where(#page) ul {
	list-style-type: initial;
}

:where(#page) td {
	padding: 10px;
}

.input_title {
	font-size: 1.2rem;
	margin-bottom: 5px;
	font-weight: 600;
}

:root {
	color-scheme: light dark;

	--color-body-background: var(--color-level1);
	--color-banner-background: #b3b3b3;
	--color-menu-background: #b3b3b3;
	--color-content-background: var(--color-level1);
	--color-footer-background: var(--color-level1);
	--color-menu-text: white;
	--color-content-text: black;
	--color-footer-text: black;
	--color-hamburger: white;
	--color-link: black;
  --color-input-background: white;
  --color-input-text: black;

	--swiper-theme-color: #e21110 !important;

	--color-level1: #d4dbe1;
	--color-level2: #e2e8f0;
	--color-level3: #f7fafb;
	--color-level4: white;

	--border: 1px solid rgba(0, 0, 0, 0.3);
	--border-shadow: 1px 0px 20px 1px rgba(0, 0, 0, 0.15);
	--divider: 1px solid rgba(0, 0, 0, 0.2);
	--border-radius: 20px;
}

@media (prefers-color-scheme: dark) {
	:root {
    --color-body-background: var(--color-level1);
    --color-banner-background: #b3b3b3;
    --color-menu-background: #b3b3b3;
    --color-content-background: var(--color-level1);
    --color-footer-background: var(--color-level1);
    --color-menu-text: white;
    --color-content-text: black;
    --color-footer-text: black;
    --color-hamburger: white;
    --color-link: black;
    --color-input-background: white;
    --color-input-text: black;
  
    --swiper-theme-color: #e21110 !important;
  
    --color-level1: #d4dbe1;
    --color-level2: #e2e8f0;
    --color-level3: #f7fafb;
    --color-level4: white;
  
    --border: 1px solid rgba(0, 0, 0, 0.3);
    --border-shadow: 1px 0px 20px 1px rgba(0, 0, 0, 0.15);
    --divider: 1px solid rgba(0, 0, 0, 0.2);
  }
}