@charset "utf-8";
/* CSS Document */

/* E-Card Modal Header 
#ecard-modal .mobile-modal-header {
    margin-bottom: 24px;
    text-align: center;
    padding-bottom: 16px;
}

#ecard-modal .mobile-modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
} */

/* E-Card Form Styling 
.ecard-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.ecard-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ecard-form label {
    font-weight: 600;
    color: #555;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ecard-title-text {
    font-family: "Shadows Into Light Two";
    font-size: clamp(20px, 4vw, 48px);
    font-weight: bold;
    color: #222;
    text-align: center;
    line-height: 1.2;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    word-wrap: break-word;
    max-width: 100%;
} */



/* E-Card Modal Overlay */
#ecard-modal.mobile-share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    padding: 10px;
    box-sizing: border-box;
}



@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}


.ecard-form input[type="text"]:focus,
.ecard-form textarea:focus {
    outline: none;
}

.char-counter {
    text-align: right;
    font-size: 24px;
    color: #888;
    margin-top: 2vh;
	margin-right: 2vw;
}

.char-counter span {
    display: inline-block;
    margin-left: 8px;
}

/* E-Card Modal Content Container */
#ecard-modal .mobile-modal-content {
    background-color: rgba(0,0,0,0.2);
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 25;    
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
}
	
/* E-Card Overlay Container */
.ecard-overlay-container {
    position: relative;
    width: 100%;
    height: auto;
    display: inline-block;
}

/* The base canvas image */
.ecard-overlay-container img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    opacity: 1;
    visibility: visible;
}

.ecard-outer-panel {
    position: absolute;
    top: 6%;
    left: 6%;
    right: 6%;
    bottom: 6%;
    background-color: rgba(0, 0, 0, 0.0);
    border-radius: clamp(15px, 2vw, 30px);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    pointer-events: none;
}

.ecard-inner-panel {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.0);
    border-radius: clamp(10px, 1.4vw, 20px);
    padding: clamp(20px, 5%, 60px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(15px, 3%, 30px);
}

/* EDITOR INPUT */
.ecard-form input[type="text"],
.ecard-form textarea {
    position: fixed;
    min-height: 100px;
    height: auto;
    width: 100vw;
    left: 0vw;
    top: 50vh;
    transform: translateY(-50%);
    padding: 20px 5%;
    background: rgba(0, 0, 0, 0);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: "Shadows Into Light Two";
    font-weight: 600;
    color: white;
    text-shadow:
        -2px -2px 0 black,
        0px -2px 0 black,
        2px -2px 0 black,
        -1px 0px 0 black,
        2px 0px 0 black,
        -2px 2px 0 black,
        0px 2px 0 black,
        2px 2px 0 black;
    text-align: center;
    word-wrap: break-word;
    white-space: pre-wrap;
    transition: all 0.2s ease;
    resize: none;
    overflow: hidden;
    box-sizing: border-box;
}

/* RENDERED MESSAGE */
.ecard-message-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    box-sizing: border-box;
    font-family: "Shadows Into Light Two";
    font-weight: 600;
    color: white;
    text-shadow:
        -2px -2px 0 black,
        0px -2px 0 black,
        2px -2px 0 black,
        -1px 0px 0 black,
        2px 0px 0 black,
        -2px 2px 0 black,
        0px 2px 0 black,
        2px 2px 0 black;
    text-align: center;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.ecard-create-btn {
    flex: 1;
	border: none;
    background: black;
	font-family: "Imprima", sans-serif;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ecard-create-btn:hover:not(:disabled) {
    background: #D5FF4F;
	color: black;
	font-weight: 600;s
}

.ecard-create-btn:disabled {
    cursor: not-allowed;
    background: #1B1B1B;
    box-shadow: none;
}

#ecard-modal .mobile-close-btn {
    background: black;
    color: white;
    border-radius: 8px;
	border: none;
	font-family: "Imprima", sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

#ecard-modal .mobile-close-btn:hover {
    background: #FF0000;
    color: white;
	font-weight: 600;
}

/* PORTRAIT MOBILE (up to 1099px wide) */
@media only screen and (orientation: portrait) and (max-width: 1099px) {
	
.ecard-form-border {
    position: fixed;
	background: rgba(0,0,0,0.1);
	height: 50vh;
	transform: translateY(-50%);
    width: 50vw;
    left: 25vw;
    top: 30vh;
	border: medium solid #D5FF4F;
	border-radius: 8px;
	z-index: 24;
}
	
.ecard-form input[type="text"],
.ecard-form textarea {
	position: fixed;
	max-height: 50vh;
	height: auto;
	width: 50vw;
	left: 25vw;
	top: 30vh;
	transform: translateY(-50%);
 	font-size: 2rem;
	line-height: 1.3;
	resize: none;
	overflow: hidden;
	border: none;
	z-index: 25;
}
    
.ecard-message-text {
	font-size: 4rem;
	line-height: 1.3;
}

.buttonBackdrop {
	position: fixed;
	width: 100vw;
	height: 10vh;
	background: #333;
	bottom: 0;
	left: 0;
}	
	
#ecard-modal .mobile-action-buttons {
    display: flex;
    padding: 12px;
    gap: 12px;
    flex-wrap: wrap;
	position: fixed;
	bottom: 2vh;
	font-size: 21px;
    font-weight: 600;
	z-index: 26;
}
	
.ecard-create-btn {
	height: auto;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 21px;
    font-weight: 500;
}
	
#ecard-modal .mobile-close-btn {
	font-size: 21px;
    font-weight: 500;
}
	
}

/* LANDSCAPE MOBILE/TABLET (480px to 1099px wide) */
@media only screen and (min-width: 480px) and (orientation: landscape) and (max-width: 1099px) {
	
.ecard-form-border {
    position: fixed;
	background: rgba(0,0,0,0.1);
	height: 80vh;
	top: 10vh;
	width: 90vw;
	left: 5vw;
	border: medium solid #D5FF4F;
	border-radius: 8px;
	z-index: 24;
}
	
.ecard-form input[type="text"],
.ecard-form textarea {
	height: 5vh;
	top: 50vh;
	width: 90vw;
	left: 5vw;
	font-size: 1rem;
	line-height: 1.2;
	border: none;
	resize: none;
	overflow: hidden;
	z-index: 25;
}
    
.ecard-message-text {
	font-size: 4rem;
	line-height: 1.3;
}
	
.buttonBackdrop {
	position: fixed;
	width: 100vw;
	height: 15vh;
	background: #333;
	bottom: 0;
	left: 0;
}
	
#ecard-modal .mobile-action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
	position: fixed;
	bottom: 8vh;
    font-size: 18px;
    font-weight: 600;
	z-index: 26;
}	
	
.ecard-create-btn {
    min-width: 100px;
	height: auto;
    padding: 1vh 1vw;
    border-radius: 8px;
    font-size: 21px;
    font-weight: 500;
}
	
#ecard-modal .mobile-close-btn {
	font-size: 21px;
    font-weight: 500;
}
	
}

/* DESKTOP (1100px and wider) */
@media only screen and (min-width: 1100px) {

.ecard-form-border {
    position: fixed;
	background: rgba(0,0,0,0.1);
	height: 95vh;
	width: 95vw;
	top: 2.5vh;
	left: 2.5vw;
	border: medium solid #D5FF4F;
	border-radius: 8px;
	z-index: 24;
}	
	
.ecard-form input[type="text"],
.ecard-form textarea {	
	max-height: 100vh;
	height: auto;
	wdith: 100vw;
 	top: 50vh;
	transform: translateY(-50%);
	font-size: 8rem;
	line-height: 1.2;
	padding: 20px 5%;
	border: none;
	resize: none;
	overflow: hidden;
	z-index: 25;
}
    
.ecard-message-text {
	font-size: 8rem;
	line-height: 1.3;
}
	
.buttonBackdrop {
	position: fixed;
	width: 100vw;
	height: 15vh;
	background: #333;
	bottom: 0;
	left: 0;
}
	
#ecard-modal .mobile-action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
	position: fixed;
	bottom: 2vh;
	right: 10vw;
	z-index: 26;
}
	
.ecard-create-btn {
    min-width: 100px;
	height: auto;
    padding: 2vh 2vw;
    border-radius: 8px;
    font-size: 24px;
    font-weight: 500;
}
	
#ecard-modal .mobile-close-btn {
	height: auto;
    padding: 2vh 2vw;
	font-size: 24px;
    font-weight: 500;
}
	
}