:root {
	--main-white: #ffffff;
	--main-black: #000000;
	--main-yellow: #f8dd9f;
}

/* base reset */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	font-size: 62.5%;
	scroll-behavior: smooth;
}

body {
	font-family: 'Poppins', sans-serif;
	color: var(--main-white);
	height: 100vh;
}

h1,
h2 {
	font-family: 'DM Serif Display', sans-serif;
}

a {
	text-decoration: none;
	font-size: 1.6rem;
}

a:hover {
	color: lightgray;
}

li {
	list-style: none;
}

/* header */

header {
	position: relative;
	padding: 2rem 2rem;
	padding-bottom: 4rem;
}

.navbar {
	width: 100%;
	height: 6rem;
	max-width: 120rem;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.navbar .logo {
	max-height: 100%;
}

.navbar .links {
	display: flex;
	gap: 4rem;
}

.navbar .links a {
	color: var(--main-black);
	font-weight: lighter;
}

.action_btn {
	background-color: var(--main-black);
	color: var(--main-white);
	padding: 1.2rem 2.4rem;
	border: none;
	outline: none;
	border-radius: 0.5rem;
	font-size: 1.5rem;
	font-weight: bold;
	cursor: pointer;
	transition: scale 0.2 ease;
}

.action_btn:hover {
	scale: 1.05;
}

.action_btn:active {
	scale: 0.95;
}

/* welcome-section */

#welcome-section {
	height: calc(100vh - 6rem);
	background-image: url(Materiale/topbillede.jpg);
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center center;
	max-width: auto;
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	justify-content: center;
	color: var(--main-white);
	padding: 20rem 9%;
}

#welcome-section .wlcm-content {
	flex: 1 1 40rem;
}

.wlcm-content h1 {
	font-size: 6rem;
	color: var(--main-white);
	text-shadow: 0.1rem 0.1rem var(--main-black);
}

.wlcm-content p {
	font-size: 1.4rem;
	color: var(--main-white);
	text-shadow: 0.1rem 0.1rem var(--main-black);
	margin-bottom: 2rem;
}

.action_btn_wlcm {
	background-color: var(--main-white);
	color: var(--main-black);
	padding: 1.2rem 2.4rem;
	border: none;
	outline: none;
	border-radius: 0.5rem;
	font-size: 1.5rem;
	font-weight: bold;
	cursor: pointer;
}

.action_btn_wlcm:hover {
	scale: 1.05;
}

.action_btn_wlcm:active {
	scale: 0.95;
}

/* menupunkt #1 section */

#menupunkt1 {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	justify-content: center;
	align-items: center;
	background-color: var(--main-yellow);
	padding: 15rem 9%;
}

.mp1-content {
	width: 100%;
	margin: auto;
	text-align: center;
}

.mp1-content h1 {
	font-size: 6rem;
	color: var(--main-black);
}

.mp1-content p {
	font-size: 1.2rem;
	color: var(--main-black);
	margin-bottom: 4rem;
}

.action_btn_mp1 {
	background-color: var(--main-black);
	color: var(--main-white);
	padding: 1.2rem 2.4rem;
	border: none;
	outline: none;
	border-radius: 0.5rem;
	font-size: 1.5rem;
	font-weight: bold;
	cursor: pointer;
}

.action_btn_mp1:hover {
	scale: 1.05;
}

.action_btn_mp1:active {
	scale: 0.95;
}

/* menupunkt #2 section */

#menupunkt2 {
	width: 90%;
	margin: 0 auto;
	padding: 1rem 2rem;
}

#menupunkt2 .mp2-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}

#menupunkt2 .mp2-content h1 {
	font-size: 6rem;
	color: var(--main-black);
}

.mp2-content p {
	font-size: 1.2rem;
	color: var(--main-black);
	margin-bottom: 4rem;
}

#menupunkt2 .img_mp2 {
	flex: 1;
	margin-right: 8rem;
	margin-top: 15rem;
	margin-bottom: 15rem;
	overflow: hidden;
}

#menupunkt2 .img_mp2 img {
	max-width: 100%;
	height: auto;
	display: block;
}
.mp2_textbox {
	flex: 1;
}

.action_btn_mp2 {
	background-color: var(--main-black);
	color: var(--main-white);
	padding: 1.2rem 2.4rem;
	border: none;
	outline: none;
	border-radius: 0.5rem;
	font-size: 1.5rem;
	font-weight: bold;
	cursor: pointer;
}

.action_btn_mp2:hover {
	scale: 1.05;
}

.action_btn_mp2:active {
	scale: 0.95;
}

/* menupunkt #3 section */

#menupunkt3 {
	background-color: var(--main-white);
}

.card-container {
	display: flex;
	flex-wrap: wrap;
}

.card {
	flex: 1 1 30%;
	margin: 0;
	overflow: hidden;
	margin-bottom: 20px;
}

.card-image {
	position: relative;
	height: 60rem;
	background-size: cover;
	background-position: center;
	color: var(--main-white);
	text-align: center;
}

.card-image h1 {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	margin: 0;
	font-size: 5rem;
	color: var(--main-white);
	text-shadow: 0.1rem 0.1rem var(--main-black);
}

.image1 {
	background-image: url('Materiale/ydelser.jpg');
}

.image2 {
	background-image: url('Materiale/service.jpg');
}

.image3 {
	background-image: url('Materiale/kontaktos.jpg');
}

/* menupunkt #4 section */

#menupunkt4 {
	width: 90%;
	margin: 0 auto;
	padding: 1rem 2rem;
}

#menupunkt4 .mp4-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}

#menupunkt4 .mp4-content h1 {
	font-size: 6rem;
	color: var(--main-black);
}

.mp4-content p {
	font-size: 1.2rem;
	color: var(--main-black);
	margin-bottom: 4rem;
}

#menupunkt4 .img_mp4 {
	flex: 1;
	margin-right: 8rem;
	margin-top: 15rem;
	margin-bottom: 15rem;
	overflow: hidden;
}

#menupunkt4 .img_mp4 img {
	max-width: 100%;
	height: auto;
	display: block;
}
.mp4_textbox {
	flex: 1;
}

.action_btn_mp4 {
	background-color: var(--main-black);
	color: var(--main-white);
	padding: 1.2rem 2.4rem;
	border: none;
	outline: none;
	border-radius: 0.5rem;
	font-size: 1.5rem;
	font-weight: bold;
	cursor: pointer;
}

.action_btn_mp4:hover {
	scale: 1.05;
}

.action_btn_mp4:active {
	scale: 0.95;
}

/* menupunkt5 section */

#menupunkt5 {
	background-color: var(--main-yellow);
}

#menupunkt5 .mp5-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	width: 90%;
	margin: 0 auto;
	padding: 1rem 2rem;
}

#menupunkt5 .mp5-textbox h1 {
	font-size: 6rem;
	color: var(--main-black);
}

.mp5-textbox h3 {
	font-size: 2rem;
	color: var(--main-black);
	margin-bottom: 1rem;
}

.mp5-textbox p {
	font-size: 1.2rem;
	color: var(--main-black);
	margin-bottom: 4rem;
}

.contact-form-container {
	display: flex;
	flex: 1;
	margin-right: 5rem;
	margin-top: 15rem;
	margin-bottom: 15rem;
	margin-left: 20rem;
}

input {
	background-color: var(--main-white);
	width: 100%;
	height: 2rem;
	font-size: 1.4rem;
	padding: 1.6rem 1.6rem;
	border-radius: 1rem;
	border-color: transparent;
	margin-bottom: 2rem;
}

input:focus-within {
	outline: none;
	border-color: transparent;
}

textarea {
	background-color: var(--main-white);
	width: 100%;
	height: 8rem;
	font-size: 1.4rem;
	padding: 1.2rem 1.6rem;
	border-radius: 1rem;
	border-color: transparent;
	margin-bottom: 1.5rem;
}

textarea:focus-within {
	outline: none;
	border-color: transparent;
}

.form-btn {
	background-color: var(--main-black);
	color: var(--main-white);
	padding: 1.2rem 5rem;
	border: 0.1rem solid grey;
	outline: none;
	border-radius: 0.5rem;
	font-size: 1.5rem;
	cursor: pointer;
	margin: auto;
	float: right;
}

.form-btn:hover {
	scale: 1.05;
}

.form-btn:active {
	scale: 0.95;
}

/* footer section */

.footer {
	background-color: var(--main-black);
	padding: 7rem 0;
}

.footer-container {
	max-width: 117rem;
	margin: auto;
}

.row {
	display: flex;
	flex-wrap: wrap;
}

.footer-card {
	width: 25%;
	padding: 0 1.5rem;
}

.footer-card h1 {
	font-size: 2.8rem;
	color: var(--main-white);
	margin-bottom: 1rem;
	position: relative;
}

.footer-find {
	margin-bottom: 2rem;
}

.footer-card ul li a {
	font-size: 1.2rem;
	color: var(--main-white);
}

.footer-card ul li a:hover {
	color: lightgrey;
}

.footer-socials {
	display: flex;
	align-items: center;
	margin-left: 1rem;
}

.sm-icon {
	width: 2rem;
	height: 2rem;
	margin: 0.4rem;
}

/* responsiveness */

@media screen and (max-width: 768px) {
	.navbar {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.navbar .logo,
	.navbar .links,
	.action_btn {
		width: 100%;
		margin-bottom: 1rem;
	}
	.navbar .links {
		flex-direction: column;
	}

	.navbar .logo {
		margin-bottom: 4rem;
	}
}

@media screen and (max-width: 768px) {
	.card {
		flex: 1 1 100%;
	}

	.contact-form-container {
		margin: 5rem auto; /* Adjust margin */
		padding: 0 1rem; /* Adjust padding */
	}

	input,
	textarea {
		margin-left: 0; /* Remove left margin */
	}

	.form-btn {
		padding: 1.2rem 2.4rem; /* Adjust button padding */
	}
}
