@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #ffffff;
}


.container {
    display: flex;
    height: 100vh;
    width: 70%; 
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 10px;
    gap: 5px;
}

.left-column {
    flex: 1; 
    background-color: #1e1e1e;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px;
    border-radius: 5px;
}

.text-section {
    flex: 0 0 20%;
    background-color: #1e1e1e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px; 
    font-family: 'Pacifico', cursive; 
    border-radius: 5px;
}

.options-section {
    flex: 1;
    background-color: #1e1e1e;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: start;
    padding: 15px;
    gap: 10px;
    overflow-y: auto;
}

.input-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.message-input {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: none;
    background-color: #666;
    color: white;
    font-size: 16px;
}

.message-input::placeholder {
    color: #c7c6c6;  
    font-style: italic;
    opacity: 0.7; 
}

.button-group {
    display: flex;
    gap: 10px; 
}

.custom-emotion-btn, .log-mood-btn {
    flex: 1; 
    background-color: #888;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.custom-emotion-btn:hover, .log-mood-btn:hover {
    background-color: #aaa;
}



.emotion-option {
    background-color: #666;
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
    text-align: center;
    min-width: max-content; 
    width: 100%; 
}


.emotion-option.selected{
    background-color: #aaa;
}


.emotion-option:hover {
    background-color: #aaa;
}



.extra-space {
    flex-grow: 1;
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    transition: background 0.3s;
    text-align: center;
    width: 100%; 
    min-width: 0; 
    max-width: 100%; 
    background-color: #444; 
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    word-wrap: break-word;
    white-space: normal; 
    overflow: hidden; 
    text-overflow: ellipsis; /* Show '...' if the text is too long */
}

.extra-space p {
    overflow-y: auto; 
    max-height: 100%; 
    text-align: center; 
}

    


.right-column {
    flex: 1; 
    background-color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    padding: 15px;
    position: relative; 
    overflow: auto;
}

#emotionCanvas {
    /* width: 100%;
    height: 100%; */
    position: absolute;
    top: 0;
    left: 0;
    overflow: auto;
    padding: 40px;
}


.timeline-controls {
    width: 100%; 
    display: flex;
    justify-content: center; 
    gap: 10px; 
    margin-bottom: 10px; 
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    z-index: 10;
}

.timeline-controls button {
    background-color: #888;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.timeline-controls button:hover {
    background-color: #aaa;
}

.right-column {
    position: relative;
}

.filter-btn.active {
    background-color: #00ccff; 
    color: white;
    font-weight: bold;
}

#calendar-popup {
    display: none; /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's on top of everything */
}

#calendar-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    height: 80vh; /* Ensure enough height */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

#close-calendar {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #000; /* Ensure the color is visible */
    z-index: 1001; /* Ensure it's on top of other elements */
}

#calendar {
    color: #000; /* Set text color to black */
}

.fc-event {
    color: #000; /* Ensure event text is black */
}

.fc-daygrid-day-number {
    color: #000; /* Ensure day numbers are black */
}

.fc-col-header-cell {
    color: #000; /* Ensure header text is black */
}



/* for responsiveness */
@media screen and (max-width: 1024px) {
    .container {
      width: 90%; /* Make the container take more width */
    }
  }
  
  @media screen and (max-width: 768px) {
    .container {
      flex-direction: column; /* Stack columns vertically */
      height: auto; /* Allow content to grow naturally */
    }
  
    .left-column, .right-column {
      width: 100%; /* Full width for both sections */
      min-height: 50vh; /* Make each section take half the height */
    }
  
    .options-section {
      align-items: center; /* Center emotion buttons */
    }
  
    .emotion-option {
      width: 80%; /* Make emotion buttons smaller */
    }
  
    /* Make the timeline scrollable */
    .right-column {
      overflow-x: auto; /* Enable horizontal scrolling */
      white-space: nowrap; /* Prevent content from wrapping */
      display: flex;
      justify-content: center;
      align-items: center;
    }
  
    #emotionCanvas {
      min-width: 1000px; /* Keep original canvas width */
      max-width: none;
    }
  }
  



  




  @media screen and (max-width: 480px) {
    .text-section {
      font-size: 24px; /* Reduce text size */
    }
  
    .emotion-option {
      font-size: 16px; /* Reduce button text size */
      padding: 8px 16px;
    }
  
    .input-container {
      gap: 5px; /* Reduce spacing */
    }
  
    .message-input {
      font-size: 14px;
      padding: 8px;
    }
  
    .button-group {
      flex-direction: column; /* Stack buttons */
    }
  
    .custom-emotion-btn, .log-mood-btn {
      width: 100%; /* Full width buttons */
    }
  
    /* Ensure the timeline remains scrollable */
    .right-column {
      padding: 10px;
    }
  
    #emotionCanvas {
      min-width: 900px;
    }
  }
  


