:root {
    --primary: #C96646;
    --secondary: #373A36;
    --tertiary: #343E32;
    --light: #FFFFFF;
    --dark: #212121;
    --gray: #F8F9FA;
    --primary-transparent: rgba(201, 102, 70, 0.2);
}

/* Base Styles */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light);
    color: var(--secondary);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.page-container {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    /* Vertical centering */
    justify-content: center;
    /* Horizontal centering */
    width: 100%;
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
    /* Adjust for footer height */
}

/* Logo and Branding */
.logo-container {
    margin-bottom: 2.5rem;
    display: inline-block;
    /* Allows centering with text-align */
}

.logo {
    width: 130px;
    height: 130px;
    margin: 0 auto;
    /* Center logo */
    background-color: var(--light);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(201, 102, 70, 0.2);
}

.logo-text {
    font-family: 'Dancing Script', cursive;
    font-size: 85px;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1;
}

/* Typography */
h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
    text-align: center;
}

.tagline {
    font-size: 1.6rem;
    font-weight: 300;
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
    color: var(--secondary);
    text-align: center;
}

.hashtag {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 50px;
    text-align: center;
}

/* Countdown - Updated to be more subtle and professional */
.countdown {
    display: flex;
    justify-content: center;
    margin: 40px auto 50px;
    flex-wrap: wrap;
    max-width: 600px;
}

.countdown-item {
    margin: 0 10px 10px;
    text-align: center;
    min-width: 80px;
    position: relative;
    flex: 1;
}

.countdown-number {
    font-size: 2rem;
    font-weight: 600;
    background: transparent;
    color: var(--secondary);
    padding: 10px 0;
    margin-bottom: 5px;
    min-width: 70px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: none;
    font-family: 'Montserrat', sans-serif;
}

.countdown-number::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background-color: var(--primary-transparent);
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--tertiary);
    font-weight: 500;
    opacity: 0.8;
}

/* Footer Styling */
.footer {
    background-color: var(--gray);
    padding: 0.75rem 0;
    border-top: 1px solid var(--primary-transparent);
    flex-shrink: 0;
    width: 100%;
    position: relative;
    z-index: 10;
    /* Ensure footer is above any content but below modals */
}

.footer-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 0.5rem;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.25rem 0.75rem;
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
    z-index: 15;
    /* Ensure buttons are clickable */
}

.btn-icon svg {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.btn-icon small {
    font-size: 0.7rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-icon:hover {
    transform: translateY(-3px);
    color: var(--primary);
}

.btn-icon:hover i {
    color: var(--primary);
    transform: scale(1.1);
}

.btn-icon:hover small {
    color: var(--primary);
    font-weight: 500;
}

.btn-icon:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.btn-icon:hover:before {
    background-color: rgba(201, 102, 70, 0.05);
}

copyright {
    color: var(--secondary);
    opacity: 0.7;
}

/* Modal Styling */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid var(--primary-transparent);
    padding: 1.25rem 1.5rem;
}

.modal-title {
    color: var(--primary);
    font-weight: 600;
}

.modal-body {
    padding: 1.5rem;
}

.modal {
    display: none;
    /* Hidden by default */
    z-index: 1050;
}

.modal.show {
    display: block;
    /* Only shown when .show class is added */
}

.modal-backdrop {
    z-index: 1040;
    background-color: rgba(0, 0, 0, 0.5);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #B05539;
    border-color: #B05539;
}

/* Privacy Notice */
.privacy-clause {
    font-style: italic;
    color: var(--tertiary);
    font-size: 0.75rem;
}

/* Social Icons */
.social-icons {
    margin-top: 40px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    /* Increase spacing between the two remaining icons */
}

.social-icons a {
    color: var(--primary);
    font-size: 1.8rem;
    /* Slightly larger icons */
    transition: all 0.3s;
    display: inline-block;
}

.social-icons a:hover {
    color: var(--secondary);
    transform: translateY(-5px) scale(1.1);
}

/* Background Decorations */
.bg-accent {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
    z-index: -1;
    background-color: var(--primary);
    -webkit-animation: float 8s infinite ease-in-out;
    animation: float 8s infinite ease-in-out;
    pointer-events: none;
}

.accent-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
}

.accent-2 {
    width: 200px;
    height: 200px;
    bottom: 15%;
    right: 5%;
    -webkit-animation-delay: 2s;
    animation-delay: 2s;
}

.accent-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    right: 20%;
    -webkit-animation-delay: 4s;
    animation-delay: 4s;
}

/* Animations */
@-webkit-keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Fix for Cloudflare Turnstile positioning and sandboxing */
.cf-turnstile-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    min-height: 65px;
    position: relative;
}

.cf-turnstile {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 65px;
}

.cf-turnstile iframe {
    border: 0;
    overflow: hidden;
    border-radius: 4px;
}

/* Fix for Cloudflare Turnstile positioning */
.cf-turnstile {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

/* Responsive Styles */
@media (max-width: 767.98px) {
    h1 {
        font-size: 3.2rem;
    }

    .tagline {
        font-size: 1.3rem;
    }

    .countdown-item {
        margin: 0 5px 10px;
        min-width: 60px;
    }

    .countdown-number {
        font-size: 1.75rem;
        padding: 8px 0;
    }

    .countdown-label {
        font-size: 0.7rem;
    }

    .logo {
        width: 110px;
        height: 110px;
    }

    .logo-text {
        font-size: 70px;
    }
}

@media (max-width: 575.98px) {
    .main-content {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    h1 {
        font-size: 2.8rem;
    }

    .logo {
        width: 100px;
        height: 100px;
    }

    .logo-text {
        font-size: 65px;
    }

    .footer-buttons {
        gap: 1.5rem;
    }

    .countdown {
        margin: 30px auto 40px;
        max-width: 100%;
    }

    .countdown-item {
        margin: 0 3px 8px;
        min-width: 55px;
    }

    .countdown-number {
        font-size: 1.5rem;
    }
}
