/*
  Stolen from Josh's Custom CSS Reset
  https://www.joshwcomeau.com/css/custom-css-reset/
*/

/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

body {
  /* 3. Add accessible line-height */
  line-height: 1.5;
  /* 4. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 5. Improve media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* 6. Inherit fonts for form controls */
input, button, textarea, select {
  font: inherit;
}

/* 7. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 8. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/*
  9. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}

/* -------------------------- */

body {
  font-family: Sans-Serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  overflow: scroll;
}

.main-content {
  max-width: 100vw;
}

@media (min-width: 1024px) {
  .main-content {
    min-width: 1024px;
  }
}

a {
  color: #1ca2db;
}

a:visited {
  color: #7d90f2;
}

::placeholder {
  color: lightgrey;
  opacity: 1; /* Firefox */
}

input {
  border: none;
  border-bottom: 1px solid lightskyblue;
  padding-bottom: 1px;
  margin-bottom: 0.4em;
}

input:focus {
  border-bottom: 1px solid white;
}

.input-title {
  width: 50rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.input-link {
  width: 50rem;
  color: rgb(77, 93, 115);
}

.input-author {
  width: 20rem;
  font-weight: 700;
}

@media not all and (min-width: 768px) {
  .hide-md {
    display:none;
  }
}

.flex-table {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.flex-row {
  display: flex;
  padding-top: 0.3em;
}

.flex-row:hover {
  background-color: #f1f3f5;
}

.flex-cell {
  flex: 1;
  max-width: 28em;
  text-align: left;
  padding-left: 0.2em;
  padding-right: 0.2em;
}

.flex-cell:nth-child(1) {
  flex: 0 0 auto;
}

.flex-cell:nth-last-child(1) {
  flex: 0 0 auto;
}

.flex-cell:nth-child(2) {flex: 3;}
.flex-cell:nth-child(4) {max-width: 1.5em;}
.flex-cell:nth-child(5) {max-width: 4em;}
.flex-cell:nth-child(6) {max-width: 12em;}
