@font-face {
    font-family: 'regular';
    src: url(./fonts/FbRimona-Regular.ttf)
}
@font-face {
    font-family: 'bold';
    src: url(./fonts/FbRimona-Bold.ttf)
}
@font-face {
    font-family: 'black';
    src: url(./fonts/FbRimona-Black.ttf)
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'regular', 'system-ui';
}

body {
    background: linear-gradient(219deg, rgba(215, 181, 96, 1) 0%, rgba(255, 254, 251, 1) 49%, rgba(215, 181, 96, 1) 100%) !important;
    background-attachment: fixed !important;
    position: relative;
}

#recaptcha-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    font-size: 24px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #555;
    text-align: center;
    padding: 20px;

    /* subtle shadow box */
    box-shadow: inset 0 0 100px rgba(0,0,0,0.1);

    /* smooth fade-in animation */
    animation: fadeInOverlay 0.3s ease forwards;
    user-select: none;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Optional: add a spinner */
#recaptcha-overlay::before {
    content: "";
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    margin-left: 12vw;
    border: 5px solid #ccc;
    border-top-color: #6b4f00; /* Ferrero Rocher gold */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.container {
    width: 100%;
    height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

@keyframes palmSwayLeft {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(-1.5deg);
    }
}

@keyframes palmSwayRight {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(1.8deg);
    }
}

.palm-left {
    position: absolute;
    width: 46.67vw;
    left: -14vw;
    top: 8vw;
    z-index: -1;
    animation: palmSwayLeft 4s ease-in-out infinite;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
    transform-origin: bottom center;
}

.palm-right {
    position: absolute;
    width: 46.67vw;
    right: -13vw;
    top: 8vw;
    z-index: -1;
    animation: palmSwayRight 4s ease-in-out infinite;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
    transform-origin: bottom center;
}

.logo {
    width: 26.57vw;
    height: 26.57vw;
    margin-top: 20.37vw;
    margin-bottom: 2.31vw;
}

.page {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page.active {
    display: flex;
    animation: fadeInUp 0.5s ease-out;
}

.show {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    pointer-events: auto;
}

.disapear {
    display: none !important;
    animation: none !important;
    transform: none !important;
}

@keyframes fadeOutAndHide {
    0% {
        opacity: 1;
        pointer-events: auto;
    }
    70%{
        opacity: 1;
        pointer-events: auto;
    }
    100% {
        opacity: 0;
        pointer-events: none;
    }
}

.fade-out {
    animation: fadeOutAndHide 3s ease-in-out forwards;
}


@keyframes fadeInAndShow {
    0% {
        opacity: 0;
        pointer-events: none;
    }
    100% {
        opacity: 1;
        pointer-events: auto;
    }
}

.fade-in {
    animation: fadeInAndShow 1.5s ease-in-out forwards;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.golden-title {
    width: 75.93vw;
}

.title1 {
    font-size: 6.5vw;
    color: #4c1100;
    font-family: 'black';
    margin-top: 3vw;
}

.title2 {
    font-size: 3.7vw;
    max-width: 73.98vw;
    color: #4c1100;
    font-family: 'bold';
    margin-top: 2vw;
}

.title3 {
    font-size: 7.4vw;
    font-family: 'bold';
    color: #4c1100;
    margin-top: 1vw;
    margin-bottom: 2vw
}

.title4, .title6 {
    font-size: 6vw;
    color: #4c1100;
    font-family: 'bold';
}

.title5 {
    font-size: 2.2vw;
    color: #4c1100;
    align-self: center;
}

.enter-button {
    width: 60.28vw;
    margin-top: 3.43vw;
    margin-bottom: 3.43vw;
    cursor: pointer;
}

form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2vw;
    width: 54.35vw;
    margin-top: 1vw;
    margin-bottom: 1vw;
    text-align: right;
}

.input {
    height: 5.37vw;
    border: 1px solid #4c1100;
    border-radius: 1vw;
    filter: drop-shadow(0.7vw 0.7vw 0.6vw black);
    padding: 0 1vw 0 1vw;
    color: #4c1100;
    transition: border-color 0.3s ease, color 0.3s ease;
    font-family: 'regular';
    font-size: 3vw;
}

input::placeholder {
    color: #4c1100;
    text-align: right;
    font-family: 'regular';
    font-size: 3vw;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.input.error {
    border-color: #ff4444 !important;
    color: #ff4444 !important;
    animation: shake 0.5s ease-in-out;
}

.input.error::placeholder {
    color: #ff4444 !important;
}

.checkbox-container {
    display: flex;
    gap: 1vw;
    transition: border-color 0.3s ease;
    padding: 0.5vw;
    border-radius: 0.5vw;
}

.checkbox-container p {
    transition: color 0.3s ease;
}

.checkbox-container.error {
    border: 1px solid #ff4444;
    background-color: rgba(255, 68, 68, 0.1);
}

.checkbox {
    filter: drop-shadow(0.4vw 0.4vw 0.5vw black);
}

.submit-button {
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.submit-button:disabled {
    cursor: not-allowed;
}

.submit-img {
    width: 54.35vw;
    align-self: center;
    transition: opacity 0.3s ease;
}

.piramid {
    width: 72.31vw;
    margin-top: 2.13vw;
    margin-bottom: 2.11vw;
}

.submit-button.loading {
    opacity: 0.6;
    pointer-events: none;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.submit-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #4c1100;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2vw 0 4vw 0;
    position: absolute;
    top: 150vw;
}

.footer-text {
    font-size : 2.6vw;
}

.mobile { display: flex; }
.desktop { display: none; }

@media (min-width: 768px) {
    #recaptcha-overlay::before { margin-left: unset; }
    .palm-left {
        width: 25.89vw;
        left: 5vw;
        top: 2vw;
    }
    .palm-right {
        width: 25.89vw;
        right: 5vw;
        top: 2vw;
    }
    
    .container {
        overflow: unset;
        width: 100%;
        height: 100%;
    }

    .logo {
        width: 8.57vw;
        height: 8.57vw;
        margin-top: 0.73vw;
        margin-bottom: 1.25vw;
    }

    .golden-title {
        width: 29.27vw;
    }

    .piramid {
        width: 20.31vw;
        margin-top: 1vw;
        margin-bottom: 1vw;
    }

    .title1 {
        font-size: 2.3vw;
        margin-top: 0.5vw;
    }

    .title2 {
        font-size: 1.29vw;
        margin-top: 1vw;
    }

    .title3 {
        font-size: 2.3vw;
        margin-bottom: unset;
    }

    .title4, .title6 {
        font-size: 2vw;
    }

    .title5 {
        font-size: 0.8vw;
    }

    .title6 {
        margin-bottom: 1vw;
    }

    .enter-button {
        width: 17.56vw;
        margin-top: 0.47vw;
        margin-bottom: 1.15vw;
    }

    form {
        flex-direction: row;
        flex-wrap: wrap;
        column-gap: 1vw;
        row-gap: 0.4vw;
        justify-content: center;
        width: 57vw;
        margin-top: 1vw;
        margin-bottom: 1vw;
        text-align: right;
    }

    .form-gap {
        flex: 1 1 100%;
        height: 0.4vw;
    }

    .input {
        height: 2vw;
        flex: 1 1 calc((100% - 4vw) / 3);
        min-width: 0; 
        width: 20.63vw;
        border-radius: 0.4vw;
        font-size: 1.6vw;
        padding: 0.8vw 1vw 1vw 1vw;
        filter: drop-shadow(0.3vw 0.3vw 0.4vw black);
    }

    input::placeholder {
        font-size: 1.2vw;
        display: flex;
    }

    .checkbox-container {
        gap: 0.5vw;
        flex: 1 1 100%;
        padding: 0.4vw;
        align-items: center;
    }

    .checkbox {
        width: 1.5vw;
        height: 1.5vw;
        filter: drop-shadow(0.1vw 0.1vw 0.1vw black);
    }

    .submit-button {
        flex: 1 1 100%;
    }

    .submit-img {
        width: 19vw;
    }

    footer {
        top: 44vw;
        padding: unset;
    }

    .footer-text {
        font-size: 0.9vw;
    }

    .mobile { display: none; }
    .desktop { display: flex; }
}
