/* Wedding Website Global Styles */

/* Root Color Scheme */
:root {
    color-scheme: light;
}

/* Dark Mode Countermeasures */
@media (prefers-color-scheme: dark) {
    html, body {
        background: #f0f0f0 !important;
    }
}

@media (forced-colors: active) {
    * {
        forced-color-adjust: none;
    }
}

/* Font Face Declaration */
@font-face {
    font-family: 'LaLuxesSerif';
    src: url('assets/fonts/LaLuxesSerif.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MrEaves';
    src: url('assets/fonts/MrEaves.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'OptimaNovaLTPro';
    src: url('assets/fonts/OptimaNovaLTProLight.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    height: 100%;
    overflow-x: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    width: 0;
    height: 0;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background: #f0f0f0;
    height: auto;
    min-height: 100vh;
    -ms-overflow-style: none;
    scrollbar-width: none;
    display: flex;
    justify-content: center;
}

body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* No white background - container floats over background */
@media (min-width: 1276px) {
    body {
        overflow-x: hidden;
        overflow-y: auto;
        background: #f0f0f0;
        min-height: 100vh;
        height: auto;
        display: flex;
        justify-content: center;
    }
}

p{margin:0;padding:0;}
.xflip{-moz-transform:scaleX(-1);-webkit-transform:scaleX(-1);-o-transform:scaleX(-1);transform:scaleX(-1);-ms-filter:fliph;filter:fliph;}

/* Phone detection prevention and link styling */
.no-phone-detection {
    pointer-events: none;
    user-select: all;
    -webkit-user-select: all;
    -moz-user-select: all;
    -ms-user-select: all;
    display: inline-block;
}

.no-phone-detection::before {
    content: attr(data-content);
    pointer-events: auto;
}

/* Link styling for processed content */
.message-content a {
    color: #5e8ca9;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.message-content a:hover {
    color: #4a7a9a;
    text-decoration: none;
}

/* Site Frame Wrapper */
#site-frame {
    position: relative;
    margin: 0;
    overflow: hidden;
}

/* Site Container - Responsive width and proportional height */
#site-container {
    position: relative;
    width: 1275px;
    height: 5100px;
    margin: 0;
    overflow: hidden;
    transform-origin: top left;
    transform: scale(var(--scale-factor, 1));
}

/* Page ending container */
.page-end-container {
    position: relative;
    width: 100%;
    max-width: 1275px;
    height: 0px;
    margin: 0 auto;
    overflow: hidden;
}

/* CSS scaling removed - only JS scaling active */

/* Calculate scale factor dynamically */
:root {
    --scale-factor: 1;
}

/* Page Containers */
.page1-div,.page2-div,.page3-div{
    position:relative;
    width:100%;
    max-width:1275px;
    height:1700px !important;
    margin:0 auto;
    overflow:hidden;
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}

/* Text positioning */
.page1-div p,.page2-div p,.page3-div p{position:absolute!important;}

/* Samsung Internet specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    #site-container {
        -webkit-transform: scale(var(--scale-factor, 1)) !important;
        -webkit-transform-origin: top left !important;
        -ms-transform: scale(var(--scale-factor, 1)) !important;
        -ms-transform-origin: top left !important;
        transform: scale(var(--scale-factor, 1)) !important;
        transform-origin: top left !important;
    }
}

/* Safari mobile fix */
@supports (-webkit-touch-callout: none) {
    #site-container {
        -webkit-transform: scale(var(--scale-factor, 1));
        -webkit-transform-origin: top left;
        -ms-transform: scale(var(--scale-factor, 1));
        -ms-transform-origin: top left;
        transform: scale(var(--scale-factor, 1));
        transform-origin: top left;
    }
}

/* Form fields scale with container - positioned correctly */
#site-container input[type="text"],
#site-container input[type="button"],
#site-container input[type="checkbox"] {
    font-size: 18px !important;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    box-sizing: border-box;
    line-height: 1.2;
}

#site-container input[type="checkbox"] {
    transform: none !important;
}

/* Login Page Styles */
.login-container {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.85);
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 600px;
    width: 90%;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-monogram {
    width: 450px;
    height: auto;
    margin-bottom: 50px;
    opacity: 1;
    filter: drop-shadow(0 8px 35px rgba(0, 0, 0, 0.5));
    transition: filter 0.3s ease;
}

.login-monogram:hover {
    filter: drop-shadow(0 12px 45px rgba(0, 0, 0, 0.6));
}

.password-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid rgba(94, 140, 169, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-family: 'MrEaves', sans-serif;
    transition: all 0.3s ease;
}

.password-input:focus {
    outline: none;
    border-color: rgba(94, 140, 169, 0.8);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(94, 140, 169, 0.1);
}

.password-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.submit-btn {
    width: 100%;
    padding: 15px 30px;
    font-size: 16px;
    background: #5e8ca9;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'MrEaves', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #4a7a8f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(94, 140, 169, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 10px;
    display: none;
}

/* Login Page Responsive */
@media (max-width: 480px) {
    .login-container {
        padding: 40px 30px;
        margin: 20px;
        max-width: 450px;
    }
    
    .login-monogram {
        width: 280px;
    }
}

/* Login Page Background */
.login-body {
    font-family: 'MrEaves', sans-serif;
    background: url('assets/bg3v.jpg') center center/cover no-repeat fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.login-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Font Classes - All scale with container */
.ft00{font-size:45px;font-family:'LaLuxesSerif', serif;color:#ffffff;text-shadow:0 0 3px rgba(0,0,0,0.4),0 0 6px rgba(0,0,0,0.4),0 0 9px rgba(0,0,0,0.4),1px 1px 1px rgba(0,0,0,0.7);}
.ft01{font-size:23px;font-family:'LaLuxesSerif', serif;color:#5e8ca9;}
.ft02{font-size:20px;font-family:'MrEaves', sans-serif;color:#ffffff;text-shadow:0 0 3px rgba(0,0,0,0.4),0 0 6px rgba(0,0,0,0.4),0 0 9px rgba(0,0,0,0.4),1px 1px 1px rgba(0,0,0,0.7);}
.ft03{font-size:21px;font-family:'MrEaves', sans-serif;color:#ffffff;text-shadow:0 0 3px rgba(0,0,0,0.4),0 0 6px rgba(0,0,0,0.4),0 0 9px rgba(0,0,0,0.4),1px 1px 1px rgba(0,0,0,0.7);}
.ft04{font-size:27px;font-family:'MrEaves', sans-serif;color:#ffffff;line-height:1.05;text-shadow:0 0 3px rgba(0,0,0,0.4),0 0 6px rgba(0,0,0,0.4),0 0 9px rgba(0,0,0,0.4),1px 1px 1px rgba(0,0,0,0.7);}
.ft05{font-size:36px;font-family:'OptimaNovaLTPro', sans-serif;color:#8da2b0;}
.ft06{font-size:22px;font-family:'MrEaves', sans-serif;color:#5e8ca9 !important;}
.ft07{font-size:23px;font-family:'LaLuxesSerif', serif;color:#8da2b0;}
.ft08{font-size:36px;font-family:'OptimaNovaLTPro', sans-serif;color:#ffffff;text-shadow:0 0 1px rgba(0,0,0,0.2),0 0 6px rgba(0,0,0,0.2),0 0 9px rgba(0,0,0,0.2),1px 1px 1px rgba(0,0,0,0.2);}
.ft09{font-size:22px;font-family:'MrEaves', sans-serif;color:#000000 !important;}
.ft010{font-size:38px;font-family:'OptimaNovaLTPro', sans-serif;color:#000000 !important;}
.ft011{font-size:23px;font-family:'MrEaves', sans-serif;color:#000000 !important;}
.ft012{font-size:15px;font-family:'MrEaves', sans-serif;color:#5e8ca9 !important;}
.ft013{font-size:45px;font-family:'LaLuxesSerif', serif;color:#5e8ca9 !important;}
.ft014{font-size:45px;font-family:'OptimaNovaLTPro', sans-serif;color:#5e8ca9 !important;}
.ft015{font-size:50px;font-family:'OptimaNovaLTPro', sans-serif;color:#ffffff !important;text-shadow:0 0 1px rgba(0,0,0,0.2),0 0 6px rgba(0,0,0,0.2),0 0 9px rgba(0,0,0,0.2),1px 1px 1px rgba(0,0,0,0.2);}
.ft016{font-size:25px;font-family:'MrEaves', sans-serif;color:#5e8ca9 !important;}

/* Popup Styles - Clean Fullscreen */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.popup-content {
    position: relative;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border: none;
    border-radius: 0;
    margin: 0;
}

.popup-content img {
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
    width: auto;
    height: auto;
    object-fit: contain;
    background: transparent;
    box-shadow: none;
    border: none;
    border-radius: 0;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #ffffff;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    font-family: Arial, sans-serif;
    font-weight: normal;
}

.popup-close:hover {
    color: #cccccc;
}

/* Scroll Lock */
body.popup-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}
