* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffd6e6;
    background-image: url('./images/cloud.webp');
    background-repeat: no-repeat;
    background-size: cover;
    font-family: Arial, sans-serif;
    padding-top: 70px;
    /* Adjust this value based on your header height */
}

header {
    background-color: #ff4d79;
    color: white;
    padding: 15px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 70px;


    display: flex;
    align-items: center;

    font-weight: 600;

    font-size: 22px;




}

.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.valentine-card {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease;
    display: none;
}

.valentine-card.visible {
    opacity: 1;
    display: block;
}

h2 {
    color: #ff4d79;
    margin-bottom: 1rem;
    text-align: center;
}

.share-box {
    margin: 2rem;
}

.share-message {
    position: relative;
    margin: 1rem;
}

.share-text {
    width: 100%;
    border: 1px solid #ff4d79;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    line-height: 1.4;
    resize: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: min-content;
    overflow: hidden;
}

.share-hint {
    display: block;
    margin-top: 5px;
    font-size: 1rem;
    color: #ff4d79;
}


textarea {
    width: 100%;
    height: 150px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid #ffb3c6;
    border-radius: 5px;
    resize: none;
}

input {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 2px solid #ffb3c6;
    border-radius: 5px;
}

.button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.button-container button {
    flex: 1;
    min-width: 250px;
}

.add-recipient-btn {
    background-color: white;
    color: #ff4d79;
    border: 2px solid #ff4d79;
    padding: 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: auto;
}

.add-recipient-btn:hover {
    background-color: #fff5f7;
    transform: translateY(-2px);
}

.send-valentine-btn {
    background-color: #ff4d79;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: auto;
}

.send-valentine-btn:hover {
    background-color: #ff1a53;
    transform: translateY(-2px);
}

/* Update button specificity to exclude wallet button */
button:not(.add-recipient-btn):not(.send-valentine-btn):not(.customize-button):not(.wallet-button):not(.add-message-btn) {
    display: block;
    padding: 1rem;
    background-color: #ff4d79;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.sent-message {
    margin-top: 2rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    display: none;
    backdrop-filter: blur(5px);
}

.hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.heart {
    position: absolute;
    animation: float-heart 6s linear infinite;
    opacity: 0;
}

/* Different positions, delays, and sizes for each heart */
.heart:nth-child(1) {
    left: 10%;
    animation-delay: 5.5s;
    font-size: 15px;
}

.heart:nth-child(2) {
    left: 20%;
    animation-delay: 2s;
    font-size: 25px;
}

.heart:nth-child(3) {
    left: 30%;
    animation-delay: 4s;
    font-size: 20px;
}

.heart:nth-child(4) {
    left: 40%;
    animation-delay: 1s;
    font-size: 30px;
}

.heart:nth-child(5) {
    left: 50%;
    animation-delay: 3s;
    font-size: 18px;
}

.heart:nth-child(6) {
    left: 60%;
    animation-delay: 5s;
    font-size: 22px;
}

.heart:nth-child(7) {
    left: 70%;
    animation-delay: 2.5s;
    font-size: 28px;
}

.heart:nth-child(8) {
    left: 80%;
    animation-delay: 1.5s;
    font-size: 16px;
}

.heart:nth-child(9) {
    left: 90%;
    animation-delay: 3.5s;
    font-size: 24px;
}

.heart:nth-child(10) {
    left: 100%;
    animation-delay: 4.5s;
    font-size: 20px;
}

/* Also let's make the animation slightly more interesting */
@keyframes float-heart {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(1);
        opacity: 1;
    }

    25% {
        transform: translateY(50vh) rotate(90deg) scale(1.1);
        opacity: 0.9;
    }

    50% {
        transform: translateY(0vh) rotate(180deg) scale(1.2);
        opacity: 0.7;
    }

    75% {
        transform: translateY(-50vh) rotate(270deg) scale(1.1);
        opacity: 0.4;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg) scale(1);
        opacity: 0;
    }
}

h1 {
    margin: 0;
    text-align: center;
}

.wallet-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: white;
    color: #ff4d79;
    border: none;
    border-radius: 25px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    width: auto !important;
    align-items: center;
    gap: 4px;
    display: inline-flex;
    /* Always visible */
}

.wallet-button.visible {
    display: inline-flex !important;
    /* Show when class is added */
}

.wallet-button:hover {
    background-color: #ffe6eb;
}

.wallet-icon {
    font-size: 1.2rem;
}

/* Hide all text variants by default */
.wallet-text-long,
.wallet-text-medium,
.wallet-text-small {
    display: none;
}

/* Show only emoji for small screens (below 600px) */
.wallet-text-small {
    display: inline;
}

/* Show "Connect" for medium screens (600px - 900px) */
@media (min-width: 600px) {
    .wallet-text-small {
        display: none;
    }

    .wallet-text-medium {
        display: inline;
    }
}

/* Show "Connect Wallet" for large screens (above 900px) */
@media (min-width: 900px) {
    .wallet-text-medium {
        display: none;
    }

    .wallet-text-long {
        display: inline;
    }
}

.wallet-button.visible {
    display: inline-flex;
    /* Show when class is added */
}

.countdown-container {
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    margin: 20px auto;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border: 4px solid #ff4d79;
    /* Default red border */
}

.countdown-container.minting-open {
    border: 4px solid #f775c5;
    /* Green border when minting is open */
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-item span {
    color: #ff4d79;
}

.countdown-item span:first-child {
    font-size: 2.5rem;
    font-weight: bold;
}

.countdown-item .label {
    font-size: 0.9rem;
    margin-top: 5px;
}

.countdown-separator {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ff4d79;
    display: flex;
    align-items: center;
    padding-bottom: 25px;
    /* Aligns with numbers, accounting for the label space */
}

@media (max-width: 480px) {
    .countdown {
        gap: 10px;
    }

    .countdown-item span:first-child {
        font-size: 1.8rem;
    }

    .countdown-item .label {
        font-size: 0.8rem;
    }

    .countdown-separator {
        font-size: 1.8rem;
        /* Match the smaller font size on mobile */
    }
}

.message-toggle {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-checkbox {
    width: auto !important;
    /* Override any global input styles */
    margin: 0;
    cursor: pointer;
}

.message-toggle label {
    color: #ff4d79;
    cursor: pointer;
}

/* Optional: Style the checkbox */
.custom-checkbox {
    accent-color: #ff4d79;
    width: 18px !important;
    height: 18px;
}

.instructions-container {
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    margin: 20px auto;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.instructions-container h2 {
    color: #ff4d79;
    margin-bottom: 1rem;
}

.instructions-container ul {
    text-align: left;
    margin: 1rem auto;
    max-width: 600px;
    padding-left: 2rem;
}

.instructions-container li {
    margin-bottom: 0.5rem;
}

.pricing {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: rgba(255, 77, 121, 0.1);
    border-radius: 8px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    max-width: 400px;
    margin: 0.5rem auto;
    padding: 0.5rem;
}

.price-label {
    font-weight: bold;
    color: #ff4d79;
}

.price-value {
    font-family: monospace;
    font-size: 1.1rem;
}

.price-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.highlight {
    color: #ff4d79;
    font-weight: bold;
}

.valentines-banner {
    text-align: center;
    color: white;
    /* Green text */
    font-size: 1.8rem;
    font-weight: bold;
    margin: 20px auto;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.no-valentines {
    text-align: center;
    padding: 3rem 1rem;
    grid-column: 1 / -1;
    color: #ff4d79;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.heartbeat {
    animation: heartbeat 1.5s infinite;
}

.no-valentines p:first-child {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.no-valentines .sub-text {
    font-size: 1.1rem;
    color: #666;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.1);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.1);
    }

    70% {
        transform: scale(1);
    }
}

.received-valentines {
    display: none;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    margin-top: 2rem;
    animation: fadeIn 0.3s ease;
    height: 600px;
    /* Fixed height */
    overflow: hidden;
    /* Hide overflow */
}

.sent-valentines {
    display: none;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    margin-top: 2rem;
    animation: fadeIn 0.3s ease;
    height: 600px;
    /* Fixed height */
    overflow: hidden;
    /* Hide overflow */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.valentines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 400px);
    gap: 0.5rem;
    padding: 0.5rem;
    padding-bottom: 2rem;
    justify-content: center;
    height: 100%;
    overflow-y: auto;
    /* Enable vertical scrolling */
    /* padding-right: 10px; Add padding for scrollbar */
}

.valentines-grids {
    display: grid;
    grid-template-columns: repeat(auto-fill, 400px);
    gap: 0.5rem;
    padding: 0.5rem;
    padding-bottom: 2rem;
    justify-content: center;
    height: 100%;
    overflow-y: auto;
    /* Enable vertical scrolling */
    /* padding-right: 10px; Add padding for scrollbar */
}

/* Add smooth scrollbar styling */
.valentines-grids::-webkit-scrollbar {
    width: 8px;
}

.valentines-grids::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

.valentines-grids::-webkit-scrollbar-thumb {
    background: #ff4d79;
    border-radius: 4px;
}

/* Add smooth scrollbar styling */
.valentines-grid::-webkit-scrollbar {
    width: 8px;
}

.valentines-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

.valentines-grid::-webkit-scrollbar-thumb {
    background: #ff4d79;
    border-radius: 4px;
}

.received-valentine {
    height: 250px;
    width: 350px;
    background-color: white;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    cursor: pointer;
    position: relative;
    display: flex;
    gap: 1rem;
    border-radius: 10px;
    margin: auto;
}

.received-valentine:hover {
    transform: translateY(-5px);
}

.valentine-thumbnail {
    height: 100%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    /* border-radius: 8px; */
}

.nft-image {
    height: 100%;
    object-fit: cover;
    padding: 2px;
}

/* Modal styles */
.valentine-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    max-width: 90%;
    max-height: 90vh;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.modal-info {
    margin-top: 1rem;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #ff4d79;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.valentine-info {
    flex: 1;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Changed from center to allow natural flow */
    text-align: right;
    overflow: hidden;
}

.year {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.sender {
    color: #ff4d79;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.message {
    font-style: italic;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    height: calc(100% - 3.8rem);
    width: 100%;
    box-sizing: border-box;

    /* Add scrolling for overflow */
    overflow-y: auto;
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: #ff4d79 #ffe6eb;
    /* Firefox */
}

/* Webkit scrollbar styling */
.message::-webkit-scrollbar {
    width: 6px;
}

.message::-webkit-scrollbar-track {
    background: #ffe6eb;
    border-radius: 3px;
}

.message::-webkit-scrollbar-thumb {
    background: #ff4d79;
    border-radius: 3px;
}

.message::-webkit-scrollbar-thumb:hover {
    background: #ff1a53;
}

.loading,
.loading-more {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: #ff4d79;
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.loading .heart-loader,
.loading-more .heart-loader {
    display: inline-block;
    animation: heartBeat 1.2s ease-in-out infinite;
    font-size: 1.5rem;
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.3);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.3);
    }

    70% {
        transform: scale(1);
    }
}

.love-link {
    color: #ff4d79;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid #ff4d79;
    border-radius: 20px;
    margin-top: 10px;
}

.love-link:hover {
    background-color: #ff4d79;
    color: white;
    transform: translateY(-2px);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Add some padding to account for fixed header */
#create-valentine {
    scroll-margin-top: 100px;
}

/* Animation for when the section is targeted */
@keyframes highlightSection {
    0% {
        transform: scale(1);
        border: 2px solid #ff4d79;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    50% {
        transform: scale(1.02);
        border: 2px solid #ff4d79;
        box-shadow: 0 8px 12px rgba(255, 77, 121, 0.3);
    }

    100% {
        transform: scale(1);
        border: none;
        box-shadow: none;
    }
}

/* Target the element when it's the target of the anchor */
.valentine-card:target {
    animation: highlightSection 1s ease;
}

.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.address-input {
    flex: 0.9;
    display: flex;
}

.address-input input {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid #ffb3c6;
    border-radius: 5px;
    height: 38px;
    line-height: 38px;
    box-sizing: border-box;
}

.quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0.1;
    min-width: 110px;
}

.multiply {
    display: flex;
    align-items: center;
    color: #ff4d79;
    font-size: 1.2rem;
    font-weight: bold;
    height: 38px;
    line-height: 38px;
}

.quantity-input {
    width: 70px;
    padding: 0.5rem;
    border: 2px solid #ffb3c6;
    border-radius: 5px;
    text-align: center;
    height: 38px;
    line-height: 38px;
    box-sizing: border-box;
    -moz-appearance: textfield;
    /* For Firefox */
}

/* Remove spinner buttons for Chrome, Safari, Edge, Opera */
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Media query for smaller screens */
@media (max-width: 600px) {
    .input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .quantity-wrapper {
        align-self: center;
        flex: initial;
        min-width: initial;
    }
}

/* Add these styles */
.valentine-suggestions {
    margin-bottom: 2rem;
}

.suggestions-title {
    text-shadow: 0 0 8px white;
}
.carousel-container {
    position: relative;
    padding: 0;
    margin-top: 1.5rem;
    background-color: rgba(255, 255, 255, 0.8); /* Add white background */
    border-radius: 15px; /* Round corners */
    overflow: hidden; /* Ensure content doesn't overflow the rounded corners */
}

.profile-carousel {
    overflow-x: auto;
    position: relative;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    border-radius: 15px; /* Round corners */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.profile-carousel::-webkit-scrollbar {
    display: none;
}

/* Move fade effects to the container level and use fixed positioning relative to container */
.carousel-container::before,
.carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: 50px;
    z-index: 1;
    pointer-events: none;
}

.carousel-container::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.carousel-container::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

/* Remove the previous fade effects from .profile-carousel */
.profile-track {
    display: flex;
    animation: scrollCards 60s linear infinite;
    width: fit-content;
    /* Ensure track takes full width of content */
}

.profile-track:hover {
    animation-play-state: paused;
}

@keyframes scrollCards {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50%));
        /* Use calc to ensure exact half-width */
    }
}

.profile-card {
    min-width: 350px;
    padding: 1rem;
    background: transparent;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
    /* Prevent cards from shrinking */
}

.profile-image-container {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ff4d79;
}

.profile-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-name {
    font-weight: bold;
    color: black;
    margin: 0;
    font-size: 1.1rem;
}

.send-valentine-btn {
    width: fit-content;
    background-color: #ff4d79;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.send-valentine-btn:hover {
    background-color: #ff1a53;
    transform: translateY(-2px);
}

.carousel-button {
    display: none;
}

@media (max-width: 768px) {
    .profile-card {
        min-width: 280px;
    }

    .profile-image-container {
        width: 60px;
        height: 60px;
    }

    .received-valentine {
        width: 400px;
        height: 160px;
    }

    .valentine-thumbnail {
        width: 114px;
        /* Maintains 5:7 ratio for 160px height */
    }

    .valentines-grid {
        grid-template-columns: repeat(auto-fill, 400px);
    }
}

@media (max-width: 480px) {
    .received-valentine {
        width: 320px;
        height: 140px;
    }

    .valentine-thumbnail {
        width: 100px;
        /* Maintains approximate 5:7 ratio for 140px height */
    }

    .valentines-grid {
        grid-template-columns: repeat(auto-fill, 320px);
    }
}

.recipient-card {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 77, 121, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 77, 121, 0.2);
}

.recipient-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.recipient-details {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 77, 121, 0.2);
}

.card-message {
    margin-bottom: 1rem;
}

.card-message label {
    display: block;
    color: #ff4d79;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.card-message textarea {
    width: 100%;
    min-height: 80px;
    padding: 0.8rem;
    border: 1px solid #ffb3c6;
    border-radius: 8px;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.card-message textarea:focus {
    outline: none;
    border-color: #ff4d79;
    box-shadow: 0 0 0 2px rgba(255, 77, 121, 0.1);
}

.toggle-details,
.remove-recipient {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #ff4d79;
    transition: transform 0.2s ease, color 0.2s ease;
    width: auto;
}

.toggle-details:hover,
.remove-recipient:hover {
    transform: scale(1.1);
    color: #ff1a53;
}

.remove-recipient {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

/* Update input styles within recipient card */
.recipient-card input {
    border: 1px solid #ffb3c6;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.recipient-card input:focus {
    outline: none;
    border-color: #ff4d79;
    box-shadow: 0 0 0 2px rgba(255, 77, 121, 0.1);
}

/* Add a nice animation when adding/removing cards */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.recipient-card {
    animation: slideIn 0.3s ease;
}

.tokenAmount {
    background-color: #757575;
    color: #ffffff;
    padding: 10px 20px;
    font-weight: bold;
    text-align: center;
    width: 60px;
    /* Adjust width as needed */
    border: none;
    /* Remove default border */
    outline: none;
    /* Remove outline on focus */
    border-left: 1px solid rgb(255, 255, 255);
    /* Left border */
    border-right: 1px solid rgb(255, 255, 255);
    margin: 0;
    /* Right border */
}

/* Hide the default spinner controls */
.tokenAmount::-webkit-inner-spin-button,
.tokenAmount::-webkit-outer-spin-button {
    -webkit-appearance: none;
    /* Hide spinner in Chrome/Safari */
    margin: 0;
    /* Remove margin */
}

.tokenAmount::-moz-inner-spin-button,
.tokenAmount::-moz-outer-spin-button {
    -moz-appearance: none;
    /* Hide spinner in Firefox */
    margin: 0;
    /* Remove margin */
}

.quantity-button {
    background-color: #ff9090;
    color: #ffffff;
    padding: 5px 7px;
    font-weight: bold;
    text-align: center;
    width: 50px;
    /* Adjust width as needed */
    border: none;
    /* Remove default border */
    outline: none;
    /* Remove outline on focus */
    border-left: 1px solid rgb(255, 255, 255);
    /* Left border */
    border-right: 1px solid rgb(255, 255, 255);
    /* Right border */
}

/* Combine all styles for screens below 768px */
@media (max-width: 768px) {
    header {}

    .container {
        margin: 0;
        padding: 0;
    }

    /* Remove rounded corners from various containers */
    .valentine-card,
    .sent-message,
    .countdown-container,
    .instructions-container,
    .received-valentines,
    .received-valentine,
    .modal-content,
    .recipient-card,
    .no-valentines {
        border-radius: 0;
    }

    h1 {
        font-size: 1.5rem;
    }

    .wallet-button {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .received-valentine {
        width: 400px;
        height: 160px;
    }

    .valentines-grid {
        grid-template-columns: repeat(auto-fill, 400px);
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    header {

        font-weight: 600;

        font-size: 14px;
    }

    .received-valentine {
        width: 275px;
        height: 140px;
    }

    .valentine-thumbnail {
        height: 100%;
    }

    .valentines-grid {
        grid-template-columns: repeat(auto-fill, 320px);
    }
}

/* Add new customize tab styles */
.customize-tab {
    text-align: center;
    margin: 1rem 0;
    position: relative;
}

.customize-tab::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 77, 121, 0.2);
    z-index: 0;
}

.customize-button {
    position: relative;
    background: white;
    color: #ff4d79;
    border: 1px solid #ff4d79;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    z-index: 1;
}

.customize-button:hover {
    background: #fff5f7;
    transform: translateY(-1px);
}

.customize-button .arrow-down {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.customize-button.active .arrow-down {
    transform: rotate(180deg);
}

.customize-content {
    display: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Show content when button is active */
.customize-button.active+.customize-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.customize-content label {
    display: inline-block;
    min-width: 30px;
    margin-right: 10px;
    color: #ff4d79;
}

.custom-message-input {
    display: inline-block;
    width: calc(100% - 45px);
    /* 30px for label + 10px margin + 5px buffer */
    padding: 0.5rem;
    border: 2px solid #ffb3c6;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.custom-message-input:focus {
    outline: none;
    border-color: #ff4d79;
    box-shadow: 0 0 0 2px rgba(255, 77, 121, 0.1);
}

.after-message-input {
    height: 100%;
}

.add-message-btn {
    background-color: #ff4d79;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    width: auto;
    min-width: auto !important;
}

.add-message-btn:hover {
    background-color: #ffe6eb;
    transform: none;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffd6e6;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
}

.loading-spinner {
    margin: 20px auto;
}

.heart-spinner {
    font-size: 40px;
    animation: pulse 1s infinite;
}

.loading-text {
    color: #ff4d79;
    font-size: 1.2rem;
    margin-top: 20px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Add this class to fade out the loading screen */
#loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}




.heroSection {
    background-color: rgb(249, 235, 235);
    border-radius: 20px;
    box-shadow: 4px 4px 0px #000;
    text-align: center;
    font-family: 'Bowlby One', serif;
    border: 4px solid #000;
    width: 80%;
    margin: auto;
    font-family: sans-serif;
    margin-top: 30px;
    padding: 30px;
    overflow: hidden; /* Add this to contain the content */
}

.content {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
    gap: 30px;
    max-width: 100%; /* Add this to ensure content doesn't overflow */
}

.image {
    width: 150px;
    height: auto;
    margin-top: 20px;
}

.text h1 {
    font-size: 1.4rem;
    margin-bottom: 0px;
    color: rgb(11, 11, 11);
    line-height: 30px;
}

.text p {
    font-size: 1rem;
    color: #333;
    text-align: center;
    padding: 10px;
}

.text-and-samples {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    max-width: 100%; /* Add this to ensure content doesn't overflow */
}

.text {
    text-align: center;
    z-index: 3;  /* Ensure text stays above the cards */
    /* background-color: rgba(249, 235, 235, 0.9);  Semi-transparent background */
    padding: 5px;
    /* border-radius: 15px; */
    margin-bottom: 5px;
}

/* Update existing .content styles */
.content {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
    gap: 30px;
}

@media (max-width: 768px) {
    .content {
        flex-direction: column;
        padding: 10px;
    }
    
    .text-and-samples {
        width: 100%;
    }
}

.samples-container {
    width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
    gap: 30px;
}

/* Adjust image size to fit the new container */
.samples-container .image {
    width: 300px;
    height: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .samples-container {
        aspect-ratio: auto;
        min-height: 500px;
        flex-direction: column;
    }
    
    .samples-container .image {
        width: 200px;
    }
}

.heart_one {
    font-size: 6em;
    position: relative;
}

.heartbeat_one {
    position: relative;
    z-index: 1;
    animation: beat 2s linear infinite;
}

.heartecho_one {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    animation: echo 2s linear infinite;
}

@keyframes beat {
    0% {
        transform: scale(1);
    }

    14% {
        transform: scale(0.9);
    }

    21% {
        transform: scale(1.1) skew(0.004turn)
    }

    28% {
        transform: scale(1) skew(0.008turn);
    }

    35% {
        transform: scale(1) skew(0)
    }
}

@keyframes echo {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    14% {
        opacity: 0.4;
        transform: scale(0.8);
    }

    21% {
        opacity: 0.4;
        transform: scale(1.1);
    }

    100% {
        opacity: 0;
        transform: scale(3);
    }
}

/* Terms and Conditions specific styles */
.valentine-card h2 {
    text-align: left;  /* Override the center alignment from the general h2 style */
    margin-top: 2rem;  /* Add some spacing above sections */
}

.last-updated {
    text-align: right;
    color: #666;
    font-style: italic;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

/* Additional terms and conditions styling improvements */
.valentine-card ul {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.valentine-card li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.valentine-card p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.disclaimer-container {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(5px);
    margin: 2rem auto;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.disclaimer-container p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0 0 0.8rem 0;
}

.disclaimer-container p:last-child {
    margin-bottom: 0;
}

.disclaimer-container a {
    color: #ff4d79;
    text-decoration: none;
    font-weight: 600;
}

.disclaimer-container a:hover {
    text-decoration: underline;
}

.sample-nfts {
    position: relative;
    height: 200px;
    width: 400px; /* Reduced from 500px to better fit container */
    display: flex;
    justify-content: center;
    perspective: 1000px;
    max-width: 100%; /* Add this to ensure content doesn't overflow */
}

.sample-nft-image {
    position: absolute;
    /* width: 143px;  Reduced from 200px to maintain aspect ratio (200 * 143/200 = 143) */
    height: 200px;  /* Reduced from 280px to 200px */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    transform-origin: bottom center;
}

/* First card - left */
.sample-nft-image:nth-child(1) {
    transform: translateX(-80px) translateY(40px) rotate(-12deg);  /* Reduced spread from -120px to -60px */
}

/* Middle card */
.sample-nft-image:nth-child(2) {
    transform: translateY(-30px);  /* Raised from -10px to -30px */
    z-index: 2;
}

/* Last card - right */
.sample-nft-image:nth-child(3) {
    transform: translateX(80px) translateY(40px) rotate(12deg);  /* Reduced spread from 120px to 60px */
}

/* Hover effects */
.sample-nfts:hover .sample-nft-image:nth-child(1) {
    transform: translateX(-80px) translateY(50px) rotate(-15deg);  /* Reduced spread from -140px to -80px */
}

.sample-nfts:hover .sample-nft-image:nth-child(2) {
    transform: translateY(-40px);  /* Raised hover position from -20px to -40px */
}

.sample-nfts:hover .sample-nft-image:nth-child(3) {
    transform: translateX(80px) translateY(50px) rotate(15deg);  /* Reduced spread from 140px to 80px */
}

.text-and-samples {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    max-width: 100%; /* Add this to ensure content doesn't overflow */
}

.text {
    text-align: center;
    z-index: 3;  /* Ensure text stays above the cards */
    /* background-color: rgba(249, 235, 235, 0.9);  Semi-transparent background */
    padding: 5px;
    /* border-radius: 15px; */
    margin-bottom: 5px;
}

/* Update existing .content styles */
.content {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
    gap: 30px;
}

@media (max-width: 768px) {
    .content {
        flex-direction: column;
        padding: 10px;
    }
    
    .text-and-samples {
        width: 100%;
    }
}

.samples-container {
    width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
    gap: 30px;
}

/* Adjust image size to fit the new container */
.samples-container .image {
    width: 300px;
    height: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .samples-container {
        aspect-ratio: auto;
        min-height: 500px;
        flex-direction: column;
    }
    
    .samples-container .image {
        width: 200px;
    }
}