body {
	background-color: #000;
	-webkit-transition: background-color 5s linear;
	-moz-transition: background-color 5s linear;
	-o-transition: background-color 5s linear;
	-ms-transition: background-color 5s linear;
	transition: background-color 5s linear;
	overflow-x: hidden;
	font-family: 'Amiri', serif;
}

.main-container {
	display: none;
}

.peach {
	background-color: #1a0b1e;
}

.peach-after {
	-webkit-animation: peach_alive 8s infinite linear;
	-moz-animation: peach_alive 8s infinite linear;
	-o-animation: peach_alive 8s infinite linear;
	-ms-animation: peach_alive 8s infinite linear;
	animation: peach_alive 8s infinite linear;
}

@keyframes peach_alive {
	0% { background-color: #ffdde1; } /* Light Pink */
	25% { background-color: #c6d8ff; } /* Light Blue */
	50% { background-color: #f0e68c; } /* Light Yellow */
	75% { background-color: #d8bfd8; } /* Light Purple */
	100% { background-color: #ffdde1; } /* Light Pink */
}


.bulb {
	width: 50px;
	height: 50px;
	margin: auto;
	background-repeat: no-repeat;
	background-position: center 0px;
	background-size: 50px 50px;
	background-image: url('bulb.png');
}

.bulb-holder {
	height: 70px;
}

.bulb-glow-yellow { animation: bulb_glow_yellow 5s forwards; }
@keyframes bulb_glow_yellow { 0% { background-image: url('bulb.png'); opacity: 0; } 50% { opacity: 1; } 100% { background-image: url('bulb_yellow.png'); opacity: 1; } }

.bulb-glow-red { animation: bulb_glow_red 5s forwards; }
@keyframes bulb_glow_red { 0% { background-image: url('bulb.png'); opacity: 0; } 50% { opacity: 1; } 100% { background-image: url('bulb_red.png'); opacity: 1; } }

.bulb-glow-blue { animation: bulb_glow_blue 5s forwards; }
@keyframes bulb_glow_blue { 0% { background-image: url('bulb.png'); opacity: 0; } 50% { opacity: 1; } 100% { background-image: url('bulb_blue.png'); opacity: 1; } }

.bulb-glow-green { animation: bulb_glow_green 5s forwards; }
@keyframes bulb_glow_green { 0% { background-image: url('bulb.png'); opacity: 0; } 50% { opacity: 1; } 100% { background-image: url('bulb_green.png'); opacity: 1; } }

.bulb-glow-pink { animation: bulb_glow_pink 5s forwards; }
@keyframes bulb_glow_pink { 0% { background-image: url('bulb.png'); opacity: 0; } 50% { opacity: 1; } 100% { background-image: url('bulb_pink.png'); opacity: 1; } }

.bulb-glow-orange { animation: bulb_glow_orange 5s forwards; }
@keyframes bulb_glow_orange { 0% { background-image: url('bulb.png'); opacity: 0; } 50% { opacity: 1; } 100% { background-image: url('bulb_orange.png'); opacity: 1; } }

.bulb-glow-yellow-after { animation: bulb_glow_yellow_after 1s infinite; }
@keyframes bulb_glow_yellow_after { 0% { background-image: url('bulb.png'); } 50% { background-image: url('bulb_yellow.png'); } 100% { background-image: url('bulb.png'); } }

.bulb-glow-red-after { animation: bulb_glow_red_after 1.2s infinite; }
@keyframes bulb_glow_red_after { 0% { background-image: url('bulb.png'); } 50% { background-image: url('bulb_red.png'); } 100% { background-image: url('bulb.png'); } }

.bulb-glow-blue-after { animation: bulb_glow_blue_after 1.4s infinite; }
@keyframes bulb_glow_blue_after { 0% { background-image: url('bulb.png'); } 50% { background-image: url('bulb_blue.png'); } 100% { background-image: url('bulb.png'); } }

.bulb-glow-green-after { animation: bulb_glow_green_after 1.8s infinite; }
@keyframes bulb_glow_green_after { 0% { background-image: url('bulb.png'); } 50% { background-image: url('bulb_green.png'); } 100% { background-image: url('bulb.png'); } }

.bulb-glow-pink-after { animation: bulb_glow_pink_after 2s infinite; }
@keyframes bulb_glow_pink_after { 0% { background-image: url('bulb.png'); } 50% { background-image: url('bulb_pink.png'); } 100% { background-image: url('bulb.png'); } }

.bulb-glow-orange-after { animation: bulb_glow_orange_after 2.2s infinite; }
@keyframes bulb_glow_orange_after { 0% { background-image: url('bulb.png'); } 50% { background-image: url('bulb_orange.png'); } 100% { background-image: url('bulb.png'); } }

audio { display: none; }

.bannar {
	max-width: 100%;
	transform: translateY(-500px);
}

.bannar-come {
	animation: bannar_come 6s ease-out forwards;
	transform: translateY(0px);
}

@keyframes bannar_come {
	0% { transform: translateY(-1000px) rotate(15deg); }
	33% { transform: translateY(0px) rotate(-10deg) scale(1.1); }
	66% { transform: translateY(50px) rotate(5deg); }
	100% { transform: translateY(0px) rotate(0deg); }
}


.balloons {
	position: fixed;
	bottom: -200px;
	opacity: 0.7;
	z-index: 99;
	width: 100px;
	height: 183px;
	background-repeat: no-repeat;
	background-size: 100px 183px;
}

.balloons h2 {
	font-family: 'Lateef', cursive;
	font-size: 80px;
	color: #fff;
	text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
	display: none;
	margin-top: 30px;
}

#b1, #b11 { background-image: url('b1.png'); }
#b2, #b22 { background-image: url('b2.png'); }
#b3, #b33 { background-image: url('b3.png'); }
#b4, #b44 { background-image: url('b4.png'); }
#b5, #b55 { background-image: url('b5.png'); }
#b6, #b66 { background-image: url('b6.png'); }
#b7, #b77 { background-image: url('b7.png'); }

.balloons-rotate-behaviour-one {
	animation: balloons_rotate_one 10s infinite linear;
	transform: rotate(30deg);
}
@keyframes balloons_rotate_one {
	0% { transform: rotate(30deg); }
	50% { transform: rotate(-30deg); }
	100% { transform: rotate(30deg); }
}

.balloons-rotate-behaviour-two {
	animation: balloons_rotate_two 10s infinite linear;
	transform: rotate(-20deg);
}
@keyframes balloons_rotate_two {
	0% { transform: rotate(-20deg); }
	50% { transform: rotate(20deg); }
	100% { transform: rotate(-20deg); }
}

.sway-behaviour {
	animation: sway 4s ease-in-out infinite;
}

@keyframes sway {
	0% { transform: translateX(0px) rotate(-2deg); }
	50% { transform: translateX(20px) rotate(2deg); }
	100% { transform: translateX(0px) rotate(-2deg); }
}

#b33.sway-behaviour {
	animation-delay: 0.5s;
}
#b44.sway-behaviour {
	animation-delay: 1s;
}

.balloon-border {
	position: fixed;
	top: 100%;
	opacity: 0.5;
	z-index: 9999;
}

#play, #bannar_coming, #balloons_flying, #cake_fadein, #light_candle, #wish_message, #story {
	display: none;
}

.cake-cover {
	margin-top: 50px;
}

.message {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 600px;
    z-index: 999;
    background: rgba(255, 245, 230, 0.9);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2), 0 0 0 10px rgba(255, 255, 255, 0.4);
	border: 2px solid #d4af7a;
}

.message-content {
    text-align: center;
	min-height: 100px; /* Give some space for text */
}

.message p {
    font-family: 'Amiri', serif;
    font-size: 22px;
    color: #5c3c1a;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.5);
    display: none;
    direction: rtl;
    line-height: 1.7;
}

.message .message-title, .message .message-heart {
    font-family: 'Lateef', cursive;
    font-size: 30px;
    color: #d13a5a;
}


.input {
	width: 250px;
	height: 100px;
	position: absolute;
	left: calc(50% - 125px);
	top: calc(50% - 50px);
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.pass {
	outline: none;
	border: none;
	color: white;
	font-size: 22px;
	background: transparent;
	border-bottom: 2px solid #f76d87;
	text-align: center;
	position: relative;
	width: 200px;
	height: 40px;
	transition: all 0.3s ease;
	font-family: 'Nunito', sans-serif;
}

.pass:focus {
	border-bottom-color: #f7a2b3;
}

.pass::placeholder {
	color: white;
	opacity: 0.7;
}

.btnpass {
	margin-top: 20px;
}

.kd {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #f7a2b3;
    font-size: 4rem;
    font-weight: bold;
    font-family: 'Lateef', cursive;
    text-shadow: 3px 3px 5px rgba(0,0,0,0.5);
    z-index: 1000;
}

#kd1 {
    position: fixed;
    height: 100px;
    left: 0;
    top: 30%;
	display: none;
}

.gift-title-container {
	margin-bottom: 30px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}


.btn-primary, .btnpass {
	border: 1px solid #f76d87;
	padding: 10px 20px;
	text-transform: uppercase;
	font-family: 'Nunito', sans-serif;
	font-weight: 700;
	color: #fff;
	background-color: #f76d87;
	border-radius: 25px;
	transition: all 0.4s ease-in-out;
	box-shadow: 0 4px 15px rgba(236, 105, 130, 0.4);
	position: relative;
	opacity: 1;
}

#turn_on {
	visibility: hidden;
}

.btn-primary:hover, .btnpass:hover,
.btn-primary:focus, .btnpass:focus {
	border-color: #f76d87;
	color: #f76d87;
	background-color: #fff;
	transform: translateY(-3px) scale(1.05);
	box-shadow: 0 8px 25px rgba(247, 109, 135, 0.5);
}

.navbar {
	background: transparent;
	border: none;
}

/* Gift Styles - Redesigned */
.gift-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(255,225,230,0.3) 0%, rgba(255,255,255,0) 60%);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.gift-container.visible {
    opacity: 1;
}

.gift {
	position: relative;
	width: 250px;
	height: 220px;
	display: none;
    margin-top: 20px;
}

/* The main box part */
.gift-box {
	width: 250px;
	height: 180px;
	background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
	position: absolute;
	bottom: 0;
	left: 0;
	border-radius: 10px;
	box-shadow: 0 10px 25px rgba(0,0,0,0.3), inset 0 5px 15px rgba(255,255,255,0.2);
}

/* Vertical Ribbon on the box */
.gift-box::before {
	content: '';
	position: absolute;
	width: 40px;
	height: 100%;
	background: linear-gradient(to right, #fdd835, #fbc02d);
	left: 50%;
	transform: translateX(-50%);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}

/* The lid */
.gift-lid {
	width: 270px;
	height: 50px;
	background: linear-gradient(135deg, #ef5350 0%, #d32f2f 100%);
	position: absolute;
	top: 0;
	left: -10px;
	border-radius: 10px;
	z-index: 2;
	box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.7s 0.5s; /* Slower, more graceful */
    transform-origin: top left;
}

/* Horizontal Ribbon on the lid */
.gift-lid::before {
    content: '';
	position: absolute;
	width: 100%;
	height: 40px;
	background: linear-gradient(to right, #fdd835, #fbc02d);
	top: 50%;
    left: 0;
	transform: translateY(-50%);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}

/* The Bow */
.gift-lid::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 8px solid #fdd835;
    border-radius: 50%;
    border-left-color: transparent;
    border-bottom-color: transparent;
    transform: rotate(45deg);
    top: -25px;
    left: calc(50% - 15px);
}

/* Animation for opening */
.gift.open .gift-lid {
	transform: translateY(-150px) rotate(-25deg);
    opacity: 0;
}

/* Magical glow from inside */
.gift-glow {
	position: absolute;
	width: 150px;
	height: 150px;
	background: #fff;
    box-shadow: 0 0 100px 50px #fff, 0 0 150px 75px #fbc02d;
	border-radius: 50%;
	left: 50%;
	top: 60%;
	transform: translate(-50%, -50%) scale(0);
	opacity: 0;
	z-index: -1;
}

.gift.open .gift-glow {
    animation: glow-effect 2s forwards;
    animation-delay: 0.6s;
}

@keyframes glow-effect {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.8); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}


/* New Flip Card Styles */
.gemini-card-container {
	display: none;
	background-color: transparent;
	width: 350px;
	height: 250px;
	perspective: 1000px;
	margin-top: 20px;
	transform: translateY(100px);
	opacity: 0;
}

.gemini-card-container.reveal {
	animation: float-up 1.5s 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes float-up {
	from {
		transform: translateY(80px) scale(0.8);
		opacity: 0;
	}
	to {
		transform: translateY(0) scale(1);
		opacity: 1;
	}
}

.gemini-card-inner {
	position: relative;
	width: 100%;
	height: 100%;
	text-align: center;
	transition: transform 0.8s;
	transform-style: preserve-3d;
	cursor: pointer;
}

.gemini-card-container.flipped .gemini-card-inner {
	transform: rotateY(180deg);
}

.gemini-card-front, .gemini-card-back {
	position: absolute;
	width: 100%;
	height: 100%;
	-webkit-backface-visibility: hidden; /* Safari */
	backface-visibility: hidden;
	background: rgba(255, 255, 255, 0.98);
	color: #333;
	padding: 20px;
	border-radius: 15px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.2);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.gemini-card-back {
	transform: rotateY(180deg);
}


.gemini-card-front h3, .gemini-card-back h4 {
	font-family: 'Lateef', cursive;
	color: #d9534f;
	margin: 10px 0;
	font-size: 2.2rem;
}

.gemini-card-back h4 {
	display: flex;
	align-items: center;
	gap: 10px;
}

.gemini-card-front p, .gemini-card-back p {
	font-family: 'Amiri', serif;
	color: #555;
	direction: ltr;
	font-size: 16px;
	text-align: center;
	text-shadow: none;
	display: block !important; /* Ensure visibility */
	margin: 5px 0;
}
.gemini-card-front p:nth-of-type(1){
	direction: rtl;
	font-size: 20px;
	color: #333;
}
.gemini-card-front .click-instruction {
	font-size: 14px;
	color: #888;
	margin-top: 15px;
	font-style: italic;
	font-family: 'Nunito', sans-serif;
}

.gemini-card-back p span {
	cursor: pointer;
	text-decoration: underline;
	color: #007bff;
}

.gemini-logo {
	width: 1em;
	height: 1em;
	margin: 0 10px;
	vertical-align: middle;
	color: #f7a2b3;
}

.gemini-logo-small {
	width: 24px;
	height: 24px;
	color: #d9534f;
}

/* --- تمت إضافة الأنماط هنا --- */

.heart-photo-container {
    display: none; /* يتم إظهاره بواسطة جافاسكريبت */
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    width: 300px; /* تم التعديل - زيادة العرض */
    height: 270px; /* تم التعديل - زيادة الارتفاع */
}

#personal-photo {
    width: 300px; /* تم التعديل - زيادة العرض */
    height: 270px; /* تم التعديل - زيادة الارتفاع */
    object-fit: cover; /* للتأكد من أن الصورة تملأ القلب */
    object-position: center 25%; /* لضبط موضع الصورة داخل القلب (يمكن تعديله) */
    /* هذا هو المسار الذي يشكل القلب */
    clip-path: path('M150 270 C 150 270, 0 195, 0 105 C 0 15, 90 15, 150 105 C 210 15, 300 15, 300 105 C 300 195, 150 270, 150 270 Z'); /* تم تعديل المسار ليتناسب مع الحجم الجديد */
    animation: heart-beat 2.6s ease-in-out infinite; /* تم التعديل - إبطاء السرعة من 1.3s */
    display: none; /* يتم إظهاره بواسطة جافاسكريبت */
}

@keyframes heart-beat {
  0% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.1);
  }
  30% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* --- أنماط SweetAlert المخصصة باللون الفوشيا --- */
.swal-confirm-fuchsia {
    background-color: #f76d87 !important; /* لون فوشيا */
    color: #fff !important;
    border-radius: 25px !important;
    padding: 10px 30px !important;
    font-family: 'Nunito', sans-serif !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(236, 105, 130, 0.4) !important;
    transition: all 0.3s ease !important;
}

.swal-confirm-fuchsia:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(247, 109, 135, 0.5) !important;
}

/* ستايل لإشعار النسخ */
.fuchsia-toast.swal2-popup {
    background-color: #f76d87 !important;
    color: #fff !important;
    border-radius: 10px !important;
}

.fuchsia-toast .swal2-title {
    color: #fff !important;
    font-size: 1em !important;
}

.tippy-box[data-theme~='fuchsia'] {
    background-color: #f76d87; /* لون فوشيا */
    color: white;
    font-family: 'Amiri', serif;
    font-size: 1.1rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(236, 105, 130, 0.4);
}

.tippy-box[data-theme~='fuchsia'][data-placement^='top'] > .tippy-arrow::before {
    border-top-color: #f76d87;
}

.tippy-box[data-theme~='fuchsia'][data-placement^='bottom'] > .tippy-arrow::before {
    border-bottom-color: #f76d87;
}

.tippy-box[data-theme~='fuchsia'][data-placement^='left'] > .tippy-arrow::before {
    border-left-color: #f76d87;
}

.tippy-box[data-theme~='fuchsia'][data-placement^='right'] > .tippy-arrow::before {
    border-right-color: #f76d87;
}

