html {
    background: #EC1187 linear-gradient(to bottom right, #EC1187 0%, #FF8D10 100%);
    background-repeat: no-repeat;
    width: 100vw;
    height: 100vh;
    height: -webkit-fill-available;
}

body {
    font: 14px "Avenir Next", Helvetica, Arial, sans-serif;
}

.container {
    width: 85%;
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form {
    width: 100%
}

a {
    cursor: pointer;
}

.bubble {
    display: block;
    margin-top:44px;
    border-radius: 24px;
}

.header {
    padding:16px 16px 12px;
    font-size:16px;
    background-color: white;
    border-radius: 32px 32px 0 0;
    display: flex;
    align-items: top;
    justify-content: left;
}

.navbar {
    display: flex;
    align-items: center;
    width: 100%;
    height: 56px;
    margin-top: 16px;
}

.pfp-container {
    border-radius:300px;
    width:40px;
    height:40px;
    background-color: #F1F1F1;
    background-image: url('/images/default_avatar.png');
    background-position:center center;
    background-size: 40px 40px;
    background-repeat: no-repeat;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    display: block;
  }
  
.pfp {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.user-container {
    margin-left:12px;
    font-size: 14px;
}

.username {
    font-weight: 500;
}

.prompt {
    font-weight: bold;
}

.textarea-container {
    width:100%;
    margin-bottom:10px;
    background-color:rgba(255,255,255,0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 0 0 24px 24px;
    position: relative;
    -webkit-appearance: none;
}

.top-left-corner {
    position:absolute;
    top:0;
    left:0;
    background: url(/images/top-left-corner.svg);
    width:24px;
    height:24px;
}

.top-right-corner {
    position:absolute;
    top:0;
    right:0;
    background: url(/images/top-right-corner.svg);
    width:24px;
    height:24px;
}

textarea {
    width:100%;
    padding:18px 24px;
    height:140px;
    box-sizing: border-box;
    font-size:20px;
    font-weight: 600;
    border:none;
    outline:none;
    background-color: transparent;
}

textarea::placeholder {
    color: rgba(0,0,0,0.25);  
}

.dice-button {
    position:absolute;
    bottom: 16px;
    right: 16px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.25);
    padding: 8px;
    border-radius: 100px;
    width: 20px;
    height: 20px;
    text-align: center;
    touch-action: manipulation;

    display: flex;
    justify-content: center;
    align-items: center;
}

.button, .submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: black;
    border-radius: 100px;
    border: none;
    font-size: 18px;
    font-weight: 700;
    color:white;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
    height: 60px;
    box-sizing: border-box;
    cursor: pointer;
}

.rizz-button {
    display: none;
}

.button-white {
    background: white;
    color: black;
}

.button-translucent {
    background: rgba(255,255,255,0.5);
    color: black;
}

.button-gold {
    background: linear-gradient(90deg, #FFE197, #FFB923);
    font-weight: 800;
    font-style: italic;
    font-size: 20px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.button-small {
    width: auto;
    /* flex-grow: 20px; */
    height: 48px;
    font-size: 15px;
    padding: 0 24px 1px;
}

.pulse {
    animation: animate-shake 2s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes animate-shake {
    0%,
    10%,
    65%,
    100% {
      transform: rotate(0deg) scale(1.0);
    }
  
    30%,
    40% {
      transform: rotate(-1deg) scale(1.05);
    }
  
    35%,
    45% {
      transform: rotate(1deg) scale(1.05);
    }
}

.submit:disabled {
    text-indent: -9999px;
}

.submit:disabled::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 4px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: loading-spinner 1s ease infinite;
}

@keyframes loading-spinner {
    from {
        transform: rotate(0turn);
    }

    to {
        transform: rotate(1turn);
    }
}

.bottom {
    position: absolute;
    bottom: env(safe-area-inset-bottom);
    left: 8%;
    right: 8%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.home-container {
    text-align: center;
}

.logo {
    object-fit: cover;
    width:75%;
    margin-top: 40%
}

.check {
    display: inline-block;
    width: 15vh;
    height: 15vh;
    /* margin-top: 20%; */
}

.sent {
    font-weight: 700;
    font-size: 20px;
    color:#fff;
    margin: 0;
}

.download-prompt {
    font-size: 16px;
    font-weight: 700;
    color:white;
    margin: 0;
    text-align: center;
}

.home-subtitle {
    margin: 0 auto;
    margin-top:24px;
    font-size:24px;
    font-weight: 700;
    color: #fff;
}

.another {
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size:18px;
    margin: 0;
    display: inline-block;
    border-bottom: 2px solid white;
}

.bottom-container {
    bottom: calc(env(safe-area-inset-bottom) + 100px);
    position: absolute;
    width: 85%;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 35px;
    padding-top: 32px;
    text-align: center;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 1;
}

/* Hide copied NGL promo/footer UI. Keep this block if you want the profile page to stay yours. */
.bottom-container-user-wrapper,
.bottom .download-link,
.tos-privacy {
    display: none !important;
}

.anonymous-tooltip {
    margin-top:12px;
    font-size:14px;
    color:white;
    margin-bottom:12px;
    text-align: center;
}

.ad-container.sticky-top-ad {
    position: fixed;
    top: 1rem;
    left: 0;
    right: 0;
    z-index: 9999;
    text-align: center;
    max-height: 50px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.has-sticky-ad {
    padding-top: calc(50px + 1rem);
}

body.has-sticky-ad .bubble {
    margin-top: 1rem;
}

/* Keyboard-open state: reduce spacing so ad stays visible */
.keyboard-open .bubble {
    margin-top: 10px;
}

.keyboard-open textarea {
    height: 100px;
}

/* Small height devices (e.g. iPhone SE, iPhone 12 mini) */
@media screen and (max-height: 700px) {
    .keyboard-open .bubble {
        margin-top: 6px;
    }
    .keyboard-open textarea {
        height: 80px;
    }
}

.tos-privacy {
    position: absolute;
    bottom: 0;
    width: 100%;
}

.tos {
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    color: rgb(255, 255, 255, 0.5);
    margin-right: 10px;
}

.privacy {
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    color: rgb(255, 255, 255, 0.5);
}

.modal-container.off .modal-bg {
    opacity: 0;
}

.modal-container.off .modal-bottom-sheet {
    transform: translateY(100%);
}

.modal-bg {
    background-color: rgba(0,0,0,0.75);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    transition: all 0.2s;
}

.modal-bottom-sheet {
    background-color: #fff;
	padding: 24px 30px;
    border-radius: 30px 30px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
	text-align: center;
    transition: all 0.3s;
}

/* .priority-container > * {
    margin-top: 30px;
    display: block;
} */

/* .priority-container > *:first-child {
    margin-top: 0px;
} */

.priority-title {
	font-weight: 700;
	font-size: 22px;
	color: #000;
	white-space: pre-wrap;
}

.priority-subtext {
	font-weight: 400;
	font-size: 16px;
}

.priority-smalltext {
	font-weight: 400;
	font-size: 12px;
}

.priority-smalltext a {
    text-decoration: none;
}

.priority-skip {
	font-weight: 600;
	font-size: 16px;
	color: #53565B;
    text-decoration: none;
}

.priority-x {
    position: absolute;
    top: 24px;
    right: 24px;
}

.grey {
    color: #53565B;
}

.apple-pay {
    /* margin-top: 30px; */
    height: 54px;
    width: 100%;
    background: black;
    border-radius: 50px;
    overflow: hidden;
    transform: translateZ(0px);
}

.priority-gold-container {
    position: relative;
    width: 100px;
    height: 100px;
}

.priority-gold-container .pfp-container {
    position: absolute;
    bottom: -10px;
    right: -10px;
    border: 4px solid white;
}

.space1 {
    height: 8px;
    width: 8px;
}

.space2 {
    height: 16px;
    width: 16px;
}

.space25 {
    height: 20px;
    width: 20px;
}

.space3 {
    height: 24px;
    width: 24px;
}

.space4 {
    height: 32px;
    width: 32px;
}

.space5 {
    height: 40px;
    width: 40px;
}

/* Animating placeholder CSS */
.textarea-placeholder {
    position: absolute;
    top: 16px;
    left: 24px;
    font-size: 20px;
    font-weight: 600;
    color: rgba(0,0,0,0.25);
    pointer-events: none;
    opacity: 0;
}

.textarea-placeholder.hidden {
    display: none;
}

.fade-in {
    animation: fade-in 0.3s ease forwards;
}

.fade-out {
    animation: fade-out 0.3s ease forwards;
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fade-out {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* ===== Web Push Inline Flow ===== */
.web-push-avatar-wrap {
  position: relative;
  width: 15vh;
  height: 15vh;
  margin: 0 auto 20px;
}
.web-push-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid #fff;
  object-fit: cover;
}
.web-push-bubble {
  position: absolute;
  width: 130px;
  left: 55px;
  top: 50px;
  opacity: 0;
  transform: translateY(-100%) scale(0);
  transform-origin: bottom left;
}
.web-push-bubble.bubble-animate {
  animation: bubble-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards;
}
@keyframes bubble-pop {
  from {
    opacity: 0;
    transform: translateY(-100%) scale(0);
  }
  to {
    opacity: 1;
    transform: translateY(-100%) scale(1);
  }
}
.web-push-title {
  color: #fff;
  font-size: min(8vw, 30px);
  font-weight: 800;
  text-align: center;
  margin: 0;
}
.web-push-body {
  color: rgba(255, 255, 255, 0.82);
  font-size: min(7.2vw, 27px);
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  margin: 0 0 28px;
}
.web-push-body strong {
  color: #FF8D10;
}
.web-push-cta {
  display: block;
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 50px;
  background: #111;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}
.web-push-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 0%;
  background: rgba(255, 255, 255, 0.15);
}
.web-push-cta.web-push-loading::after {
  animation: web-push-progress var(--progress-duration, 7s) linear forwards;
}
@keyframes web-push-progress {
  from { width: 0%; }
  to { width: 100%; }
}
.web-push-or {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.web-push-cta-ghost {
  background: transparent;
  border: 3px solid rgba(255, 255, 255, 0.25);
  opacity: 0.6;
}
.web-push-cta.web-push-cta-ghost::after {
  background: rgba(255, 255, 255, 0.25);
}

.send-error-snackbar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(calc(100% + 24px));
  z-index: 10000;
  width: min(640px, calc(100vw - 32px));
  padding: 14px 18px;
  border-radius: 16px;
  background: #fff;
  color: #111;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}

.send-error-snackbar.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
