/* TO DO: 
  1. Refactor for mobile (simultaneously make it DRY)
  Eh, she'll be right
*/

:root {
  --green: #009f6b;
  --black: #000;
  --platinum: #eae6e5;
  --black-coral: #5e6472;
  --black-coral-23: #5e647223;
  --fire-opal: #e85f5c;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: "Fira Code", monospace;
}

/* Crosshair cursor is for a giggle. */
body {
  cursor: crosshair;
  display: grid;
  place-items: center;
}

body,
h1,
h2,
h3 {
  margin: 0;
}

article {
  display: flex;
  align-items: center;
  justify-items: center;
  flex-direction: column;
  min-width: 40%;
  max-width: 100%;
}

article p {
  padding: 1% 0 0 5%;
  word-wrap: break-word;
  font-size: 1rem;
}

code {
  color: var(--green);
}

canvas {
  background-color: var(--black);
  width: 100%;
  height: 100%;
  position: fixed;
  left: 0;
  top: 0;
  z-index: -1;
}

ul li {
  display: block;
  margin: 0.5rem;
  padding: 0.5rem;
}

ul li a,
a.article-link {
  color: var(--platinum);
  border-radius: 0.5rem;
  padding: 0.1rem 0.3rem 0.1rem 0.3rem;
  line-height: 1.5rem;
}

/* The order of the following 
anchor styles is important - they
may not behave properly otherwise. */

ul li a:link,
a.article-link:link {
  text-decoration: none;
  border-bottom: 0.2rem inset var(--green);
}

ul li a:visited,
a.article-link:visited {
  color: var(--black-coral);
}

ul li a:hover,
a.article-link:visited:hover {
  background-color: var(--black-coral);
  color: var(--platinum);
}

ul li a:hover,
a.article-link:hover {
  background-color: var(--green);
}

ul li a:active,
a.article-link:active {
  color: var(--green);
}

ul li a:focus,
a.article-link:focus {
  background-color: var(--fire-opal);
}

/* Image styling for Pi Vuln Scan page */
.article-img {
  max-width: 50rem;
}

#huge-images {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#huge-images img.article-img-large {
  max-width: 20vw;
}

img.article-img-large {
  max-width: 40vw;
  padding-left: 4vw;
}

.bold {
  font-weight: 700;
}

.italics {
  font-weight: 400;
  font-style: italic;
}

.header {
  color: var(--platinum);
  width: min(50%);
  z-index: 1;
}

.heading {
  padding: 2% 0 0 5%;
}

.sub-heading {
  padding: 2% 0 2% 10%;
}

.main {
  background-color: var(--black-coral-23);
  backdrop-filter: blur(5px);
  border-color: var(--platinum);
  border-radius: 10px;
  color: var(--platinum);
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  width: clamp(300px, 50vw, 900px);
  z-index: 1;
}

.main1,
.main2,
.main3 {
  flex: 0 1 1rem;
}

.sec::before {
  content: "🔐";
}

.py::before {
  content: "🐍";
}

.coreplan::before {
  content: "";
  background-image: url(images/coreplan\ img.png);
  background-size: contain;
  background-repeat: no-repeat;
  display: inline-block;
  width: 1em;
  height: 1em;
  position: relative;
  top: 0.1rem;
  margin-right: 0.2rem;
}

.ecu::before {
  content: "";
  background-image: url(images/logo__ecu.svg);
  background-size: contain;
  background-repeat: no-repeat;
  display: inline-block;
  width: 1em;
  height: 1em;
  position: relative;
  top: 0.1rem;
  margin-right: 0.2rem;
}

.thm::before {
  content: "";
  background-image: url(images/thm.png);
  background-size: contain;
  background-repeat: no-repeat;
  display: inline-block;
  width: 1em;
  height: 1em;
  position: relative;
  top: 0.1rem;
  margin-right: 0.2rem;
}

.android::before {
  content: "🤖";
}

.net::before {
  content: "🌐";
}

.vuln::before {
  content: "🕵️‍♂️";
}

.commentary {
  font-size: small;
  width: min(70%);
}

/* Set the font-size to get it partially
on par with the other emojis (: */
.commentary::before {
  content: "💬";
  font-size: medium;
}

.footer {
  margin: 2rem;
  text-align: center;
}

.li-link img {
  height: 2.5rem;
  width: 2.5rem;
}

@media only screen and (min-width: 960px) {
  /* styles for browsers larger than 960px; */
}
@media only screen and (min-width: 1440px) {
  /* styles for browsers larger than 1440px; */
}
@media only screen and (min-width: 2000px) {
  /* for sumo sized (mac) screens */
}
@media only screen and (max-device-width: 480px) {
  /* styles for mobile browsers smaller than 480px; (iPhone) */
  ul li a {
    font-size: small;
  }

  .header {
    color: var(--platinum);
    width: min(90%);
    z-index: 1;
  }

  .heading {
    font-size: large;
    padding: 0;
  }

  .sub-heading {
    font-size: medium;
    padding: 0;
  }

  .main {
    background-color: #5e647265;
    border-radius: 0;
    width: 100%;
  }

  .commentary {
    font-size: x-small;
    width: min(90%);
  }

  .commentary::before {
    content: "💬";
    font-size: small;
  }

  .article-img {
    padding-left: 0;
  }

  .article-img-large {
    max-width: 60%;
    margin-left: 4rem;
  }
}
@media only screen and (device-width: 768px) {
  /* default iPad screens */
}
/* different techniques for iPad screening */
@media only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation: portrait) {
  /* For portrait layouts only */
  ul li a {
    font-size: medium;
  }

  .header {
    color: var(--platinum);
    width: min(90%);
    z-index: 1;
  }

  .heading {
    font-size: x-large;
    padding: 0;
  }

  .sub-heading {
    font-size: large;
    padding: 0;
  }

  .main {
    background-color: #5e647265;
    border-radius: 5px;
    width: 90%;
  }

  .commentary {
    font-size: small;
    width: min(90%);
  }

  .commentary::before {
    content: "💬";
    font-size: medium;
  }

  .article-img {
    padding-left: 0;
  }

  .article-img-large {
    max-width: 70%;
  }
}

@media only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation: landscape) {
  /* For landscape layouts only */
  ul li a {
    font-size: medium;
  }

  .header {
    width: min(80%);
    z-index: 1;
  }

  .heading {
    font-size: x-large;
    padding: 0;
  }

  .sub-heading {
    font-size: large;
    padding: 0;
  }

  .main {
    background-color: #5e647265;
    border-radius: 5px;
    width: 90%;
  }

  .commentary {
    font-size: small;
    width: min(90%);
  }

  .commentary::before {
    content: "💬";
    font-size: medium;
  }

  .article-img {
    padding-left: 0;
  }

  .article-img-large {
    max-width: 70%;
  }
}
