/*
  http://meyerweb.com/eric/tools/css/reset/
  v2.0 | 20110126
  License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

body {
  font-family: sans-serif, "Helvetica Neue", Helvetica, Arial;
  background-color: #f8f8f8;
  color: #444;
}

/*end reset*/
.header {
  height: 3rem;
  padding: 0 2rem;
  background-color: #5f5f5f;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  color: #eee;
  border-bottom: 2px solid #a8a;
}

.header .logo {
  font-size: 14px;
  letter-spacing: 3px;
}

.rating-box .gt-like-button .fa {
  flex: 1 1 auto;
}

.content {
  padding: 3rem 1rem;
}

.content a,
.content a:visited {
  color: #444;
}

.content h1 {
  font-size: 1.5rem;
  text-align: center;
  font-weight: bold;
}

.content .ratings {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
}

.ratings .rating-box {
  flex: 1 1 auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 250px;
  min-height: 180px;
  margin: 1rem;
  background-color: #eee;
  position: relative;
}

.rating-box .gt-like-button {
  flex: 1 1 auto;
}

.rating-box .install {
  display: none;
  position: absolute;
  right: 0rem;
  bottom: 0rem;
  font-size: 0.7rem;
  border: 1px solid #dadada;
  background-color: #eee;
  outline: none;
}

.rating-box .install:active {
  background-color: #a8a;
}

.install.selected {
  border-color: #a8a;
  background-color: #ccc;
}

.rating-box .prev,
.rating-box .next {
  flex: 1 1 auto;
  height: 100px;
  max-width: 2rem;
  background-color: #eee;
  border: 1px solid #dadada;
  font-size: 1rem;
  outline: none;
}

.rating-box .prev:active,
.rating-box .next:active {
  background-color: #a8a;
}

.rating-box .prev:hover,
.rating-box .next:hover {
  cursor: pointer;
}

.rating-box .install:hover {
  cursor: pointer;
}

.ratings .article {
  width: 100%;
  flex: 1 1 auto;
  padding: 2rem 1rem 1rem 1rem;
}

.article .step {
  background-color: #eee;
  margin: 1rem 0;
  padding: 1rem;
}

.article p {
  padding-bottom: 1rem;
}

.article h2 {
  padding: 2rem 0 1rem 0;
  font-size: 1.2rem;
  font-weight: bold;
}

.article .code-for-blog {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  height: 250px;
}

.code-for-blog .left,
.code-for-blog .right {
  flex: 1 1 50%;
  max-width: 600px;
  font-size: 0.8rem;
  height: 100%;
}

.left .inner,
.right .inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
}

.code-for-blog .left {
  margin-right: 1rem;
}

.code-for-blog .right {
  margin-left: 1rem;
  position: relative;
}

.left .firebase-api {
  position: relative;
  display: flex;
  height: 100%;
}

.firebase-api pre {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 0.8rem;
  width: 100%;
  height: 100%;
  color: #000;
  line-height: 1rem;
  overflow: hidden;
  padding: 0.5rem 0 0 0.5rem;
  z-index: 1;
  box-sizing: border-box;
}

.firebase-api textarea {
  flex: 1 1 auto;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  border: 1px solid #888;
  padding: 0.5rem;
  outline: none;
  z-index: 2;
  box-sizing: border-box;
  position: relative;
}

.right .firebase-config {
  display: flex;
  height: 100%;
}

.right textarea {
  flex: 1 1 auto;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  padding: 0;
  border: 1px solid #888;
  outline: none;
  padding: 0.5rem;
  box-sizing: border-box;
}

.right .copied {
  position: absolute;
  bottom: 0;
  padding: 0;
  width: 100%;
  height: 1.5rem;
  text-align: center;
  background-color: #dadada;
  display: none;
  align-items: center;
}

.copied span {
  flex: 1 1 auto;
}

.like-script textarea,
.jquery-script textarea {
  padding: 0.5rem;
  display: block;
  background-color: #f8f8f8;
  font-size: 0.8rem;
  line-height: 1rem;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #888;
  outline: none;
  height: 2.2rem;
}

.like-script .code-wrapper,
.jquery-script .code-wrapper {
  position: relative;
  display: flex;
}

.jquery-script {
  padding-top: 1rem;
}

.like-script {
  padding-top: 2rem;
}

.code-wrapper .copied {
  flex-direction: column;
  justify-content: center;
  position: absolute;
  right: 0;
  background-color: #dadada;
  height: 100%;
  font-size: 0.8rem;
  display: none;
}

.code-wrapper .copied span {
  padding: 1rem;
}

.article .like-code {
  width: 100%;
  height: 220px;
  position: relative;
}

.like-code textarea {
  width: 100%;
  height: 100%;
  border: 1px solid #888;
  outline: none;
  padding: 0.5rem;
  box-sizing: border-box;
}

.like-code .copied {
  position: absolute;
  bottom: 0;
  padding: 0;
  width: 100%;
  height: 1.5rem;
  text-align: center;
  background-color: #dadada;
  align-items: center;
  font-size: 0.8rem;
  display: none;
}

.article .actions {
  font-size: 0.8rem;
  padding-bottom: 0.5rem;
}

.actions span {
  margin-left: 0.5rem;
  border-bottom: 1px dashed #888;
  padding: 0.2rem 0.3rem 0 0.3rem;
}

.actions span:hover {
  cursor: pointer;
}

.actions .active {
  background-color: #dadada;
}

input[type="text"], input[type="number"] {
  height: 1.5rem;
  min-width: 20rem;
  padding: 0 .25rem;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

input[type="number"] {
  min-width: initial;
  width: 5rem;
  margin-bottom: initial;
}

textarea {
  min-width: 20rem;
  min-height: 10rem;
  padding: .25rem;
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: .25rem;
  font-size: .9rem;
}

label sup {
  color: red;
}

.form-wrapper {
  width: 100%;
  margin: 0 1rem;
}

.form-wrapper p {
  margin-bottom: .25rem;
  line-height: 1rem;
  font-size: .9rem;
}

.form-wrapper button {
  height: 1.75rem;
  margin: 0;
  background: none;
  border: 1px solid black;
  padding: 0 1rem;
  text-transform: uppercase;
  box-sizing: unset;
}

.form-wrapper button:disabled {
  color: grey;
  border-color: grey;
}

.form-wrapper button:disabled:hover {
  box-shadow: none;
  border-color: grey;
  cursor: default;
}

.form-wrapper button:hover {
  cursor: pointer;
  border-color: grey;
  box-shadow: 0 0 5px 2px rgba(0, 0, 0, .25);
}

.form-wrapper .form-row {
  margin-top: .5rem;
  max-width: 20rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-wrapper .error {
  margin-top: .5rem;
  color: red;
  text-align: right;
  max-width: 20rem;
}