@font-face {
    font-family: "HabitusBook";
    src: url("Habitus-Book.otf") format("woff");
}

@font-face {
    font-family: "HabitusMedium";
    src: url("Habitus-Medium.otf") format("woff");
}

* {
  margin: 0;
  padding: 0;
}

html,
body {
  font-family: "HabitusBook";
  font-size: 18px;
  font-style: normal;
  line-height: 1.2;
  cursor: auto;
}

.date {
  width: 10vw;
}


.container {
  margin: 0;
  display: flex;
  flex-direction: row;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  width: 100vw;
  height: 100vh;
}

.semaine {
  width: 100vh;
}

.left {
  width: 40vw;
}

.right {
  width: 60vw;
  border-left: 1px solid grey;
}

.left,
.right,
.nav {
  overflow-y: scroll;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  height: 100vh;
}


/* ROWS
-------------------------------------------------- */

.row {
  border-bottom: 1px solid grey;
  padding: 10px;
  display: grid;
  grid-template-columns: 10vw auto;
  cursor: pointer;
}

.main {
  overflow: hidden;
}

.summary {
  overflow: hidden;
}

.details {
  display: none;
}

.row.open .details {
  display: block;
}

/* Row .live stays permanently open and doesn't show the pointer cursor */
.row.live .details {
  display: block;
}

.row.live {
  cursor: default;
}

.section {
  padding: 10px 40px 10px 10px;
  border-bottom: 1px solid grey;
  padding-bottom: 15px;
}

img {
  max-width: 100%;
}

.live {
  background: linear-gradient(
    180deg,
    rgb(255, 252, 227) 0%,
    rgb(252, 252, 250) 100%
  );
}


/* COLOR
-------------------------------------------------- */

a {
  color: black;
  z-index: 10;
  cursor: alias;
}

a:hover {
  cursor: alias;
  font-weight: bolder;
  font-style: italic;
}

.row:hover,
.section:hover {
  background-color: rgb(242, 248, 255);
}

.live:hover {
  background-image: radial-gradient(
    farthest-side at 50% 50%,
    rgba(255, 252, 227, 1) 0%,
    rgba(252, 252, 250, 1) 40%,
    rgba(255, 252, 227, 0) 100%
  );
}


/* TEXT
-------------------------------------------------- */

ol {
  margin-left: 15px;
}

ul {
  list-style-type: circle;
  margin: 12px 15px 10px 0;
}

li {
  margin-left: 20px;
}

blockquote {
  margin-left: 20px;
}

#footer {
  background-color: rgb(220, 220, 220);
}


/* MOBILE
-------------------------------------------------- */

@media screen and (max-width: 768px) {

  html,
  body {
    font-size: 20px;
    overflow-x: hidden;
  }

  .container {
    flex-direction: column;
    width: 100vw;
    height: auto;
    overflow: visible;
  }

  .left,
  .right {
    width: 100vw;
    height: auto;
    overflow-y: visible;
    overflow-x: hidden;
    border-left: none;
    display: block;
  }

  .right {
    border-top: 1px solid grey;
  }

  .row {
    display: block;
    padding: 10px;
  }

  .date {
    width: 100%;
    margin-bottom: 5px;
  }

  .summary {
    max-height: none;
    overflow: visible;
  }

  .details {
    display: none;
  }

  .row.open .details {
    display: block;
  }

  .row.live .details {
    display: block;
  }

  .section {
    padding: 10px;
  }

}