@import url("https://fonts.googleapis.com/css2?family=Dancing+Script&family=Lato&family=Roboto&display=swap");

/* Enkel reset */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: Roboto, sans-serif;
}

/* Ljust temas färger och standard */
:root {
	--primary-color: rgb(255, 92, 92);
	--primary-variant: #ff2d2d;
	--secondary-color: #1b9999;
	--on-primary: rgb(250, 250, 250);
	--on-background: rgb(66, 66, 66);
	--on-background-alt: rgba(66, 66, 66, 0.7);
	--background: rgb(255, 255, 255);
	--background-alt: rgba(255, 255, 255, 0.7);
	--box-shadow: 0 5px 20px 1px rgba(0, 0, 0, 0.5);
}

/* Mörkt temas färger */
.dark-theme {
	--primary-color: rgb(150, 65, 255);
	--primary-variant: #6c63ff;
	--secondary-color: #03dac5;
	--on-primary: #000;
	--on-background: rgba(255, 255, 255, 0.9);
	--on-background-alt: rgba(255, 255, 255, 0.7);
	--background: #121212;
	--background-alt: #12121281;
}

html {
	scroll-behavior: smooth;
}

body {
	color: var(--on-background);
	background-color: var(--background);
}

section {
	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	padding: 5px;
}

h1 {
	font-family: Dancing Script, sans-serif;
	font-size: 7rem;
	margin-bottom: 0;
	padding: 3rem;
}

h2 {
	color: var(--on-background-alt);
	font-size: 3rem;
	font-weight: normal;
	padding: 1.5rem;
}

p {
	color: var(--on-background-alt);
	font-size: 2rem;
}

/* Navigation */
nav {
	z-index: 10;
	position: fixed;
	font-family: Lato, sans-serif;
	text-transform: uppercase;
	font-size: 24px;
	letter-spacing: 3px;
	padding: 25px;
	width: 100vw;
	background-color: var(--background-alt);
}

a {
	margin-right: 25px;
	color: var(--primary-color);
	text-decoration: none;
	border-bottom: 3px solid transparent;
	font-weight: bold;
}

a:hover,
a:focus {
	color: var(--on-background);
	border-bottom: 3px solid;
}

/* Ljust och mörkt tema */
.theme-container {
	width: 6rem;
	height: 6rem;
	background-color: var(--background-alt);
	position: absolute;
	top: 7rem;
	right: 7rem;
	display: grid;
	place-items: center;
	border-radius: 50%;
	cursor: pointer;
}

.far {
	font-size: 3rem;
}

.theme-container i {
	font-size: 3rem;
}

/* Home Section */
.hero-image {
	z-index: -10;
	background-image: linear-gradient(to bottom, rgba(42, 46, 42, 0.2), rgba(132, 136, 132, 0.2)),
		url("img/hero.jpg");
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
}

.title-group {
	text-align: center;
	padding: 10px;
	border-radius: 20px;
	background-color: var(--primary-color);
	opacity: 0.9;
}

/* Om Mig och Projekt Section */
#slideDown {
	padding: 20px;
	background-color: var(--primary-color);
	cursor: pointer;
	color: var(--on-background);
	font-size: 2rem;
	border: 1px solid var(--primary-color);
	border-radius: 20px;
}
#panel {
	display: none;
}

.read-more,
.read-less {
	color: var(--primary-color);
	cursor: pointer;
}

.the-container {
	display: flex;
	padding-top: 1.5rem;
}

.text-container {
	text-align: center;
	max-width: 960px;
	padding-bottom: 3rem;
}

.image-container {
	border: 1px solid var(--secondary-color);
	border-radius: 10px;
	padding: 10px 20px;
	margin-right: 25px;
	width: auto;
	background: var(--background);
	box-shadow: var(--box-shadow);
}

img {
	height: 300px;
	width: 300px;
}

/* Kontakt Section */
form {
	border: 2px solid var(--primary-color);
	padding: 40px;
	width: 100%;
	max-width: 700px;
	border-radius: 20px;
}

input[type="text"],
input[type="email"],
textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid var(--primary-color);
	border-radius: 20px;
	box-sizing: border-box;
	margin-top: 6px;
	margin-bottom: 16px;
	resize: vertical;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
	border: 8px solid var(--primary-variant);
}

input[type="button"] {
	padding: 12px 24px;
	border-radius: 20px;
	outline: 0;
	border: 0;
	text-align: center;
}

.center {
	text-align: center;
}

.fab {
	font-size: 100px;
	margin-top: 5rem;
	margin-bottom: 5rem;
	margin-right: 50px;
	cursor: pointer;
	color: var(--primary-color);
}

.fab:hover {
	color: var(--on-background);
}

.top-on-page-text {
	cursor: pointer;
	background-color: var(--primary-color);
	padding: 20px;
	color: var(--on-background);
	font-size: 2rem;
	border: 1px solid var(--primary-color);
	border-radius: 20px;
}
