@font-face {
    font-family: 'Mona Sans';
    font-style: normal;
    font-display: swap;
    font-weight: 200 900;
    src: url('https://cdn.jsdelivr.net/fontsource/fonts/mona-sans:vf@latest/latin-wght-normal.woff2') format('woff2-variations');
}

*, *::before, *::after{
    box-sizing: border-box;
}

*{
    margin: 0; 
    padding: 0; 
}

ul[role='list'], ol[role='list']{
    list-style: none; 
}

html:focus-within{
    scroll-behavior: smooth; 
}

a:not([class]){
    text-decoration-skip-ink: auto; 
}

img, picture, svg, video, canvas{
    max-width: 100%;
    height: auto; 
    vertical-align: middle; 
    font-style: italic; 
    background-repeat: no-repeat; 
    background-size: cover;
}

input, button, textarea, select{
    font: inherit; 
}

body, html{
    height: 100%; 
    scroll-behavior: smooth;
    font-family: 'Mona Sans', sans-serif !important;
}

/* My content ================================================================================ */

body {
    background: #FFD8D9;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding-top: 645px;
}

#ls-main-img {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;

    width: 100%;
    max-width: 430px;
}

#ls-main-img::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    transform: translateY(1px);
    background: linear-gradient(180deg, rgba(255, 216, 217, 0) 79.04%, #FFD8D9 100%);
    z-index: 3;
}

#ls-main-img img {
    position: relative;
    z-index: 1;
}

#ls-main-content-padding {
    position: relative;
    z-index: 3;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 64px;

    padding: 64px 24px;

    background: #FFD8D9;
}

/* Gradient strip riding above the panel so the fixed photo dissolves into the
   panel colour at every scroll position, instead of a hard seam. */
#ls-main-content-padding::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -140px;

    height: 140px;

    background: linear-gradient(180deg, rgba(255, 216, 217, 0) 0%, #FFD8D9 100%);
    pointer-events: none;
}

#ls-upload-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;

    width: 100%;

    opacity: 0;
    transform: translateX(-25px);
    transition: all 0.3s ease-in-out;
}

#ls-invite {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;

    width: 100%;

    opacity: 0;
    transform: translateX(-25px);
    transition: all 0.3s ease-in-out;
}

#ls-invite h1 {
    display: block;
    max-width: 320px;

    font-family: 'Abril Fatface', serif;
    font-weight: 400;
    font-size: 64px;
    line-height: 68px;
    letter-spacing: 0;
    text-align: center;
    color: #351913;
}

#ls-upload-image h2 {
    display: block;
    max-width: 300px;

    font-weight: 700;
    font-size: 40px;
    line-height: 48px;
    letter-spacing: -0.5px;
    text-align: center;
    color: #351913;
}

.ls-subtitle {
    font-family: 'Caveat', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 1;
    color: #E05856;
}

#ls-invite p,
#ls-upload-image p {
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.5px;
    text-align: center;
    color: #351913;
}

.ls-slideshow-link {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 56px;
    margin-top: 8px;

    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.5px;
    text-align: center;
    text-decoration: none;
    color: #ffffff;

    background-color: #E05856;
    border-radius: 8px;
}

#ls-upload-image form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 340px;

    border: 2px dashed #ffb2b7;
    border-radius: 24px;
    background: #FFEAEA;
}

#ls-upload-image form label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;

    width: 100%;
    height: 100%;

    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.5px;
    text-align: center;

    color:#B0ACA9;
}

#ls-upload-image form label img {
    width: 48px;
    height: 48px;
}

.ls-welcome-modal div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ls-welcome-modal label {
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.5px;
    text-align: center;
    color: #B6B6B6;
}

.ls-welcome-modal label.ls-title {
    color: #351913;
}

.ls-preview-modal, .ls-welcome-modal {
    display: none;
}

.ls-preview-modal.is--active, .ls-welcome-modal.is--active {
    display: block;
}

.ls-preview-modal .ls-overlay, .ls-welcome-modal .ls-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 13;

    width: 100%;
    height: 100%;

    background-color: rgba(0, 0, 0, 0.5);
}

.ls-preview-modal-content, .ls-welcome-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 14;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;

    width: 90%;
    max-height: 90vh;
    padding: 24px;

    background-color: #ffffff;
    border-radius: 24px;
}

.ls-preview-modal-content {
    padding: 24px 0;
}

.ls-preview-modal-content .ls-preview-modal-image {
    display: flex;
    align-items: center;
    gap: 24px;

    width: 100%;
    padding: 22px 32px;
    margin-bottom: 24px;

    overflow: auto visible;
    overflow-y: hidden;
}

.ls-preview-modal-content .ls-preview-modal-image .ls-photo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;

    height: fit-content;
    min-width: 80%;
    padding: 12px;

    box-shadow: 0px 4px 15px 0px #00000040;
    border-radius: 14px;
    transform: rotate(-4deg);
}

.ls-preview-modal-content .ls-preview-modal-image .ls-photo div {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    height: 50px;
    padding: 10px;

    font-family: 'Caveat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 22px;
    letter-spacing: -0.5px;
    text-align: center;
    color: #000;
}

.ls-preview-modal-content .ls-resend-image {
    width: 90%;
    height: 64px;
    padding: 10px;
    gap: 8px;
    border-radius: 8px;
    border: 1px solid #B0ACA9;

    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.5px;
    text-align: center;

    background-color: transparent;
}

.ls-preview-modal-content .ls-close-modal {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.5px;
    text-align: center;
    color: #FF3434;

    background-color: transparent;
    border: 0;
}

/* .ls-preview-modal-content .ls-send-image, .ls-welcome-modal-content .ls-send-image {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 32px;
    padding: 0 18px;

    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.5px;
    text-align: center;
    color: #351913;

    border: 1px solid #B0ACA9;
    border-radius: 8px;

    background-color: transparent;
} */

.ls-preview-modal-content .ls-preview-modal-image img {
    width: 100%;
}

.ls-preview-modal-content input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 120px;
    height: 32px;

    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.5px;
    text-align: center;
    color: #351913;

    border: 1px solid #B0ACA9;
    border-radius: 8px;

    background-color: transparent;
}

.ls-welcome-modal-content input {
    display: flex;
    justify-content: center;

    width: 100%;
    height: 64px;
    padding: 10px;

    text-align: center;

    border-radius: 8px;
    border-width: 1px;
    border: 1px solid #B0ACA9;
}

.ls-welcome-modal button, .ls-send-image {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 90%;
    height: 64px;
    padding: 10px;
    border-radius: 8px;
    border: 0;

    background-color: #E05856;
    color: #fff;
}

.ls-preview-modal-content button img, .ls-welcome-modal-content button img {
    width: 24px;
    height: 24px;
}

footer {
    position: relative;
    z-index: 12;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;

    width: 100%;
    max-width: 430px;
    margin: -1px auto 0;
    padding: 0 24px 64px;

    background: #FFD8D9;
}

footer span {
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.5px;
    text-align: center;
}

footer strong {
    text-align: center;
    font-weight: 700;
}

.ls-mobile-warning {
    display: none;
    align-items: center;
    justify-content: center;

    width: 100vw;
    height: 100vh;
    padding: 100px;
}

.ls-mobile-warning h3 {
    display: block;

    font-size: 70px;
    text-align: center;

    color: #351913;
}


/* Desktop: keep the phone-width column centered so uploads work on any device. */
@media (min-width: 768px) {
    body {
        background:
            radial-gradient(120% 60% at 50% 0%, #ffb2b7 0%, #FFD8D9 60%);
    }
}

/* animations ================================================================================ */

.bounce2 {
    animation: bounce2 2s ease infinite;
}


.hithere {
    animation: hithere 1s ease infinite;
}

@keyframes hithere {
30% { transform: scale(1.2); }
40%, 60% { transform: rotate(-20deg) scale(1.2); }
50% { transform: rotate(20deg) scale(1.2); }
70% { transform: rotate(0deg) scale(1.2); }
100% { transform: scale(1); }
}

@keyframes bounce2 {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-30px);}
    60% {transform: translateY(-15px);}
}

.loader {
    display: none;

    width: 40px;
    height: 40px;
    border-radius: 50%;
    perspective: 800px;
}

.ls-send-image.is--loading .loader {
    display: flex;
}

.ls-send-image.is--loading span {
    display: none;
}
  
.inner {
    position: absolute;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    border-radius: 50%;  
}
  
.inner.one {
    left: 0%;
    top: 0%;
    animation: rotate-one 1s linear infinite;
    border-bottom: 3px solid #EFEFFA;
}

.inner.two {
    right: 0%;
    top: 0%;
    animation: rotate-two 1s linear infinite;
    border-right: 3px solid #EFEFFA;
}

.inner.three {
    right: 0%;
    bottom: 0%;
    animation: rotate-three 1s linear infinite;
    border-top: 3px solid #EFEFFA;
}
  
@keyframes rotate-one {
    0% {
      transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg);
    }
    100% {
      transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
    }
}
  
@keyframes rotate-two {
    0% {
      transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg);
    }
    100% {
      transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
    }
}
  
@keyframes rotate-three {
    0% {
      transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg);
    }
    100% {
      transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
    }
}

/**
 * Extracted from: SweetAlert
 * Modified by: Istiak Tridip
 */
.success {
    display: none;
    align-items: center;
    height: 90%;
}

.ls-send-image.is-success .success {
    display: flex;
}

.ls-send-image.is-success span {
    display: none;
}

.success img {
    animation: increase 1s;
}

@keyframes increase {
    0% {
        transform: scale(0) rotate(0deg);
        
    }
    100% {
        transform: scale(1) rotate(360deg);
    }
}
