@use "../node_modules/highlight.js/styles/default.css";
@import "variables.scss";
@import url(https://fonts.googleapis.com/css?family=Oswald:300|Gentium+Basic&display=swap);

h2 {
    opacity: 0.9;
    font-size: 1.6em;
    font-weight: light;
}

ul, ol {
    line-height: 1.4;
    margin-bottom: 0;
}

code {
    display: inline;
}

code, pre {
    color: white;
    font-size: 0.8em;
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

pre {
    padding: 0.7em 0.9em;
}

blockquote {
    border-left: 5px solid $mainColor;
    padding: 20px 0 17px 28px;
    margin: 1em 0 0;
    font-style: italic;

    p {
        margin: 0;
        padding: 0;
    }
}

body > footer {
    background: $mainColor;
    color: #FFF;
    padding: 2.6em 0.4em;
    line-height: 1.35em;
    max-width: 100%;
    font-weight: normal;
    margin-top: 4em;

    > * {
        max-width: $bodyWidth - ($fontSize*2);
        margin: 0 auto;
        padding: 0;
    }

    > nav {
        padding-top: 1.7em;

        a {
            padding-right: 30px;
        }
    }

    a, a:visited {
        color: #FFF;
    }
}

.round {
    border-radius: 50%;
    margin: 11px auto -9px;
    display: block;
}

.lang-bash .code-line::before {
    content: "$ ";
    color: #bf79db;
}

body.draft {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' height='170px' width='250px'><text x='-10' y='95' fill='rgba(255,0,0,0.05)' font-size='50' transform='rotate(-40, 90,25)'>DRAFT</text></svg>")
}

.svg-wrapper {
    overflow-x: scroll;
    max-width: 100%;
}

.twitter-tweet-rendered {
    margin-left: auto;
    margin-right: auto;
}

a.twittershare {
    height: 28px;
    padding: 6px 10px 6px 11px;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    background: #0c7abf; // Official Twitter color is lighter (hover color), but swapped to make WCAG happy
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: -0.5px;

    &:before {
        content: "";
        background: url("/images/twitter.svg") 50% 50% no-repeat;
        background-size: contain;
        width: 16px;
        height: 14px;
        display: inline-block;
        margin-right: 5px;
        vertical-align: -1px;
    }

    &:hover {
        background-color: #1b95e0;
    }

    &:visited,
    &:active {
        color: #FFF;
        text-decoration: none;
    }
}

form {
  background: #EEE;
  border-radius: 14px;
  padding: 30px;
  text-align: center;
  margin-top: 30px;

  h3, p {
    padding: 0;
  }
}

input[type="email"] {
  border: 2px solid $mainColor;
  padding: 10px;
  font: 17px 'Georgia', serif;
  border-radius: 5px;
  margin-top: 15px;

  &:focus {
    outline: $mainColor auto 5px;
  }
}

button {
  background: $mainColor;
  border-radius: 5px;
  font: 20px 'Oswald', sans-serif;
  text-shadow: 0 3px 0 rgba(255, 255, 255, 0.1);
  border: 0;
  color: #FFF;
  padding: 7px 16px 9px;
  margin: 10px 0 0;
  border-bottom: 3px solid darken($mainColor, 10%);
  outline: none;
  cursor: pointer;

  &:hover {
    margin-top: 8px;
    border-bottom-width: 5px;
  }

  &:active {
    margin-top: 11px;
    border-bottom-width: 2px;
  }
}
