.parisienne-regular {
	font-family: "Parisienne", cursive;
	font-weight: 400;
	font-style: normal;
  }

html{
	height: 100vh;
    width: 100vw;
	overflow: hidden;
}

body {
    height: 100vh;
    width: 100vw;
    background-image: url("bakgrunnblur3840.jpg");
    background-repeat: no-repeat;
	background-size: cover;
	background-position: right;
	margin: 0;
    font-family: helvetica, arial, sans-serif;
}

/* The Modal (background) */
.modal {
	display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 0px; /* Location of the box */
    padding-bottom: 100px;
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 80%;
}

/* Add Button fade-in */
@keyframes fadein {
    from { opacity:0;  }
    to { opacity:1; }
}


.frame{
	width: 800px;
	height: 350px;
	margin: 250px auto 0;
	position: relative;
	background: #435d77;
	border-radius:0 0 40px 40px; 
}
.button {
	border-radius: 10px;
	color: #fff;
	text-align: center;
	border: 2px solid #fff;
	animation-name: fadein;
	animation-duration: 5.4s
}
#button_open_envelope{
	width: 180px;
	height: 30px;
	position: absolute;
	z-index: 311;
	top: 350px;
	left: 300px;
	font-size: 26px;
	padding:15px 0;
	transition: all .3s ease-in-out;
}
.button:hover{
	background: #FFf;
	color: #081D3D;
	transform:scale(1.1);
	cursor: pointer;
}
#message{
	position: relative;
	width: 790px;
	min-height:500px;
	height: auto;
	text-align: left;
	background-image: url("bakgrunn3840.jpg");
	background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
	margin: 0 auto;
	top: 30px;
	box-shadow: 0 0 5px 2px #333;
	transition:2s ease-in-out;
	transition-delay:1.5s;
	z-index: 300;
}

.invitasjon {
	margin: 20px;
	color: white;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.left,.right,.top{width: 0;	height: 0;position:absolute;top:0;z-index: 310;}
.left{	
	border-left: 400px solid #081d3d;
	border-top: 260px solid transparent;
	border-bottom: 260px solid transparent;
}
.right{	
	border-right: 400px solid #081d3d;
	border-top: 260px solid transparent;
	border-bottom: 260px solid transparent;;
	left:400px;
}
.top{	
	border-right: 400px solid transparent;
	border-top: 300px solid #193e6e;
	border-left: 400px solid transparent;
	transition:transform 1s,border 1s, ease-in-out;
	transform-origin:top;
	transform:rotateX(0deg);
	z-index: 500;
}
.bottom{
	width: 800px;
	height: 290px;
	position: absolute;
	background: #072247;
	top: 260px;
	border-radius:0 0 30px 30px;
	z-index: 310; 
}

.open{
	transform-origin:top;
	transform:rotateX(180deg);
	transition:transform .7s,border .7s,z-index .7s ease-in-out;
	border-top: 200px solid #2c3e50;
	z-index: 200;
}
.pull{
    animation:message_animation 2s 1 ease-in-out;
    animation-fill-mode:forwards;
    animation-delay:.9s;
    transition:1.5s;
    transition-delay:1s;
    z-index: 500;
}

.put {
	animation: message_animation 2s 1 ease-in-out;
	animation-direction: reverse;
}

.close-container {
	position: absolute;
	bottom: 0;
	display: flex;
	flex-direction: row;
	justify-content: center;
	width: 100%;
	margin-bottom: 10px;
	animation-name: fadein;
	animation-duration: 5.4s
}

.hidden {
	display: none;
}

.close {
	border: 2px solid #888;
	padding: 10px ;
}

h1, p {
	font-family: "Patrick Hand SC", cursive;
 	font-weight: 400;
  	font-style: normal;
	font-size: 30px;
	text-shadow: black 2.5px 3px;
	line-height: 115%;
	margin: 0;
}

h1 {
	font-size: 50px;
}

#velkommen {
	font-family: "Parisienne", cursive;
	font-size: 50px;
    font-weight: 400;
    font-style: normal;
	line-height: 130%;
	text-shadow: black 2px 2px;
}

.even {
	font-family: "Parisienne", cursive;
	font-size: 55px;
    font-weight: 550;
    font-style: normal;
	line-height: 150%;
	position: relative;
	top: 15px;
}

.hilsen {
	margin-top:20px;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: flex-end;
}

.signatur {
	height: 55px;
	align-self: flex-start;
	top: 25px;
}

#ps {
	font-size: 20px;
	margin-top: 18px;
	position: relative;
	bottom: 0;
	text-align: right;
}



@keyframes message_animation {
	0%{
		transform:translatey(0px);
		z-index: 300;
		transition: 1s ease-in-out;
	}
	50%{
		transform:translatey(-540px);
		z-index: 300;
		transition: 1s ease-in-out;
	}
	51%{
		transform:translatey(-540px);
		z-index: 350;
		transition: 1s ease-in-out;
	}
	100%{
		transform:translatey(0px);
		z-index: 350;
		transition: 1s ease-in-out;
	}
}
