@font-face {
    font-family: 'Noor';
    src: url('fonts/Noor-Regular.ttf') format('truetype'),
         url('fonts/Noor-Regular.woff') format('woff'),
         url('fonts/Noor-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    direction: rtl;
}

body {
    background-color: #000;
    position: relative;
}

#invitationCanvas {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0 auto;
    /* Responsive while maintaining aspect ratio and visual appearance */
    max-width: 100vw;
    max-height: 100vh;
}

.form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.invitation-form {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    pointer-events: all;
    min-width: 300px;
    max-width: 90%;
    position: absolute;
    /* Position form at the bottom */
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    .invitation-form {
        bottom: 20px;
        min-width: 280px;
        padding: 20px 25px;
        left: 50%;
        transform: translateX(-50%);
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: bold;
    color: #003F3F;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #003F3F;
    border-radius: 5px;
    direction: rtl;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #005F5F;
    box-shadow: 0 0 5px rgba(0, 63, 63, 0.3);
}

#submitBtn {
    width: 100%;
    padding: 12px 30px;
    font-size: 16px;
    background-color: #003F3F;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
}

#submitBtn:hover {
    background-color: #005F5F;
}

/* Transparent clickable links over red shapes */
.transparent-link {
    position: fixed;
    z-index: 200;
    background: rgba(255, 0, 0, 0.3);
    cursor: pointer;
    border: 2px solid red;
    text-decoration: none;
    display: block;
    pointer-events: auto;
    /* Visible for testing - will make transparent later */
    opacity: 0.7;
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
}

.whatsapp-link::before {
    content: "WhatsApp";
}

.maps-link::before {
    content: "Maps";
}

