body {
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    position: relative;
    display: flex;
    direction: rtl;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Noto Sans', 'Noto Sans Hebrew', sans-serif;
    color: white;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
}

/* For Webkit browsers (Chrome, Safari) */
body::-webkit-scrollbar {
    display: none;
}

/* For Firefox */
html {
    scrollbar-width: none;
}

@keyframes backgroundScale {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.background {
   
    position: fixed;
    top: -5%;    
    left: -5%;
    width: 110%; 
    height: 110%;
    z-index: -1;
    background-image: url('../images/bg/default.png');
    filter: blur(10px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform-origin: center center;
    animation: backgroundScale 25s ease-in-out infinite;
   
}

.background2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: rgba(255,255,255,0.25);
    opacity: 0.5;
}
header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

header img {
    max-width: 500px;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 30px;
}

h1 {
    text-align: center;
    line-height: 1.0;
    font-weight: 800;
    font-size: 40px;
    margin: 0;
    padding: 0px 0;
    
    color: #ffffff;
    font-family: 'Noto Sans Hebrew', 'Noto Sans', sans-serif;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
}

h2 {
    text-align: center;
    line-height: 1.2;
    font-weight: 400;
    font-size: 28px;
    margin: 0;
    padding: 0 0 20px 0;
    
    color: #ffffff;
    font-family: 'Noto Sans Hebrew', 'Noto Sans', sans-serif;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
    opacity: 0.9;
}

.date {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
    direction: rtl;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}

.calendar-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.on-time-buttons {
    display: none;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
}

.on-time-button {
    display: none; /* Initially hidden, will be shown via JavaScript when it's event time */
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    opacity: 0;
    transform: translateY(10px);
}

.on-time-button.show {
    opacity: 1;
    transform: translateY(0);
}

.on-time-button-text {
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 15px 30px;
    font-family: 'Noto Sans Hebrew', sans-serif;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.on-time-button-text:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.after-event-button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    opacity: 0;
    transform: translateY(10px);
}

.after-event-button.show {
    opacity: 1;
    transform: translateY(0);
}

.after-event-button-text {
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 15px 30px;
    font-family: 'Noto Sans Hebrew', sans-serif;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.after-event-button-text:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}


.calendar-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Noto Sans Hebrew', sans-serif;
    font-size: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.calendar-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 14px rgba(0, 0, 0, 0.4);
}

.calendar-button img {
    width: 24px;
    height: 24px;
}

.calendar-button.google {
    background-color: #fff;
    color: #444;
}

.calendar-button.outlook {
    background-color: #0078d4;
    color: white;
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
}

.label {
    font-size: 12px;
    text-align: center;
}

.countdown-suffix {
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

.number {

    min-width: 30px;
    display: inline-block;
    font-weight: 800;
    text-align: center;
    font-size: 150%;
    background-color: #000000;
    padding: 5px;
    border-radius: 5px; 
}

.calendar-buttons a {
    text-decoration: none;
}

.event-status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #28a745;
    border-radius: 50%;
    margin-left: 8px;
    animation: blink-fade 2s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes blink-fade {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 10px rgba(40, 167, 69, 0.8);
    }
    50% {
        opacity: 0.3;
        transform: scale(0.8);
        box-shadow: 0 0 5px rgba(40, 167, 69, 0.4);
    }
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    body {
        padding: 15px;
        justify-content: flex-start;
        min-height: auto;
    }
    
    header img {
        max-width: 100%;
        max-height: 200px;
        margin-bottom: 50px;
    }
    
    h1 {
        font-size: 32px;
        padding: 15px 0;
    }
    
    h2 {
        font-size: 20px;
        padding: 0 0 15px 0;
    }
    
    .date {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .calendar-buttons {
        flex-direction: column;
        gap: 15px;
        margin: 15px 0;
    }
    
    .countdown {
        margin: 15px 0;
    }
    
    .number {
        min-width: 25px;
        font-size: 120%;
        padding: 4px;
    }
} 