* {
    box-sizing: border-box;
}

body {
	max-inline-size: 100%;
	overflow-x: hidden;
}

/* Saavutettavuus */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
	/* Toolbarin yläpuolella. */
}

#content[tabindex="-1"]:focus {
	outline: 0;
}

h1 {
	font-size: 6vw;
	font-weight: bold;
	text-align: center;
	padding-bottom: 1rem;
}

h2 {
	font-size: 4vw;
	font-weight: 600;
}

h3 {
	font-size: 1.2rem;
	font-weight: 700;
}

img {
	height: auto;
}

button.navbar-toggler {
	outline: none;
}

.bg-light {
	background: rgba(255, 255, 255, 0.8)!important;
	border-radius: .3rem;
}

.bg-dark {
	background-color: #2d2d2d!important;
}

.modal-footer a {
	color: cadetblue;
	text-decoration: underline;
}

.custom-logo-link {
	margin: auto;
}

.custom-logo-link img {
	max-width: 25rem;
}

section h2 {
	text-align: left;
}

section p {
	font-size: 1.1rem;
}


section .btn {
	display: flex;
	margin: 1.5rem auto 0 auto;
	padding: 1rem;
	font-weight: 700;
	max-width: 100%;
	align-content: center;
	justify-content: center;
}

section img {
	max-width: 100%;
	height: auto;
	padding: 0;
}

.puhelin a {
	font-size: x-large;
}

form p {
	margin-top: .3rem;
}

form label {
	margin-bottom: .3rem;
}

nav li a {
	color:#f1f1f1;
	font-size: 1rem;
	font-weight: 600;
	display: block;
	border-radius: .2rem;
	transition: all 0.3s;
	padding: 1rem;
}

nav li a:hover {
	text-decoration: none;
	color: #1f1f1f;
	background-color: #f1f1f1;
}

.navbar-toggler {
	width: 95%;
	margin: 1rem auto;
	
	border: 2px solid #1f1f1f;
}

footer p {
	margin: 0;
}

.address {
	margin: 1rem;
}

footer img {
	max-width: 100%;
	max-height: 100px;
}

[class*="col-"] {
	width: 100%;
	padding: 0;
}

footer [class*="col-"] {
	text-align: center;
	margin-bottom: 0.5rem;
}

footer img {
	margin-bottom: 0.5rem;
}
@media screen and (max-width: 420px) {
	section .btn {
		font-size: 3vw;
	}
}

@media screen and (min-width: 768px) {

	[class*="col-"] {
		width: 100%;
		padding: inherit;
	}

	.custom-logo-link img {
		max-width: 50%;			
		margin: auto;
	}
	
	section {
		min-height: calc(100vh - 207px - 153px);
		display: flex;
		justify-content: center;
		align-items: center;
	}


	h1 {
		font-size: 2rem;
		text-align: left;
	}

	h2 {
		font-size: 1.3rem;
		text-align: left;
	}
	

	footer [class*="col-"] {
		text-align: left;
		padding-bottom: 0;
	}

	nav {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	nav li {
		margin-right: 1rem;
	}

	nav li a {
		padding: 0.5rem;
	}
	
	
}

@media screen and (min-width: 992px) {
	
	nav li {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.custom-logo-link img {
		max-width: 25rem;
	}
}