body {
    font-family: 'Poppins', sans-serif;
    background-image: url('images/Vintage_Paper.jpeg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #4b4b4b;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: auto;
    text-align: center;
    background-color: transparent;
    padding: 0;
}

h1, h2 {
    color: #ece8e8;
    font-weight: 600;
}
#caption{
  font-style: italic;
  color: #ead8bd;
}

.controls-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.clear-btn {
    padding: 10px 15px;
    font-size: 14px;
    background: rgba(217, 83, 79, 0.7);
    color: white;
    border: 1px solid #d9534f;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.clear-btn:hover {
    background: #d9534f;
}

.camera-section {
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.4);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

video {
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
    border: 2px solid #ccc;
    margin-bottom: 15px;
}

.input-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

#noteInput, #dateInput {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: rgba(255, 255, 255, 0.7);
    color: #333;
}

#captureBtn {
    padding: 12px 25px;
    font-size: 16px;
    background: rgba(92, 184, 92, 0.7);
    color: white;
    border: 1px solid #5cb85c;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

#captureBtn:hover {
    background: #5cb85c;
    transform: translateY(-2px);
}

#journalGallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.entry-card {
    background: #fdfcf1; 
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #dcd3be;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Cormorant Garamond', serif; 
    
}


.entry-card:hover {
    transform: translateY(-5px) rotate(0deg); 
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.entry-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
 
}

.date-time {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
}

.date, .time {
    font-weight: normal;
    color: #7b5e4c; /* Darker brown color */
    font-size: 0.9em;
}

.note {
    margin-top: 5px;
    font-style: italic;
    color: #4e342e; /* Dark brown color */
    font-size: 1em;
    text-align: left;
}

.card-actions {
    margin-top: 10px;
    display: flex;
    justify-content: space-around;
}

.edit-btn, .delete-btn {
    padding: 8px 12px;
    border: 1px solid #b78a72; /* Vintage button borders */
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease, color 0.2s ease;
    background-color: transparent;
    color: #7b5e4c;
}

.edit-btn:hover {
    background-color: #ffc107;
    color: white;
    border-color: #ffc107;
}

.delete-btn:hover {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
}

.edit-note-input {
    width: 90%;
    padding: 8px;
    margin-top: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fcf8e3;
    color: #4e342e;
}