.calendar-container {
    width: 80%;
    height: 100%;
}

.calendar-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0;
    margin-top: 20%;
    list-style: none;
}

@media (min-width: 768px) {
    .calendar-list {
        grid-template-columns: repeat(6, 1fr);
        gap: 1rem;
        margin-top: 5%;
    }
}

.calendar-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 8rem;
    border-radius: 0.5rem;
    position: relative;
}

@media (min-width: 768px) {
    .calendar-item {
        height: 10rem;
    }
}

.calendar-item:hover {
    transform: scale(1.05);
    transition: 0.3s ease;
}

.calendar-door {
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
    border-style: none;
    background: var(--red-gradient);
    box-shadow: 0rem 0.5rem 1rem var(--black);
    font-size: 2rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.3s ease; 
    transform-origin: left;
}

.calendar-door.open {
    transform: rotateY(180deg); 
}

.calendar-door .front {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 0.2rem dashed var(--black-faded);
    border-radius: 0.5rem;
    background: var(--red-gradient);
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2rem;
}

.calendar-door .back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
    transform: rotateY(180deg);
    backface-visibility: hidden; 
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--red-dark);
    font-size: 1.5rem;
}

.content-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    border: 0.2rem solid var(--black-faded);
    display: none;
    border-radius: 0.5rem;
    cursor: pointer;
    z-index: 1;
}

.content-box p {
    width: 100%;
    height: 100%;
    padding: 0.5rem;
    color: var(--black);
    text-align: center;
    overflow: scroll;
}

.content-box img {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.modal {
    width: 100%;
    height: 100%;
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    background-color: var(--black-faded);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    max-width: 80%;
    max-height: 80%;
    padding: 2rem;
    border-radius: 0.5rem;
    background-color: var(--white);
    position: relative;
    text-align: center;
    overflow-y: auto;
}

.modal-content img {
    max-width: 100%;
    padding: 1rem;
    object-fit: contain;
}

.close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
}

.lock-icon-container {
    z-index: 1000;
    animation: pulse 2s infinite;
}

.lock-icon-container img {
    width: 5rem;
    height: auto;
}

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