/* 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: clamp(14px, 4vw, 20px);
	padding: 6%;
	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: #000;
	color: #fff;
	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: clamp(22px, 4dvw, 32px);
	line-height: 2em;
}

.paper textarea{
	width: 70%;
	height: auto;
	background: none!important;
	border: 0;
	outline: 0;
	font-size: clamp(22px, 4dvw, 32px);
	line-height: 2em;
	overflow: hidden;
	text-align: left;
	margin-top: 3%;
	min-height: 50px;
	margin: 20px auto;
}

.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: -7dvw;
}

#ep-syllable-info{
	font-size: 0.5em;
}

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

#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;
	padding: 8px;
	width: 80%;
	margin: 0 auto 16px auto;
    border: 1px solid #999;
	text-align: center;
}

#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;
	cursor: pointer;
}
@media only screen and (max-width: 900px){
	#ep-completed-list .ep-poem .paper.ep-poem-paper{
		padding-top: 14vw!important;
	}
}

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

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

/* Modal */
html.ep-modal-open,
body.ep-modal-open{
	overflow:hidden;
}

#ep-modal{
	position:fixed;
	z-index:9999;
	top:0;
	left:0;
	right:0;
	bottom:0;
	background:rgba(0,0,0,.8);
	display:none;
	align-items:center;
	justify-content:center;
	padding:20px;
}

#ep-modal-inner{
	max-width:900px;
	max-height: 83dvh;
	top: -50px;
	margin:0 auto;
	padding: 20px 80px;
	overflow: auto;
	position:relative;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

#ep-modal-inner::-webkit-scrollbar {
	display:none;
}

#ep-modal-body{
	max-width:800px;
	margin:0 auto;
}

#ep-modal-close{
	position: fixed;
	top:10px;
	right:10px;
	background:transparent;
	border:none;
	font-size: 28px;
	cursor:pointer;
	color:#fff;
	border-radius: 50px;
	padding: 0 12px 16px 12px;
	width: 48px;
	height: 48px;
	line-height: 44px;
	text-align: center;
}

#ep-modal-close:hover{
	opacity:0.8;
}

#ep-modal .ep-poem{
	max-width:none;
	margin:0 auto;
}

.ep-modal-actions{
	margin: 20px auto;
	text-align:center;
	position: fixed;
	bottom: 59px;
	width: 100%;
	left: 0;
	bottom: 40px;
	background-color: #ccc;
	padding: 20px;
}

.ep-modal-actions button{
	font-size:16px;
	padding:8px 18px;
	cursor:pointer;
	border-radius: 3px;
}

.ep-modal-actions button:hover{
	opacity:0.8;
}

/* Editing */
#ep-my-lines-wrap{
	margin-top:20px;
}

#ep-my-lines-list .ep-my-line{
	margin:6px 0;
}

#ep-my-lines-list .ep-my-line-text{
	display:inline-block;
	margin-right:8px;
}

#ep-my-lines-list button{
	margin-left:6px;
}


