@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}

body{
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    background-image: url('flower.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.main-title {
  font-family: 'Dynalight', cursive;
  font-size: 50px;
  word-wrap: break-word;
  margin: 100px auto 30px auto;
  text-align: center;   
  max-width: 90%;                   
  text-align: center;
  animation: fadeIn 1.2s ease-in-out;      
}

.planner-container {
  text-align: center;
  margin-top: 30px;
  background-color: rgb(250, 166, 110);
  padding: 20px;
  width: 300px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
     font-size: 3.5rem;  
    font-family: "Libre Caslon Text", serif;
     display: flex;
  flex-direction: column;    
  align-items: center; 
}

.task-input {
    display: flex;
    gap: 5px;
    width: 100%;
}

.task-input input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px 0 0 8px;
}

.task-input button {
    background-color: #fc5d5d;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
}

.task-input button:hover {
    background-color: #f5818b;
}

#taskList {
    list-style: none;
    padding: 0;
}

#taskList li{
    display: flex;
    justify-content: space-between;
    background-color: #f8f9fb;
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 8px;
}

#taskList li.done {
    text-decoration: line-through;
    opacity: 0.6;
}

h2 {
    text-align:center;
     font-size: 2rem;
    font-family: "Libre Caslon Text", serif;
}

h3 {
    text-align: center;
    font-size: 2rem;
    font-family: "Libre Caslon Text", serif;
}



.timer-container {
    text-align: center;
    margin-top: 30 px;
    background-color: blanchedalmond;
    padding: 20px;
    width: 300px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#timer {
    font-size: 4rem;
    margin-bottom: 15px;
    text-align: center;
    font-family: "Libre Caslon Text", serif;
}

.timer-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

button { 
    background-color: rgb(248, 97, 97);
    text-align:justify;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    margin: 5px;
    border-radius: 5px;
    cursor:pointer;
    font-family: "Lora", serif;
    font-size: medium;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

button:hover {
    background-color: #f0a754;
}

.right-column {
  position: absolute;
  top: 50px;
  right: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.calendar {
  position: static;
  top: 40px;        
  right: 60px;    
  background-color: #fcbca2;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(247, 124, 185, 0.3);
  width: 220px;
  padding: 15px;
  font-family: "Libre Caslon Text", serif;
  text-align: center;
  transition: all 0.3s ease;
}
.calendar:hover {
  transform: scale(1.03);
}

.calendar-header {
  font-weight: 600;
  color: #fc406f;
  margin-bottom: 8px;
  font-size: 16px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  font-size: 12px;
  justify-items: center;
}

.calendar-grid div {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #333;
  background-color: #ffe6f0;
}

.calendar-grid div:hover {
  background-color: #fcd7ba;
  color: white;
  cursor: pointer;
}

.calendar-grid .today {
  background-color: #ff7698;
  color: white;
  font-weight: bold;
  border: 1px solid #fa5f86;
}

#quote-box {
  position: static;
  background-color: #f7bd8e;
  border: 2px solid #ffbbb6;
  border-radius: 20px;
  padding: 20px;
  width: 280px;
  text-align: center;
  margin-top: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#quote {
  font-size: 16px;
  color: #000000;
  font-family: "Libre Caslon Text", serif;
  margin-bottom: 15px;
}

#new-quote-btn {
  background-color: #fa5d48;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

#new-quote-btn:hover {
  background-color: #faa398;
}

.journal-container {
  position: fixed;
  top: 110px;
  left: 20px;
  background-color: #ffb69a;
  border-radius: 15px;
  padding: 20px;
  width: 350px;
  margin: 30px auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.journal-container h4 {
  font-family:"Libre Caslon Text", serif;
  color: #fc405f;
  margin-bottom: 10px;
}

#journal {
  width: 90%;
  height: 120px;
  border: none;
  border-radius: 10px;
  padding: 10px;
  resize: none;
  font-family:"Libre Caslon Text", serif;
  font-size: 14px;
  background-color: #fffafc;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
}

.journal-actions { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }

#saveJournal, #clearJournal {
  padding: 8px 12px;
  border-radius: 18px;
  border: none;
  cursor: pointer;
  background: #fc5d5d;
  color: white;
  font-size: 15px;
}

#saveJournal:hover {
  background-color: #f8d086;
  transform: scale(1.05);
}

#entriesContainer {
  margin-top: 20px;
  text-align: left;
  max-height: 200px;
  overflow-y: auto;
  background-color: #ffb69a;
  border-radius: 10px;
  padding: 10px;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
}

.entry {
  background-color: #ffeef8;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
  font-style: normal;
}

.entry-date {
  font-size: 12px;
  color: #fc1038;
  font-family: "Libre Caslon Text", serif;
}

.entry-text {
  margin-top: 5px;
  font-size: 14px;
  color: #030303;
  font-family: "Libre Caslon Text", serif;
}

#greeting-container {
  text-align: center;
  margin-top: 20px;
}

#greeting {
  font-size: 35px;
  color: #0f0707;
  font-family: "Dancing Script", cursive;
  margin-bottom: 10px;
}

#nameInput {
  padding: 8px 12px;
  border: 2px solid #ffb6d9;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
}

#saveNameBtn {
  background-color: #f79a65;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  margin-left: 6px;
  cursor: pointer;
  font-size: 14px;
}

#saveNameBtn:hover {
  background-color: #fcc490;
}

.credit {
  position: fixed;
    bottom: 10px; 
  right: 15px;
  font-size: 18px;
  color: #000000;
  font-family: "Dancing Script", cursive;
  background-color: rgba(252, 192, 136, 0.979);
  padding: 5px 10px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(255, 182, 193, 0.5);
}
