/* ====== Base Styles ====== */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ====== Header Styles ====== */
header {
    background: #f7c6c7;
    color: #fff;
    padding: 20px;
    text-align: center;
    border-bottom: 4px solid #e6a8a6;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 2;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
}

.header-text {
    text-align: left;
}

header h1 {
    margin: 0;
    font-size: 36px;
    font-family: 'Raleway', sans-serif;
}

header p {
    margin: 10px 0;
    font-size: 18px;
    font-weight: 300;
}

/* Contact Header Buttons */
.contact-header a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    border-radius: 50%;
    border: 2px solid #f4b8c1;
    color: #f4b8c1;
    font-size: 1.2rem;
    margin: 0 5px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.contact-header a:hover {
    background-color: #f4b8c1;
    color: #ffffff;
}

/* ====== Layout & Sidebar ====== */
.layout {
    display: flex;
    position: relative;
}

.sidebar-container {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 4;
}

.sidebar-hover-area {
    width: 40px;
    height: 100%;
    position: absolute;
    right: -40px;
    top: 0;
    cursor: pointer;
    z-index: 5;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.3s;
}

.sidebar {
    width: 250px;
    background: linear-gradient(145deg, #fff, #f7e1e1);
    padding: 20px;
    position: absolute;
    right: -250px;
    top: 50px;
    border-radius: 12px;
    box-shadow: -4px 0 12px rgba(0,0,0,0.15);
    transition: right 0.3s ease, opacity 0.3s ease;
    z-index: 3;
    opacity: 0;
}

.sidebar-container:hover .sidebar {
    right: 0;
    opacity: 1;
}

.sidebar-container:hover .sidebar-hover-area {
    background: rgba(255, 255, 255, 0);
}

.sidebar h2 {
    font-size: 24px;
    color: #e6a8a6;
    margin: 0;
    border-bottom: 2px solid #e6a8a6;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-family: 'Raleway', sans-serif;
}

.sidebar nav a {
    display: block;
    color: #e6a8a6;
    text-decoration: none;
    padding: 10px 15px;
    margin: 5px 0;
    font-weight: 600;
    transition: background 0.3s, color 0.3s;
    border-radius: 8px;
}

.sidebar nav a:hover {
    background: #f7c6c7;
    color: #fff;
}

/* ====== Main Content ====== */
main {
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    flex: 1;
    max-width: 1200px;
    margin: auto;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: auto;
}

section {
    margin: 30px 0;
}

h2 {
    font-family: 'Raleway', sans-serif;
    border-bottom: 2px solid #e6a8a6;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 28px;
    color: #e6a8a6;
}

/* List Styles */
ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    margin: 10px 0;
}

ul li ul {
    margin-left: 20px;
}

ul li ul li {
    font-size: 16px;
}

/* Profile Section */
.profile-section {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 20px;
}

.profile-pic {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.profile-section p {
    flex: 1;
    margin: 0;
}
/* ====== Birthday Card Styles ====== */
#calendar-event {
    position: relative;
    text-align: center;
    padding: 50px;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Open Sans', sans-serif;
}

#calendar-event h2 {
    color: #f7c6c7;
    font-size: 2em;
    margin-bottom: 20px;
}

#calendar-event p {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #333;
}

#password {
    padding: 10px;
    border: 2px solid #f7c6c7;
    border-radius: 25px;
    font-size: 1em;
    width: 80%;
    max-width: 300px;
    margin: 0 auto 20px auto;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease;
}

#password:focus {
    border-color: #f7c6c7;
    outline: none;
    box-shadow: 0 0 5px rgba(255, 79, 79, 0.5);
}

#password-section {
    margin-top: 20px;
}

/* ====== Mother's Day Styles ====== */
#mothers-day-event {
    position: relative;
    text-align: center;
    padding: 50px;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Open Sans', sans-serif;
}

#mothers-day-event h2 {
    color: #f7c6c7;
    font-size: 2em;
    margin-bottom: 20px;
}

#mothers-password {
    padding: 10px;
    border: 2px solid #f7c6c7;
    border-radius: 25px;
    font-size: 1em;
    width: 80%;
    max-width: 300px;
    margin: 0 auto 20px auto;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease;
}

#mothers-password:focus {
    border-color: #f7c6c7;
    outline: none;
    box-shadow: 0 0 5px rgba(255, 79, 79, 0.5);
}

#mothers-password-section {
    margin-top: 20px;
}

/* ====== Shared Card Content Styles ====== */
.card-content {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding: 20px;
    align-items: center;
}

.card-content h1 {
    font-size: 2.5em;
    color: #f7c6c7;
    margin: 0;
    margin-bottom: 10px;
}

.card-content p {
    font-size: 1.2em;
    color: #333;
    margin: 10px 0;
}

/* ====== Slideshow Styles ====== */
.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
}

.slide, .mothers-slide {
    display: none;
    text-align: center;
}

.slide img, .mothers-slide img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Navigation Buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    border-radius: 3px;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
    transform: translateY(-50%);
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* ====== Button Styles ====== */
button {
    background-color: #f7c6c7;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

button:hover {
    background-color: #f4b8c1;
}

/* Resume Button */
.resume-button-container {
    text-align: center;
    margin-top: 15px;
}

.resume-button {
    padding: 10px 20px;
    background-color: #0077b5;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.3s;
}

.resume-button:hover {
    background-color: #005582;
}

.resume-button i {
    margin-right: 8px;
}

/* ====== Utility Classes ====== */
.hidden {
    display: none;
}

.show {
    display: block;
}

.reveal {
    display: block;
    margin-top: 20px;
    font-size: 20px;
    color: #007bff;
}

/* ====== Animation Styles ====== */
.fade {
    -webkit-animation: fade 1.5s ease-in-out;
    animation: fade 1.5s ease-in-out;
}

@-webkit-keyframes fade {
    from { opacity: 0.4 }
    to { opacity: 1 }
}

@keyframes fade {
    from { opacity: 0.4 }
    to { opacity: 1 }
}

/* ====== Footer Styles ====== */
footer {
    background: #e6a8a6;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid #d89d95;
    box-shadow: 0 -4px 8px rgba(0,0,0,0.1);
}

/* ====== Media Queries ====== */
@media screen and (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .header-text {
        text-align: center;
    }

    main {
        padding: 20px;
    }

    .profile-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #calendar-event, #mothers-day-event {
        padding: 30px;
        margin: 10px;
    }

    #password, #mothers-password {
        width: 90%;
    }

    .slide img, .mothers-slide img {
        max-height: 300px;
    }
}
