/*
Theme Name: Prox
Theme URI: https://www.prox.co.il
Author: Prox Team
Author URI: https://www.prox.co.il
Description: Prox empty design with Bootstrap v4.2 RTL.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: Prox, rtl, bootstrap
Text Domain: Prox
*/

@font-face{
	font-family:'almoni-tzar';
	font-weight:100; /*(light)*/
	font-style: normal;
	src: url('fonts/almoni-tzar/almoni-tzar-aaa-100.eot');
	src: url('fonts/almoni-tzar/almoni-tzar-aaa-100.eot?#iefix') format('embedded-opentype'),
		url('fonts/almoni-tzar/almoni-tzar-aaa-100.ttf') format('truetype'),
		url('fonts/almoni-tzar/almoni-tzar-aaa-100.woff') format('woff');
}
@font-face{
	font-family:'almoni-tzar';
	font-weight:200; /*(light)*/
	font-style: normal;
	src: url('fonts/almoni-tzar/almoni-tzar-aaa-200.eot');
	src: url('fonts/almoni-tzar/almoni-tzar-aaa-200.eot?#iefix') format('embedded-opentype'),
		url('fonts/almoni-tzar/almoni-tzar-aaa-200.ttf') format('truetype'),
		url('fonts/almoni-tzar/almoni-tzar-aaa-200.woff') format('woff');
}
@font-face{
	font-family:'almoni-tzar';
	font-weight:300; /*(light)*/
	font-style: normal;
	src: url('fonts/almoni-tzar/almoni-tzar-aaa-300.eot');
	src: url('fonts/almoni-tzar/almoni-tzar-aaa-300.eot?#iefix') format('embedded-opentype'),
		url('fonts/almoni-tzar/almoni-tzar-aaa-300.ttf') format('truetype'),
		url('fonts/almoni-tzar/almoni-tzar-aaa-300.woff') format('woff');
}
@font-face{
	font-family:'almoni-tzar';
	font-weight:400; /*(regular)*/
	font-style: normal;
	src: url('fonts/almoni-tzar/almoni-tzar-aaa-400.eot');
	src: url('fonts/almoni-tzar/almoni-tzar-aaa-400.eot?#iefix') format('embedded-opentype'),
		url('fonts/almoni-tzar/almoni-tzar-aaa-400.ttf') format('truetype'),
		url('fonts/almoni-tzar/almoni-tzar-aaa-400.woff') format('woff');
}
@font-face{
	font-family:'almoni-tzar';
	font-weight:700; /*(bold)*/
	font-style: normal;
	src: url('fonts/almoni-tzar/almoni-tzar-aaa-700.eot');
	src: url('fonts/almoni-tzar/almoni-tzar-aaa-700.eot?#iefix') format('embedded-opentype'),
		url('fonts/almoni-tzar/almoni-tzar-aaa-700.ttf') format('truetype'),
		url('fonts/almoni-tzar/almoni-tzar-aaa-700.woff') format('woff');
}

@font-face{
	font-family:'almoni-neue-bold';
	font-weight:700; /*(bold)*/
	font-style: normal;
	src: url('css/fonts/ALMONI-NEUE-BOLD-AAA.OTF') format('opentype');
}

@font-face{
	font-family:'fb-tamlil';
	font-weight:400; /*(regular)*/
	font-style: normal;
	src: url('css/fonts/FbTamlil-Regular.otf') format('opentype');
}

@font-face{
	font-family:'fb-tamlil';
	font-weight:500; /*(medium)*/
	font-style: normal;
	src: url('css/fonts/FbTamlil-Medium.otf') format('opentype');
}

@font-face{
	font-family:'fb-shirbut';
	font-weight:400; /*(regular)*/
	font-style: normal;
	src: url('css/fonts/FbShirbut-Regular.otf') format('opentype');
}


html
{
    height: 100%;
    width: 100%;
    text-decoration: none;
    border: none;
}


*
{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: none;
    direction: rtl;
}
body{
	max-height: 100vh;
	overflow: hidden;
}
.dropdown-menu
{
    text-align: right;
}


.bgimg
{
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;

}
#HeaderNav ul
{
  display: flex;
  align-items: center;
  margin-bottom: 0;
}
#HeaderNav ul li
{
  list-style-type: none;
  padding: 0 10px;
}
#HeaderNav ul li a
{
  color:white;
  font-size: 24px;
}


.sc1 {
  color:#f6a424;
}


.mlink {border:2px solid white;color:#fff;width: max-content;padding:0px 30px;font-size: 23px;transition: all 0.3s ease;line-height: 1;}
.mlink2 {border:2px solid #f6a424;background-color:#f6a424;color:#fff;width: max-content;padding:0px 30px;font-size: 23px;transition: all 0.3s ease;line-height: 1;}
.sc2{color:#121212}
.mlink:hover
{
  background-color: white;
  color:#000;
}
a
{
	color: inherit;
}
a:hover
{
  text-decoration: none;
}
.mainform input
{
  display: block;
  direction: rtl!important;
  width: 100%;
  padding: 8px 10px;
  background-color: transparent;
  bordeR:2px solid white;
  color:white;
}
.mainform input::placeholder
{
  color:white;
}
.no-event{
	pointer-events:none;
}
:root{
	--sand:#E6BF52;
	--wood:#111; /* מסגרת דקה, נקי */
}
.hidden-xs-up{display:none!important}@media (max-width:575px){
  #MobNavBtn
	{
		position: absolute;
		width: 45px;
		height: 45px;
		background-color: #212529;
		top:0;
		left: -45px;
	}
	nav.active #MobNavBtn
	{
		left: 0;
		z-index: 1000;
	}
	#MobNavBtn span {
		display: block;
		height:4px;
		width: 70%;
		background: #fff;
		position: absolute;
		top:50%;
		left:50%;
		margin:0 auto;
		-webkit-transition:all .5s ease;
				transition: all .5s ease;
		opacity: 1;
	}
	#MobNavBtn span:nth-child(1) {
		-webkit-transform: translate(-50%,-280%);
				transform: translate(-50%,-280%);
	}
	#MobNavBtn span:nth-child(2) {
		-webkit-transform: translate(-50%,-50%);
				transform: translate(-50%,-50%);
	}
	#MobNavBtn span:nth-child(3) {
		-webkit-transform: translate(-50%,180%);
				transform: translate(-50%,180%);
	}
	nav.active #MobNavBtn span:nth-child(2) {
		opacity: 0;
		visibility: hidden;
	}
	nav.active #MobNavBtn span:nth-child(1) {
		-webkit-transform: translate(-50%,-50%) rotate(-45deg);
				transform: translate(-50%,-50%) rotate(-45deg);
	}
	nav.active #MobNavBtn span:nth-child(3) {
		-webkit-transform: translate(-50%,-50%) rotate(45deg);
				transform: translate(-50%,-50%) rotate(45deg);
	}
		nav#MainNav
		{
			position: fixed;
			right: -100%;
			height: 100vh;
			width: 100%;
			margin:0!important;
			top:0;
			transition: all 0.3s ease;
			z-index: 1000;
			background-color: #000;
		}
		nav#MainNav.active
		{
			right: 0;
		}
		nav#MainNav ul
		{
			display: block;
		}

		nav#MainNav ul li
		{
			width: 100%;
			padding: 0;
			border-bottom:1px solid #fff;
		}
		nav#MainNav ul li a
		{
			color:#fff;
			display: block;
			padding: 8px 10px;
			width: 100%;
		}
		.mfcc{justify-content: center;}
		.hauto{height: auto!important;}
		.mpy{padding: 40px 0;}
		.mmargin{margin: 0 auto!important;}
		.mmb20{margin-bottom: 20px!important;}
		.mw50{width: 50%!important;}
		.mhfs20{font-size: 20px!important;}
		.mhfs30{font-size: 30px!important;}
		.mw90{width: 90%!important;}
		.mcenter{text-align: center!important;}
		.mw100{width: 100%!important;}
		.nomobile{display: none!important;}
		.mbh200{height: 200px!important;}
		.mblock{display: block!important;}
		.mbh300{height: 300px!important;}
		.mpdt10{padding-top: 10px!important;}
		.mpb10{padding-bottom: 10px!important;}
		.mjcfs{justify-content: space-between!important;}
		.nosite{display: block;}

  .hidden-xs-down{display:none!important}}@media (min-width:576px){.hidden-sm-up{display:none!important}}@media (max-width:767px){.hidden-sm-down{display:none!important}}@media (min-width:768px){.hidden-md-up{display:none!important}}@media (max-width:991px){.hidden-md-down{display:none!important}}@media (min-width:992px){.hidden-lg-up{display:none!important}}@media (max-width:1199px){.hidden-lg-down{display:none!important}}@media (min-width:1200px){.hidden-xl-up{display:none!important}}.hidden-xl-down{display:none!important}.visible-print-block{display:none!important}@media print{.visible-print-block{display:block!important}}.visible-print-inline{display:none!important}@media print{.visible-print-inline{display:inline!important}}.visible-print-inline-block{display:none!important}@media print{.visible-print-inline-block{display:inline-block!important}}@media print{.hidden-print{display:none!important}}

/***********Interactive room***********/
body {
    overflow: auto;
}
.hourglass-wrap{
	min-height:100%;
	display:grid;
	place-items:center;
	transform: scale(.7);
    top: -78px;
    position: relative;
}
.hourglass-card{
	width:min(92vw,300px); /* הקטנה ל-300px */
	border:1px solid #e5e7eb;
	border-radius:20px;
	box-shadow:0 10px 30px rgba(0,0,0,.06);
	background:#fff;
	padding:16px 16px 8px; /* הקטנת הpadding */
	text-align:center;
}
.hourglass-title{
	font-size:16px; /* הקטנה */
	margin:0 0 6px;
	color:#111;
	font-weight:700;
	letter-spacing:.2px;
}
.hourglass-subtitle{margin:0 0 10px;color:#4b5563;font-size:12px} /* הקטנה */
.hourglass-stage{
	position:relative;
	width:100%;
	aspect-ratio:0;
	display:grid;
	place-items:center;
	margin:4px 0 8px;
	cursor:pointer;
	user-select:none;
}
.refuah-box {
	display: inline-block;
	    padding: 20px 20px;
	    border: 2px solid #d4af37;
	    border-radius: 12px;
	    background: linear-gradient(135deg, #fdfbf7 0%, #f8f6f0 100%);
	    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
	    font-family: 'fb-tamlil';
	    text-align: center;
	    position: relative;
			margin-bottom: 20px;
}

.refuah-box::before {
	content: '✦';
	    position: absolute;
	    top: -25px;
	    left: 50%;
	    transform: translateX(-50%);
	    /* background: white; */
	    padding: 0 10px;
	    color: #d4af37;
	    font-size: 33px;
}

.refuah-box::after {
		content: '';
		position: absolute;
		inset: 4px;
		border: 1px solid rgba(212, 175, 55, 0.3);
		border-radius: 10px;
		pointer-events: none;
}

.refuah-text {
	font-size: 20px;
	color: #00bcd4;
	font-weight: 500;
	line-height: 1;
	margin: 0;
}
svg{width:92%; height:auto; transition:transform .6s cubic-bezier(.22,1,.36,1);}
.hourglass-flipped svg{transform:rotate(180deg)}
/* מונה */
.hourglass-timer{
	font-variant-numeric:tabular-nums;
	font-size:22px; /* הקטנה */
	letter-spacing:.5px;
	margin:2px 0 8px;
	color:#111;
	font-weight:800;
}
.hourglass-hint{font-size:11px;color:#6b7280;margin:0 0 4px;text-align:center;} /* הקטנה */
.hourglass-btns{display:flex;gap:8px;justify-content:center;margin:8px 0 4px} /* הקטנה */
button{
	appearance:none;border:1px solid #e5e7eb;background:#fff;color:#111;
	padding:8px 12px;border-radius:12px;cursor:pointer;font-weight:700;font-size:12px; /* הקטנה */
}
button:hover{box-shadow:0 4px 16px rgba(0,0,0,.06)}
/* גרגרי זרימה */
.stream-dot{
	fill:var(--sand);
	animation:fall .8s linear infinite;
	opacity:.9
}
@keyframes fall{
	0%{transform:translateY(-4px);opacity:.0}
	15%{opacity:1}
	100%{transform:translateY(70px);opacity:0}
}
/* כשמהפכים את השעון - הגרגרים זורמים במהירות הפוכה */
.hourglass-flipped .stream-dot{
	animation:fallUp .8s linear infinite;
}
@keyframes fallUp{
	0%{transform:translateY(4px);opacity:.0}
	15%{opacity:1}
	100%{transform:translateY(-70px);opacity:0}
}
/* Interactive Room Styles */
.interactive-room {
    min-height: 100vh;

    position: relative;
    overflow: hidden;
    font-family: 'almoni-tzar', Arial, sans-serif;
		transform: scale(.85) !important;
    top: -92px;
}

/* Top Section Layout */
.top-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0px;
    position: relative;
    flex-direction: row-reverse;
    z-index: 10;
    max-width: 1500px;
    height: auto;
    margin: 0 auto;
    padding-top: 20px;
}

/* Clock Styles */
.clock-container {
    position: relative;
    flex: 0 0 auto;
    order: -1;
}

.clock {
    width: 240px;
    height: 240px;
    background-image: url('images/clock.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    border-radius: 50%;
    position: relative;
    /* box-shadow: 0 4px 20px rgba(0,0,0,0.3); */
}

.clock-face {
    width: 100%;
    height: 100%;
    position: relative;
}

.number {
    display: none;
}

.number span {
    display: none;
}

.hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom;
    border-radius: 10px;
}

.hour-hand {
    width: 4px;
    height: 45px;
    background: #333;
    margin-left: -2px;
}

.minute-hand {
    width: 3px;
    height: 60px;
    background: #666;
    margin-left: -1.5px;
}

.second-hand {
    width: 1px;
    height: 65px;
    background: #e91e63;
    margin-left: -0.5px;
}

.center-point {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #333;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

/* Date Display Styles */
.date-display {
    background: rgb(0 188 212);
    border-radius: 15px;
    padding: 12px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 350px;
    max-width: 75%;
    width: 100%;
    justify-content: space-between;
    /* flex: 1; */
    /* margin: 0 30px; */
}

.date-container {
    display: flex;
    gap: 25px;
    width: 100%;
    /* flex: 1; */
}

.hebrew-date, .regular-date {
    text-align: right;
    /* flex: 1; */
}

.seperator
{
    width: 10%;
    border-right: 1px solid #ffffff;
    height: 100px;
}
.greenbox
{
    background-color: #bbcc34;
    border-radius: 15px;
    padding:15px 40px;
    line-height: 1;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    font-size: 30px;
    color: #ffffff;
    font-family: 'fb-tamlil', 'almoni-tzar', Arial, sans-serif;
}
.regular-date .day-name {
    display: block;
    font-size:50px;
    color: #e91e63;
    font-weight: 400;
    margin-bottom: 0px;
    line-height: 1;
    font-family: 'fb-tamlil', 'almoni-tzar', Arial, sans-serif;
}

.hebrew-date .day-name {
    display: block;
    font-size:50px;
    color: #ffffff;
    font-weight: 400;
    margin-bottom: 3px;
    line-height: 1;
    font-family: 'fb-tamlil', 'almoni-tzar', Arial, sans-serif;
}

.hebrew-date .date-number {
    display: block;
    font-size:50px;
    color: #ffffff;
    line-height: 1;
    font-family: 'fb-tamlil', 'almoni-tzar', Arial, sans-serif;
}

.regular-date .english-day {
    display: block;
    font-size: 50px;
    color: #e91e63;
    font-weight: bold;
    margin-bottom: 0px;
    line-height: 1;
    font-family: 'fb-tamlil', 'almoni-tzar', Arial, sans-serif;
}



.date-navigation {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 5%;
}

.nav-btn {
    background: #00bcd4;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #0097a7;
    transform: scale(1.1);
}



.abscontent
{
    position: absolute;
    bottom:-115px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    left: 0;

}
.side-text {

    width:75%;
    margin: 0 auto;
    font-size: 30px;
    line-height: 1.3;
    color: rgb(0 188 212);
    text-align: right;

}

.floating-green-button {
    background: linear-gradient(45deg, #cddc39, #8bc34a);
    color: white;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 3px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.floating-green-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

.bottom-logo {
    margin-top: 10px;
}

.logo-text {
    text-align: center;
}

.logo-main {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #00bcd4;
    margin-bottom: 2px;
}

.logo-sub {
    display: block;
    font-size: 14px;
    color: #e91e63;
    font-weight: bold;
}

.room-container
{
    position: relative;
    font-family: 'fb-tamlil', 'almoni-tzar', Arial, sans-serif;
    width: 75%;

}

.side-text
{
    font-family: 'fb-tamlil', 'almoni-tzar', Arial, sans-serif;
}
/* Room Content */
.room-content {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    height: calc(100vh - 200px); /* Adjusted for new margin-top */
    margin-top: 115px; /* Only abscontent height */
    padding: 20px 0px;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

/* Shelf Styles */
.shelf {
    position: relative;

    background-image: url(images/shelf.png);
    background-repeat: no-repeat;
    background-position: right;
    background-size: contain;
    max-width: none;
    margin-left: 0;
    max-width: 100%;
    margin:120px 0px;
}

.top-shelf {
    width: 950px;
    height: 175px;
}
.bottom-shelf
{
    width: 830px;
    height: 145px;
    margin-top: 140px;
}
/* Remove the old CSS shelf pseudo-elements since we're using the PNG */
.top-shelf::before,
.bottom-shelf::before {
    display: none;
}

/* Clickable Items */
.clickable-item {
    position: absolute;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
}

.clickable-item:hover {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(1.2);
}

.clickable-item img {
    max-width: 85px;
    max-height: 85px;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
    transition: all 0.3s ease;
}

/* Special sizing for specific items */
.clickable-item[data-item="camera"] img,
.clickable-item[data-item="tsadka"] img {
    max-width: 135px;
    max-height: 300px;
}

.clickable-item[data-item="tehelem"] img,
.clickable-item[data-item="sedor"] img {
		max-width: 127px;
    max-height: 300px;
}

.clickable-item[data-item="heart"] img {
    max-width: 235px;
    max-height: 300px;
}

.clickable-item[data-item="trophy"] img {
    max-width: 280px;
		max-height: 240px;
}

.clickable-item[data-item="veahavta"] img,
.clickable-item[data-item="photo"] img
 {
    max-width: 155px;
    max-height: 300px;
}
.clickable-item[data-item="kepa"] img
{
    max-width: 300px;
    max-height: 300px;
}
.clickable-item[data-item="weights"] img {
    max-width: 180px;
    max-height: 300px;
}

.clickable-item[data-item="mic"] img {
    max-width: 265px;
    max-height: 300px;
    transform: scaleX(-1) scale(1) rotate(12deg);
}

.clickable-item[data-item="mashniot"] img {
    max-width: 155px;
    max-height: 300px;
}
/* כפתור המבורגר */
.hamburger-menu {
		position: fixed;
		top: 20px;
		right: 20px;
		z-index: 1000;
}

.hamburger-btn {
		width: 50px;
		height: 50px;
		background: linear-gradient(145deg, #00bcd4, #e91e63);
		border: none;
		border-radius: 12px;
		cursor: pointer;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 4px;
		box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
		transition: all 0.3s ease;
}

.hamburger-btn:hover {
		transform: scale(1.05);
		box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
}

.hamburger-line {
		width: 25px;
		height: 3px;
		background: white;
		border-radius: 2px;
		transition: all 0.3s ease;
}

/* אנימציה של המבורגר לX */
.hamburger-btn.active .hamburger-line:nth-child(1) {
		transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
		opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
		transform: rotate(-45deg) translate(7px, -7px);
}

/* התפריט */
.menu-overlay {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, 0.5);
		backdrop-filter: blur(5px);
		opacity: 0;
		visibility: hidden;
		transition: all 0.3s ease;
		z-index: 999;
}

.menu-overlay.active {
		opacity: 1;
		visibility: visible;
}

.menu-content {
		position: fixed;
		top: 80px;
		right: 20px;
		background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(240, 249, 253, 0.95));
		backdrop-filter: blur(10px);
		border-radius: 20px;
		padding: 20px;
		box-shadow: 0 10px 40px rgba(0, 188, 212, 0.2);
		transform: translateY(-20px) scale(0.9);
		opacity: 0;
		transition: all 0.3s ease;
		border: 1px solid rgba(0, 188, 212, 0.1);
}

.menu-overlay.active .menu-content {
		transform: translateY(0) scale(1);
		opacity: 1;
}

.menu-title {
		font-size: 18px;
		font-weight: bold;
		color: #00695c;
		text-align: center;
		margin-bottom: 15px;
		background: linear-gradient(45deg, #00bcd4, #e91e63);
		-webkit-background-clip: text;
		-webkit-text-fill-color: transparent;
		background-clip: text;
}

.grade-list {
		display: flex;
		flex-direction: column;
		gap: 8px;
		min-width: 150px;
}

.grade-item {
		display: block;
		padding: 12px 20px;
		background: linear-gradient(145deg, rgba(0, 188, 212, 0.1), rgba(233, 30, 99, 0.1));
		color: #00695c;
		text-decoration: none;
		border-radius: 12px;
		text-align: center;
		font-weight: 500;
		font-size: 16px;
		transition: all 0.3s ease;
		border: 2px solid transparent;
		position: relative;
		overflow: hidden;
}

.grade-item::before {
		content: '';
		position: absolute;
		top: 0;
		left: -100%;
		width: 100%;
		height: 100%;
		background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
		transition: left 0.5s ease;
}

.grade-item:hover::before {
		left: 100%;
}

.grade-item:hover {
		transform: translateY(-2px);
		background: linear-gradient(145deg, rgba(0, 188, 212, 0.2), rgba(233, 30, 99, 0.2));
		box-shadow: 0 5px 15px rgba(0, 188, 212, 0.3);
		border-color: rgba(0, 188, 212, 0.3);
}

.grade-item.current {
		background: linear-gradient(145deg, #00bcd4, #e91e63);
		color: white;
		font-weight: bold;
		box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
}

.grade-item.current:hover {
		background: linear-gradient(145deg, #0097a7, #c2185b);
}

/* סמלים לכיתות */
.grade-item .grade-icon {
		display: inline-block;
		width: 20px;
		height: 20px;
		border-radius: 50%;
		background: linear-gradient(45deg, #00bcd4, #e91e63);
		color: white;
		font-size: 12px;
		line-height: 20px;
		text-align: center;
		margin-left: 10px;
		font-weight: bold;
}

.grade-item.current .grade-icon {
		background: rgba(255, 255, 255, 0.2);
}

/* אנימציות נוספות */
@keyframes slideIn {
		from {
				transform: translateX(100%);
				opacity: 0;
		}
		to {
				transform: translateX(0);
				opacity: 1;
		}
}

.menu-overlay.active .grade-item {
		animation: slideIn 0.3s ease forwards;
}

.menu-overlay.active .grade-item:nth-child(1) { animation-delay: 0.1s; }
.menu-overlay.active .grade-item:nth-child(2) { animation-delay: 0.15s; }
.menu-overlay.active .grade-item:nth-child(3) { animation-delay: 0.2s; }
.menu-overlay.active .grade-item:nth-child(4) { animation-delay: 0.25s; }
.menu-overlay.active .grade-item:nth-child(5) { animation-delay: 0.3s; }
.menu-overlay.active .grade-item:nth-child(6) { animation-delay: 0.35s; }

/* רספונסיביות */
@media (max-width: 480px) {
		.menu-content {
				right: 10px;
				left: 10px;
				top: 70px;
		}

		.hamburger-menu {
				top: 15px;
				right: 15px;
		}
}
/*******END HUMBURGER*********/
/* Special styling for headphones positioned next to shelf */
.headphones-item {
    z-index: 6;
}

.headphones-item img {
    max-width: 350px;
    max-height: 300px;
    transform: scaleX(-1);
}

/* Hover effects for specific items */
.clickable-item[data-item="camera"]:hover img {
    transform: rotate(-5deg);
}

.clickable-item[data-item="heart"]:hover img {
    transform: scale(1.2);
    filter: brightness(1.3) drop-shadow(2px 2px 8px rgba(233, 30, 99, 0.5));
}

.clickable-item[data-item="trophy"]:hover img {
    transform: rotate(5deg);
    filter: brightness(1.3) drop-shadow(2px 2px 8px rgba(255, 193, 7, 0.5));
}

.clickable-item[data-item="weights"]:hover img {
    transform: translateY(-3px);
}

/* .clickable-item[data-item="headphones"]:hover img {
    transform: rotate(-10deg) scale(1.1);
} */

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup-container {
	background-image: url(images/frame.png);
	background-size: 100% 100%;
	background-repeat: no-repeat;
	background-position: top;
	background-color: transparent;
	border-radius: 0;
	padding: 0;
	max-width: 700px;
	max-height: 85vh;
	overflow: auto;
	position: relative;
	transform: scale(0.7);
	transition: transform 0.3s ease;
	min-height: 590px;
	/* min-width: 602px; */
	max-width: 700px;
	width: 100%;
	max-height: 65vh;
	padding-top: 0;
}

.popup-overlay.active .popup-container {
    transform: scale(1.4);
}



.popup-close {
    position: absolute;
    top: 32px;
    right: 2px;
    background: rgb(233 30 99 / 0%);
    color: white;
    border: none;
    /* border-radius: 50%; */
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);   */
}

.popup-close:hover {
    background: #c2185b;
    transform: scale(1.1);
}

.popup-content {
    padding: 130px 75px 0 75px;
    position: relative;
}



.popup-content h2 {
    position: absolute;
    top: 55px;
    left: 50%;
    transform: translateX(-50%);
    /* background: linear-gradient(45deg, #cddc39, #8bc34a); */
    color: white;
    padding: 12px 30px;
    border-radius: 20px;
    margin: 0;
    font-size: 40px;
    text-align: center;
    font-family: 'fb-tamlil', 'almoni-tzar', Arial, sans-serif;
    white-space: nowrap;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); */
}

.popup-content img {

    margin: 0 auto;

    width: auto;
		max-width: 100%;
    display: block;
}
.audio-item h3{
    background-color: #c2eaf4;
    width: max-content;
    transform: rotate(4deg);
    padding: 5px 10px 0;
    font-family: 'fb-tamlil', 'almoni-tzar', Arial, sans-serif;
}
.popup-content video {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 15px 0;
}

.popup-content audio {
    width: 100%;
    margin: 15px 0;
}

.popup-content p {
    font-size: 19px;
    line-height: 1.6;
    color: #333;
    text-align: right;
    direction: rtl;
    font-family: 'fb-tamlil', 'almoni-tzar', Arial, sans-serif;
    margin-top: 20px;
    max-height: 385px;
    /* Firefox scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: #e91e63 transparent;
}

/* WebKit scrollbar styling for Chrome/Safari */
.popup-content p::-webkit-scrollbar ,..popup-container::-webkit-scrollbar {
    width: 6px;
}

.popup-content p::-webkit-scrollbar-track ,..popup-container::-webkit-scrollbar-track {
    background: transparent;
}

.popup-content p::-webkit-scrollbar-thumb,..popup-container::-webkit-scrollbar-thumb {
    background-color: #e91e63;
    border-radius: 3px;
}

/* Scrollbar arrows/buttons - shown only when there's overflow */
.popup-content p::-webkit-scrollbar-button,..popup-container::-webkit-scrollbar-button {
    background-color: #e91e63;
    height: 12px;
}

.popup-content p::-webkit-scrollbar-button:hover,..popup-container::-webkit-scrollbar-button:hover {
    background-color: #c2185b;
}
/* סטייל לגלריית תמונות בפופאפ */
.images-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
    border-radius: 8px;
    background: rgba(248, 249, 250, 0.5);
}

.image-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0 !important;
}

.image-item h3 {
    margin: 0 0 8px 0 !important;
    font-size: 14px;
    color: #495057;
    text-align: center;
    font-weight: 600;
}

/* תמונות מיני בגלריה */
.images-container img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    cursor: zoom-in !important;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 0 !important;
}

.images-container img:hover {
    transform: scale(1.05);
    border-color: #007bff;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

/* מיקום מתקדם - Grid לתמונות רבות */
.images-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    max-width: 100%;
    padding: 20px;
}

/* עבור מסכים קטנים */
@media (max-width: 768px) {
    .images-container {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
        padding: 15px;
        max-height: 50vh;
    }

    .images-container img {
        width: 100px;
        height: 100px;
    }
}

/* עבור מסכים גדולים - יותר תמונות בשורה */
@media (min-width: 1200px) {
    .images-container {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .images-container img {
        width: 140px;
        height: 140px;
    }
}

/* אפקט טעינה נחמד */
.images-container img {
    opacity: 0;
    animation: fadeInImage 0.5s ease forwards;
}

.images-container img:nth-child(1) { animation-delay: 0.1s; }
.images-container img:nth-child(2) { animation-delay: 0.2s; }
.images-container img:nth-child(3) { animation-delay: 0.3s; }
.images-container img:nth-child(4) { animation-delay: 0.4s; }
.images-container img:nth-child(5) { animation-delay: 0.5s; }
.images-container img:nth-child(n+6) { animation-delay: 0.6s; }

@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
div#popupContent h3 {
    font-family: 'fb-tamlil';
    color: #ee2f62;
    font-size: 22px;
}
/* סקרול בר יפה לגלריה */
.images-container::-webkit-scrollbar {
    width: 8px;
}

.images-container::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
}

.images-container::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
}

.images-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.5);
}

/* כשיש כותרת לפופאפ עם תמונות */
.popup-content h2 + .images-container {
    margin-top: 20px;
}

/* וריאנט - תצוגה ליניארית (אם את מעדיפה בשורה אחת) */
.images-container.linear {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    padding: 20px 10px;
}

.images-container.linear img {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    margin-left: 10px;
}

.images-container.linear img:first-child {
    margin-left: 0;
}
/* CSS להגדלת תמונות - להוסיף לקובץ הסגנון הקיים */
.magnify-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: zoom-out;
}

.magnify-overlay.magnify-active {
    display: flex;
}

.magnify-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.magnify-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    cursor: zoom-out;
    transition: transform 0.3s ease;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.magnify-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.magnify-close:hover {
    background: rgba(255, 255, 255, 1);
}

.magnify-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.magnify-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.magnify-nav.magnify-visible {
    display: flex;
}

.magnify-prev {
    right: 20px;
}

.magnify-next {
    left: 20px;
}

.magnify-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 10001;
}

/* סגנון לתמונות הניתנות להגדלה */
.magnify-clickable {
    cursor: zoom-in !important;
    transition: transform 0.2s ease;
}

.magnify-clickable:hover {
    transform: scale(1.02);
}

/* אנימציות */
@keyframes magnify-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes magnify-scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.magnify-overlay.magnify-active {
    animation: magnify-fadeIn 0.3s ease;
}

.magnify-image {
    animation: magnify-scaleIn 0.3s ease;
}
/* Loading Progress Styles for Popup */

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    gap: 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #00bcd4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 18px;
    color: #333;
    font-family: 'Arial', sans-serif;
    font-weight: 500;
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    max-width: 300px;
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00bcd4, #4caf50);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 5px;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    font-size: 16px;
    color: #666;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
}
/* ========================================
   RESPONSIVE DESIGN - Mobile First Approach
   ======================================== */

/* Base Mobile Styles (up to 480px) */
@media (max-width: 500px) {
    .interactive-room {
        padding: 0;
        overflow-x: hidden;
    }

    /* Top Section - Mobile Layout */
    .top-section {
        flex-direction: column;
        align-items: center;
        padding: 10px 15px;
        gap: 20px;
        height: auto;
        max-width: 100%;
    }

    .clock-container {
        width: auto !important;
        order: 1;
    }

    .clock {
        width: 100px;
        height: 100px;
        background-image: url('images/clock.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        border: none;
    }

    .hour-hand {
        width: 2px;
        height: 25px;
        margin-left: -1px;
    }

    .minute-hand {
        width: 1px;
        height: 35px;
        margin-left: -0.5px;
    }

    .second-hand {
        height: 40px;
    }

    .center-point {
        width: 6px;
        height: 6px;
    }

    /* Date Display - Mobile */


    .date-display {
        width: 100%;
        max-width: 100%;
        min-width: auto;
        padding: 10px;
        margin: 0;
        box-sizing: border-box;
        order: 2;
        /* display: block; */
        text-align: center;
        flex-wrap: wrap;
        text-align: center;
        justify-content: center;
    }

    .date-container {
        flex-direction: column;
        gap: 0!important;
        width: 60%;
        align-items: center;
    }

    .date-container > div {
        width: 100% !important;
        text-align: center;
    }

    .seperator {
        display: none;
    }

    /* Calendar Icon - Mobile */
    .calendar-icon {
        width: 80px!important;
        height: 80px!important;
        order: -1;
    }

    .calendar-hebrew-day {
        font-size: 18px!important;
    }

    .calendar-temp {
        font-size: 16px!important;
    }

    /* Date Text - Mobile */
    .hebrew-date .day-name,
    .regular-date .day-name,
    .hebrew-date .date-number,
    .regular-date .english-day {
        font-size: 18px !important;
        text-align: center;
    }

    /* Navigation Buttons - Mobile */
    .date-navigation {
        display: flex;
        flex-direction: row;
        gap: 10px;
        width: auto;
        justify-content: center;
        margin-top: 10px;
    }

    .nav-btn {
        width: 50px;
        height: 50px;
        max-width: 30px;
        max-height: 30px;
        font-size: 24px;
        border-radius: 50%;
        touch-action: manipulation;
    }

    /* Green Box - Mobile */
    .greenbox {
        font-size: 15px!important;

        text-align: center;
    }

    .abscontent
    {
        position: relative!important;
        width: 100%!important;
        bottom: auto!important;
        justify-content: center!important;

    }
    .abscontent h4
    {
       color:#fff!important;
       margin-bottom: 0!important;
       font-size: 24px!important;
    }

    /* Room Content - Mobile */
    .room-content {
        flex-direction: column;
        padding: 20px 10px;
        margin-top: 0px; /* Only abscontent height */
        height: auto;
        min-height: auto;
    }

    .room-container {
        width: 100% !important;
        order: 1;
    }

    .side-content {
        width: 100% !important;
        order: 2;
        margin-top: 30px;
        gap: 20px;
    }

         /* Shelf - Mobile */
     .shelf {
         width: 100% !important;
         height: 9vh;
         background-size: contain;
         background-position: center;
         margin: 100px auto;
         position: relative;
     }

     .top-shelf {
         margin-bottom: 0px;
     }

     .bottom-shelf {
         margin-bottom:30px;
     }

     /* Clickable Items - Mobile (Touch Friendly) */
     .clickable-item {
         touch-action: manipulation;
         cursor: pointer;
         min-width: 44px;
         min-height: 44px;
         display: flex;
         align-items: center;
         justify-content: center;
     }

     .clickable-item img {
         max-width: 65px;
         max-height: 65px;
         transition: transform 0.2s ease;
         object-fit: contain;
     }

     .clickable-item:active {
         transform: scale(0.95);
     }

     /* Mobile Item Positioning - Maintain Desktop Order */
     /* Top Shelf Items (right to left order maintained) */
     .clickable-item[data-item="veahavta"] {
         right: 0% !important;
         top: -70px !important;
     }

     .clickable-item[data-item="camera"] {
         right: 12% !important;
         top: -50px !important;
     }

     .clickable-item[data-item="sedor"] {
         right: 24% !important;
         top: -70px !important;
     }

     .clickable-item[data-item="tehelem"] {
         right: 35% !important;
         top: -70px !important;
     }

     .clickable-item[data-item="tsadka"] {
         right: 47% !important;
         top: -60px !important;
     }

     .clickable-item[data-item="photo"] {
         right: 58% !important;
         top: -54px !important;
     }

     .clickable-item[data-item="kepa"] {
         right: 71% !important;
         top: -15px !important;
     }

     /* Bottom Shelf Items (right to left order maintained) */
     .clickable-item[data-item="mashniot"] {
         right: 0% !important;
         top: -78px !important;
     }

     .clickable-item[data-item="weights"] {
         right: 13% !important;
         top: -50px !important;
     }

     .clickable-item[data-item="mic"] {
         right: 33% !important;
         top: -45px !important;
     }

     .clickable-item[data-item="trophy"] {
         right: 50% !important;
         top: -100px !important;
     }

     .clickable-item[data-item="heart"] {
         right: 70% !important;
         top: -75px !important;
     }

     /* Headphones positioning */
     .headphones-item {
         right: 0% !important;
         bottom: -45px !important;
         left: 0;
     }

     /* Specific Item Sizes - Mobile (Touch Friendly & Visible) */
     .clickable-item[data-item="camera"] img,
     .clickable-item[data-item="tsadka"] img {
         max-width: 60px;
         max-height: 90px;
     }

     .clickable-item[data-item="tehelem"] img,
     .clickable-item[data-item="sedor"] img {
         max-width: 60px;
         max-height: 90px;
     }

     .clickable-item[data-item="heart"] img {
         max-width: 100px;
         max-height: 100px;
     }

     .clickable-item[data-item="trophy"] img {
         max-width: 115px;
         max-height: 115px;
     }

     .clickable-item[data-item="veahavta"] img,
     .clickable-item[data-item="photo"] img,
     .clickable-item[data-item="kepa"] img {
         max-width: 65px;
         max-height: 90px;
     }

     .clickable-item[data-item="weights"] img {
         max-width: 75px;
         max-height: 90px;
     }

     .clickable-item[data-item="mic"] img {
         max-width: 115px;
         max-height: 90px;
     }

     .clickable-item[data-item="mashniot"] img {
         max-width: 65px;
         max-height: 90px;
     }

     .headphones-item img {
			 max-width: 80px;
			 max-height: 90px;
			 top: 62px;
			 position: relative;
     }

    /* Side Text - Mobile */
    .side-text {
        font-size: 16px !important;
        line-height: 1.5;
        padding: 20px;
        text-align: center;
        order: 1;
    }

    .floating-green-button {
        font-size: 14px !important;
        padding: 15px 25px !important;
        order: 2;
        align-self: center;
        margin: 20px 0;
    }

    /* Logo - Mobile */
    .side-content img {
        max-width: 200px !important;
        order: 3;
        align-self: center;
    }

    /* Popup - Mobile */
    .popup-container {
        margin: 10px;

        max-width: calc(100% - 20px);
        min-height: 300px;
        min-width: auto;
        width: calc(100% - 20px);
    }

    .popup-overlay.active .popup-container
    {
        transform: scale(0.98);
    }
    .popup-content {
        padding: 60px 20px 30px 20px;
    }

    .popup-content h2 {
        font-size: 24px !important;
        padding: 10px 20px;
        top: 20px;
        width: 100%;
        white-space: normal;
        line-height: 1.2;
    }

    .popup-content p {
        font-size: 16px !important;
        max-height: 250px;
        line-height: 1.6;
    }

    .popup-close {
        top: 15px;
        right: 0;
        width: 20px;
        height: 20px;
        font-size: 15px;
        background: rgba(233, 30, 99, 0.8);
        border-radius: 0;
    }
}

/* Large Mobile Devices (501px - 650px) - Larger phones and small tablets */
@media (min-width: 501px) and (max-width: 650px) {
    .interactive-room {
        padding: 0 10px;
        min-height: 100vh;
    }

    /* Top Section - Large Mobile */
    .top-section {
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: center;
        padding: 20px 15px;
        gap: 20px;
        max-width: 100%;
    }

    .clock-container {
        width: auto !important;
        order: -1;
        flex: 0 0 auto;
    }

    .clock {
        width: 140px;
        height: 140px;
        background-image: url('images/clock.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        border: none;
    }

    .hour-hand {
        width: 3px;
        height: 30px;
        margin-left: -1.5px;
    }

    .minute-hand {
        width: 2px;
        height: 40px;
        margin-left: -1px;
    }

    .second-hand {
        height: 45px;
    }

    .center-point {
        width: 8px;
        height: 8px;
    }

    /* Date Display - Large Mobile */
    .date-display {
        flex: 1;
        min-width: 250px;
        max-width: 500px;
        padding: 12px 18px;
        margin: 0 10px;
    }

    .date-container {
        gap: 15px;
    }

    .calendar-icon {
        width: 80px;
        height: 80px;
    }

    .calendar-hebrew-day {
        font-size: 18px;
    }

    .calendar-temp {
        font-size: 16px;
    }

    /* Date Text - Large Mobile */
    .hebrew-date .day-name,
    .regular-date .day-name,
    .hebrew-date .date-number,
    .regular-date .english-day {
        font-size: 28px;
    }

    /* Navigation - Large Mobile */
    .nav-btn {
        width: 30px;
        height: 30px;
        font-size: 15px;
    }

    /* Room Content - Large Mobile */
    .room-content {
        padding: 20px 15px;
        margin-top: 115px; /* Only abscontent height */
        height: auto;
        flex-direction: column;
        align-items: center;
    }

    .room-container {
        width: 100%;
        max-width: 600px;
    }

    .side-content {
        width: 100%;
        max-width: 600px;
        margin-left: 0;
        margin-top: 20px;
        gap: 15px;
        text-align: center;
    }

    .side-text {
        font-size: 22px;
        text-align: center;
    }

    /* Shelf - Large Mobile */
    .shelf {
        width: 95%;
        height: 140px;
        background-size: contain;
        background-position: center;
        margin: 40px auto;
        position: relative;
    }

    .top-shelf {
        margin-bottom: 60px;
    }

    .bottom-shelf {
        margin-top: 60px;
    }
}

/* Small Tablet Devices (651px - 768px) - Larger tablet phones */
@media (min-width: 651px) and (max-width: 768px) {
    .interactive-room {
        padding: 0 15px;
        min-height: 100vh;
    }

    /* Top Section - Small Tablet */
    .top-section {
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: center;
        padding: 25px 20px;
        gap: 25px;
        max-width: 100%;
    }

    .clock-container {
        width: auto !important;
        order: -1;
        flex: 0 0 auto;
    }

    .clock {
        width: 160px;
        height: 160px;
        background-image: url('images/clock.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        border: none;
    }

    .hour-hand {
        width: 3px;
        height: 35px;
        margin-left: -1.5px;
    }

    .minute-hand {
        width: 2px;
        height: 45px;
        margin-left: -1px;
    }

    .second-hand {
        height: 50px;
    }

    .center-point {
        width: 10px;
        height: 10px;
    }

    /* Date Display - Small Tablet */
    .date-display {
        flex: 1;
        min-width: 320px;
        max-width: 600px;
        padding: 15px 25px;
        margin: 0 15px;
    }

    .date-container {
        gap: 20px;
    }

    .calendar-icon {
        width: 95px;
        height: 95px;
    }

    .calendar-hebrew-day {
        font-size: 22px;
    }

    .calendar-temp {
        font-size: 20px;
    }

    /* Date Text - Small Tablet */
    .hebrew-date .day-name,
    .regular-date .day-name,
    .hebrew-date .date-number,
    .regular-date .english-day {
        font-size: 35px;
    }

    /* Navigation - Small Tablet */
    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    /* Room Content - Small Tablet */
    .room-content {
        padding: 35px 25px;
        margin-top: 115px; /* Only abscontent height */
        height: auto;
        flex-direction: row;
        align-items: flex-start;
    }

    .room-container {
        width: 72%;
    }

    .side-content {
        width: 26%;
        margin-left: 2%;
        gap: 20px;
    }

    .side-text {
        font-size: 26px;
        line-height: 1.3;
        text-align: right;
    }

    /* Shelf - Small Tablet */
    .shelf {
        width: 95%;
        height: 160px;
        background-size: contain;
        background-position: right;
        margin: 60px auto;
        position: relative;
    }

    .top-shelf {
        margin-bottom: 80px;
    }

    .bottom-shelf {
        margin-top: 80px;
    }
}

/* Tablet Devices (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
     .date-display {
         flex: 1;
         min-width: 320px;
         max-width: 600px;
         padding: 15px 25px;
         margin: 0 15px;
     }

     .date-container {
         gap: 20px;
     }

     .calendar-icon {
         width: 95px;
         height: 95px;
     }

     .calendar-hebrew-day {
         font-size: 22px;
     }

     .calendar-temp {
         font-size: 20px;
     }

     /* Date Text - Large Mobile */
     .hebrew-date .day-name,
     .regular-date .day-name,
     .hebrew-date .date-number,
     .regular-date .english-day {
         font-size: 35px;
     }

     /* Navigation - Large Mobile */
     .nav-btn {
         width: 35px;
         height: 35px;
         font-size: 18px;
     }

     /* Room Content - Tablet */
     .room-content {
         padding: 35px 25px;
         margin-top: 115px; /* Only abscontent height */
         height: auto;
         flex-direction: row;
         align-items: flex-start;
     }

     .room-container {
         width: 72%;
     }

     .side-content {
         width: 26%;
         margin-left: 2%;
         gap: 20px;
     }

                   /* Shelf - Large Mobile */
      .shelf {
          width: 95%;
          height: 160px;
          background-size: contain;
          background-position: right;
          margin: 60px auto;
          position: relative;
      }

      .top-shelf {
          margin-bottom: 80px;
      }

      .bottom-shelf {
          margin-top: 80px;
      }

      /* Large Mobile Item Positioning - Maintain Desktop Order */
      /* Top Shelf Items (right to left order maintained) */
      .clickable-item[data-item="veahavta"] {
          right: 2% !important;
          top: -130px !important;
      }

      .clickable-item[data-item="camera"] {
          right: 11% !important;
          top: -85px !important;
      }

      .clickable-item[data-item="sedor"] {
          right: 20% !important;
          top: -130px !important;
      }

      .clickable-item[data-item="tehelem"] {
          right: 31% !important;
          top: -130px !important;
      }

      .clickable-item[data-item="tsadka"] {
          right: 43% !important;
          top: -105px !important;
      }

      .clickable-item[data-item="photo"] {
          right: 51% !important;
          top: -90px !important;
      }

      .clickable-item[data-item="kepa"] {
          right: 60% !important;
          top: -35px !important;
      }

           /* Bottom Shelf Items (right to left order maintained) */
      .clickable-item[data-item="mashniot"] {
          right: 1% !important;
          top: -130px !important;
      }

      .clickable-item[data-item="weights"] {
          right: 10% !important;
          top: -95px !important;
      }

      .clickable-item[data-item="mic"] {
          right: 33% !important;
          top: -70px !important;
      }

      .clickable-item[data-item="trophy"] {
          right: 45% !important;
          top: -175px !important;
      }

      .clickable-item[data-item="heart"] {
          right: 65% !important;
          top: -125px !important;
      }

      /* Headphones positioning */
      .headphones-item {
          right: 75% !important;
          bottom: 0% !important;
      }

      /* Items - Large Mobile */
      .clickable-item img {
          max-width: 75px;
          max-height: 75px;
          transition: transform 0.2s ease;
      }

      .clickable-item[data-item="camera"] img,
      .clickable-item[data-item="tsadka"] img {
          max-width: 90px;
          max-height: 150px;
      }

      .clickable-item[data-item="tehelem"] img,
      .clickable-item[data-item="sedor"] img {
          max-width: 85px;
          max-height: 150px;
      }

      .clickable-item[data-item="heart"] img {
          max-width: 120px;
          max-height: 150px;
      }

      .clickable-item[data-item="trophy"] img {
          max-width: 140px;
          max-height: 150px;
      }

      .clickable-item[data-item="veahavta"] img,
      .clickable-item[data-item="photo"] img,
      .clickable-item[data-item="kepa"] img {
          max-width: 85px;
          max-height: 150px;
      }

      .clickable-item[data-item="weights"] img {
          max-width: 90px;
          max-height: 150px;
      }

      .clickable-item[data-item="mic"] img {
          max-width: 130px;
          max-height: 150px;
      }

      .clickable-item[data-item="mashniot"] img {
          max-width: 85px;
          max-height: 150px;
      }

      .headphones-item img {
          max-width: 150px;
          max-height: 150px;
      }

         /* Side Content - Large Mobile */
     .side-text {
         font-size: 22px;
         line-height: 1.4;
         padding: 20px 15px;
         width: 100%;
         text-align: center;
     }

     .floating-green-button {
         font-size: 16px;
         padding: 15px 25px;
         border-radius: 12px;
     }

     .side-content img {
         max-width: 100%;
         margin-top: 15px;
     }

    /* Popup - Large Mobile */
    .popup-container {
        margin: 30px;
        max-width: calc(100% - 60px);
        min-height: 400px;
    }

    .popup-content {
        padding: 80px 40px 40px 40px;
    }

    .popup-content h2 {
        font-size: 28px;
        top: 30px;
    }

    .popup-content p {
        font-size: 16px;
        max-height: 300px;
    }
}

/* Tablet Devices (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .interactive-room {
        padding: 0;
        min-height: 100vh;
    }

    /* Top Section - Tablet */
    .top-section {
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: center;
        padding: 35px;
        gap: 35px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .clock-container {
        width: auto !important;
        order: -1;
        flex: 0 0 auto;
    }

    .clock {
        width: 200px;
        height: 200px;
        background-image: url('images/clock.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        border: none;
    }

    .hour-hand {
        width: 3px;
        height: 40px;
        margin-left: -1.5px;
    }

    .minute-hand {
        width: 2px;
        height: 50px;
        margin-left: -1px;
    }

    .second-hand {
        height: 55px;
    }

         /* Date Display - Tablet */
     .date-display {
         flex: 1;
         max-width: 700px;
         padding: 18px 30px;
         min-width: 400px;
     }

     .date-container {
         gap: 30px;
     }

     .calendar-icon {
         width: 105px;
         height: 105px;
     }

     .calendar-hebrew-day {
         font-size: 26px;
     }

     .calendar-temp {
         font-size: 22px;
     }

     /* Date Text - Tablet */
     .hebrew-date .day-name,
     .regular-date .day-name,
     .hebrew-date .date-number,
     .regular-date .english-day {
         font-size: 45px;
     }

     /* Navigation - Tablet */
     .nav-btn {
         width: 32px;
         height: 32px;
         font-size: 16px;
     }

     /* Room Content - Tablet */
     .room-content {
         padding: 45px 35px;
         margin-top: 115px; /* Only abscontent height */
         margin-left: auto;
         margin-right: auto;
         max-width: 1200px;
         flex-direction: row;
         align-items: flex-start;
     }

     .room-container {
         width: 76%;
     }

     .side-content {
         width: 22%;
         margin-left: 2%;
         gap: 25px;
     }

     /* Shelf - Tablet */
     .shelf {
         width: 90%;
         margin: 80px auto;
         position: relative;
     }

     .top-shelf {
         height: 170px;
         width: 850px;
         margin-bottom: 100px;
     }

     .bottom-shelf {
         height: 150px;
         width: 750px;
         margin-top: 100px;
     }

         /* Tablet Item Positioning - Maintain Desktop Order */
     /* Top Shelf Items (right to left order maintained) */
     .clickable-item[data-item="veahavta"] {
         right: 2% !important;
         top: -140px !important;
     }

     .clickable-item[data-item="camera"] {
         right: 11% !important;
         top: -80px !important;
     }

     .clickable-item[data-item="sedor"] {
         right: 20% !important;
         top: -140px !important;
     }

     .clickable-item[data-item="tehelem"] {
         right: 31% !important;
         top: -140px !important;
     }

     .clickable-item[data-item="tsadka"] {
         right: 43% !important;
         top: -105px !important;
     }

     .clickable-item[data-item="photo"] {
         right: 51% !important;
         top: -90px !important;
     }

     .clickable-item[data-item="kepa"] {
         right: 60% !important;
         top: -40px !important;
     }

     /* Bottom Shelf Items (right to left order maintained) */
     .clickable-item[data-item="mashniot"] {
         right: 1% !important;
         top: -140px !important;
     }

     .clickable-item[data-item="weights"] {
         right: 10% !important;
         top: -100px !important;
     }

     .clickable-item[data-item="mic"] {
         right: 33% !important;
         top: -75px !important;
     }

     .clickable-item[data-item="trophy"] {
         right: 45% !important;
         top: -190px !important;
     }

     .clickable-item[data-item="heart"] {
         right: 65% !important;
         top: -135px !important;
     }

     /* Headphones positioning */
     .headphones-item {
         right: 75% !important;
         bottom: 50px !important;
     }

           /* Items - Tablet */
      .clickable-item img {
          max-width: 80px;
          max-height: 80px;
          transition: transform 0.3s ease;
      }

      .clickable-item[data-item="camera"] img,
      .clickable-item[data-item="tsadka"] img {
          max-width: 115px;
          max-height: 250px;
      }

      .clickable-item[data-item="tehelem"] img,
      .clickable-item[data-item="sedor"] img {
          max-width: 135px;
          max-height: 250px;
      }

      .clickable-item[data-item="heart"] img {
          max-width: 185px;
          max-height: 250px;
      }

      .clickable-item[data-item="trophy"] img {
          max-width: 220px;
          max-height: 250px;
      }

      .clickable-item[data-item="veahavta"] img,
      .clickable-item[data-item="photo"] img,
      .clickable-item[data-item="kepa"] img {
          max-width: 135px;
          max-height: 250px;
      }

      .clickable-item[data-item="weights"] img {
          max-width: 160px;
          max-height: 250px;
      }

      .clickable-item[data-item="mic"] img {
          max-width: 230px;
          max-height: 250px;
      }

      .clickable-item[data-item="mashniot"] img {
          max-width: 135px;
          max-height: 250px;
      }

      .headphones-item img {
          max-width: 280px;
          max-height: 250px;
      }

         /* Side Content - Tablet */
     .side-text {
         font-size: 26px;
         line-height: 1.3;
         padding: 25px 20px;
         width: 100%;
         text-align: right;
     }

     .floating-green-button {
         font-size: 12px;
         padding: 10px 15px;
         border-radius: 12px;
     }

    /* Popup - Tablet */
    .popup-container {
        margin: 40px;
        max-width: 650px;
        min-height: 500px;
    }

    .popup-content {
        padding: 100px 60px 50px 60px;
    }

    .popup-content h2 {
        font-size: 35px;
        top: 35px;
    }

    .popup-content p {
        font-size: 16px;
        max-height: 350px;
    }
}

/* Small Laptop/Desktop Transition (1025px - 1100px) - Bridge between tablet and desktop */
@media (min-width: 1025px) and (max-width: 1100px) {
    .interactive-room {
        max-width: 1100px;
        margin: 0 auto;
        min-height: 100vh;
        padding: 0 15px;
    }

    .top-section {
        max-width: 1050px;
        margin: 0 auto;
        padding: 20px 15px;
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
    }

    .clock {
        width: 180px;
        height: 180px;
    }

    .date-display {
        min-width: 280px;
        max-width: 60%;
        padding: 12px 16px;
    }

    .date-container {
        gap: 20px;
    }

    .calendar-icon {
        width: 95px;
        height: 95px;
    }

    .calendar-hebrew-day {
        font-size: 24px;
    }

    .calendar-temp {
        font-size: 20px;
    }

    .hebrew-date .day-name,
    .regular-date .day-name,
    .hebrew-date .date-number,
    .regular-date .english-day {
        font-size: 47px;
    }

    .nav-btn {
        width: 26px;
        height: 26px;
        font-size: 13px;
    }

    .room-content {
        max-width: 1050px;
        margin-left: auto;
        margin-right: auto;
				margin-top: 0; /* Only abscontent height */
        padding: 20px 15px;
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        height: calc(100vh - 200px); /* Adjusted for new margin-top */
    }

    .room-container {
        width: 72%;
    }

    .side-content {
        width: 26%;
        margin-left: 2%;
        gap: 16px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .side-text {
        font-size: 24px;
        line-height: 1.3;
        width: 100%;
        text-align: right;
    }

    .floating-green-button {
        font-size: 10px;
        padding: 7px 10px;
        border-radius: 8px;
    }

    .shelf {
        margin: 80px 0px;
        width: auto;
        position: relative;
    }

    .top-shelf {
        width: 800px;
        height: 160px;
        margin-bottom: 100px;
    }

    .bottom-shelf {
        width: 700px;
        height: 135px;
        margin-top: 100px;
    }
}

/* Small Desktop Screens (1101px - 1250px) - Optimized for smaller desktop displays */
@media (min-width: 1101px) and (max-width: 1250px) {
    .interactive-room {
        max-width: 1200px;
        margin: 0 auto;
        min-height: 100vh;
    }

    .top-section {
        max-width: 1150px;
        margin: 0 auto;
        padding: 15px 20px;
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: center;
        gap: 25px;
    }

    .clock {
        width: 200px;
        height: 200px;
    }

    .date-display {
        min-width: 300px;
        max-width: 65%;
        padding: 10px 18px;
    }

    .date-container {
        gap: 22px;
    }

    .calendar-icon {
        width: 100px;
        height: 100px;
    }

    .calendar-hebrew-day {
        font-size: 26px;
    }

    .calendar-temp {
        font-size: 22px;
    }

    .hebrew-date .day-name,
    .regular-date .day-name,
    .hebrew-date .date-number,
    .regular-date .english-day {
        font-size: 48px;
    }

    .nav-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .room-content {
        max-width: 1150px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 115px; /* Only abscontent height */
        padding: 15px 20px;
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        height: calc(100vh - 200px); /* Adjusted for new margin-top */
    }

    .room-container {
        width: 74%;
    }

    .side-content {
        width: 24%;
        margin-left: 2%;
        gap: 18px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .side-text {
        font-size: 26px;
        line-height: 1.3;
        width: 100%;
        text-align: right;
    }

    .floating-green-button {
        font-size: 11px;
        padding: 8px 12px;
        border-radius: 10px;
    }

    .shelf {
        margin: 100px 0px;
        width: auto;
        position: relative;
    }

    .top-shelf {
        width: 850px;
        height: 165px;
        margin-bottom: 120px;
    }

    .bottom-shelf {
        width: 750px;
        height: 140px;
        margin-top: 120px;
    }

    /* Subtle hover effects for small desktop */
    .clickable-item:hover {
        transform: scale(1.1) rotate(1deg);
        filter: brightness(1.1);
        z-index: 10;
    }

    .nav-btn:hover {
        transform: scale(1.05);
    }

    .floating-green-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 3px 15px rgba(0,0,0,0.3);
    }
}

/* Medium Desktop Screens (1251px - 1399px) - Balanced desktop experience */
@media (min-width: 1251px) and (max-width: 1399px) {
    .interactive-room {
        max-width: 1400px;
        margin: 0 auto;
        min-height: 100vh;
    }

    .top-section {
        max-width: 1350px;
        margin: 0 auto;
        padding: 18px 20px;
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: center;
        gap: 28px;
    }

    .clock {
        width: 220px;
        height: 220px;
    }

    .date-display {
        min-width: 320px;
        max-width: 70%;
        padding: 11px 19px;
    }

    .date-container {
        gap: 24px;
    }

    .calendar-icon {
        width: 105px;
        height: 105px;
    }

    .calendar-hebrew-day {
        font-size: 28px;
    }

    .calendar-temp {
        font-size: 23px;
    }

    .hebrew-date .day-name,
    .regular-date .day-name,
    .hebrew-date .date-number,
    .regular-date .english-day {
        font-size: 49px;
    }

    .nav-btn {
        width: 29px;
        height: 29px;
        font-size: 15px;
    }

    .room-content {
        max-width: 1350px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 115px; /* Only abscontent height */
        padding: 18px 20px;
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        height: calc(100vh - 200px); /* Adjusted for new margin-top */
    }

    .room-container {
        width: 74.5%;
    }

    .side-content {
        width: 23.5%;
        margin-left: 2%;
        gap: 19px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .side-text {
        font-size: 28px;
        line-height: 1.3;
        width: 100%;
        text-align: right;
    }

    .floating-green-button {
        font-size: 11.5px;
        padding: 9px 13px;
        border-radius: 11px;
    }

    .shelf {
        margin: 110px 0px;
        width: auto;
        position: relative;
    }

    .top-shelf {
        width: 900px;
        height: 170px;
        margin-bottom: 130px;
    }

    .bottom-shelf {
        width: 790px;
        height: 142px;
        margin-top: 130px;
    }

    /* Enhanced hover effects for medium desktop */
    .clickable-item:hover {
        transform: scale(1.13) rotate(1.5deg);
        filter: brightness(1.15);
        z-index: 10;
    }

    .nav-btn:hover {
        transform: scale(1.08);
    }

    .floating-green-button:hover {
        transform: translateY(-1.5px);
        box-shadow: 0 4px 18px rgba(0,0,0,0.35);
    }
}



/* Ultra-Wide Screens (1400px and up) */
@media (min-width: 1400px) {
    .interactive-room {
        max-width: 1800px;
    }

    .top-section {
        max-width: 1700px;
        padding: 25px 0px;
    }

    .clock {
        width: 260px;
        height: 260px;
    }

    .date-display {
        min-width: 400px;
        padding: 15px 25px;
    }

    .room-content {
        max-width: 1700px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 115px; /* Only abscontent height */
        padding: 25px 0px;
                  height: calc(100vh - 200px); /* Adjusted for new margin-top */
    }
   /*
    .shelf {
        margin: 140px 0px;
    }

    .top-shelf {
        width: 1000px;
        height: 185px;
        margin-bottom: 160px;
    }

    .bottom-shelf {
        width: 880px;
        height: 155px;
        margin-top: 160px;
    } */
}

/***********Interactive room end***********/

/* ========================================
   ANIMATION STYLES - Popup & Page Entry
   ======================================== */

/* Enhanced Popup Opening Animation */
.popup-overlay {
    backdrop-filter: blur(0px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.popup-overlay.active {
    backdrop-filter: blur(5px);
}

.popup-container {
    animation-duration: 0.4s;
    animation-timing-function: ease-out;
    animation-fill-mode: both;
}

.popup-overlay.active .popup-container {
    animation-name: popupSmoothIn;
}

@keyframes popupSmoothIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1.4);
    }
}

/* Enhanced Popup Close Animation */
.popup-overlay.closing {
    pointer-events: none; /* Prevent interactions during closing */
}

.popup-overlay.closing .popup-container {
    animation-name: popupSmoothOut;
    animation-duration: 0.3s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

@keyframes popupSmoothOut {
    0% {
        opacity: 1;
        transform: scale(1.4);
    }
    100% {
        opacity: 0;
        transform: scale(0.9);
    }
}

/* Page Entry Animation - Main Container */
.interactive-room {
    animation: pageSlideIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes pageSlideIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0px);
    }
}

/* Top Section Entry Animation */
.top-section {
    animation: topSectionFadeIn 1s ease-out 0.3s both;
}

@keyframes topSectionFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Clock Animation */
.clock {
    animation: clockSpinIn 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.5s both;
}

@keyframes clockSpinIn {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    70% {
        transform: scale(1.1) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Date Display Animation */
.date-display {
    animation: dateSlideIn 1s ease-out 0.7s both;
}

@keyframes dateSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Room Content Animation */
.room-content {
    animation: roomContentRise 1.2s ease-out 0.9s both;
}

@keyframes roomContentRise {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Side Content Animation */
.side-content {
    animation: sideContentSlide 1s ease-out 1.1s both;
}

@keyframes sideContentSlide {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Clickable Items Staggered Animation */
.clickable-item {
    animation: itemPopIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
}

/* Top Shelf Items */
.top-shelf .clickable-item:nth-child(1) { animation-delay: 1.3s; }
.top-shelf .clickable-item:nth-child(2) { animation-delay: 1.4s; }
.top-shelf .clickable-item:nth-child(3) { animation-delay: 1.5s; }
.top-shelf .clickable-item:nth-child(4) { animation-delay: 1.6s; }
.top-shelf .clickable-item:nth-child(5) { animation-delay: 1.7s; }
.top-shelf .clickable-item:nth-child(6) { animation-delay: 1.8s; }
.top-shelf .clickable-item:nth-child(7) { animation-delay: 1.9s; }

/* Bottom Shelf Items */
.bottom-shelf .clickable-item:nth-child(1) { animation-delay: 2.0s; }
.bottom-shelf .clickable-item:nth-child(2) { animation-delay: 2.1s; }
.bottom-shelf .clickable-item:nth-child(3) { animation-delay: 2.2s; }
.bottom-shelf .clickable-item:nth-child(4) { animation-delay: 2.3s; }
.bottom-shelf .clickable-item:nth-child(5) { animation-delay: 2.4s; }

/* Headphones Item */
.headphones-item { animation-delay: 2.5s; }

@keyframes itemPopIn {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-20deg);
    }
    60% {
        transform: scale(1.2) rotate(5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Navigation Buttons Animation */
.nav-btn {
    animation: navButtonBounce 1s ease-out 0.8s both;
}

@keyframes navButtonBounce {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Floating Green Button Animation */
.floating-green-button {
    animation: greenButtonFloat 1s ease-out 2.6s both;
}

@keyframes greenButtonFloat {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0);
    }
    70% {
        transform: translateY(-10px) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* AbsContent Animation */
.abscontent {
    animation: absContentSlideUp 1s ease-out 1.5s both;
}

@keyframes absContentSlideUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Hover Effects */
.clickable-item {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
		bottom: 4vh !important;
}

.clickable-item:hover {
    transform: translateY(-5px) scale(1.05);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    z-index: 100;
}

/* Responsive Animation Adjustments */
@media (max-width: 768px) {
    .interactive-room { animation-duration: 0.8s; }
    .top-section { animation-delay: 0.2s; }
    .clock { animation-delay: 0.3s; }
    .date-display { animation-delay: 0.4s; }
    .room-content { animation-delay: 0.5s; }
    .side-content { animation-delay: 0.6s; }

    /* Faster item animations on mobile */
    .top-shelf .clickable-item:nth-child(1) { animation-delay: 0.7s; }
    .top-shelf .clickable-item:nth-child(2) { animation-delay: 0.8s; }
    .top-shelf .clickable-item:nth-child(3) { animation-delay: 0.9s; }
    .top-shelf .clickable-item:nth-child(4) { animation-delay: 1.0s; }
    .top-shelf .clickable-item:nth-child(5) { animation-delay: 1.1s; }
    .top-shelf .clickable-item:nth-child(6) { animation-delay: 1.2s; }
    .top-shelf .clickable-item:nth-child(7) { animation-delay: 1.3s; }

    .bottom-shelf .clickable-item:nth-child(1) { animation-delay: 1.4s; }
    .bottom-shelf .clickable-item:nth-child(2) { animation-delay: 1.5s; }
    .bottom-shelf .clickable-item:nth-child(3) { animation-delay: 1.6s; }
    .bottom-shelf .clickable-item:nth-child(4) { animation-delay: 1.7s; }
    .bottom-shelf .clickable-item:nth-child(5) { animation-delay: 1.8s; }

    .headphones-item { animation-delay: 1.9s; }
    .floating-green-button { animation-delay: 2.0s; }

    /* Mobile-specific popup animation with smaller scale */
    @keyframes popupSmoothIn {
        0% {
            opacity: 0;
            transform: scale(0.8);
        }
        100% {
            opacity: 1;
            transform: scale(0.98);
        }
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .interactive-room,
    .top-section,
    .clock,
    .date-display,
    .room-content,
    .side-content,
    .clickable-item,
    .nav-btn,
    .floating-green-button,
    .abscontent,
    .popup-container {
        animation: none !important;
        transition: none !important;
    }

    .popup-overlay {
        transition: opacity 0.3s ease !important;
    }
}

/* Calendar Icon Styles */
.calendar-icon {
    background-image: url('images/calendar.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 110px;
    height: 110px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.calendar-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 8px;
}

.calendar-hebrew-day {
    font-family: 'fb-tamlil', 'almoni-tzar', Arial, sans-serif;
    font-size: 30px;
    font-weight: 500;
    color: #e91e63;
    line-height: 1;
    margin-bottom: 2px;
}

.calendar-temp {
    font-family: 'fb-tamlil', 'almoni-tzar', Arial, sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: #00bcd4;
    line-height: 1;
}
