/*

	orange:				rgb(236,103,15)
	röd					(228,25,25)
	lila				(138,30,58)
	cyan				(170,217,219)
	mörkcyan			(0,133,147)
	nästan-svart-cyan	(0,72,76)
	ljusgrå				(206,205,205)
	mellangrå			(158,158,158)	
	mörkgrå				(83,85,84)

*/
video::-webkit-media-controls {
    visibility: hidden;
}
video::-webkit-media-controls-enclosure {
    visibility: visible;
}
:root
{
	--darkBlue: rgb(8, 50, 80);
	--yellow: rgb(254, 193, 44);
	
    --clearBlueCTA: rgb(122, 215, 255);
	--middleBlue: rgb(58, 145, 206);
}
body, html
{
	margin: 0;
	padding: 0;
	color: var(--darkBlue);
}

.bad
{
	color: red;
}

*
{
	box-sizing: border-box;
}


body
{
	font-family: "Open Sans", "Droid Sans", sans-serif;
	font-size: 14px;
	background-color: var(--darkBlue);
}

div#mainContainer
{
	
	background-color: rgb(46, 110, 159);
}

a
{
	color: var(--darkBlue);
	text-decoration: underline;
}
a:hover
{
	color: rgb(0,72,76);
}


form#login input
{
	padding: 5px;
	border-radius: 10px;
	width: 217px;
}

form#login input[type="submit"]
{
	padding: 8px;
	background-color:black;
	color: white;
	
	margin-top: 1em;
	width: 38.2em;
}

/* body.local-dev
{
	background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' height='550px' width='400px'><text x='0' y='15' fill='green' font-size='20'>Local development server</text></svg>");
}

body.online-test
{
	background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' height='550px' width='400px'><text x='0' y='15' fill='red' font-size='20'>Online test server</text></svg>");
} */

h1, h2, h3
{
	color: var(--darkBlue);
}

h3, h4, h5
{
	color: var(--darkBlue);
}

div#mainContainer h1 { font-size: 2em; }
div#mainContainer h2 { font-size: 1.5em; }
div#mainContainer h3 { font-size: 1.3em; }
div#mainContainer h4 { font-size: 1.2em; font-weight: bold;}
div#mainContainer h5 { font-size: 1em; color: rgb(100,100,100);}
div#mainContainer h6 { font-size: .75em; }


section, nav, main
{
	display: block;
}

.wrapper
{
	max-width: 1170px;
	margin-left: auto;
	margin-right: auto;
	padding: 0 1em;
}

main.wrapper
{
	padding: 1em;
	background-color: white;
	margin-top: 2em;
	min-height: 30vh;
}


div#header
{
	border-bottom: 2px solid white;
	overflow: hidden;
	padding-bottom: 0.5em;
	background-color: var(--darkBlue);
	padding: 2em 0 2em 0;
}

div#header nav
{
	display: flex;
	gap: 10px;
	margin-top: 1em;
	flex-wrap: wrap;
}

div#header nav a
{
	color: rgb(220,220,220);
	text-decoration: none;
}

div#header nav a:hover
{
	color: white;
}

div#header div.logoText
{
	font-size: 4em;
	font-family: "Alegreya Sans", sans-serif;
	text-align: center;
	color: var(--yellow);
}


div#footer
{
	margin-top: 2em;
	background-color: var(--darkBlue);
	color: black;
}

div#footer > div.wrapper
{
	padding: 1em;
}

div#footer nav ul
{
	
	color: rgb(220,220,220);
	list-style-type: none;
	padding: 0;
}

div#footer nav ul li
{
	
	margin-bottom: 1em;
}

div#footer nav a
{
	color: white;
}

body#tickets div.ticketHeader
{
    /*display: flex;
    justify-content: space-between;*/
}

body#tickets div.ticketHeader div.statusInfo
{
	max-width: 500px;
}

body#tickets div.ticketHeader div.statusInfo p.statusExplanation span
{
	color: var(--darkBlue);
    text-decoration: underline;
	cursor: pointer;
}


body#tickets div#customerData
{
	display: flex;
}

/*
define("TS_RECEIVED", 	1);
	define("TS_REOPENED", 	2);
	define("TS_HANDLED", 	3);
	define("TS_CLOSED", 	4);
*/

body#tickets div.ticketHeader.status5 /* under dev */
{
	background-color: rgb(255,255,240);
}

body#tickets div.ticketHeader.status6, /* closed */
body#tickets div.ticketHeader.status7 /* closed */
{
	background-color: rgb(240,255,240);
}

body#tickets.new input.submit
{
	background-color: var(--yellow);
	color: var(--darkBlue);
	margin: 0;
	border-radius: 64px;
    height: 2.5em;
    padding: 0 1em;
    font-size: 1.2rem;
	text-align: center;
}

body#tickets.new .videoPlayer > h4 {
	margin-bottom: 0;
}


fieldset.responseContainer div.response
{
    margin-top: 3px;
    width: 60%;
    padding: 1em;
	padding-bottom: 0.4em;
	border-radius: 0.5em;
	margin-bottom: 1em;
	border: 1px solid var(--darkBlue);
	background-color: rgb(252,252,255);
}

fieldset.responseContainer div.response div.responseFooter
{
	margin-top: 2em;
	font-style: italic;
	font-size: 0.9em;
	text-align: right;
}

fieldset.responseContainer div.response.admin
{
}
fieldset.responseContainer div.response.new
{
	/*border-color: rgb(17, 161, 17);*/
}

fieldset.responseContainer div.response.user
{
    border-color: var(--yellow);
	background-color: rgb(255,255,252);
    margin-left: auto;
}


fieldset.responseContainer div.response p, fieldset.fieldsetProblemDescription div p
{
	margin-top: 0;
	margin-bottom: 0;
}
fieldset
{
	background-color: rgb(252,252,252);
	border-radius: 0.5em;
	border: 1px solid rgb(200,200,200);
	margin-bottom: 1em;
}

fieldset legend
{
	font-weight: bold;
}

div.whiteBox
{
	margin-top: 50px;
	max-width: 450px;
	width: auto;
	background-color: white;
	color: black;
	padding: 2em;
	padding-left: 5em;
	padding-right: 5em;
	
	border-radius: 15px;
	border-bottom-left-radius: 15px;
	border-bottom-right-radius: 15px;
	margin-left: auto;
	margin-right: auto;
}

div.whiteBox div.optionBox > a,
div.whiteBox div.optionBox > span
{
	display: block;
	padding: 1em;
	background-color: #fec12c;
	border-radius: 10px;
	margin-top: 1em;
	color: #083250;
	text-decoration: none;
	padding: 2em;
	padding-left: 90px;
	border: 1px solid  #083250;
	background-color: rgb(200,230,255);
	background-repeat: no-repeat;
	background-size: 50px;
	background-position: 15px center;
	font-size: 1.2em;
}

div.whiteBox div.optionBox > span.closed
{
	background-color: rgb(200,200,200);
	color: rgb(128,0,0);

}

div.whiteBox div.optionBox a:hover
{
	background-color: rgb(253,239,204);
  	border: 1px solid rgba(8,50,80,0.5);
}

div.whiteBox div.optionBox a.bankId
{

	background-image: url("/images/content/login/bankid-sv-50.png");
	
}

div.whiteBox div.optionBox a.password
{

	background-image: url("/images/content/login/password50.png");
}

div.whiteBox div.optionBox a.freja
{

	background-image: url("/images/content/login/freja50.png");
}

div.whiteBox div.optionBox * span.details
{
	margin-top: 5px;
	display: block;
	font-size: 0.7em;
}

img#freja-qr
{
	display: block;
	margin-left: auto;
	margin-right: auto;
}

body#tickets div.doubleColumn
{
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
}


body#tickets div.doubleColumn > *
{
	display: flex;
  flex-direction: column;
}

body#tickets div.doubleColumn > form
{
	max-width: 840px;
}

body#tickets div.doubleColumn > div.informationColumn
{
	width: 300px;
}

body#tickets div.doubleColumn > div.informationColumn section#videos
{
	max-height: 70vh;
	overflow: auto;
}

body#tickets div.doubleColumn div.informationColumn h2 span.material-symbols-outlined
{
	color: var(--middleBlue);
}

body#tickets div.doubleColumn div.informationColumn input#searchInformationalVideoInput
{
	width: 90%;
	max-width: 300px;
	padding: 0.5em;
}

body#tickets div.doubleColumn div.informationColumn div.movieContainer:not(:last-child)
{
	margin-bottom: 10px;
}
body#tickets div.moviePlaceholder
{
	background-color: silver;
	height: 100px;
	padding: 1em;
}

body#tickets div.ticketIsSolved
{
	border: 1px solid green;
	background-color: rgb(3, 131, 3);
	display: block;
	color: white;
	padding: 1em;
	text-decoration: none;
	text-align: center;
	border-radius: 0.5em;
	font-size: 1.2em;
}

body#tickets div.ticketIsSolved div:last-child
{
	display: block;
	margin-top: 0.5em;
	font-size: 0.8em;
}

body#tickets div.ticketHeader div#toolbox > a
{
	display: block;
	border: 1px solid silver;
	padding: 3px;
	margin-bottom: 3px;
	width: fit-content;
}

body#tickets div.ticketHeader div#toolbox > a.ticketTaken
{
	color: red;
	border-color: red;
}

body#tickets div.ticketHeader div#toolbox button > a
{
	text-decoration: none;
}

body#tickets div.ticketIsSolved:hover
{
	background-color: rgb(33, 173, 33);
	cursor: pointer;
}
dl
{
	display: grid;
	grid-template-columns: max-content auto;
}

dt
{
	grid-column-start: 1;
}

dd
{
	grid-column-start: 2;
}

details > summary {
	padding: 4px;
	width: 200px;
	background-color: #eeeeee;
	border: none;
	box-shadow: 1px 1px 2px #bbbbbb;
	cursor: pointer;
}
  
details > div.details {
background-color: #eeeeee;
padding: 4px;
margin: 0;
box-shadow: 1px 1px 2px #bbbbbb;
}



  

/* Styling for the text input  */
div#fakeTextArea{
	width:80%;
	min-height: 200px;
	border: 1px solid black;
	border-radius: 3px;
	padding: 5px;
	overflow: hidden;
	/*white-space: pre;*/
}

div#fakeTextArea img {
	display: block;
	max-width: 300px;
	max-height: 300px;
	/*max-width: 100%;
	max-height: 100%;*/
	object-fit: contain;
}

/* Styling for the text input end */

/* Styling for images in text and image popup start */
dialog#enlargeImageModal {
	max-width: 90vw;
	border: none;
	padding: 0 0.25em 0 0.25em;
	border-radius: 3px;
}
dialog#enlargeImageModal[open]::backdrop{
	animation: fade-in 1.5s;
}
dialog#enlargeImageModal::backdrop {
	background: rgba(0, 0, 0, 0.4);
}
dialog#enlargeImageModal > div { 
	text-align: right;
}


dialog#enlargeImageModal > img {
	object-fit: scale-down;
	max-width: 90vw;
}

div#imagePopupContainer {
	display:none;
	position: fixed;
	z-index: 9999;
	top: 50%;
    left: 50%;
	background-color: rgba(6,6,6, 0.25);
    transform: translate(-50%, -50%);
	border: 1px solid black;
	border-radius: 3px;
	box-shadow: 12px 12px 2px 1px rgba(0, 0, 255, .2);
	max-width: 80vw;
	max-height: 90vh; 
}
div#imagePopupContainer > div {
	position: absolute;
	right: -17px;
	top: -17px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 2px solid black;
	text-align: center;
	color: white;
	background-color: rgba(46, 110, 159, 0.75);
	cursor: pointer;
	font-size: 2rem;
}
div#imagePopupContainer > div:hover {
	background-color: var(--darkBlue);
}


img.embed {
	cursor: pointer;
	/*width: 50px;
	height: 50px;
	object-fit: fill;
	display: block;*/
	max-width: 90%;
	max-height: 150px;
}
/* Images end */

/* General modal close button start */
dialog span.closeModal {
	cursor: pointer;
	font-size: 2rem;
}
dialog span.closeModal::before {
	content: '\00D7';
}
dialog span.closeModal:hover {
	color: rgb(87, 87, 87);
}
/* General modal close button end */



/* image upload instructiondialog Start */
span#showModal {
	text-decoration: underline;
	font-weight: bold;
	cursor: pointer;
	position: relative;
}
span#showModal:hover {
	color: rgb(25,25,25);
}
span#showModal::after{
	position: absolute;
	content: '';
	height: 1px;
	bottom: 0px; 
	left: 0.6em;
	right: 0;
	width: 0;
	background: rgb(25,25,25);
}
span#showModal:hover::after {
	transition: .5s;
	width: 92.5%;
}

dialog::backdrop {
	background: rgba(0, 0, 0, 0.4);
}
dialog[open]::backdrop {
	animation: fade-in 1.5s;
} 

dialog.textModal {
	max-width: 40vw;
	min-width: 30vw;	
	border: 1px solid rgb(200,200,200);
	border-radius: 5px;
}

dialog#instructionModal[open] {
  	animation: slide-in-from-top 0.5s ;	  
}
dialog#instructionModal[open]::backdrop {
	animation: fade-in 1.5s;
}

dialog#instructionModal::backdrop{
	background: rgba(0, 0, 0, 0.4);
}

div.modalHeader {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
}

dialog#instructionModal button {
	float: right;
	color: rgb(70,70,70);
	border: 1px solid rgb(200,230,200);
	font-size: 1.3em;
	padding: 0.5em 1em;
	border-radius: 10px;
	cursor: pointer;
}

dialog#instructionModal button:hover {
	border-color: rgb(90,90,90);
	background-color: rgb(245,255,255);
}

/* not good for someone navigating with keyboard only */
dialog#instructionModal button:focus-visible , a{ 
	outline: none; 
}
/* image instruction dialog end */

a#closeCaseConfirmationButton {
	text-decoration: none;
    color: white;
	border: 1px solid green;
    background-color: rgb(3, 131, 3);
    display: block;
    padding: 1em;
    text-decoration: none;
    text-align: center;
    border-radius: 0.5em;
	width: 50%;
	margin: 0 auto;
}

a#closeCaseConfirmationButton:hover {
	background-color: rgb(33, 173, 33);
	cursor: pointer;
}

.statsContainer {
    display: flex;
    justify-content: space-between;
	flex-wrap: wrap;
}    
.statsContainer > div.statsCard
{
    padding: 1em;
    border-left: 1px solid var(--darkBlue);
	border-bottom: 1px solid var(--darkBlue);
	width: 25%;
	min-width: 227px;
}


/* frontpage.php start*/
#weeklyInfoContainer {
	display: flex;
	gap: 1em;
	justify-content: space-around;
}
#weeklyInfoContainer > div {
	border: 2px solid rgb(46, 110, 159);
	border-radius: 0.5em;
	padding: 1em;
	width: 100%;
}
#weeklyInfoContainer ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
/* frontpage.php end*/

@keyframes slide-in-from-top {
  from {
    transform: translateY(-25rem);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes zoom-image {
	from {
		transform:scale(0);
	} 
	to {
		transform:scale(1);
	}
}


*.iconWithText
{
	display: inline-flex;
	align-items: center;

	flex-wrap: nowrap;

	gap: 1em;

}

a.iconWithText
{
	text-decoration: none;
}


.material-symbols-outlined
{
font-family: 'Material Symbols Outlined';
font-weight: normal;
font-style: normal;
font-size: 24px;  /* Preferred icon size */
display: inline-block;
line-height: 1;
text-transform: none;
letter-spacing: normal;
word-wrap: normal;
white-space: nowrap;
direction: ltr;
}

.material-symbols-outlined.large
{
	font-size: 32px;
}

.material-symbols-outlined.midlarge
{
	font-size: 28px;
}

.material-symbols-outlined.medium
{
	font-size: 24px;
}

.material-symbols-outlined.small
{
	font-size: 20px;
}

.material-symbols-outlined.x-small
{
	font-size: 15px;
}

.material-symbols-outlined.inherit
{
	font-size: inherit;
}