@font-face {
    font-family: 'Estedad';
    src: url('/fonts/Estedad.woff2') format('woff2-variations'), url('/fonts/Estedad.ttf') format('truetype');
    font-weight: 100 900;
    font-stretch: 75% 125%;
    font-style: normal;
    font-display: swap;
}

body {
    margin: 0;
    padding: 0;
    background-image: url('/images/page_bg.jpg');
    background-color: #271a24;
    background-attachment: fixed;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    font-family: 'Estedad', tahoma;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
}

a {
    text-decoration: none;
}

.container {
    width: 70%;
    max-width: 840px;
    padding: 20px;
    box-sizing: border-box;
}

/* Modal and Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
    align-items: end;
    justify-content: center;
}

.overlay.show {
    display: flex;
    opacity: 1;
}

.modal {
    border: 1px solid white;
    color: #d5c9c9;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 85%;
    max-width: 480px;
    max-height: 90vh;
    padding: 15px;
    background: #291b1f;
    border-radius: 10px;
    z-index: 1000;
    overflow: hidden;
    opacity: 0;
    display: none;
    transform: translate(-50%, -50%) scale(0.7);
    transform-style: preserve-3d;
    perspective: 1200px;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    flex-direction: column;
    text-align: center;
}

.modal.show {
    display: flex;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.response-modal {
    border: none;
    background: none;
}
    

.modal-footer {
    text-align: center;
}


.response-modal .modal-content {
    background-image: url("/images/papirosa.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    color: #302c2c;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    align-items: center;
}

.response-modal .scroll-wrapper {
    margin-top: 60px;
    margin-bottom: 100px;
    padding: 0 20px;
    overflow-y: auto;
    max-width: 350px;
}


    .modal p {
    font-size: 1em;
    line-height: 1.8em;
}

.input-slide {
    display: none;
    opacity: 0;
    transform: translateY(20px) rotateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

    .input-slide.active {
        display: block;
        opacity: 1;
        transform: translateY(0) rotateY(0);
        font-family: 'Estedad', sans-serif;
    }

/* Input Styles */
.modal input, .modal textarea, .modal select {
    width: 80%;
    padding: 10px;
    font-family: 'Estedad', sans-serif;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ced4da;
    margin-top: 5px;
    box-sizing: content-box;
}

.modal input:focus, .modal textarea:focus {
    outline: none;
    border-color: #a18479;
    box-shadow: 0 0 0 2px #a18479;
    box-shadow: 0 0 0 2px rgba(161, 132, 121, 0.25);
}

.modal label{
    display: inline-block;
    width: 70px;
}

::placeholder {
    font-family: 'Estedad', sans-serif;
    font-size: 14px;
    color: #999;
}

.modal .btn {
    padding: 10px 25px;
    background-color: #a18479;
    font-family: 'Estedad', sans-serif;
    font-size: 16px;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.modal .payment-btn{
    padding: 5px 20px;
    background: linear-gradient(to bottom, #98fb98, #006400);
    font-family: 'Estedad', sans-serif;
    font-size: 16px;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}


.response-modal .btn {
    background-color: #c1a06e;
    color: #302c2c;
}
    .response-text-container {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    margin-bottom: 10px;
}

.button-container {
    margin-top: auto;
    padding: 10px;
    border-radius: 0 0 10px 10px;
}

.error-message {
    color: rgb(214, 110, 110);
    font-size: 0.9em;
    display: block;
    margin-top: 5px;
}

/* Slide transition for input sections */
.input-slide {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.input-slide.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Small text to display user inputs */
.small-text {
    font-size: 0.8em;
    color: #b5b5b5;
    margin-top: 10px;
    text-align: center;
}

/* Selected Cards Container */
.selected-cards-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 180px;
    gap: 10px;
    padding: 20px 20px 0 20px;
    background: #000000;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    margin-bottom: 10px;
}

/* Selected Cards */
.selected-cards {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.selected-card {
    width: 120px;
    transition: all 0.5s ease;
    border-radius: 10px;
    box-shadow: 0 0 10px #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.card-number-overlay {
    position: absolute;
    top: 50%;
    left: 52%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 1em;
    font-weight: bold;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    border: 1px solid gold;
    text-shadow: 0 0 5px black;
}


/* Card Numbers */
.card-numbers {
    color: white;
    font-size: 18px;
    margin-top: 10px;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    justify-content: center;
    width: 100%;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.card-grid .card {
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Individual Card */

#start-stack {
    width: 100px;
    height: 200px;
    position: fixed;
    top: 20px;
    left: 44%;
    right: 44%;
}

#start-stack .card{
    position: absolute;
}

#start-stack .card img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 0 5px #000000;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.card-grid .card {
    position: relative;
    padding-bottom: 166%;
}

.card {
    width: 100%;
    
    cursor: pointer;
    transition: transform 0.3s ease;
}

.card-transition {
    transition: all 0.5s ease-out;
}

.card-grid .card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 0 5px #000000;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.card-row {
    display: contents;
}

.card-row:not(:first-child) .card {
    margin-top: -125%;
}

.card:hover {
    transform: translateY(-10px) !important;
    z-index: 10 !important;
}

/* Selected Card Styling */
.selected {
    box-shadow: 0 0 5px #000000;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    z-index: 10 !important;
}

.selected img {
    width: 100%;
    border: 2px solid gold;
    box-shadow: 0 0 10px #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    object-fit: cover;
    border-radius: 10px;
}

/* Responsive Styles for Smaller Screens */
@media (max-width: 768px) {
    .container {
        width: 90%;
    }
    
    .selected-card {
        width: 90px;
        height: 150px;
    }

    .modal input, .modal textarea, .modal select {
        width: 90%;
    }

    .response-modal {
        width: 95%;
    }
}

/* Loading Spinner Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
    flex-direction: column;
    color: #d8caca;
}

.loading-overlay.show {
    display: flex;
    opacity: 1;
}

.loading-overlay  .loading-text {
    margin-top: 20px;
}

.spinner {
    border: 4px solid #ffffff;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-left-color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Additional Styles */
.modal-content button {
    margin-top: 10px;
}

.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 15px 25px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1000;
    visibility: hidden;
}

    .toast-notification.show {
        opacity: 1;
        visibility: visible;
    }

.audio-toggle {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2e264f;
    border: 2px solid #a18479;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001; /* Higher than overlay's z-index */
}

.audio-toggle:hover {
    background: #000000;
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.lock {
    text-align: right;
    font-size: 2em;
}


.privacy-policy{
    color: #d5c9c9;
    position: absolute;
    top: 0;
    left: 10px;
    z-index: 1000;
}

.privacy-policy a{
    color: #d5c9c9;
    font-size: 0.9em;
}

  .cookie-consent {
      margin: 0;
      display: none;
  }

.legal-content {
    border: 1px solid white;
    color: #d5c9c9;
    width: 85%;
    max-width: 480px;
    max-height: 90vh;
    padding: 15px;
    background: #291b1f;
    border-radius: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    flex-direction: column;
    text-align: left;
    margin-top : 10px;
    position: relative;
}

.legal-content .home-link {
    position: fixed;
    top: 5px;
    left: 20px;
    color: #d5c9c9;
    text-decoration: underline;
}