.folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.folder-item {
    position: relative;
    background-color: #fceda3;

    border-radius: 0 5px 5px 5px;
    height: 140px;
    padding: 20px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px solid #e0d286;
}

.folder-item::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 40%;
    height: 12px;
    background-color: #f3e28f;

    border-radius: 5px 5px 0 0;
    border-top: 1px solid #e0d286;
    border-left: 1px solid #e0d286;
    border-right: 1px solid #e0d286;
}

.folder-item::after {
    content: '';
    position: absolute;
    top: -5px;
    right: 10px;
    width: 50%;
    height: 10px;
    background-color: #fff;
    z-index: 0;
    transform: rotate(-2deg);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.folder-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    z-index: 1;
}

.folder-name {
    font-weight: bold;
    color: #5d4e7c;
    font-size: 1rem;
    z-index: 1;
}

.folder-date {
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
    z-index: 1;
}

.folder-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
    background-color: #fff2b8;
}

.modal-overlay {
    display: none;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-folder-content {
    background: #fff;
    width: 800px;
    max-width: 90%;
    border-radius: 15px;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 10px solid #fceda3;

}

.modal-flex {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.modal-image-col {
    flex: 1;
    min-width: 300px;
}

.photo-frame {
    background: #fff;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: rotate(-2deg);
    position: relative;
}

.photo-frame img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: cover;
}

.modal-info-col {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-info-col h2 {
    color: #5d4e7c;
    margin-bottom: 20px;
    border-bottom: 2px dashed #ddd;
    padding-bottom: 10px;
}

.info-group p {
    margin: 10px 0;
    font-size: 1.1rem;
    color: #444;
}

.comment-box {
    margin-top: 20px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    border-left: 5px solid #ff9a9e;
}

.handwriting-text {
    font-family: 'Courier New', Courier, monospace;

    font-style: italic;
    color: #666;
    margin-top: 5px;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
    color: #aaa;
    transition: 0.3s;
}

.close-modal:hover {
    color: #ff5f5f;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#searchActivityInput {
    border: none;
    outline: none;
    font-family: 'Patrick Hand', cursive;
    font-size: 1.5rem;
    width: 100%;
    background: transparent;
    color: var(--text-color);
}