 * {
    margin: 0;
    padding: 0;
}

html,
body {
    margin: 0;
    height: 100%;
    overflow: hidden
}

body {
    background-size: 100%;
    -webkit-perspective: 800;
}

/* Main Title Section */
.main-title-section {
    text-align: center;
    margin: 100px auto 50px auto;
    max-width: 800px;
    padding: 0 20px;
}

.main-title {
    font-family: 'Brush Script MT', cursive;
    font-size: 4em;
    color: #d45d79;
    font-weight: normal;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 4px rgba(212, 93, 121, 0.3);
    animation: titleGlow 3s ease-in-out infinite alternate;
    letter-spacing: 2px;
}

.title-subtitle {
    font-family: 'Arial', sans-serif;
    font-size: 1.2em;
    color: #a05260;
    margin: 0;
    font-style: italic;
    opacity: 0.8;
    animation: subtitleFade 4s ease-in-out infinite;
}

/* Title Animations */
@keyframes titleGlow {
    0% {
        text-shadow: 2px 2px 4px rgba(212, 93, 121, 0.3);
        transform: scale(1);
    }
    100% {
        text-shadow: 2px 2px 20px rgba(212, 93, 121, 0.6);
        transform: scale(1.02);
    }
}

@keyframes subtitleFade {
    0%, 100% {
        opacity: 0.8;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-5px);
    }
}

li {
    list-style: none;
}

.presents {
    width: 100%;
    text-align: center;
    margin: 20px 0;
    font-family: 'Arial', sans-serif;
}

.presents h2 {
    font-size: 24px;
    color: #d45d79;
    margin-bottom: 5px;
    font-weight: bold;
}

.presents p {
    font-size: 14px;
    color: #a05260;
    margin-bottom: 15px;
}

.gifts {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.gift {
    width: 80px;
    height: 80px;
    background-color: #f4c2c2;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(212, 93, 121, 0.5);
    transition: transform 0.3s ease;
    background-size: 50% 50%;
    background-repeat: no-repeat;
    background-position: center;
}

/* Flip card container */
.flip-card {
    perspective: 1000px;
    width: 80px;
    height: 80px;
}

/* Inner container for flip animation */
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

/* Flip the card when toggled */
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

/* Front face */
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    backface-visibility: hidden;
}

/* Front face uses existing background image */
.flip-card-front {
    background-image: url('../images/min5.jpg');
    background-size: 50% 50%;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #f4c2c2;
}

/* Back face */
.flip-card-back {
    background-color: #f8c8d8;
    color: #5a2a2a;
    transform: rotateY(180deg);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    font-size: 14px;
    border: 2px solid #d45d79;
    box-shadow: 0 4px 6px rgba(212, 93, 121, 0.5);
    padding: 5px;
}

/* Container for text and arrows */
.flip-text-container {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Arrow shapes */
.arrow {
    width: 20px;
    height: 20px;
    border: solid #5a2a2a;
    border-width: 0 3px 3px 0;
    padding: 3px;
    margin: 0 2px;
}

.left-arrow {
    transform: rotate(135deg);
}

.right-arrow {
    transform: rotate(-45deg);
}

.gift:hover {
    transform: scale(1.1);
}

.gift1 {
    background-image: url('../images/min5.jpg');
}

.gift2 {
    background-image: url('../images/min6.jpg');
}

.gift3 {
    background-image: url('../images/min4.jpg');
}

.box {
    width: 200px;
    height: 200px;
    position: relative;
    margin: 200px auto;
    transform-style: preserve-3d;
    transform: rotateX(13deg);
    animation: move 5s linear infinite;
    display: none;
}

.box-title {
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    color: #65b7e3;
    font-family: 'Brush Script MT', cursive;
    font-size: 2em;
    text-align: center;
    z-index: 10;
    text-shadow: 1px 1px 2px rgba(212, 93, 121, 0.3);
}

.minbox {
    width: 100px;
    height: 100px;
    position: absolute;
    left: 50px;
    top: 50px;
    transform-style: preserve-3d;
}

.minbox li {
    width: 100px;
    height: 100px;
    position: absolute;
    left: 0;
    top: 0;
}

.minbox li:nth-child(1) {
    transform: translateZ(50px);
    background-size: cover;
}

.minbox li:nth-child(2) {
    transform: rotateX(180deg) translateZ(50px);
    background-size: cover;
}

.minbox li:nth-child(3) {
    transform: rotateX(-90deg) translateZ(50px);
    background-size: cover;
}

.minbox li:nth-child(4) {
    transform: rotateX(90deg) translateZ(50px);
    background-size: cover;
}

.minbox li:nth-child(5) {
    transform: rotateY(-90deg) translateZ(50px);
    background-size: cover;
}

.minbox li:nth-child(6) {
    transform: rotateY(90deg) translateZ(50px);
    background-size: cover;
}

.maxbox li:nth-child(1) {
    transform: translateZ(50px);
    background-size: 100% 100%;
    transform: translateZ(100px);
}

.maxbox li:nth-child(2) {
    transform: rotateX(180deg) translateZ(100px);
    background-size: 100% 100%;
}

.maxbox li:nth-child(3) {
    transform: rotateX(-90deg) translateZ(100px);
    background-size: 100% 100%;
}

.maxbox li:nth-child(4) {
    transform: rotateX(90deg) translateZ(100px);
    background-size: 100% 100%;
}

.maxbox li:nth-child(5) {
    transform: rotateY(-90deg) translateZ(100px);
    background-size: 100% 100%;
}

.maxbox li:nth-child(6) {
    transform: rotateY(90deg) translateZ(100px);
    background-size: 100% 100%;
}

.maxbox li:nth-child(4) {
    transform: rotateX(90deg) translateZ(100px);
}

.maxbox li:nth-child(5) {
    transform: rotateY(-90deg) translateZ(100px);
}

.maxbox li:nth-child(6) {
    transform: rotateY(90deg) translateZ(100px);
}

.maxbox {
    width: 200px;
    height: 200px;
    position: absolute;
    left: 0;
    top: 0;
    transform-style: preserve-3d;
}

.maxbox li {
    width: 200px;
    height: 200px;
    background: #fff;
    border: 1px solid #ccc;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0.2;
    transition: all 1s ease;
}

.box:hover ol li:nth-child(1) {
    transform: translateZ(300px);
    width: 400px;
    height: 400px;
    opacity: 0.8;
    left: -100px;
    top: -100px;
}

.box:hover ol li:nth-child(2) {
    transform: rotateX(180deg) translateZ(300px);
    width: 400px;
    height: 400px;
    opacity: 0.8;
    left: -100px;
    top: -100px;
}

.box:hover ol li:nth-child(3) {
    transform: rotateX(-90deg) translateZ(300px);
    width: 400px;
    height: 400px;
    opacity: 0.8;
    left: -100px;
    top: -100px;
}

.box:hover ol li:nth-child(4) {
    transform: rotateX(90deg) translateZ(300px);
    width: 400px;
    height: 400px;
    opacity: 0.8;
    left: -100px;
    top: -100px;
}

.box:hover ol li:nth-child(5) {
    transform: rotateY(-90deg) translateZ(300px);
    width: 400px;
    height: 400px;
    opacity: 0.8;
    left: -100px;
    top: -100px;
}

.box:hover ol li:nth-child(6) {
    transform: rotateY(90deg) translateZ(300px);
    width: 400px;
    height: 400px;
    opacity: 0.8;
    left: -100px;
    top: -100px;
}

@keyframes move {
    0% {
        transform: rotateX(13deg) rotateY(0deg);
    }
    25% {
        transform: rotateX(26deg) rotateY(90deg);
    }
    50% {
        transform: rotateX(50deg) rotateY(180deg);
    }
    75% {
        transform: rotateX(26deg) rotateY(270deg);
    }
    100% {
        transform: rotateX(13deg) rotateY(360deg);
    }
}

.birthday-message {
    position: fixed;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 50%;
    background-color: white;
    border: 2px solid #f08080;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(240, 128, 128, 0.7);
    overflow-y: auto;
    z-index: 1000;
}

/* New styles for Google Search Screen */
#googleSearchScreen {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    max-width: 70%;
    height: auto;
    background:  #b6cce4;
    border: 2px solid #ccc;
    border-radius: 10px;
    padding: 30px 40px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    z-index: 1100;
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.google-header {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 30px;
}

.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    margin-right: 15px;
    cursor: pointer;
}

.hamburger-menu .line {
    height: 3px;
    background-color: black;
    border-radius: 2px;
}

.google-logo {
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    font-size: 36px;
    user-select: none;
    display: flex;
    gap: 2px;
}

.google-logo .g {
    color: #4285F4; /* Blue */
}
.google-logo .o1 {
    color: #4285F4; /* Red */
}
.google-logo .o2 {
    color: #4285F4; /* Yellow */
}
.google-logo .g2 {
    color: #4285F4; /* Blue */
}
.google-logo .l {
    color: #4285F4; /* Green */
}
.google-logo .e {
    color: #4285F4; /* Red */
}
.google-logo .g3 {
    color: #4285F4; /* Blue */
}
.google-logo .g4 {
    color: #4285F4; /* Green */
}
.google-logo .g5 {
    color: #4285F4; /* Red */
}

#customGoogleText {
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    font-size: 36px;
    width: 150px;
    border: none;
    outline: none;
    color: #4285F4; /* Default to Google blue */
    background: transparent;
    text-align: center;
    user-select: text;
    cursor: text;
}

/* Color each letter differently using JS or CSS is complex for input, so default to blue */

.search-bar-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

#searchInput {
    width: 100%;
    height: 40px;
    padding: 0 50px 0 10px;
    font-size: 18px;
    border: 2px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    color: #4A90E2; /* changed input text color to blue */
}

#clearSearch {
    position: absolute;
    right: 50px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #888;
    user-select: none;
}

#clearSearch:hover {
    color: #000;
}

#searchButton {
    position: absolute;
    right: 5px;  /* dari 0 → 5px biar geser kiri */
    width: 30px; /* agak kecil biar pas */
    height: 40px;
    background-color: #6a7bdc;
    border: none;
    border-radius: 4px; 
    color: white;
    font-size: 20px;
    cursor: pointer;
    user-select: none;
}

.search-options {
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: center; /* center the content */
    font-size: 12px;
    font-family: 'Arial', sans-serif;
    user-select: none;
    color: #0000FF; /* changed to blue */
    gap: 10px; /* add some spacing */
}

.search-options span {
    cursor: default;
}

.google-photos {
    margin-top: 15px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.google-photos img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.google-photos-text {
    margin-top: 25px;
    text-align: center;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    color: #4A90E2; /* changed to blue */
}

.search-options .goodluck {
    font-style: italic;
    color: #4A90E2; /* changed to blue */
}

.birthday-message h2 {
    color: #4A90E2; /* changed to blue */
    text-align: center;
    margin-bottom: 20px;
}

.birthday-message .message-content {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    color: #333;
    line-height: 1.5;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    background-color: #f08080;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 18px;
    cursor: pointer;
}

.close-button:hover {
    background-color: #e06666;
}

.birthday-photos {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.birthday-photo {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Polaroid Love Section Styles */
.three-cards-section {
    position: fixed;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 70%;
    background-color: white;
    border: 2px solid #f08080;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(240, 128, 128, 0.7);
    overflow-y: auto;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Title Styles */
.polaroid-title {
    margin-bottom: 30px;
    margin-top: 50px;
    text-align: center;
}

.polaroid-title h1 {
    font-family: 'Brush Script MT', cursive;
    font-size: 2.5em;
    color: #d45d79;
    font-weight: normal;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.empty {
    width: 60px;
    height: 60px;
    visibility: hidden; /* jadi tetap ngisi slot grid tapi ga keliatan */
}

/* Polaroid Pyramid Container */
.polaroid-heart-container {
    display: grid;
    grid-template-columns: repeat(7, 60px);
    grid-template-rows: repeat(5, 60px);
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    position: relative;
}

/* Heart Pattern - Only show frames that form the heart shape */
.polaroid-frame {
    width: 60px;
    height: 60px;
    background-color: white;
    border: 3px solid #d45d79;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(212, 93, 121, 0.3);
    position: relative;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.polaroid-frame:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(212, 93, 121, 0.4);
}

.polaroid-frame.clicked {
    transform: scale(0.95);
    opacity: 0.7;
}

/* Create pyramid pattern */
/* Row 1: 4 photos (2 left, 2 right) */
.polaroid-heart-container .polaroid-frame:nth-child(1)  { grid-column: 1; grid-row: 1; }
.polaroid-heart-container .polaroid-frame:nth-child(2)  { grid-column: 2; grid-row: 1; }
.polaroid-heart-container .polaroid-frame:nth-child(3)  { grid-column: 4; grid-row: 1; }
.polaroid-heart-container .polaroid-frame:nth-child(4)  { grid-column: 5; grid-row: 1; }

/* Row 2: 7 photos */
.polaroid-heart-container .polaroid-frame:nth-child(5)  { grid-column: 1; grid-row: 2; }
.polaroid-heart-container .polaroid-frame:nth-child(6)  { grid-column: 2; grid-row: 2; }
.polaroid-heart-container .polaroid-frame:nth-child(7)  { grid-column: 3; grid-row: 2; }
.polaroid-heart-container .polaroid-frame:nth-child(8)  { grid-column: 4; grid-row: 2; }
.polaroid-heart-container .polaroid-frame:nth-child(9)  { grid-column: 5; grid-row: 2; }
.polaroid-heart-container .polaroid-frame:nth-child(10) { grid-column: 6; grid-row: 2; }
.polaroid-heart-container .polaroid-frame:nth-child(11) { grid-column: 7; grid-row: 2; }

/* Row 3: 5 photos (centered) */
.polaroid-heart-container .polaroid-frame:nth-child(12) { grid-column: 2; grid-row: 3; }
.polaroid-heart-container .polaroid-frame:nth-child(13) { grid-column: 3; grid-row: 3; }
.polaroid-heart-container .polaroid-frame:nth-child(14) { grid-column: 4; grid-row: 3; }
.polaroid-heart-container .polaroid-frame:nth-child(15) { grid-column: 5; grid-row: 3; }
.polaroid-heart-container .polaroid-frame:nth-child(16) { grid-column: 6; grid-row: 3; }

/* Row 4: 3 photos (centered) */
.polaroid-heart-container .polaroid-frame:nth-child(17) { grid-column: 3; grid-row: 4; }
.polaroid-heart-container .polaroid-frame:nth-child(18) { grid-column: 4; grid-row: 4; }
.polaroid-heart-container .polaroid-frame:nth-child(19) { grid-column: 5; grid-row: 4; }

/* Row 5: 1 photo (centered) */
.polaroid-heart-container .polaroid-frame:nth-child(20) { grid-column: 4; grid-row: 5; }

/* Hide any extra frames */
.polaroid-heart-container .polaroid-frame:nth-child(n+21) {
    display: none;
}

/* Signature Styles */
.signature {
    margin-top: 30px;
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
}

.signature p {
    font-family: 'Brush Script MT', cursive;
    font-size: 1.2em;
    color: #d45d79;
    margin: 0;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .polaroid-heart-container {
        grid-template-columns: repeat(5, 50px);
        grid-template-rows: repeat(4, 50px);
        gap: 10px;
    }

    .polaroid-frame {
        width: 50px;
        height: 50px;
        border-width: 2px;
    }

    .spiral-left, .spiral-right {
        width: 60px;
        height: 150px;
    }

    .spiral-circle {
        width: 30px;
        height: 30px;
    }

    .spiral-circle::before {
        width: 15px;
        height: 15px;
    }

    .spiral-circle::after {
        width: 6px;
        height: 6px;
    }

    .polaroid-title h1 {
        font-size: 2em;
    }
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    background-color: #f08080;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 18px;
    cursor: pointer;
}

.close-button:hover {
    background-color: #e06666;
}

/* Bear Chat Interface Styles */
.bear-chat-interface {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    min-height: 550px;
    max-height: 90vh;
    background: transparent;
    border-radius: 25px;
    padding: 30px;
    z-index: 1300;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Arial', sans-serif;
    overflow: hidden;
}

/* Bear container */
.bear-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

/* Sparkles animation */
.sparkles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.sparkle {
    position: absolute;
    font-size: 20px;
    animation: sparkleFloat 3s ease-in-out infinite;
    color: #4A90E2;
}

.sparkle-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.sparkle-2 {
    top: 20%;
    right: 15%;
    animation-delay: 0.5s;
}

.sparkle-3 {
    top: 35%;
    left: 5%;
    animation-delay: 1s;
}

.sparkle-4 {
    top: 40%;
    right: 8%;
    animation-delay: 1.5s;
}

.sparkle-5 {
    bottom: 25%;
    left: 12%;
    animation-delay: 2s;
}

.sparkle-6 {
    bottom: 20%;
    right: 10%;
    animation-delay: 2.5s;
}

@keyframes sparkleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
        opacity: 1;
    }
}

/* Bear character */
.bear-character {
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bear-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.3);
    border: 3px solid #4A90E2;
    transition: transform 0.3s ease;
}

.bear-image:hover {
    transform: scale(1.05);
}

/* Reminder sign */
.reminder-sign {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 3px solid #4A90E2;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.2);
    position: relative;
    z-index: 2;
    min-width: 250px;
    text-align: center;
    transform: translateY(-10px);
}

.reminder-sign::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: linear-gradient(45deg, #7BB3F0, #4A90E2, #2E5C8A);
    border-radius: 18px;
    z-index: -1;
    opacity: 0.3;
}

.sign-header {
    margin-bottom: 15px;
}

.reminder-title {
    font-family: 'Arial', sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: #4A90E2;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(74, 144, 226, 0.3);
    letter-spacing: 1px;
}

.sign-content {
    margin-top: 10px;
}

.reminder-message {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    color: #2E5C8A;
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
}

/* Bear chat buttons */
.bear-chat-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    z-index: 2;
    position: relative;
}

.bear-chat-button {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.1s ease;
    min-width: 100px;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.bear-chat-button.accept-btn {
    background: linear-gradient(45deg, #4A90E2, #7BB3F0);
    color: white;
}

.bear-chat-button.accept-btn:hover {
    background: linear-gradient(45deg, #2E5C8A, #4A90E2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.bear-chat-button.reminder-btn {
    background: linear-gradient(45deg, #4A90E2, #7BB3F0);
    color: white;
}

.bear-chat-button.reminder-btn:hover {
    background: linear-gradient(45deg, #2E5C8A, #4A90E2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.bear-chat-button.decline-btn {
    background: linear-gradient(45deg, #f44336, #e57373);
    color: white;
}

.bear-chat-button.decline-btn:hover {
    background: linear-gradient(45deg, #d32f2f, #f44336);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

/* Legacy chat styles removed - replaced with bear-themed styles */

.made-with {
    margin-top: auto;
}

.made-with p {
    font-size: 12px;
    color: #999;
    font-style: italic;
}

/* Hide all background sections when chat interface is active */
.hide-all-sections {
    display: none !important;
}

/* Ensure chat interface is always visible */
#chatInterface.show {
    display: flex !important;
}

/* Funny Error Page Styles - Merged from error-styles.css */
.funny-error-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1300;
    font-family: 'Arial', sans-serif;
}

.error-container {
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 500px;
    width: 90%;
    animation: errorBounce 0.6s ease-out;
}

@keyframes errorBounce {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

.error-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

.broken-heart {
    display: inline-block;
    animation: breakAnimation 2s ease-in-out infinite;
}

@keyframes breakAnimation {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-10deg) scale(1.1); }
    75% { transform: rotate(10deg) scale(0.9); }
}

.error-title {
    color: #e74c3c;
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.error-message {
    margin-bottom: 30px;
}

.error-message p {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #333;
}

.funny-text {
    font-size: 1.1em;
    color: #e67e22;
    font-weight: bold;
    animation: funnyBounce 2s ease-in-out infinite;
}

@keyframes funnyBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.error-subtitle {
    font-size: 0.9em;
    color: #95a5a6;
    font-family: 'Courier New', monospace;
}

.error-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-button {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.try-again {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.try-again:hover {
    background: linear-gradient(45deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.back-main {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.back-main:hover {
    background: linear-gradient(45deg, #2980b9, #21618c);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.error-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px dashed #ecf0f1;
}

.error-footer p {
    font-size: 0.8em;
    color: #bdc3c7;
    font-style: italic;
}

/* Responsive design for error page */
@media (max-width: 600px) {
    .error-container {
        padding: 30px 20px;
        margin: 20px;
    }

    .error-title {
        font-size: 2em;
    }

    .error-icon {
        font-size: 60px;
    }

    .error-actions {
        flex-direction: column;
        align-items: center;
    }

    .error-button {
        width: 100%;
        max-width: 200px;
    }
}

/* Fade In and Fade Out Animations for Page Transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: rotateX(13deg);
    }
    to {
        opacity: 1;
        transform: rotateX(13deg);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.fade-out {
    animation: fadeOut 0.5s ease-out;
}

/* Responsive Design for Bear Chat Interface */
@media (max-width: 768px) {
    .bear-chat-interface {
        width: 90%;
        padding: 15px;
        min-height: 400px;
    }

    .bear-image {
        width: 150px;
        height: 150px;
    }

    .reminder-sign {
        min-width: 200px;
        padding: 15px;
    }

    .reminder-title {
        font-size: 20px;
    }

    .reminder-message {
        font-size: 14px;
    }

    .bear-chat-button {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 80px;
    }
}
