* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #111111;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    
}

p1{
    font-size: xx-large;
    align-items: center;
    justify-content: center;
    padding: 150px 150px;
    font-weight: bolder;
}
.container {
    width: 90%;
    max-width: 900px;
    background-color: #222;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    -webkit-box-shadow: 5px 5px 15px 5px #80d3ff, -9px 5px 15px 5px #e16cb0, -7px -5px 15px 5px #8CFF85, 12px -5px 15px 5px #80C7FF, 12px 10px 15px 7px #E488FF, -10px 10px 15px 7px #FF616B, -10px -7px 27px 1px #8E5CFF, 5px 5px 15px 5px rgba(0, 0, 0, 0);
    box-shadow: 5px 5px 15px 5px #eae4e4, -9px 5px 15px 5px #0f1db0, -7px -5px 15px 5px #9385ff, 12px -5px 15px 5px #80C7FF, 12px 10px 15px 7px #E488FF, -10px 10px 15px 7px #FF616B, -10px -7px 27px 1px #8E5CFF, 5px 5px 15px 5px rgba(0, 0, 0, 0);
    background-color: var(--color-primary);
}

.container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0) 50%
    );
    transform: rotate(30deg);
    z-index: 0;
}

.time-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    
}

.time {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: -2px;
}

.seconds {
    font-size: 2rem;
    font-weight: 300;
    align-self: flex-end;
    margin-bottom: 10px;
    color: #aaa;
}

.date-display {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.date {
    font-size: 1.5rem;
    font-weight: 400;
    color: #ddd;
}

.day {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
}

.calendar-header {
    grid-column: span 7;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.calendar-header div {
    text-align: center;
    font-weight: 600;
    color: #aaa;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    position: relative;
    z-index: 1;
}

.calendar-day {
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    font-weight: 400;
    color: #777;
    position: relative;
    transition: all 0.3s ease;
}

.calendar-day.current-month {
    color: #fff;
}

.calendar-day.today {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 600;
}

.calendar-day:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.calendar-day::after {
    content: '';
    position: absolute;
    bottom: 5px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: transparent;
}

.calendar-day.has-event::after {
    background-color: #fff;
}

@media (max-width: 600px) {
    .time {
        font-size: 3.5rem;
    }
    
    .seconds {
        font-size: 1.5rem;
    }
    
    .date, .day {
        font-size: 1.4rem;
    }
    
    .calendar-day {
        height: 30px;
        font-size: 0.8rem;
    }
}
/* Previous styles remain the same, add these new styles at the bottom */

.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.month-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin: 0 15px;
    text-align: center;
    flex-grow: 1;
}

.month-nav {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.month-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.calendar-container {
    position: relative;
    min-height: 175px;
    overflow: hidden;
}

.calendar {
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.calendar.slide-out-left {
    transform: translateX(-100%);
    opacity: 0;
    position: absolute;
    width: 100%;
}

.calendar.slide-out-right {
    transform: translateX(100%);
    opacity: 0;
    position: absolute;
    width: 100%;
}

.calendar.slide-in-left {
    animation: slideInLeft 0.5s ease forwards;
}

.calendar.slide-in-right {
    animation: slideInRight 0.5s ease forwards;
}

@keyframes slideInLeft {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
