@import url('https://fonts.googleapis.com/css2?family=Open+Sans&family=Roboto+Slab:wght@700&display=swap');

:root {
	/*CHANGE EXISTING*/
    --primary-color: #004887;
    --button-color: #1e6aac;

	/*ADD NEW*/
	--got-green-primary: #007864;
	--got-green-secondary: #049078;
	--got-green-dark: #004639;
	--got-green-darker: #026250;
	--got-blue1: #004887;
	--got-blue2: #1e6aac;
	--got-ms-background: #f6f4f4;
	--got-ms-font-color: #444648;
	--logo-img: url("https://gotland.se/images/18.453d27bd18baba433d551d6/1699621830051/rg_logo_vit.svg");
	--footer-img: url("https://gotland.se//webdav/files/System/resources/graphics/rg_fot_2.svg");
	--max-width: 820px;
	
	
	/* SET FOR REM */
	font-size: 16px;
}

* { font-size: .875rem; }

/* HEADINGS */
.PortalLink, .MasterLegend, .StepLegend {
	color: var(--got-ms-font-color);
	font-family: "Roboto Slab", serif;
	font-weight: 700;
	font-style: normal;
}

h1, .MasterLegend { font-size: 1.625rem; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.125rem; }
h4, h5, h6 { font-size: 1rem; }


/* TRANSITIONS */
* {
	transition: all .2s ease-in-out;
}

button:hover {
	background-color: var(--got-blue1);
}

button:hover:enabled {
	opacity: 1;
}

/* BACKGROUND */
body {
	height: 100dvh;
	width: 100dvw;
	font-family: "Open Sans", sans-serif;
	color: var(--got-ms-font-color);
	background-color: var(--got-ms-background);
}

.MasterContainerDiv {
	height: auto;
    width: auto;
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
	margin: 0;
	background-color: var(--got-ms-background);
}

.MasterContainerDiv > * {
	width: 100%;
	max-width: var(--max-width);
	background-color: white;
	padding: 0 1.25rem;
}

/* HEADER */
.MasterLegend {
	width: 100%;
	max-width: 100dvw;
	margin-bottom: 0;
	padding: .75rem 1.25rem;
	background-color: var(--got-green-primary);
	color: white;
	text-align: right;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: .75rem solid var(--got-green-dark);
}

.MasterLegend::before {
	content: "";
	background-image: var(--logo-img);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: left;
	min-width: 135px;
	min-height: 52px;
	margin-right: 1rem;
}

/* MAIN CONTENT */
.MasterFieldset {
	padding: 1rem;
	margin: 1.5rem 0;
	min-height: auto;
	box-shadow: 0 3px 5px 0 rgb(0 0 0 / 15%);
	display: flex;
	flex-direction: column;
}

.MasterFieldset::after {
	margin-top: 1rem;
	font-style: italic;
	content: "Informationen kommer från verksamhetssystemet EDP Future.";
	display: block;
}

.PortalLinkContainer {
	padding-bottom: 1rem;
	border-bottom: 0.0625em solid #ccc;;
}

.PortalLink {
	text-decoration: underline;
}

.navigation-bar-icon-container {
	background-color: var(--got-blue1);
}

/* FOOTER */
.Footer {
	padding: 0;
	max-width: 100dvw;
	font-size: 0px;
	display: flex;
	flex-direction: column;
	background-color: var(--got-blue1);
}

.Footer::before {
	content: "";
	height: 20dvw;
    background: var(--footer-img);
    background-repeat: no-repeat;
    background-size: contain;
	background-position: bottom center;
    background-color: var(--got-ms-background);
}

.Footer::after {
	display: block;
	width: 100%;
	padding: 3rem 0;
	font-family: "Open Sans", sans-serif;
	text-align: center;
	color: white;
	background-color: var(--got-blue1);
	font-size: 0.85rem;
	content: "Vid frågor kontakta kundtjänst\A 0498 - 26 90 00 (Knappval 2)\A\ARegion Gotland";
	white-space: pre-wrap;
}

/* HIDE BUTTONS*/
.LogOutButton,.LogOutButton:link,.LogOutButton:visited{
	display:none;
}

.BackToPortalButton {
	display: none;
}

/* OUTLINE COLOR WHEN FOCUS*/
textarea:not([disabled]):focus, input:not([disabled]):not([type="submit"]):not([type="checkbox"]):focus, a:focus {
	outline-color: var(--button-color);
}

/* SPECIAL FOR ErrorPageGeneralTextLabel */
.ErrorPageGeneralTextLabel::after {
	display: block;
	margin-top: 1.25rem;
	font-weight: 400;
	content: "Detta kan bero på att abonnemanget \A står på en annan person, eller på en organisation. Om även du ska ha tillgång behöver du kontakta kundtjänst på 0498 - 26 90 00 (Knappval 2).";
}

/* MEDIA QUERIES */
/* MAX */
@media only screen and (max-width: 300px) {
	h1, .MasterLegend { font-size: 1.375rem; }
}

@media only screen and (max-width: 420px) { 
	.MasterLegend {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
		gap: .75rem;
	}
}

/* MIN */
@media only screen and (min-width: 420px) {
	.MasterLegend::before {
		min-width: 90px;
		min-height: 35px;
	}
} 

@media only screen and (min-width: 460px) {
	.MasterLegend {
		padding: 1.25rem 1.25rem 2rem 1.25rem;
		position: relative;
	}

	.MasterLegend::before {
		min-width: 135px;
		min-height: 52px;
	}

	/* .MasterLegend::after {
		content: "";
		background-image: url(./img/drawing.svg);
		height: 1.25rem;
		width: 100dvw;
		position: absolute;
		bottom: 0;
		right: 0;
		background-repeat: no-repeat;
    	background-size: cover;

	} */
}

@media only screen and (min-width: 620px) {
	h1, .MasterLegend { font-size: 1.625rem; }
}

@media only screen and (min-width: 820px) {
	* { font-size: 1rem; }

	h1, .MasterLegend { font-size: 2.25rem; }
	h2 { font-size: 1.625rem; }
	h3 { font-size: 1.375rem; }
	h4, h5, h6 { font-size: 1.125rem; }

	.MasterLegend {
		padding-left: calc(((100dvw - var(--max-width)) / 2) + 1.25rem);
		padding-right: calc(((100dvw - var(--max-width)) / 2) + 1.25rem);
		padding-bottom: 2rem;
	}
	
	.MasterLegend::before {
		min-width: 135px;
		min-height: 52px;
		align-self: center;
	}

	.MasterLegend::after {
		height: 1.5rem;
	}
}