/* --- Color Variables --- */
:root {
    --bg-color: #f4f1ea;
    --text-color: #1a1a1a;
    --accent-color-light: #b8d88e;
    --accent-color-medium: #157975;
    --accent-color-dark: #0e5754;
    --btn-color: #157975;
}

/* --- Global Styles --- */
html {
    background-color: var(--bg-color);
    scroll-behavior: smooth;
    cursor: url('./img/leaf.png'), auto;
}

html.reduce-motion {
    scroll-behavior: auto;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Times New Roman MT Condensed', 'Times New Roman', serif;
    margin: 0;
    padding-top: 120px; 
    padding-bottom: 60px; 
}

/* --- Typography --- */
h1, h2, h3, h4 {
    color: var(--accent-color-dark);
    font-family: 'Times New Roman MT Condensed', 'Times New Roman', serif;
    letter-spacing: 0.5px;
}

h2 {
    border-bottom: 2px solid var(--accent-color-light);
    padding-bottom: 8px;
}

p, ul {
    line-height: 1.6;
    font-size: 16px;
}

/* --- Layout Containers --- */
.content-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* About Section Flex Layout for Logo Integration */
.about-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.about-text {
    width: 70%;
}

.about-logo {
    width: 30%;
    text-align: center;
}

.about-logo img {
    max-width: 200px; 
    height: auto;
    border-radius: 8px;
    transform: scale(1.2); 
}

.header-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.header-item:nth-of-type(1) {
    width: 50%;
    padding-right: 20px;
}

.header-item:nth-of-type(2) {
    width: 45%;
}

/* Updated Image Class */
.header-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 4px solid var(--accent-color-light);
}

.schedule-flex-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
}

.schedule-item {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    width: 45%;
    text-align: center;
}

.schedule-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid var(--accent-color-medium);
}

/* --- Links & Navigation --- */
a {
    cursor: url('./img/leaf.png'), pointer;
}

a:link, a:visited {
    color: var(--accent-color-medium);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: var(--accent-color-dark);
}

a:active {
    color: #e63946;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px; 
    background-color: white;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex; 
    align-items: center; 
}

/* BIGGER NAV LOGO STYLING */
.nav-logo {
    position: absolute; 
    left: 30px;
    top: 50%;
    height: 90px; 
    width: auto;
    transform: translateY(-50%) scale(1.4); 
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: translateY(-50%) scale(1.5); 
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex; 
    justify-content: center;
    width: 100%; 
}

.navbar ul li {
    float: left;
    margin: 0 10px;
}

.navbar ul li a {
    display: block;
    color: var(--text-color);
    text-align: center;
    padding: 16px 20px;
    font-weight: bold;
}

.navbar ul li a:hover {
    color: var(--accent-color-dark);
    background-color: var(--accent-color-light);
    text-decoration: none;
}

.block {
    display: block;
    margin-bottom: 15px;
}

.block article {
    background-color: white;
    padding: 15px 20px;
    border-left: 5px solid var(--btn-color);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: background-color 0.3s;
}

.block article h3, .block article p {
    margin: 0;
}

.block article p {
    color: #555;
    margin-top: 5px;
}

.block:hover article {
    background-color: var(--bg-color);
}

/* --- Buttons --- */
button {
    background-color: var(--btn-color);
    color: white;
    border: 2px solid var(--btn-color);
    padding: 12px 20px;
    border-radius: 4px;
    cursor: url('./img/leaf.png'), pointer;
    font-size: 16px;
    margin: 10px 10px 10px 0;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

button:hover {
    background-color: var(--accent-color-dark);
    border-color: var(--accent-color-dark);
}

#theme-button, #motion-button {
    border-radius: 20px; 
    padding: 8px 16px;
    margin-top: 8px;
}

/* --- Forms & RSVP Section --- */
.form-input {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Times New Roman MT Condensed', 'Times New Roman', serif;
}

.error {
    border-style: solid;
    border-width: 2px;
    border-color: red;
    background-color: #f8bbd0;
}

.rsvp-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 20px;
}

.rsvp-left, .rsvp-right {
    width: 48%;
}

/* --- Success Modal --- */
.modal {
  display: none;   
  position: fixed; 
  z-index: 2;      
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4); 
  flex-direction: column; 
  align-items: center;
  justify-content: center;
}

.modal-container {
    padding: 50px;
    width: 55%;
    background-color: #f4f1ea;
    color: #1a1a1a;
    text-align: center;
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 12px;
    border: 3px solid #157975;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.modal-item img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%; 
    margin-top: 20px;
    transform: scale(1.3); 
}

/* --- Extra Big Image --- */
.big-image-container {
    width: 100%;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.big-image-container img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 4px solid var(--accent-color-medium);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

html.dark-mode .big-image-container img {
    border-color: var(--accent-color-light);
}

/* --- Footer --- */
.footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #0e5754; 
    color: #f4f1ea; 
    text-align: center;
    padding: 15px 0;
    z-index: 1000;
}

.footer p { 
    margin: 0; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo {
    height: 45px;
    width: auto;
    margin-right: 15px;
    transform: scale(1.4); 
}

.footer a {
    color: #b8d88e; 
    text-decoration: underline;
    margin: 0 10px;
}

.footer a:hover { color: white; }

/* --- Dark Mode Theme Overrides --- */
html.dark-mode {
    --bg-color: #0e5754;
    --text-color: #f4f1ea;
    --accent-color-light: #157975; 
    --accent-color-medium: #b8d88e;
    --accent-color-dark: #f4f1ea; 
    --btn-color: #b8d88e;
}

html.dark-mode .header-container, 
html.dark-mode .schedule-item, 
html.dark-mode .block article, 
html.dark-mode .navbar {
    background-color: #116c68;
    color: #f4f1ea;
    border-color: #157975;
}

html.dark-mode .block article p {
    color: #e2e0da;
}

html.dark-mode button {
    background-color: var(--btn-color);
    color: #0e5754;
    border-color: #b8d88e;
}

html.dark-mode .error {
    background-color: #8c2a41;
}

html.dark-mode button:hover, html.dark-mode #theme-button:hover, html.dark-mode #motion-button:hover {
    background-color: #f4f1ea;
    color: #0e5754;
    border-color: #f4f1ea;
}

html.dark-mode .modal-container {
    background-color: #116c68;
    color: #f4f1ea;
    border: 3px solid #b8d88e;
}

/* --- Scroll Animations --- */
.revealable {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

.revealable.active {
    opacity: 1;
    transform: translateY(0);
}

html.reduce-motion .revealable {
    transition: none;
    opacity: 1;
    transform: translateY(0);
}