@font-face {
  font-family: 'Open Sans';
  src: url('OpenSans-Regular.ttf');
  src: url('OpenSans-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
	padding: 0 !important;
	background-color: #0d0314;
	background-image: url('byd-background.png'), linear-gradient(0deg, rgb(13, 3, 20) 5%, rgb(36, 13, 57) 55%, rgb(147, 53, 103) 97%);
	background-size: auto;
	background-repeat: no-repeat;
	background-position: top center;
	font-family: sans-serif;
	color: #fff;
	font-size: 14px;
	line-height: 1.3em;
	text-align: center;
	/*height: 100vh;*/
	margin: 0;
	padding: 10px;
	box-sizing: border-box;
}
body.lang-zh {
	background-color: #672c58;
	background-image: none;
}

h1 {
	font-weight: bold;
	font-size: 22px;
	line-height: 1.3em;
	text-transform: uppercase;
	margin-bottom: 0;
}
main {
	min-height: 125px;
	display: flex;
	flex-flow: column;
	justify-content: center;
	align-items: center;
}
.lang-zh main {
	background-image: url('byd-background.png');
	background-size: cover;
}
aside {
	display: none;
	justify-content: center;
  	align-items: center;
	background-color: rgba(0,0,0,0.9);
	color: #fff;
	position: fixed;
	z-index: 2;
	top: 0;
	width: 100%;
	height: 100%;
	left: 0;
}
	aside span {
		cursor: pointer;
		position: absolute;
		top: 5px;
		right: 10px;
		font-size: 44px;
		padding: 5px;
	}
	aside a {
		position: absolute;
		width: 170px;
		height: 30px;
		display: block;
		left: 50%;
		transform: translateX(-50%);
		bottom: 30px;
	}
img {
	vertical-align: top;
	margin: 0;
	max-width: 100%;
}
h2 {
	color: #ec6cb2;
	font-size: 30px;
	line-height: 1.3em;
}

.hero {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 40px;
	box-sizing: border-box;
	position: relative;	
	flex-flow: column;
	/*width: clamp(30%, 700px, 90%) !important;*/
	aspect-ratio: auto;
	padding: 40px;
	width: clamp(340px, 800px, 800px) !important;
}
.lang-zh .hero {
	margin-bottom: 40px;
}
	.hero img {
		position: relative;
		z-index: 1;
		width: 360px;
    margin-left: 90px;
	}
	.button {
		background-color: #e2268d;
		color: #fff;
		display: inline-block;
		font-family: 'Open Sans', sans-serif;
		font-size: clamp(20px, 28px, calc(1vw * 5));
		line-height: 1em;
		padding: 20px;
		border-radius: 40px;
		width: 280px;
		cursor: pointer;
		text-decoration: none;
		text-transform: uppercase;
	}
	.line-t1,
	.line-t2,
	.line-l1,
	.line-l2 {
		position: absolute;
		display: block;
		background-color: #fff;
		z-index: 1;
		mix-blend-mode: overlay;
	}
	.line-t1,
	.line-t2 {
		width: 100vw;
		height: 2px;
	}
	.line-t1 {
		top: -2px;
	}
	.line-t2 {
		bottom: -2px;
	}
	.line-l1,
	.line-l2 {
		height: 100vh;
		width: 2px;
	}
	.line-l1 {
		left: -2px;
	}
	.line-l2 {
		right: -2px;
	}

.section {
	width: 100%; 
	text-align: center;
	margin-top: 100px;
}
	.section p {
		font-size: 18px;
		line-height: 1.3em;
	}
footer {
	/*
	position: absolute;
	top: calc(100vh - 60px);
	left: 0;
	*/
	width: 100%;
	height: auto;
}
	footer .link {
		color: #b56d9d;
		cursor: pointer;
		font-size: 30px;
		line-height: 1.3em;
		font-family: 'Barlow-light', sans-serif;
	}

.notes {
  display: block;
  max-width: 1400px;
  margin-bottom: 80px;
}
  .notes > div {
    background-color: #0e0314;
    border-radius: 20px;
    padding: 30px;
		max-width: 500px;
		margin: 0 auto;
  }
    .notes h2 {
			color: #fff;
      font-size: 20px;
      line-height: 1.5em;
      margin: 20px 0;
    }
    .notes h2 img {
      vertical-align: -8px;
      margin: 0 15px;
    }
    .notes h2 > span {
      color: #eb2390;
    }
    .notes p {
			color: #baacc3;
      font-size: 16px;
      line-height: 1.3em;
    }
.newsletter {}
	.newsletter svg {
		margin-top: 30px;
	}
  /*
	.newsletter p {
		font-size: 18px;
		line-height: 1.2em;
	}
  */
	.newsletter input {
		padding: 12px 25px;
		border: 0;
		outline: 0;
		font-size: 19px;
		color: #e2268d;
		border-radius: 7px;
		max-width: 205px;
	}
	.newsletter button {
		cursor: pointer;
		padding: 12px 25px;
		border: 0;
		outline: 0;
		font-size: 19px;
		color: #fff;
		border-radius: 7px;
		background-color: #e2268d;
	}
	.newsletter input[name="email"] {
		margin: 0 5px;
	}
.wheel {
	background-image: url('wheel-bg.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  position: relative;
  margin-top: 30px;
	display: inline-block;
	max-width: 500px;
  max-height: 500px;
}
	.wheel canvas {
		
	}
	.pointer {
		position: absolute;
		top: -15px;
		left: 50%;
		transform: translateX(-50%);
		pointer-events: none;
	}
	.wheel > img {
		position: absolute;
		top: 80px;
		right: -140px;
	}
	.wheel .popup:not(.active) {
		display: none;
	}
	.wheel .popup {
		background-color: #c776ff;
		border-radius: 50px;
		width: 419px;
		padding: 30px;
		box-sizing: border-box;
		box-shadow: 0 30px 15px 5px rgba(0,0,0,0.5);
		position: absolute;
		top: 100px;
		left: 50%;
		transform: translateX(-50%);
	}
		.wheel .popup > div {
			background-image: url('byd-popup-bg.jpg');
			background-size: auto;
			background-repeat: no-repeat;
			background-position: top center;
			width: 358px;
			height: 235px;
			padding: 50px;
			box-sizing: border-box;
			color: #621b94;
			position: relative;
			display: flex;
  		align-items: center;
		}
		.wheel .popup .close {
			cursor: pointer;
			border-radius: 100%;
			background-color: #782aae;
			color: #c776ff;
			position: absolute;
			width: 23px;
			height: 23px;
			line-height: 23px;
			top: 30px;
			right: 30px;
			font-size: 24px;
  	font-weight: bold;
		}
		.wheel .popup .content p {
			font-size: 20px;
			line-height: 1.3em;
		}
.boxes {
	position: relative;
	display: flex;
	flex-flow: row;
	justify-content: center;
	margin-top: 80px;
}
	.boxes > img {
		position: absolute;
		right: calc(50% - 220px);
		transform: translateX(50%);
		top: -130px;
	}
	.lang-de .boxes > img {
		transform: translateX(120%) rotate(30deg);
	}
	.boxes > div {
		margin: 20px;
		display: inline-flex;
		flex-flow: column;
		box-sizing: border-box;
		max-width: 300px;
	}
    .boxes > div > div {
      display: flex;
      flex-flow: wrap;
      justify-content: center;
    }
    .boxes > div > div ~ div {
      margin-top: 20px;
    }
	.boxes textarea {
    opacity: 0;
    position: absolute;
    left: -9999px;
	}
	.boxes .copy-btn {
		background-color: #333333;
		color: #fff;
		width: 100%;
		padding: 3px 7px;
		cursor: pointer;
		box-sizing: border-box;
    margin-top: 10px;
		text-transform: uppercase;
	}
.language {
  background-color: rgba(255,255,255,0.15);
  border-bottom-right-radius: 30px;
  border-bottom-left-radius: 30px;
  max-width: 200px;
  margin: 0 auto 70px auto;
  padding: 15px 10px;
}
  .language span {
    cursor: pointer;
    display: inline-block;
  }
.dr-byd {
  background-color: #1d0a2d;
  max-width: 600px;
  border-radius: 30px;
  padding: 70px 20px;
  box-sizing: border-box;
  overflow: hidden;
}
  .dr-byd .wrap {
    overflow: hidden;
    position: relative;
  }
  .dr-byd h2 {
    margin-bottom: 0;
    margin-top: 0;
  }
  .dr-byd .collection {
    margin-top: 50px;
    margin-bottom: 50px;
    max-height: 560px;
    padding: 0 20px 80px 20px;
    box-sizing: border-box;
    overflow-y: scroll;
    scrollbar-color: #401d5e #d2acf3;
    scrollbar-width: auto;
    scrollbar-gutter: stable both-edges;
    position: relative;
  }
    .dr-byd .collection .entry {
      background-color: #fff;
      padding: 30px 20px;
      border-radius: 30px;
    }
    .dr-byd .collection .entry ~ .entry {
      margin-top: 20px;
    }
    .dr-byd .entry p {
      color: #1d0a2d;
      margin-top: 0;
      margin-bottom: 0;
    }
    .dr-byd .entry .user-name,
    .dr-byd .entry .answer-name {
      font-weight: 600;
    }
    .dr-byd .entry .answer-name {
      color: #e2268d;
      margin-top: 20px;
    }
  .dr-byd .collection + h2 {
    position: relative;
  }
  .dr-byd .shadow {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    box-shadow: 0 -35px 50px 35px #1d0a2d;
  }
  .dr-byd .button {
    font-weight: 600;
    border: 0;
    outline: 0;
    width: auto;
  }
.lang-zh .disclaimer {
	text-align: left;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
	margin-bottom: 50px;
  display: inline-flex;
  flex-flow: column;
  width: auto;
}
	.lang-zh .disclaimer img {
		margin-right: 10px;
	}
	.lang-zh .disclaimer p {
		margin-bottom: 40px;
	}

.daily-message canvas {
	width: 800px;
	max-width: 100%;
}

#xmas-container-1 {
  margin-top: 50px;
  overflow: hidden;

  p {
    margin-bottom: 0;
  }
  h2 {
    font-size: 48px;
    margin-top: 5px;
  }
  canvas {
    width: 800px;
    max-width: 100%;
  }
}

#new-year-container-1 {
  margin-top: 50px;
  overflow: hidden;

  p {
    margin-top: 0px;
    margin-bottom: 40px;
  }
  h2 {
    font-size: 48px;
    margin-top: 0px;
    margin-bottom: 5px;
  }
  canvas {
    width: 725px;
    max-width: 100%;
  }
}



@media (min-width: 768px) {
	/*
  .notes {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 50px;
  }
    .notes > div:nth-child(1) { grid-area: 1 / 1 / 2 / 2; }
    .notes > div:nth-child(2) { grid-area: 1 / 2 / 2 / 3; }
		*/
}	
@media (max-height: 1050px) {
	
}
@media (min-width: 1450px) {
	.hero {
		width: 1400px;
		/*margin-top: calc(50vh - (574px / 2));*/
	}
}
@media (max-width: 1450px) {
	.hero {
		width: 90%;
		padding: 40px;
		aspect-ratio: auto;
	}
}
@media (max-width: 768px) {
	body {
		background-size: 1100px;
    display: initial;
    padding: 0;
  }
	main {
		flex-flow: wrap;
	}
	.language {
		margin-bottom: 0;
	}
  .hero {
    margin-top: clamp(20px, 50%, 80px);
	}
  footer {
    position: static;
  }
	.button {
		width: auto;
		padding-left: 40px;
		padding-right: 40px;
	}
  .hero img {
    margin-left: 60px;
	}
	/*
  .notes {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 1fr);
    grid-row-gap: 50px;
    max-width: 90%;
  }
  .notes > div:nth-child(1) { grid-area: 1 / 1 / 2 / 2; }
  .notes > div:nth-child(2) { grid-area: 2 / 1 / 3 / 2; }
	*/
	.newsletter {
		display: flex;
  	flex-flow: column;
	}
		.newsletter > * {
			margin: 7px 0 !important;
		}
		.newsletter svg {
			margin-left: auto !important;
			margin-right: auto !important;
		}
	.boxes {
		flex-flow: wrap;	
	}
		.boxes > img {
			max-width: 120px;
			top: -40px;
			right: 20px;
			transform: rotate(30deg);
		}
		.lang-de .boxes > img {
			transform: translateX(0%) rotate(30deg);
			top: -60px;
		}
		.boxes > div {
			width: clamp(150px, 35%, 300px);
		}
	.wheel > img {
		top: auto;
		bottom: -40px;
		right: -10px;
		max-width: 110px;
		transform: rotate(45deg);
	}
	.lang-zh .disclaimer {
		display: block;
	}
}
