:root {
  --background: hsla(41.25,40%,92.16%,1);
  --sharp: #de0613;
  --shade: #b3b7e2;
  --green: #65ac52;
  --blue: #b7ddd3;
  --card: #fdfef5;
  --buttons: black;
  --body: "NHG", sans-serif;
  --title: "Academica", serif;
  --subheading: "MSC", sans-serif;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@font-face {
  font-family: 'Academica';
  src: url('fonts/AcademicaLight.otf') format('opentype');
  font-weight: normal;
}

/* @font-face {
  font-family: 'Academica';
  src: url('fonts/AcademicaMedium.otf') format('opentype');
  font-weight: 600;
} */

@font-face {
  font-family: 'Aston Script';
  src: url('fonts/Aston Script Pro Bold.otf') format('opentype');
}

@font-face {
  font-family: 'MSC';
  src: url('fonts/MSC-Semibold.woff2') format('woff2');
  font-style: normal;
  font-weight: normal;
}

@font-face {
  font-family: 'MSC';
  src: url('fonts/MSC-Bold.woff2') format('woff2');
  font-style: normal;
  font-weight: bold;
}

@font-face {
  font-family: 'NHG';
  src: url('fonts/NHG-Roman.woff2') format('woff2'),
       url('fonts/NHG-Roman.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'NHG';
  src: url('fonts/NHG-Roman-Italic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: 'NHG';
  src: url('fonts/NHG-Medium.ttf') format('truetype'),
  url('fonts/NHG-Medium.woff2') format('woff2');
  font-weight: bold;
}

@font-face {
  font-family: 'NHG';
  src: url('fonts/NHG-Medium-Italic.ttf') format('truetype'),
  url('fonts/NHG-Medium-Italic.woff2') format('woff2');
  font-weight: bold;
  font-style: italic;
}


* {
  padding: 0;
  margin: 0;
}

body {
  font-size: 15px;
  font-family: var(--body), sans-serif;
  background-color: var(--background);
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  font-weight: normal;
  letter-spacing: 0.01em;
  justify-content: center;
}

#container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 95%;
  height: 90%;
}

a:link, a:visited, a:hover, a:active {
  color: black;
}

iframe {
  display: none;
}

footer {
  display: none;
}

/* Level 1 */

h1 {
  font-family: var(--subheading), serif;
  color: black;
  font-size: 3.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

#toggles {
  display: flex;
  flex-direction: row;
  /* width: 400px; */
  justify-content: space-around;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  font-family: 'MSC', sans-serif;
  text-transform: uppercase;
  color: var(-buttons);
  height: 2rem;
  align-items: center;
}

.columns {
  display: flex;
  flex-direction: row;
  height: 70%;
  justify-content: center;
  margin-bottom: 1rem;
}

#popup {
  display: none;
  background-color:var(--card);
  border-radius: 10px;
  max-width: 560px;
  width: calc(50% + 100px);
  height: 85.5vh;
  flex-direction: row;
  justify-content: space-between;
  position: absolute;
  top: 50%;
  margin-top: -42vh;
  z-index: 1;
  padding: 3vh calc(1.5vw + 10px);
  box-sizing: border-box;
}

/* Level 2 */

.toggle {
  color: var(--buttons);
  display: flex;
  flex-direction: row;
  align-items: center;
}

#sort-by {
  display: flex;
  flex-direction: row;
}


.column {
  display: flex;
  flex-direction: column;
  width: 290px;
  margin: 0 2.8vw;
  align-items: center;
}

#close-button {
  height: 18px;
  cursor: pointer;
}

#right {
  width: 85%;
  overflow-y: auto;
}

#archived-column {
  display:none;
}

/* Level 3 Plus */

select {
  margin-left: 1.8vw;
  border: none;
  height: 2em;
  border-radius: 7px;
  font-family: var(--body), sans-serif;
  font-size: 0.9rem;
  padding: 0 5px;
  color:black;
  cursor:pointer;
}

a#show-archived {
  cursor: pointer;
  padding: 3px 8px 4px 8px;
  background-color: #fdfef5;
  padding: 0.2rem 0.7rem;
  margin-left: 2rem;
}

a#show-archived:hover {
  /* font-style: italic; */
  color: #fdfef5;
  background-color: black;
  /* font-weight: bold; */
}

.column-headings {
  font-size: 1.6em;
  font-family: var(--subheading);
  text-transform: uppercase;
  font-style: normal;
  font-weight: bold;
  letter-spacing: 0.08em;
  margin: 0.5vh 0 2.5vh 0;
  padding: 0.4rem 1rem;
}

#active-heading {
  background-color: var(--green);
  /* color: #fdfef5; */
  color: black;
}

#tracking-heading {
  background-color: var(--shade);
  color: #fdfef5;
  /* color: black; */
}

#archived-heading {
  background-color: var(--blue);
  color: black;
}


.cards {
  overflow-y: auto;
  width: 100%;
}

.card {
  background-color: var(--card);
  border-radius: 10px;
  width: 84%;
  text-align: left;
  min-height: 80px;
  margin-bottom: 20px;
  padding: 6% 8%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  line-height: 1.4em;
}

/* Card */

.title {
  padding-bottom: 0.6em;
  /* font-size: 1rem; */
  font-size: 1rem;
}

.preview {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* number of lines to show */
  -webkit-box-orient: vertical;
  width: 100%;
  color: grey;
  font-size: 0.9em;
  line-height: 1.3em;
}

.bottom {
  justify-content: flex-end;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding-top: 0.4em;
}

.rights-check {
  width: 16px;
  height: 16px;
  font-size: 0.64em;
  color: var(--shade);
  border: 1.5px solid var(--shade);
  border-radius: 16px;
  margin-right: 18px;
  text-align: center;
  line-height: 15px;
  padding: 1.5px;
}

/* Popup */

#top-right {
  padding: 0.2rem 0.5rem 0 0;
}

#pitch, #notes {
  text-align: justify;
  line-height: 1.3em;
}

.fieldName {
  color: grey;
}

.detail {
  padding-bottom: 1em;
}

#downloads {
  padding: 1rem 0 20rem 0;
}

.download {
  padding-bottom: 0.1em;
  display: flex;
  flex-direction: row;
}

.icon {
  width: 1rem;
  margin-right: 0.5rem;
  height: auto;
}

div.icon {
  background-image: url("/images/open-book.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 93% auto;
}

#top {
  display: flex;
  width: 100%;
  justify-content: space-between;
  flex-direction: row;
}

#bottom {
  width: 96%;
}


/* Mobile or Portrait */

@media screen and (max-width: 860px), (orientation:portrait) {

  #container {
    width: 98%;
    height: 95%;
  }

  .columns {
    width: 100%;
    justify-content: space-evenly;
    margin-bottom: 0.5rem;
    height: 81%;
  }

  .column {
    margin: 0;
  }

  #popup {
    width: 91%;
    height: 80vh;
    margin-top: -40vh;
  }

}


/* Narrow Mobile */

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

  select {
    font-size: 16px;
  }

  #container {
    width: 100%;
  }

  .column {
    width: 40%;
  }

  h1 {
  font-size: 2.5rem;
  }

  #toggles {
  flex-direction: column;
  height: 5rem;
  justify-content: space-between;
  }

}

/* Narrower Mobile */

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

  .columns {
    height: 75%;
  }

  .column {
    width: 44%;
  }

  #container {
    height: 95%;
  }

  #toggles {
    width: 90%;
  }

}

/* Laptop (short height) */

@media screen and (max-height: 700px) and (orientation:portrait) {

  #container {
    width: 100%;
    height: 95%;
  }

}

/* Wide desktop */

@media screen and (max-width: 1025px) and (min-height: 1000px) {

  #popup {
    width: 92%;
    height: 82vh;
    margin-top: -41vh;
  }

}

/* Wide and tall desktop */

@media screen and (max-width: 1025px) and (min-height: 1200px) {

  #popup {
    width: 94%;
    height: 80vh;
    margin-top: -40vh;
  }

}
