
:root {
	--font-family-title: "Fjalla One";
	--font-family-paragraph: "Proza Libre";

	--input-height: 5rem;
	--input-border-width: .2rem;
}



html {
	font-size: 62.5%;
}

body {
	margin: 0;
	padding: 0;
	line-height: 1.5;

	height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;

	background-image: url('../imgs/bg-hi-opti.jpg');
	background-size: 100% 100%;

	/* overflow: hidden; */
	/* overscroll-behavior: none; */

	font-family: var(--font-family-paragraph), sans-serif;
	font-size: 2rem;
}

h1, h2 {
	font-family: var(--font-family-title), sans-serif;
	font-size: 2.5rem;
	line-height: 1.5;
	text-transform: uppercase;
}

h2 {
	font-size: 3.2rem;
}


p, form {
	margin: 0 0 1.5rem 0;
}

a {
	color: black;
	font-weight: bold;
	text-decoration: underline;
	font-weight: bold;

	&:hover {
		text-decoration: none;
	}
}



.desktop-only {
	display: none;

	@media screen and (min-width: 760px) {
		display: inline;
	}
}


.container {
	/* outline: 2px dotted red; */
	max-width: 120rem;
	
	@media screen and (min-width: 760px) {
		/* gap: 10rem; */
		display: flex;
		width: 100%;
	}
}

.box {
	/* outline: 2px dotted red; */

	padding: 5rem;
	width: 100%;

	@media screen and (min-width: 760px) {
		display: flex;
		align-items: center;
		justify-content: right;
	}
}

.box2 {
	text-align: center;

	@media screen and (min-width: 760px) {
		justify-content: left;
	}

	&:before {
		content: "";
		display: block;
		background-color: white;

		width: 100%;
		height: 1px;
		margin: -5rem 0 5rem;

		@media screen and (min-width: 760px) {
			margin: 0;

			position: absolute;
			width: 1px;
			height: 80vh;
			right: 50%;
			top: 10%;
		}
	}
}

.icon-party {
	position: relative;
	top: -5px;
	text-decoration: none;
}

.logo {
	display: inline-block;
	width: 100%;
	max-width: 14rem;
	
	@media screen and (min-width: 760px) {
		max-width: 20rem;
	}
}



.email,
.button {
	height: var(--input-height);
	border-radius: 0;
	border: var(--input-border-width) solid black;
	vertical-align: middle;
}

.email {
	border-color: #fff;
	text-indent: 10px;

	width: calc(100% - var(--input-height) - var(--input-border-width));

	&:focus {
		outline: none;
		border-color: black;
	}
}

.button {
	display: inline-flex;
	justify-content: center;
	align-items: center;

	width: var(--input-height);
	margin: 0;
	vertical-align: middle;
	color: white;
	cursor: pointer;
	border-left: 0;
	background-color: black;

	&:focus {
		outline: none;
		border-color: white;
	}

	.icon {
		font-size: 37px;

		.sending & {
			display: none;
		}
	}
}

#mce-error-response,
div.mce_inline_error {
	color: red;
}

#mce-success-response,
#mce-error-response,
div.mce_inline_error {
	display: block;
	position: relative;
	margin: 1.25rem 0 0 3rem;

	&::before {
		content: "↳";
		display: block;
		position: absolute;
		left: -1.5rem;
		top: -.5rem;
	}
}


input.mce_inline_error {
	border-color: red;
}



.throbber {
	display: none;
	box-sizing: border-box;
	animation: rotation 1s linear infinite;

	width: 18px;
	height: 18px;
	border: 2px solid #FFF;
	border-right-color: transparent;
	border-radius: 50%;

	.sending & {
		display: inline-block;
	}
}

@keyframes rotation {
	0% { transform: rotate(0deg);	}
	100% { transform: rotate(360deg);	}
}



.language-switcher {
	position: absolute;
	top: 1rem;
	right: 1rem;

	a {
    line-height: 32px;
    font-size: 16px;
    color: black;

    text-decoration: none;
    &:hover { text-decoration: underline; }


    &:after {
      content: "";
      display: inline-block;
      width: 32px;
      height: 32px;
      background: url('../imgs/flags.png') no-repeat;
      background-size: 80px 32px;
      vertical-align: middle;
      margin-left: 10px;
    }

    &.nl:after {
			background-position: -50px 0;
	  }
	}
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}
