body {
  color:var(--text-colour);
  background-color:var(--background-colour);
  font-size: 18px;
  font-family: sans-serif;
}

:root {
  --flow-colour: #922B21;
  --prediction-colour: #D98880;
}

#menu {
  position: absolute;
  border: 1px solid #ccc;
  padding: 10px;
  z-index: 1000;
  display: table-cell;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 80vh;
  box-sizing: border-box;
}

#menu-content {
  display: in-line block;
  justify-content: center;
  width: 100%;
  padding: 2px;
}

.menu-item {
  width: 100%;
  display: flex;
  align: center;
  justify-content: center;
}

#calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.header-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: bold;
  margin-bottom: 5px;
}

#calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

#month-display {
  font-size: 20px;
}

.date-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5px;
  position: relative;
}

.day-header {
  padding: 5px 0;
  font-weight: bold;
  border: 0px;
}

.date-cell.empty {
  background-color: #303030;
}

.date-cell.weekend {
  background-color: #707070;
  opacity: 0.85;
}

.date-cell.red {
  background-color: var(--flow-colour);
}

.date-cell.pink {
  background-color:var(--prediction-colour);
}

.date-cell.today {
  border: 2px solid #fff;
  font-weight: bold;
}

.date-cell.has-note::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  background: white;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: gray;
  padding: 20px;
  border: 1px solid #ccc;
  text-align: center;
}

.modal button, .modal select {
  padding: 10px 20px;
  margin: 10px 5px;
  font-size: 16px;
  border-radius: 5px;;
  font-family: sans-serif;
}

.pink {
  background-color: pink;
}

.days-counter {
  text-align: center;
  margin-top: 1rem;
}

#button-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 5px 5px;
  display: flex;
  justify-content: space-between;
  z-index: 100;
}

.left-buttons button,
.right-buttons button {
  margin-right: 10px;
}

#notes {
    width: 100%;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    align-items: center;
    justify-content: center;
}

.overlay-content {
    background-color: gray;
    width: 80%;
    max-width: 500px;
    padding: 20px;
    box-sizing: border-box;
    margin-bottom: 50px;
    overflow-y: auto;
    position: relative;
    padding-bottom: 60px;
}

.close-overlay-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
}

.hourly-mood-container {
    padding-right: 10px;
}

.columns-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.column {
    flex: 1;
    max-height: 100%;
}

.row {
    display: flex;
    align-items: center;
}

.mood-cell select {
    width: 100%;
}

#configMenu .overlay-content .preferences-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

#configMenu .overlay-content .preference-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#configMenu .overlay-content label {
    font-size: 16px;
    font-weight: bold;
    margin-right: 10px;
}

#configMenu .overlay-content input[type="text"] {
    width: 120px;
    height: 30px;
    font-size: 16px;
    text-align: center;
    border: 1px solid #ccc;
}