/*   
Theme Name: Matchcounter
Theme URI: https://eborninteractive.se
Description: The official Matchcounter theme
Author: Ola Eborn
Author URI: https://eborninteractive.se
Version: 1.0
*/

/* CSS Document */

/* 

Färger:



*/

* {
	box-sizing:border-box;
	-moz-box-sizing:border-box;
}

:root {
	--svart: #111;
	--vit: #fff;
	--ljusgra: #ededed;
	--lightgray:#f8f8f8;
	--header: #768093;
	--malbasrod: #F26A25;
	--morkgra: #666;
}

html {
	background:var(--lightgray);
}

.ui-loader {
	display: none;
}

body {
	background:var(--malbasrod);
	color:var(--svart);
	margin:0;
	padding:0;
	font-family: -apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
	line-height:1.5;
	font-size:18px;
	position: relative;
}

header {
	background:var(--malbasrod);
	position: relative;
}

#main-content, footer {
	background: var(--lightgray); 
}

#main-content {
	position: relative;
}

.dev #main-content {
	min-height:calc(100vh - 70px);
	
}

.malbas {
	background: var(--svart) !important;
	color: white;
}

h1,h2,h3,h4,h5,h6 {
	
}

h1 {
	margin: 3px 0 0px 0 !important;
	font-size: 32px;
}

h2 {
	margin: 15px 0 15px !important;
	font-size: 16px;
	text-transform: uppercase;
}

h1 strong, h2 strong, h3 strong, h4 strong, h5 strong, h6 strong, h1 b, h2 b, h3 b, h4 b, h5 b, h6 b {
	/*font-weight:normal;*/
}

#page-wrap {
	width:100%;
	position:relative;
}

#pageheader .inner-content {
	padding: 12px 0 10px 0;
}

#pageheader {
	background: var(--malbasrod);
	color: white;
	text-align:center;
	height: 93.5px;
	position: relative;
}


/*#pageheader.fixedsection {
	position: fixed;
	width: 100%;
	top: 0;
	left: 0;
	z-index: 20;
}*/

/*.fixedsection ~ .headercomp {
	height: 93.5px;
}*/


.inner-content {
	margin:0 auto;
	max-width:1200px;
	width:90%;
	position:relative;
	padding: 20px 0;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-direction: column;
	
}

.counterbox {
	background: white;
	max-width: 400px;
	border-radius: 5px;
	width: 100%;
	margin-bottom: 15px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(0,0,0,0.15);
	position: relative;
}

.counterbox.assist {
	display: none;
}

.counterbox .header {
	min-height: 28.5px;
}

.counterbox .header  span {
	display: block;
	width: 100%;
	min-height: 22px;
	cursor:pointer;
}

.tag-container {
	position:relative;
	max-width: 400px;
	width: 100%;
	
}

.tag, .the_settings {
    position: absolute;
    bottom: -35px;
    right: 18px;
    display: none;
    width: 25px;
}

.modal.settings {
    padding: 50px 20px 10px;
}

.the_settings {
	right:unset !important;
	left:18px;
	display: block;
	font-size: 26px;
	cursor:pointer;
}

.settings-section {
	font-size: 17px;
	text-align: left;
	padding: 10px 0;
	display: flex;
	flex-direction: column;
}

.settings-section .switch {
	display: flex;
}


.unlocked .tag {
	cursor:pointer;
	display: block;
}

.modal label {
	font-size: 15px;
	text-align: left !important;
	display: block;
	margin-bottom: 3px;
}

select {
	-webkit-appearance:none;
	height: 40px;
	font-size: 18px;
	font-family: -apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
	border-radius:5px;
	padding-left:6px;
	padding-right:6px;
	width: 100%;
}

input[type=text] {
	height: 40px;
	font-size: 18px;
	font-family: -apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
	border-radius:5px !important;
	padding-left:10px;
	padding-right:10px;
	width: 100%;
	border: 1px solid var(--svart);
}

.counterbox .counter {
	display: flex;
}

.counterbox .counter .number {
	flex: 1;
	padding: 0 20px 3px;
	text-align: center;
	font-size: 42px;
	font-weight: 600;
}

.counterbox .counter .control {
	font-size: 45px;
	width: 60px;
	padding: 10px;
	display: block;
	text-align: center;
	line-height: 0.85;
	background: #e7e7e7;
	transition:0.1s all ease;
	cursor: pointer;
}

.locked .counterbox .counter .control {
	display: none;
}

.desktop .counterbox .counter .control:hover, .hoverstate {
	background: var(--malbasrod) !important;
}

.counterbox .header {
	background:#ccc;
	padding: 3px 25px;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	text-transform: uppercase;
	position: relative;
}

.malprocent {
	font-size: 50px;
	font-weight: 600;
}

.menupanel {
	margin-top: 0;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.menuitem {
	width: 45px;
	cursor: pointer;
}

.menuitem.add-new {
    width: 60px;
    margin: 0 30px;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.25));
}

.data_saved {
	position: fixed;
	top: 0;
	right: calc(50% - 30px);
	padding: 2px 8px 3px;
	background: var(--malbasrod);
	color: white;
	text-transform: uppercase;
	font-size:11px;
	transition:0.3s all ease;
	opacity: 0;
	border-radius: 10px;
	line-height: 1;
	font-weight: 600;
}

body[data-device=mobile] .data_saved {
	padding: 3px 8px 2px;
}

.show_saved {
	opacity: 1 !important;
}

.admin-bar .data_saved {
	top: 33px;
}

#titelform {
    position: absolute;
    top: 13px;
    left: 0;
    width: 100%;
    height: 45px;
    border: 0;
    opacity: 1;
    font-size: 32px;
    color: white;
    border: none;
    text-align: center;
    font-weight: bold;
    background: var(--malbasrod);
    display: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    letter-spacing: -1;
    font-family: -apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}

body[data-device=mobile] #titelform {
	top: 6px;
}

body[data-device=mobile] #titelform {
	top: 14.5px;
}

#datum {
	font-size: 18px;
    position: absolute;
    top: -10px;
    left: 0;
    width: calc(100% + 23px);
    height: 45px;
    border: 0;
    opacity: 1;
    color: white;
    border: none;
    display: none;
    text-align: center;
    font-weight: normal;
    background: var(--header);
    text-rendering: optimizeLegibility;
    letter-spacing: -1;
    font-family: -apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}

body[data-device=mobile] #datum {
	top: 5px;
}

#motstandareform, #malbasform {
    position: absolute;
    top: 4px;
    left: 0;
    width: min(90vw, 400px);
    height: 20px;
    border: 0;
    opacity: 1;
    font-size: 15px;
    color: var(--svart);
    border: none;
    text-align: center;
    text-transform: uppercase;
    font-weight: 600;
    background: #ccc;
    display: none;
    text-rendering: optimizeLegibility;
    font-family: -apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}

#malbasform {
	background: var(--svart);
	color: var(--vit);
}

::-webkit-calendar-picker-indicator {
    filter: invert(1);
    
}

datum {
	position: relative;
}

.unlocked h1.titel, .unlocked .header.motstandare, .unlocked datum {
	cursor:pointer;
}



input[type=text]:focus, input[type=date]:focus  {
	outline:none;
}

.modal-container {
	position: fixed;
	top:0;
	left:0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index:30;
	display: none;
	background:rgba(0,0,0,0.5);
}

.show_modal {
	display: flex;
}

.modal {
	padding: 30px 40px;
	background: white;
	border-radius:10px;
	box-shadow: 0 5px 10px rgba(0,0,0,0.25);
	text-align: center;
	width: min(400px,90%);
	display: none;
	position: relative;
	overflow:hidden;
}

.modal.withclose {
	padding-top: 45px;
}

.close-section {
    position: absolute;
    top: 0;
    left: 0;
    padding: 8px 10px;
    background: #ddd;
    width: 100%;
}

.close-section .closebtn {
	width: 12px;
	float: right;
	cursor:pointer;
}

.btn-container {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	margin-top: 30px;
}

button {
	font-size: 18px;
	margin-left: 15px;
	padding: 8px 30px;
	min-width: 91px;
	cursor: pointer;
}

button:first-child {
	margin-left: 0;
}

.list-container {
	width: 100%;
	max-width: 700px;
	overflow: hidden;
}

.stats.list-container {
	overflow: visible;
}

.delete {
	transform: translate(-60px,0);
}

.labelrow {
	font-size: 15px;
	color: #999;
	margin-bottom: 10px;
}

.list-container ul li {
	transition:0.3s all ease;
	position: relative;
}

.alf_poang {
    display: inline-block;
    padding: 2px 5px 1px 5px;
    border: 1px solid #111;
    margin-left: 8px;
    vertical-align: top;
    line-height: 1;
    font-size: 12px;
    margin-top: 3px;
}

.list-container ul li .delete-match {
	position: absolute;
	right: -60px;
	top: 0;
	height: 100%;
	background:var(--malbasrod);
	color:var(--vit);
	width: 60px;
	text-align:center;
	font-size: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom:3px;
}


.labelrow, .list-container ul li .items {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;	
}

.items.row2 {
	font-size:12px;
	text-transform: uppercase;
	margin-top: 8px;
}

.items.row2 .listtag {
	margin-right: 20px;
}

.listtag:before {
	content:url(images/icon-tag.svg);
	width: 10px;
	display: inline-block;
	margin-right:4px;
	vertical-align: top;
	margin-top: 1px;
}

body[data-device=mobile] .listtag:before {
	margin-top: 2px;
}

.items.row2 .motstandare:before {
	content:url(images/icon-ball.svg);
	width: 10px;
	display: inline-block;
	margin-right:5px;
	vertical-align: top;
	margin-top: 0px;
}

.items.row2 .resulttag {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-right: 5px;
    margin-bottom: -10px;
    margin-top: -2px;
    min-width: 20px;
}

.items.row2 .resulttag img {
	width: 20px;
}

body[data-device=mobile] .items.row2 .motstandare:before {
	margin-top: 0.5px;
}

.match {
	flex: 1;
	padding-right: 10px;
}

.list-container ul {
	margin:0 !important;
	padding:0 !important;
	
}

.list-container ul li {
	list-style:none;
	padding: 11px 0 15px;
	margin: 0 !important;
	border-bottom: 0.5px solid #bbb;
	line-height: 1.4;
	position: relative;
}

.list-container ul li:last-child {
	border:none;
}

.list-container ul li a {
	color: inherit;
}

.labelrow .datum, .list-container .datum {
	width: 120px;
}

body[data-device=mobile] .list-container .datum {
	font-size: 14px;
	width: 90px;
	margin-top:3px;
}


.labelrow .lock, .list-container .lock {
    width: 30px;
    cursor: pointer;
    position: relative;
    z-index: 7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lockicon {
	width: 10px;
}

body[data-device=mobile] .lockicon {
	margin-top: 0px;
}

li.locked .lockicon svg #unlocked {
	display: none;
}

li.locked .lockicon svg #locked {
	display: block;
}

li.unlocked .lockicon svg #unlocked {
	display: block;
}

li.unlocked .lockicon svg #locked {
	display: none;
}

.stats.list-container .row {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	flex-wrap:wrap;
}

.stats .col {
	text-align: center;
	padding: 6px 6px 12px;
	background: white;
	border-radius: 5px;
	box-shadow: 0 1px 2px rgba(0,0,0,0.15);
	position: relative;
	border-radius: 10px;
	margin:0 0 10px 10px;
	width: calc(33.3333333% - 6.6666666px);
}

.red .number {
	color: red;
}

.stats .col.malprocent procent {
	font-size: 0.35em;
}

.stats .col:nth-child(3n+1) {
	margin-left: 0;
}

.stats label {
	text-transform:uppercase;
	font-size: 13px;
}

.stats .number {
	font-size: 50px;
	font-weight: 600;
	line-height: 1;
}

#goalchart {
	width: 100% !important;
	height: auto;
}

.canvascontainer {
    margin-left: -20px;
    width: calc(100% + 25px);
}

.row.charts {
	flex-direction: column;
	margin-top: 10px;
}

.row.charts h2 {
	margin: 0 auto 7px auto !important;
}


footer.fixedsection {
	position: fixed;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 85px;
	background: var(--vit);
	z-index: 15;
	border-top: 1px solid #ddd;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-top: 8px;
}

.dev .footercomp {
	height: 65px;
}

.visa_tag {
	display: flex;
	margin: 10px 0 5px;
	font-size: 14px;
	text-transform: uppercase;
}

.visa_tag .minitag {
	margin-right: 8px;
	width: 16px;
	display: inline-block;
	vertical-align: top;
	margin-top: 2px;
}

.statsheading {
	text-align:center;
	font-size: 24px;
	margin: 20px 0 30px !important;
}

.filter-section {
	margin-bottom: 25px;
}

per {
	font-size: 0.8em !important;
}

.linkblock.lista {
	cursor:pointer;
}

#splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(images/splashimage.jpg) #ccc;
    background-size:cover;
    z-index: 100; /* Set a high z-index value to make it appear on top of other elements */
    display: none;
}

.mobile #splash {
	display: block;
}



/* pill checkbox */
.the-pill {
	margin-right: 15px;
}

.the-pill input[type="checkbox"] {
  display: none;
}
.the-pill input[type="checkbox"] + label {
  display: block;
  position: relative;
  width: 3em;
  height: 1.6em;
  margin-bottom: 20px;
  border-radius: 1em;
  background: #ddd;
  box-shadow: inset 0px 0px 5px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-transition: background 0.1s ease-in-out;
  transition: background 0.1s ease-in-out;
}
.the-pill input[type="checkbox"] + label:before {
  content: "";
  display: block;
  width: 1.2em;
  height: 1.2em;
  border-radius: 1em;
  background: #fff;
  box-shadow: 2px 0px 5px rgba(0, 0, 0, 0.05);
  position: absolute;
  left: 0.2em;
  top: 0.2em;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}
.the-pill input[type="checkbox"]:checked + label {
  background: var(--malbasrod);
}
.the-pill input[type="checkbox"]:checked + label:before {
  box-shadow: -2px 0px 5px rgba(0, 0, 0, 0.2);
  left: 1.6em;
}
/* the-pill end */

/* diffbox */
.diffsection {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.diffbox {
	background: #0aaf39;
	padding:4px 12px 6px 12px;
	border-radius:8px;
	font-size: 22px;
	width: 80px;
	text-align: center;
	font-weight: 800;
	color:var(--vit);
	visibility: hidden;
}

.diffbox.minus {
	background: var(--malbasrod);
}

/* end settings checkbox */