/* Reset and Base Styles */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    z-index: 1;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    padding: 0;
    min-height: 100vh;
    background-color: #f5f5f5;
    overflow-y: auto;
}

/* Adjust sections to account for fixed header */
section {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    transition: background-color 0.5s ease;
}

/* Book section background */
section.book {
    background-color: #f5f5f5;
}

/* About section background */
section#about {
    background-color: #f8ece8; /* Soft orange-red tint */
    background-image: linear-gradient(135deg, #f8ece8 0%, #f3d9d1 100%);
}

/* Events section background */
section#events {
    background-color: #f0f0f0; /* Light gray */
    background-image: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

/* Contact section background */
section#contact {
    background-color: #f8f4e8; /* Warm off-white */
    background-image: linear-gradient(135deg, #f8f4e8 0%, #f3e9d1 100%);
}

section.book {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

/* Mobile styles */
@media screen and (orientation: portrait) and (max-width: 768px) {
    body .section .content {
        padding: 1rem !important;
    }
    
    body .section p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1rem !important;
    }
    
    body section.section h2 {
        font-size: 1.4rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Ensure button is properly sized on mobile */
    body .rsvp-button {
        padding: 0.6rem 1.5rem !important;
        font-size: 0.9rem !important;
        margin: 1rem 0 0 !important;
    }
}

.book-container {
    position: relative;
    height: 90%;
    overflow: hidden;
}

.paper-bag {
    position: relative;
    width: 100%;
    height: 90%;
    top: 5%;
    object-fit: cover;
    z-index: 3;
}

section.section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

section.section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #333;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.section .content {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 2.5rem;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    line-height: 1.7;
}

.section p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: #333;
    line-height: 1.7;
}

.section p:last-child {
    margin-bottom: 0;
}

section a {
    color: #333;
}

section a:hover {
    color: #666;
}

section a:active {
    color: #999;
}

section a:visited {
    color: #666;
}

/* RSVP Button */
.rsvp-button {
    display: inline-block;
    background-color: #1a237e;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    margin-top: 1.2rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.rsvp-button::before {
    content: '';
    color: white;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #303f9f, #1a237e);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.rsvp-button:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 35, 126, 0.4);
}

.rsvp-button:active {
    color: white;
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(26, 35, 126, 0.4);
}

.rsvp-button:focus {
    color: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 91, 191, 0.5);
}

.rsvp-button:visited {
    color: white;
}