/* Fonts */
@font-face {
    font-family: 'JohnLennon';
    src: url('../fonts/JohnLennon.eot');
    src: url('../fonts/JohnLennon.eot?#iefix') format('embedded-opentype'),
        url('../fonts/JohnLennon.woff2') format('woff2'),
        url('../fonts/JohnLennon.woff') format('woff'),
        url('../fonts/JohnLennon.ttf') format('truetype'),
        url('../fonts/JohnLennon.svg#JohnLennon') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BPchildLefty';
    src: url('../fonts/BPchildLefty.eot');
    src: url('../fonts/BPchildLefty.eot?#iefix') format('embedded-opentype'),
        url('../fonts/BPchildLefty.woff2') format('woff2'),
        url('../fonts/BPchildLefty.woff') format('woff'),
        url('../fonts/BPchildLefty.ttf') format('truetype'),
        url('../fonts/BPchildLefty.svg#BPchildLefty') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Angelina';
    src: url('../fonts/Angelina.eot');
    src: url('../fonts/Angelina.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Angelina.woff2') format('woff2'),
        url('../fonts/Angelina.woff') format('woff'),
        url('../fonts/Angelina.ttf') format('truetype'),
        url('../fonts/Angelina.svg#Angelina') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Freestyle Script';
    src: url('../fonts/FreestyleScript-Regular.eot');
    src: url('../fonts/FreestyleScript-Regular.eot?#iefix') format('embedded-opentype'),
        url('../fonts/FreestyleScript-Regular.woff2') format('woff2'),
        url('../fonts/FreestyleScript-Regular.woff') format('woff'),
        url('../fonts/FreestyleScript-Regular.ttf') format('truetype'),
        url('../fonts/FreestyleScript-Regular.svg#FreestyleScript-Regular') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cookie';
    src: url('../fonts/Cookie-Regular.eot');
    src: url('../fonts/Cookie-Regular.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Cookie-Regular.woff2') format('woff2'),
        url('../fonts/Cookie-Regular.woff') format('woff'),
        url('../fonts/Cookie-Regular.ttf') format('truetype'),
        url('../fonts/Cookie-Regular.svg#Cookie-Regular') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Flower garden';
    src: url('../fonts/Flowergarden.eot');
    src: url('../fonts/Flowergarden.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Flowergarden.woff2') format('woff2'),
        url('../fonts/Flowergarden.woff') format('woff'),
        url('../fonts/Flowergarden.ttf') format('truetype'),
        url('../fonts/Flowergarden.svg#Flowergarden') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gabriola';
    src: url('../fonts/Gabriola.eot');
    src: url('../fonts/Gabriola.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Gabriola.woff2') format('woff2'),
        url('../fonts/Gabriola.woff') format('woff'),
        url('../fonts/Gabriola.ttf') format('truetype'),
        url('../fonts/Gabriola.svg#Gabriola') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Short Stack';
    src: url('../fonts/ShortStack.eot');
    src: url('../fonts/ShortStack.eot?#iefix') format('embedded-opentype'),
        url('../fonts/ShortStack.woff2') format('woff2'),
        url('../fonts/ShortStack.woff') format('woff'),
        url('../fonts/ShortStack.ttf') format('truetype'),
        url('../fonts/ShortStack.svg#ShortStack') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Annifont';
    src: url('../fonts/Annifont.eot');
    src: url('../fonts/Annifont.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Annifont.woff2') format('woff2'),
        url('../fonts/Annifont.woff') format('woff'),
        url('../fonts/Annifont.ttf') format('truetype'),
        url('../fonts/Annifont.svg#Annifont') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tempus Sans ITC';
    src: url('../fonts/TempusSansITC.eot');
    src: url('../fonts/TempusSansITC.eot?#iefix') format('embedded-opentype'),
        url('../fonts/TempusSansITC.woff2') format('woff2'),
        url('../fonts/TempusSansITC.woff') format('woff'),
        url('../fonts/TempusSansITC.ttf') format('truetype'),
        url('../fonts/TempusSansITC.svg#TempusSansITC') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Loader */
#ep-create-wrapper{
	position: relative;
	text-align: center;
	min-height: 80dvh;
	font-size: 20px;
	padding: 80px;
	background: none!important;
}

#ep-loading-overlay{
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0,0,0,0.5);
	z-index: 999;
	width: 100dvw;
	height: 100dvh;
}

#ep-loading-overlay.is-hidden{
	display: none;
}

#ep-create-wrapper button{
	background: #333;
    color: #fff;
    padding: 16px 20px;
    border: #000;
    border-radius: 3px;
	cursor: pointer;
}

#ep-create-wrapper button:hover{
	background-color: #000;
	transition: all 0.5s ease;
}
	
.ep-loading-spinner .spinner{
	width:40px;
	height:40px;
	border-radius:50%;
	border:4px solid rgba(0,0,0,0.15);
	border-top-color:#000;
	animation:ep-spin 1s linear infinite;
}

/* Animations */
@keyframes ep-spin{
	from{
		transform:rotate(0deg);
	}
	to{
		transform:rotate(360deg);
	}
}

/* Paper */
.paper{
	width:100%;
    max-width: 960px;
    min-height: 500px;
    margin: auto;
    border: 0;
    outline: 0;
    padding-top: var(--paper-top-h, 156px);
    padding-bottom: var(--paper-bottom-h, 73px);
    padding-left: 0;
    padding-right: 0;
    background-color: transparent;
    background-image: var(--paper-top), var(--paper-bottom), var(--paper-mid);
    background-position: 0 0, 0 100%, 0 0;
    background-size: 100% var(--paper-top-h, 156px), 100% var(--paper-bottom-h, 73px), 100% auto;
    background-repeat: no-repeat, no-repeat, round;
    background-origin: border-box, border-box, content-box;
    background-clip: border-box, border-box, content-box;
    font-size: 32px;
    line-height: 46px;
}

.paper textarea{
	width: 70%;
	height: auto;
	background: none!important;
	border: 0;
	outline: 0;
	font-size: 32px;
	line-height: 60px;
	overflow: hidden;
	text-align: left;
	margin-top: 10px;
	min-height: 48px;
}

.paper p{
	width:70%;
	text-align: left;
	margin: auto;
}

#ep-first-line, #ep-next-line{
	border-bottom:1px dashed #222;
}

#ep-last-words-wrap{
	margin-top:-110px;	
}

#ep-vis-wrap, #ep-vis2-wrap{
	display: block;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 2%;
    border-radius: 6px;
    border: 2px solid #ccc;
    max-width: 600px;
	font-size:24px; 
}

#ep-wait1, #ep-wait2{
	display: block;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 2%;
    border-radius: 6px;
    border: 2px solid #ccc;
    max-width: 600px;
	font-size:22px; 
	margin-top:20px;
}

#ep-wait1 label, #ep-wait2 label{
	font-size: 16px;
    display: block;
    margin: 0 0 -46px 0;
}

#ep-wait1 #ep-email1, #ep-wait2 #ep-email2{
	display: block;
    margin: auto;
    padding: 8px;	
}

#ep-lines, #ep-vis-words, #ep-vis-words-2{
	height: 32px;
	text-align: center;
	width: 38px;
	padding: 0;
}

#ep-create-wrapper button:hover{
	background-color: #000;
	transition: all 0.5s ease;
}

#ep-create-wrapper button.ep-minus, #ep-create-wrapper button.ep-plus{
    background-color: #cdcdcd;
    color: #333;
    padding: 8px 10px;
}

#ep-create-wrapper button.ep-minus:hover, #ep-create-wrapper button.ep-plus:hover{
	background-color: #999;
	transition: all 0.5s ease;
}

/* Remove native number spinners */
input[type="number"]{
	-webkit-appearance: textfield;
	-moz-appearance: textfield;
	appearance: textfield;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button{
	-webkit-appearance: none;
	margin: 0;
}

/* Compact +/- controls */
.ep-num{
	display:block;
	gap:.5rem;
	align-items:center;
	margin: 12px;
}
.ep-num button{
	line-height:1;
	padding:.25rem .5rem;
}

#ep-poem-inner .ep-fold, #ep-poem-inner .ep-fold img{
	width:100%;
}

#ep-email1-thanks, #ep-email2-thanks{
	font-size:16px;
	font-weight: bold;
}

#ep-completed-wrap{
	margin-top: 80px;
}

#ep-completed-list .ep-poem{
	margin: 40px auto;
	max-width: 600px;
}

#ep-completed-list .ep-poem .ep-fold{
	width:100%;
}

#ep-completed-list .ep-poem .ep-fold img{
	width:100%;
}

