/* DEFAULT */

* {
	box-sizing: border-box;
}

/* använder body, html för att sätta marginaler och bakgrund m.m. */

body, html {
	height: 100%;
	background-color: #c0c0c0;
	margin: 0px auto !important;
	padding: 0px;
	max-width: 900px;
	float: none;
}

/* LAYOUT */

.wrapper {
	height: 100%;
	background-color: #f1f1f1;
	display: flex;
	flex-wrap: wrap;
}

.column {
	float: left;
	flex: 60%;
	padding: 10px;
	background-color: #f1f1f1;
	height: 100%;
}

.column2 {
	float: left;
	flex: 20%;
	padding: 10px;
	background-color: #f1f1f1;
	height: 100%;
}

@media (max-width: 650px) {
	.column, .column2 {
		flex: 100%;
	}
}

/* BAKGRUNDS-DIV */

.background-div {
	left: 0;
	width: 100%;
	height: 100px;
	background-image: url("Seamless-Vintage-Floral-Design-Mark-II-Pattern-7.svg"); /* bild som bakgrund i div/valfritt element */
	opacity: 0.9; /* opacity */
}

/* FOOTER */

.footer {
	left: 0;
	width: 100%;
	height: 100%;
	display: inline-block;
	background-color: #333333;
	color: #ffffff;
	text-align: center;
	margin-bottom: 0px;
	padding-top: 10px;
}

/* MENY -  NAVBAR med ul-list */

.container {
	width: 100%;
	margin: 0 auto;
	padding: 0px 50px 0px 50px;
	background-color: #333333;

	/* ANIMATION */
	width: 100%;
	overflow: hidden;
}

div.container h1 {
	font-family: "Sofia", sans-serif;
	font-size: 2.5em;
	color: #ffffff;
	text-shadow: 2px 2px #000000;
	animation: slide-left 2s;
}

.container-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

nav ul { /* descendant selector nav - ul */
	list-style: none;
	padding: 0;
	display: flex;
}

nav li {
	margin-left: 2em;
}

nav a {
	text-decoration: none;
	color: #ffffff;
	transition: 1s; /* transitions */
}

nav a:hover, nav a:focus {
	color: #fd5f00;
}

@media (max-width: 650px) {
  .container {
    text-align: center;
  }

  .container-nav {
    flex-direction: column;
  }

  nav ul {
    flex-direction: column;
  }

  nav li {
    margin: 0.8em 0;
  }
}

/* TEXT */

p {
	font-family: "Roboto";
	font-size: 0.9em;
}

p.image-description {
	text-align: center;
}

p.center {
	text-align: center;
}

p.link {
	text-align: center;
}

p.quote {
	font-family: Times;
	font-size: 0.9em;
	color: #000000;
	text-align: center;
	background-color: lightblue;
	padding-top: 2px;
	border-radius: 4px;
}

/* LISTA - descendant selector */

ul li {
	font-family: "Roboto";
}

div.header h1 { 
	font-family: "Sofia", sans-serif;
	text-shadow: 2px 2px #000000;
	animation: slide-left 2s;
}

div.footer h1 { 
	text-align: center;
	font-family: "Sofia", sans-serif;
	font-size: 2.5em;
	margin: 0;
	text-shadow: 2px 2px #000000;
}

h2 { 
	font-family: "Roboto";
	font-size: 1.5em;
	text-align: center;
	text-shadow: 2px 2px #c0c0c0;
}

a { 
	color: #666666;
	text-decoration: underline;
	font-family: "Roboto";
}

#start {
	font-family: "Sofia", sans-serif;
	font-size: 1em;
	color: #ffffff;
	text-decoration: none;
}

/* IMAGE */

.center-img {
	display: block;
	margin-left: auto;
	margin-right: auto;
	width: 70%;
	opacity: 0.9; /* opacity */
	border: 1px dashed #000000;
	border-radius: 15px 50px 30px 5px; /* rounded corners */
}

/* FORM */

textarea, input {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

div.form {
	display: flex;
	text-align: center;
}

form {
	display: inline-block;
	margin-left: auto;
	margin-right: auto;
	width: 80%;	
}

@media (max-width: 650px) {
	div.form, .form {
		flex: 100%;
	}
}

input {
	font-family: "Roboto";
	font-size: 1em;
	width: 100%;
	padding: 12px 20px;
	margin: 4px 0;
	border:  1px solid #000000;
	border-radius: 4px;
}

input:focus {
	background-color: lightblue;
}

button {
	font-family: "Roboto";
	font-size: 1em;
	width: 100%;
	background-color: #333333;
	color: #ffffff;
	text-decoration: none;
	border-radius: 4px;
	margin: 4px 0;
	padding: 12px 20px;
}

textarea {
	font-family: "Roboto";
	font-size: 1em;
	resize: none;
	width: 100%;
	height:	150px;
	margin: 4px 0;
	padding: 12px 20px;
	border:  1px solid #000000;
	border-radius: 4px;
}

textarea:focus {
	background-color: lightblue;
}

/* ANIMATION */

@keyframes slide-left {
  from {
    margin-left: 100%;
    width: 300%; 
  }

  to {
    margin-left: 0%;
    width: 100%;
  }
}
