/*
@font-face {
  font-family: "Roboto Mono";
  src: url("/fonts/IBMPlexMono-RegularItalic.ttf");
  font-style: italic;
}
@font-face {
  font-family: "Roboto Mono";
  src: url("/fonts/IBMPlexMono-Bold.ttf");
  font-weight: bold;
}
@font-face {
  font-family: "Roboto Mono";
  src: url("/fonts/IBMPlexMono-BoldItalic.ttf");
  font-weight: bold;
  font-style: italic;
}
@font-face {
  font-family: "Roboto Mono";
  src: url("/fonts/IBMPlexMono-Regular.ttf");
  font-style: normal;
  font-weight: normal;
}
*/

:root {
  --pt-blue: #0A49DC;
  --pt-chalk-blue: #83AEFF;
  --pt-dark-gray: #222;
  --pt-dark-gray-rgb: 34,34,34;
  --pt-highlight: #3DEA7F;
}

@font-face {
  font-family: "Roboto Mono";
  src: url("/fonts/RobotoMono-Italic.ttf");
  font-style: italic;
}
@font-face {
  font-family: "Roboto Mono";
  src: url("/fonts/RobotoMono-Bold.ttf");
  font-weight: bold;
}
@font-face {
  font-family: "Roboto Mono";
  src: url("/fonts/RobotoMono-BoldItalic.ttf");
  font-weight: bold;
  font-style: italic;
}
@font-face {
  font-family: "Roboto Mono";
  src: url("/fonts/RobotoMono-Regular.ttf");
  font-style: normal;
  font-weight: normal;
}

html {
  font-size:13px;
}

p {
  /*word-wrap: break-word;*/
}

body input:not([type="checkbox"]) {
  /* Font size must be at least 16px to stop iPhones from zooming in when field is in focus */
  font-size: 16px !important;
  max-width:100%;
  width:400px;
}
body select {
  /* Font size must be at least 16px to stop iPhones from zooming in when field is in focus */
  font-size: 16px !important;
}

textarea {
  width:100%;
  font-size:16px;
  /*min-height: 5em;*/
	/*max-height: 50vh;*/
}

.form-check-input:checked {
  background-color: var(--pt-blue);
  border-color: var(--pt-blue);
}

@media(prefers-color-scheme: dark) {
  .form-check-input:checked {
    background-color: var(--pt-chalk-blue);
    border-color: var(--pt-chalk-blue);;
  }
}

body {
  font-family:"Roboto Mono";
  background-color:#fff;
  color:#000;
}

@media (prefers-color-scheme: dark) {
  body {
    background-color:var(--pt-dark-gray);
    color:#e5e5e5;
  }
}

/* Remove default styles from buttons */
button {
  font-size:100%;
  font-family:inherit;
  border:0;
  padding:0;
  background:none;
}

.light {
  color: var(--pt-blue);
}

@media (prefers-color-scheme: dark) {
  .light {
    color: var(--pt-chalk-blue);
  }
}

.default-text-color {
  color:#000;
}

@media (prefers-color-scheme: dark) {
  .default-text-color {
    color:#e5e5e5;
  }
}

a, a:visited, a:hover {
  color: var(--pt-blue);
  text-decoration: none;
}

@media (prefers-color-scheme: dark) {
  a, a:visited, a:hover {
    color: var(--pt-chalk-blue);
  }
}

.cohort-nav-buttons {
  display:flex;
}

.cohort-nav-buttons a {
  color:#000;
  margin-top:15px;
  margin-bottom:15px;
  padding:15px;
  display:inline-block;
  width:100%;
  text-align: center;
  /*border-bottom: solid 5px rgba(10,73,220,0.2);*/
  border-bottom: solid 5px rgba(0,0,0,0.1);
}

@media (prefers-color-scheme: dark) {
  .cohort-nav-buttons a {
    color:#e5e5e5;
    border-bottom: solid 5px rgba(131,174,255,0.3);
  }
}

.cohort-nav-buttons a:hover {
 text-decoration: none;
 cursor:pointer;
}
.cohort-nav-buttons a img {
  height:1rem;
}
.cohort-nav-buttons a.selected {
  border-bottom-color: var(--pt-blue);
}

@media (prefers-color-scheme: dark) {
  .cohort-nav-buttons a.selected {
    border-bottom-color: #ddd;
  }
}

.blue-button, a.blue-button, input.blue-button {
  background-color: var(--pt-blue);
  color:#fff;
  padding:15px 30px 15px 30px;
  margin-top:15px;
  margin-bottom:15px;
  display:inline-block;
  border:0;
}

@media (prefers-color-scheme: dark) {
  .blue-button, a.blue-button, input.blue-button {
    background-color: var(--pt-chalk-blue);
  }
}

.blue-button:hover {
  background-color: #1F63FF;
  text-decoration: none;
  cursor:pointer;
}
@media (prefers-color-scheme: dark) {
  .blue-button:hover {
    background-color:#5F96FD;
  }
}

.blue-button.grayed-out {
  background-color:#BFBFBF;
  color:#909090;
}

.white-button, a.white-button, input.white-button {
  color: var(--pt-blue);
  padding:14px 29px 14px 29px; /* 1px less all around to account for 1px border. This keeps blue-buttons and white-buttons the same size */
  margin-top:15px;
  margin-bottom:15px;
  display:inline-block;
  border:1px solid var(--pt-blue);
}

@media (prefers-color-scheme: dark) {
  .white-button, a.white-button, input.white-button {
    color: var(--pt-chalk-blue);
    border-color: var(--pt-chalk-blue);
  }
}

.link-button, a.link-button {
  color: var(--pt-blue);
  text-decoration: none;
  cursor: pointer;
  display:inline-block;
  font-style:italic;
  font-size:1rem;
  font-weight: normal;
}
@media (prefers-color-scheme: dark) {
  .link-button, a.link-button {
    color: var(--pt-chalk-blue);
  }
}
.link-button:hover {
  text-decoration:underline;
}

@media (max-width:800px) {
  .wide-button {
    width:100%;
    text-align:center;
  }
}

.field-controls {
  margin-top:10px;
}

h1 {
  font-size:2.6rem;
  font-weight:normal;
}

@media (max-width:800px) {
  h1 {

  }

}

.marketing-page {
  font-size:16px;
}

h2 {
  font-size:1rem;
  text-transform: uppercase;
  margin-top:20px;
  opacity:0.45;
  font-weight:normal;

}

@media (prefers-color-scheme: dark) {
  h2 {
    opacity:0.65;
  }
}

h3 {
  font-size:16px;
  font-weight:normal;
}

h4 {
  font-size:1rem;
  font-weight:bold;
}

blockquote {
  /*border-left:3px solid #ddd;*/
  border-left:3px solid var(--pt-highlight);
  padding-left:15px;
  opacity:0.7;
}

@media (prefers-color-scheme: dark) {

  blockquote {
    border-left-color: var(--pt-chalk-blue);
  }


}

a.cohort-block {
  padding:30px;
  margin:10px 0;
  display:block;
  border:1px solid var(--pt-blue);
  color:#000;
}

@media (prefers-color-scheme: dark) {
  a.cohort-block {
    border:1px solid var(--pt-chalk-blue);
    color:#e5e5e5;
  }
}

a.cohort-block:hover {
 text-decoration: none;
}



a.template-block {
  border:1px solid rgba(10,73,220,0.2);
  padding:30px;
  margin-top:15px;
  margin-bottom:15px;
  display:block;
}

@media (prefers-color-scheme: dark) {
  a.template-block {
    border-color: var(--pt-chalk-blue);
  }
}


.caption {
  font-size:0.7rem;
}
.how-it-works {
  text-align: center;
}
.how-it-works p {
  margin-top:30px;
}
.how-it-works img, img.how-it-works {
  width:100%;
  max-width:200px;
}

.field-form {
  display:none;
}

.field-cancel-button {
  /* Override the link-button italics */
  font-style:normal;
  display:inline-block;
}

.series-position-arrow {
  font-size:1.5rem;
  padding:0 20px;
  display:inline;
  color:#00f;
  cursor: pointer;
}

.file-display {
  border:1px solid var(--pt-chalk-blue);
  padding:5px;
  margin-bottom:20px;
}
.file-display img {
  width:50px;
  margin-right:15px;
}
.file-display-small {
  width:50px;
  margin-right:15px;
  align-self: flex-start;
}

.assignment-order-row {
  display: flex;
  border-top:1px solid rgba(0,0,0,.1);
  padding:23px 0 8px 0;
}

.activity-item {
  display:flex;
  margin-top:9px;
}
.submission-body {
  min-width: 1%; /* Without this line, the word-wrap doesn't seem to work within a flex container, such as .activity-item */
  word-wrap: break-word;
}

/**
 * Uploader
 */

#uploader-container {
  width:100%;
  margin: 0 0 15px 0;
}

#drop-area {
  border: 2px dashed #ccc;
  border-radius: 20px;
  width: 100%;
  padding: 20px;
}
#drop-area.highlight {
  border-color: #00f;
}
#uploading-message {
  display:none;
}
#upload-complete {
  display:none;
}
#image-preview img {
  height:120px;
  transform-origin: top left;
}
.button {
  display: inline-block;
  padding: 10px;
  background: #ccc;
  cursor: pointer;
  border-radius: 5px;
  border: 1px solid #ccc;
  color:#222;
}
.button:hover {
  background: #ddd;
}
#fileElem {
  display: none;
}
#error-message {
  background-color:#f00;
  color:#fff;
  padding:20px;
  display:none;
}
#error-message a {
  color:#fff;
  text-decoration: underline;
}

.maintenance {
  background-color:#f00;
  padding:5px;
  color:#fff;
}

.illustration-home {
  width:160px;
  margin:15px 15px 15px 0;
}

.highlight, mark {
  background-color: var(--pt-highlight);
  color:#000;
}
@media (prefers-color-scheme: dark) {

  .highlight, mark {
    background-color: #2D7F4A;
    color:#fff;
  }

}
.more-button {
  display:none;
  color: var(--pt-blue);
  cursor:pointer;
  padding:5px 0;
}
@media (prefers-color-scheme: dark) {
  .more-button {
    color: var(--pt-chalk-blue);
  }
}

.lindy-clamped {
  position: relative;
  max-height: 100px;
  overflow: hidden;
}
.lindy-clamp-more {
  padding-top:20px;
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 80%);
  display:none;
}

@media (prefers-color-scheme: dark) {
  .lindy-clamp-more {
    background: linear-gradient(rgba(var(--pt-dark-gray-rgb), 0), rgba(var(--pt-dark-gray-rgb), 1) 80%);
  }
}

.lindy-clamp-more button {
  position:absolute;
  bottom:0;
}

#rotate-button {
  margin-bottom:20px;
}
.victory-graphic {
  background-color: var(--pt-blue);
  color:#fff;
  width:100%;
  max-width:400px;
  text-align:center;
  padding:50px 40px 40px 40px;
  margin:20px 0;
}

@media(prefers-color-scheme: dark) {
  .victory-graphic {
    background-color: rgba(131,174,255,0.3);
  }
}

.victory-graphic .crown {
  font-size:22px;
}
.share-image-gallery .share-image img {
  width:100%;
  max-width:300px;
  margin-bottom:20px;
}
.recipe img {
  max-width:100%;
  margin:10px 0 20px 0;
}
a.icon-button {
  display:block;
  margin:14px 0;
  font-size:16px;
}
.icon-button img {
  width:37px;
}
.bottom-links {
  text-align:center;
}
.bottom-links a {
  margin:20px 0;
  display:block;
}
.logo {
  height:30px;
  margin:25px 0;
}
.stats-table {
  table-layout: fixed;
  width:100%;
}
.stats-table th {
  font-weight:normal;
}
.stats-table th, .stats-table td {
  padding:7px 7px 7px 0px;
}

.small-date {
  font-size:11px;
}

label {
  margin-bottom:10px;
}

.form-floating label {
  color:#777;
}

#subscriptions-form label {
  margin-bottom:13px;
  margin-left:10px;
}

.green-text {
  color:var(--pt-highlight);
}
.red-text {
  color:#E25A50;
}

.good-news {
  background-color:var(--pt-highlight);
  padding:20px;
  color:#222;
}
.bad-news {
  background-color:#ED785A;
  padding:20px;
}
@media (prefers-color-scheme: dark) {
  .bad-news {
    background-color:#E25A50;
  }
}

.form-response-text {
  display:none;
}

.faded-row {
  opacity:0.4;
}

/* Navigation and top banner */

.back-arrow {
  font-size:35px;
  padding:0 0 0 0;
  margin-bottom:10px;
  line-height: 35px;
  display:block;
  color: var(--pt-blue);
}
@media (prefers-color-scheme: dark) {
  .back-arrow {
    color: var(--pt-chalk-blue);
  }
}

.top-banner {
  margin-top:10px;
  margin-bottom:30px;
  display:flex;
  justify-content: space-between;
}

@media(max-width: 800px) {
  .top-banner {
    display:flex;
    justify-content: space-between;
    z-index:11;
  }
}

.mobile-menu-button {
  color: var(--pt-blue);
}

@media(min-width: 800px) {
  .mobile-menu-button {
    display:none;
    /*visibility:hidden;*/
  }
}

@media (prefers-color-scheme: dark) {
  .mobile-menu-button {
    color: var(--pt-chalk-blue);
  }
}

.mobile-menu {
  display:none;
  flex-direction: column;
  position:fixed;
  z-index:10;
  width:100%;
  height:100%;
  text-align: right;
  font-size:16px;
  line-height: 4rem;
  background-color: rgba(255,255,255,0.95);
}

@media (prefers-color-scheme: dark) {
  .mobile-menu {
    background-color: rgba(34,34,34,0.95);
  }
}

.mobile-menu a {
  display:block;
}

.mobile-menu a strong {
  font-size:2rem;
  font-weight:normal;
}

.desktop-menu {
  margin-top:5px;
  margin-bottom:20px;
  margin-left:10px;
}
.desktop-menu a {
  margin: 0 10px;
}

@media(max-width: 800px) {
  .desktop-menu {
    display:none;
  }
}

.desktop-menu a.current {
  border-bottom:1px solid var(--pt-blue);
  padding-bottom:3px;
}

@media (prefers-color-scheme: dark) {
  .desktop-menu a.current {
    border-bottom-color: var(--pt-chalk-blue);
  }
}

/* Lindy Lightbox */

.img-lindy-lightbox {
    max-height: calc(100vh - 120px);
}
.modal-lindy-lightbox {
    text-align:center;
}
.modal-dialog-lindy-lightbox {
    display: inline-block;
    width: auto;
}
.modal-header-lindy-lightbox {
  border-bottom:0;
}
.modal-header-lindy-lightbox .btn-close {
  opacity:1;
}
@media (prefers-color-scheme: dark) {
  .modal-content-lindy-lightbox {
    background-color:rgba(100,100,100,0.9);
  }
}
.marketing-page h2 {
  font-size: 1.5rem;
  margin-bottom:19px;
  text-transform: none;
  color:#000;
  opacity: 1;
  font-weight: bold;
}
@media (prefers-color-scheme: dark) {
  .marketing-page h2 {
    color:#fff;
  }
}
.bigger {
  font-size:2rem;
}
.medium-large {
  font-size:1.5rem;
}
h2.bigger {
  font-size:2rem;
}
.home-page-feature-image {
  width:80%;
  margin:10px 0
}
@media(max-width:800px) {
  .home-page-feature-image {
    width:100%;
  }
}
.illustration-light {
  display:block;
}
.illustration-dark {
  display:none;
}
@media (prefers-color-scheme: dark) {
  .illustration-light {
    display:none;
  }
  .illustration-dark {
    display:block;
  }
}

.spot-illustration {
  max-width:100%;
  width:400px;
}

.spaced-list li {
  margin-bottom:12px;
}


/* Use this filter to change black into blue */
/* Calculate filters to colorize from black using this tool: https://isotropic.co/tool/hex-color-to-css-filter/ */
.blue-filter {
  filter: invert(22%) sepia(100%) saturate(2449%) hue-rotate(219deg) brightness(84%) contrast(107%);
}

@media (prefers-color-scheme: dark) {
  .blue-filter {
    filter: invert(72%) sepia(17%) saturate(5798%) hue-rotate(191deg) brightness(103%) contrast(101%);
  }

}

.course-thumbnail {
  max-width:140px;
}

.faq-question {
  cursor: pointer;
}
.faq-answer {
  display: none;
}
