@import url("reset.css");

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

                colors

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

:root {
  --color-black: #1e1d20;
  --color-dark-grey: #313133;
  --color-grey: #696a6e;
  --color-light-grey: #9d9ea3;
  --color-white: #f5f7ff;
  --color-faasify-red: #900c3f;

  /* aliases */
  --color-dark-gray: var(--color-dark-grey);
  --color-gray: var(--color-grey);
  --color-light-gray: var(--color-light-grey);
}

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

                general

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

body {
  background-color: var(--color-black);
  color: var(--color-white);
  font-family: Roboto, sans-serif;
}

main {
  padding: 0 75px 0 350px;
}

h1,
h2,
h3,
h4 {
  font-family: Rift, sans-serif;
}

h1 {
  font-size: 4.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.7rem;
}

h4 {
  font-size: 1.25rem;
}

main > section {
  margin: 80px 0 100px 0;
  width: 75%;
}

blockquote {
  background: var(--color-dark-grey);
  border-left: 1rem solid var(--color-faasify-red);
  color: var(--color-light-grey);
  line-height: 2rem;
  margin: 1.5rem 1rem;
  padding: 0.5rem;
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 300;
}

blockquote footer {
  font-style: normal;
}

blockquote:before {
  color: #ccc;
  font-size: 4rem;
  line-height: 0.1rem;
  margin-right: 0.25rem;
  vertical-align: -0.4rem;
}

i,
em {
  font-style: italic;
}

sup {
  display: inline-block;
  vertical-align: super;
}

sup a {
  color: #777;
  text-decoration: none;
}

sup a:hover {
  color: var(--color-faasify-red);
}

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

            images/videos

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

img {
  display: block;
  margin: 0 auto;
  max-width: 800px;
}

#menu-logo {
  cursor: pointer;
  width: 50px;
  position: fixed;
  top: 20px;
  right: 28px;
  z-index: 4;
}

#github-logo {
  cursor: pointer;
  width: 35px;
  position: fixed;
  bottom: 30px;
  right: 35px;
}

#patterns img {
  max-width: 80%;
  height: auto;
}

#patterns video {
  max-width: 100%;
  height: auto;
}

.flex {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-evenly;
  align-items: center;
  align-content: center;
}

.flex * {
  margin: 0;
}

.faasify-border {
  border: 3px solid var(--color-faasify-red);
  border-radius: 25px;
}

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

            slideshows

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

.slideshow {
  position: relative;
}

.slideshow .prev-button,
.slideshow .next-button {
  fill: var(--color-light-grey);
  position: absolute;
  top: 43%;
  width: 5%;
}

/* Positioning is taken care of in the JavaScript. */
/*
.slideshow .prev-button {
  left: 0;
}

.slideshow .next-button {
  right: 0;
}
*/

.slideshow .prev-button:hover,
.slideshow .next-button:hover {
  fill: var(--color-grey);
  cursor: pointer;
}

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

               code

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

@font-face {
  font-family: "Fira Code";
  src: url(https://cdn.jsdelivr.net/npm/firacode@1.205.0/distr/woff2/FiraCode-Regular.woff2)
    format("truetype");
}

.container {
  margin: 50px auto;
  text-align: center;
}

pre {
  display: inline-block;
  max-width: 100%;
  text-align: left;
}

pre code {
  font-size: 0.8rem;
}

code {
  color: var(--color-light-grey);
  font-family: "Fira Code", monospace;
  font-size: 1rem;
}

code.dark {
  border: 2px solid var(--color-faasify-red);
  border-radius: 1rem;
  padding: 0.5vh 1vw;
}

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

               nav

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

nav#site-navigation {
  display: none;
  position: fixed;
  top: 0;
  width: 100vw;
  z-index: 2;
}

nav#site-navigation ul {
  display: inline-block;
  font-family: RiftSoft, sans-serif;
  font-size: 1.5rem;
}

nav#site-navigation ul li {
  margin: 25px 20px 25px 40px;
  float: left;
}

nav#site-navigation p {
  font-size: 1.2rem;
}

nav#site-navigation a {
  text-decoration: none;
  white-space: nowrap;
}

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

                intro

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

header {
  /* background-color: var(--color-white); */
  background-image: url('../images/logos/faasify/background.png');
  color: var(--color-dark-grey);
  height: 100vh;
}

header h1 {
  font-size: 3rem;
  font-style: italic;
  line-height: 3rem;
  padding: 20px 20px;
}

header figure {
  left: 50%;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translateY(-50%) translateX(-50%);
  max-width: 850px;
}

header figure p {
  font-family: RiftSoft, sans-serif;
  font-weight: bold;
  font-size: 2rem;
  letter-spacing: 0.3rem;
}

header figure img {
  max-width: 70vw;
}

header figure span {
  color: var(--color-faasify-red);
}

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

            case study

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

#patterns nav {
  border-right: 1px solid var(--color-light-grey);
  display: none;
  left: 1rem;
  padding-left: 5px;
  padding-right: 15px;
  position: fixed;
  overflow-y: scroll;
  top: 0;
  bottom: 0;
  /* display:block; */
  /* top: 50%; */
  /* transform: translateY(-50%); */
}

#patterns nav li {
  color: var(--color-light-grey);
  font-size: 2rem;
  list-style: none;
  margin-bottom: 3vh;
  padding-left: 10px;
}

#patterns nav li:last-of-type {
  margin-bottom: 0;
}

#patterns nav a {
  color: var(--color-light-grey);
  font-family: Rift, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  vertical-align: 0.05rem;
}

#patterns nav a:hover {
  color: var(--color-white);
}

#patterns h3,
#patterns h4,
#patterns h5,
#patterns p,
#patterns ul,
#patterns ol {
  margin-bottom: 20px;
}


#patterns h1 {
  color: var(--color-faasify-red);
}

#patterns h2 {
  color: var(--color-white);
  margin: 75px auto 20px auto;
}

#patterns h2:first-of-type {
  margin-top: 50px;
}

#patterns h2,
h3 {
  letter-spacing: 0.02rem;
}

#patterns h3 {
  color: var(--color-light-grey);
}

#patterns h4,
#patterns h5 {
  color: var(--color-grey);
}

#patterns p {
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 2rem;
}

#patterns blockquote p {
  font-size: 1.3rem;
}

#patterns blockquote p:first-of-type {
  font-style: italic;
}

#patterns li {
  font-size: 1rem;
  line-height: 1.6rem;
  margin-left: 2rem;
}

#patterns ul {
  list-style-type: disc;
}

#patterns ol {
  list-style-type: decimal;
}

#patterns li code {
  font-size: 0.8rem;
}

#patterns figure {
  margin: 50px auto;
}

#patterns figcaption::before {
  border-top: 1px solid var(--color-light-grey);
  content: "";
  display: block;
  margin: 0 auto 10px;
  width: 50%;
}

#patterns figcaption {
  color: var(--color-light-grey);
  font-style: italic;
  margin-top: 25px;
  text-align: center;
}

#serverless-patterns,
#deletion-steps {
  font-weight: 300;
}

.highlight {
  font-style: italic;
  font-weight: 500;
  color: var(--color-faasify-red);
}

table {
  table-layout: fixed;
  border-collapse: collapse;
  margin: 50px 0;
}

thead {
  font-size: 1.2rem;
  text-align: left;
}

td:nth-child(n + 2) {
  margin-left: 20px;
}

tbody tr {
  border-top: 2px solid var(--color-light-grey);
}

th,
td {
  padding: 10px;
}

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

              commands

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

.command {
  color: var(--color-faasify-red);
  font-size: 1.2rem;
  font-weight: bold;
}

#list-command code {
  color: #ebdbb2;
}

#list-command .heading {
  color: #98971a;
}

#list-command .faasify-resource {
  color: #b8bb26;
}

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

              references

------------------------------------ */
.reference {
  color: var(--color-light-grey);
  font-size: 0.9rem;
  text-decoration: none;
}

.reference:hover {
  color: var(--color-faasify-red);
}

#references h2 {
  color: var(--color-light-grey);
  font-size: 1.7rem;
  margin-top: 75px;
}

#references ol li {
  color: var(--color-light-grey);
  font-size: 0.9rem;
}

#references ol li {
  color: var(--color-light-grey);
}

#references a {
  color: var(--color-light-grey);
  font-size: 0.9rem;
  text-decoration: none;
}

#references a:hover {
  color: var(--color-faasify-red);
}

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

            our team

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

#contributors {
  background-color: var(--color-light-grey);
  color: var(--color-black);
  margin-top: 100px;
  padding-top: 20px;
  padding-bottom: 25px;
}

#contributors > img {
  margin: 10px auto;
}

#contributors h1 {
  text-align: center;
  line-height: 4rem;
  margin-bottom: 20px;
}

#contributors > p {
  font-size: 1.2rem;
  line-height: 1.7rem;
  margin-top: 30px;
  text-align: center;
  margin: 0 auto;
  width: 45%;
}

#contributors > ul {
  padding: 60px 0 80px;
  text-align: center;
}

#contributors li,
#contributors .social-icons li {
  display: inline-block;
  margin: 0 10%;
  vertical-align: middle;
}

#contributors h3 {
  margin-bottom: 10px;
}

#contributors a {
  color: var(--color-faasify-red);
  text-decoration: none;
}

#contributors .individual ul {
  margin: 0;
}

#contributors .individual li img {
  background-color: var(--color-white);
  border: none;
  border-radius: 25px;
  padding: 2px;
  margin-top: 10px;
  width: 35px;
}

#contributors .individual li img:hover {
  background-color: var(--color-faasify-red);
}

#contributors .individual li {
  margin: 10px 10px 0 10px;
}

#contributors .individual p {
  font-size: 1rem;
}

small {
  display: block;
  text-align: center;
  font-style: italic;
  opacity: 0.5;
}

#contributors small a {
  color: var(--color-faasify-red);
}

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

              mobile

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

@media (max-width: 1100px) {
  #patterns nav {
    display: none;
  }

  nav#patterns-mobile ul {
    margin: 0;
  }

  nav#site-navigation #patterns-mobile li {
    margin-left: 0;
  }

  nav#site-navigation #patterns-mobile li:last-child {
    margin-bottom: 0;
  }

  main {
    padding: 0 75px;
  }

  section#patterns {
    margin: 70px auto;
  }

  #patterns h2:first-of-type {
    margin-top: 20px;
  }

  #flowchart {
    max-width: 100%;
    height: auto;
  }

  #patterns img {
    max-width: 100%;
  }

  /* Site Nav */

  nav#site-navigation {
    height: 100vh;
    overflow: scroll;
  }

  nav#site-navigation > ul {
    margin-top: 50px;
    padding-bottom: 50px;
  }

  nav#site-navigation ul li {
    display: block;
    float: none;
    margin: 15px 20px 15px 40px;
  }
}

@media (max-width: 1030px) {
  #home p {
    box-sizing: border-box;
    width: 100%;
    padding: 0 90px;
  }

  #patterns img {
    max-width: 70vw;
  }
}

@media (max-width: 975px) {
  nav#site-navigation p {
    font-size: 1rem;
    line-height: 1.5rem;
    padding: 0 90px;
  }

  #contributors > p {
    width: 60%;
  }

  #contributors .individual li {
    margin: 10px 7px 0;
  }

  #contributors .individual li img {
    width: 30px;
  }

  #patterns img {
    max-width: 60vw;
  }
}

@media (min-width: 1100px) {
  nav#patterns-mobile {
    display: none;
  }
}

@media (max-width: 800px) {
  /* General */

  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  h4 {
    font-size: 1.3rem;
  }

  /* Logos */

  #menu-logo {
    width: 40px;
    top: 18px;
    right: 21px;
  }

  #github-logo {
    cursor: pointer;
    width: 28px;
    position: fixed;
    bottom: 30px;
    right: 27px;
  }

  /* Main */

  header h1 {
    font-size: 2.5rem;
    padding: 18px 21px;
    line-height: 2.3rem;
  }

  #home p {
    font-size: 2.5rem;
  }

  section#patterns {
    width: 100%;
  }

  #patterns p {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  #patterns blockquote p {
    font-size: 1.1rem;
    line-height: 1.6rem;
  }

  code,
  .command {
    font-size: 0.9rem;
  }

  #footnotes {
    word-wrap: break-word;
  }

  /* Our Team */

  #contributors > p {
    width: 70%;
  }

  #contributors .individual li {
    margin: 10px 5px 0;
  }

  #contributors .individual li img {
    width: 25px;
  }
}

@media (max-width: 600px) {
  /* General */

  h1 {
    font-size: 2.7rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  h4 {
    font-size: 1rem;
  }

  /* Main */

  #home p {
    font-size: 2.3rem;
    padding: 0 60px;
  }

  section#patterns {
    margin: 40px auto;
  }

  /* Our Team */

  #contributors > p {
    font-size: 1rem;
    margin-top: 0;
  }

  #contributors > ul {
    margin-top: 0;
    padding: 0;
  }

  #contributors li {
    display: block;
    margin: 0 auto;
    width: 60%;
  }

  #contributors .individual {
    padding: 50px 0;
    border-bottom: 1px solid var(--color-white);
  }

  #contributors .individual:last-of-type {
    border-bottom: 0px;
  }

  #contributors .individual ul {
    width: 70%;
    margin: 0 auto;
  }

  #contributors .individual li {
    margin: 10px 5px;
  }

  #contributors .individual li img {
    width: 25px;
    padding: 3px;
  }

  #contributors li > img {
    width: 30vw;
  }
}

@media (max-width: 500px) {
  #home p {
    font-size: 2.1rem;
  }

  table {
    table-layout: auto;
  }

  td:nth-child(n + 2) {
    margin-left: 0px;
  }

  tbody tr {
    border-top: none;
  }

  tbody tr:nth-child(n + 2) {
    border-top: 2px solid var(--color-light-grey);
  }

  th,
  td {
    padding: 10px;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  td {
    position: relative;
    margin-top: 30px;
  }

  td::before {
    position: absolute;
    width: 35%;
    top: -20px;
    font-weight: bold;
    white-space: nowrap;
  }

  td:nth-of-type(1)::before {
    content: "Command";
  }

  td:nth-of-type(2)::before {
    content: "Description";
  }

  #contributors .individual ul {
    width: 90%;
    margin: 0 auto;
  }

  #contributors .individual li {
    margin: 10px 7px;
  }

  #contributors .individual li img {
    width: 30px;
    padding: 2px;
  }

  #contributors li > img {
    width: 35vw;
  }

  nav#site-navigation ul {
    font-size: 1.2rem;
  }

  nav#site-navigation ul li {
    margin: 10px 0 10px 40px;
  }
}

@media (max-width: 400px) {
  #menu-logo {
    width: 33px;
    right: 15px;
  }

  #github-logo {
    bottom: 20px;
    right: 20px;
    width: 23px;
  }

  #home p {
    font-size: 1.7rem;
  }

  main {
    padding: 0 70px 0 25px;
  }

  h1 {
    font-size: 2.5rem;
  }

  nav#site-navigation ul {
    font-size: 1.1rem;
  }

  nav#site-navigation > ul {
    margin-top: 20px;
    padding-bottom: 25px;
  }

  nav#site-navigation ul li {
    margin-bottom: 3.5vh;
  }

  nav#patterns-mobile {
    margin-top: 1.75vh;
  }

  #contributors {
    padding-bottom: 18px;
  }

  #contributors > p {
    width: 57%;
  }
}

/* @media (max-height: 750px) {
  header figure img {
    max-width: min(95vh, 95vw);
  }
} */

details > summary {
  background-color: #574863;
  cursor: pointer;
  padding: .5rem 1rem;
}

details > summary > * {
  display: inline;
}

details > div {
  border: 2px solid #0f7ec0;
  margin-top: 0;
  padding: 1rem;
}

details > summary::before {
  content: '▶️';
}

details[open] > summary::before {
  content: '🔽';
}

details {
  border: 1px solid gray;
  border-radius: 0.2rem;
  padding: 0.5rem;
}


::-webkit-scrollbar {
  width: 5px;
  height: 8px;
  background-color: #fff; 
}



::-webkit-scrollbar-thumb {
  background-color: #ACB1BF;
  border-radius: 4px;
}


.pattern-image {
  border: rgb(144, 12, 63);
  border-style: solid;
  border-width: thick;
  padding: 10px;
  background: white;
}
