/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

body {
  /* https://css-tricks.com/snippets/css/system-font-stack/ */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
    Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  margin: 0;
  padding: 1rem;
}

h1 {
  margin: 0;
}

.nav {
  padding-bottom: 1rem;
  text-align: center;
}

.App {
  margin: 0 auto;
  max-width: 500px;
}

.CalendarMonth {
  border-collapse: collapse;
  width: 100%;
}

.CalendarMonth td {
  background: linear-gradient(150deg, #f4f4f4, #fff 60%);
  height: 2.5em;
  padding: 1.5em 0 0 0;
  position: relative;
  vertical-align: top;
  width: calc(100% / 14);
}

.CalendarMonth td[data-day]::before {
  box-sizing: border-box;
  display: block;
  content: attr(data-day);
  height: 1.5em;
  line-height: 1;
  overflow: hidden;
  padding: 5px;
  position: absolute;
  right: 0;
  text-align: right;
  top: 0;
}

.CalendarMonth td.CalendarMonth-weekend {
  background: linear-gradient(150deg, #ddd, #eee 40%);
}

.CalendarMonth-surround {
  color: #ccc;
}

.CalendarMonthHeader {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 0.5em;
}

.CalendarMonthHeader h2 {
  font-weight: normal;
  margin: 0;
}

.Day-halfdays {
  display: grid;
  grid-auto-rows: 1em;
  grid-template-columns: 1fr 1fr;
}

.Halfday {
  background: #ccc;
}
.Halfday-am {
  grid-column: 1;
}
.Halfday-pm {
  grid-column: 2;
}
