/*
  Static, non-functional archive of the Real Time Users homepage.
  Self-contained: no external fonts, frameworks or scripts.
*/

* {
  box-sizing: border-box;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  border: 10px solid rgba(46, 204, 113, 0.9);
  font-family: Monaco, Consolas, "Courier New", Courier, monospace;
  color: #222;
  line-height: 1.5;
  scroll-behavior: smooth;
}

h1 {
  margin-top: 0;
  font-weight: 700;
  font-size: 2.6rem;
}

p {
  margin: 0 0 10px;
}

a {
  color: rgba(39, 174, 96, 1);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.text-center {
  text-align: center;
}

/* Layout: container + simple grid, replacing the Bootstrap grid the live site used */

.container {
  max-width: 970px;
  margin: 0 auto;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.row > [class^="col-"] {
  padding: 0 15px;
  width: 100%;
}

@media screen and (min-width: 992px) {
  .col-md-12 { width: 100%; }
}

/* Jumbotron, minimal recreation of the Bootstrap component used */

.jumbotron {
  padding: 30px 15px;
  border-radius: 6px;
}

.jumbotron--plain {
  background-color: transparent;
}

/* Layout spacing utilities (o_block), copied from the original site */

.o_block {
  padding-top: 40px;
  padding-bottom: 40px;
}

.o_block--small {
  padding-top: 20px;
  padding-bottom: 20px;
}

.o_block--medium-small {
  padding-top: 30px;
  padding-bottom: 30px;
}

.o_block--large {
  padding-top: 60px;
  padding-bottom: 60px;
}

@media screen and (min-width: 992px) {
  .o_block--large {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

.o_block--huge {
  padding-top: 80px;
  padding-bottom: 80px;
}

@media screen and (min-width: 992px) {
  .o_block--huge {
    padding-top: 160px;
    padding-bottom: 160px;
  }
}

.o_block--pt-0 {
  padding-top: 0;
}

.o_block--pb-0 {
  padding-bottom: 0;
}

/* Archive banner (new, not in the original site) */

.c_archive-banner {
  position: relative;
  z-index: 1;
  padding: 12px 20px;
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 13px;
  text-align: center;
  border-bottom: 3px solid rgba(46, 204, 113, 0.9);
}

/* The counter widget, statically recreating the markup realtimeusers.js used to inject */

.realtimeuserscounter--styled {
  display: inline-block;
  font-family: Monaco, Consolas, "Courier New", Courier, monospace;
}

.realtimeuserscounter--styled .realtimeuserscounter__num {
  display: inline-block;
  padding: 0.35em 0.7em;
  margin-bottom: 10px;
  font-size: 22px;
  background-color: #000;
  color: #fff;
}

.realtimeuserscounter--styled .realtimeuserscounter__attr {
  display: block;
  color: #666;
  font-size: 12px;
}

/* Footer attribution */

.madeby {
  box-shadow: -2px -2px 0px 2px rgba(0, 15, 49, 0.1);
}

.madeby:hover {
  background-color: #fff000;
}

.madeby a {
  color: #222;
}

.madeby a:hover {
  text-decoration: none;
}

.fix-bottom-right {
  right: 0;
  border-top-left-radius: 7px;
}

.fix-bottom-right {
  position: fixed;
  bottom: 0;
  font-size: 14px;
  z-index: 100;
  display: block;
  padding: 0.6em;
  background-color: #fff;
  color: #222;
  transition: all 0.25s ease-in-out;
}

.fix-bottom-right:hover {
  padding-bottom: 0.8em;
}

/* Bob animation */

@keyframes hvr-bob {
  0%   { transform: translateY(-4px); }
  50%  { transform: translateY(0px); }
  100% { transform: translateY(-4px); }
}

.hvr-bob {
  animation-name: hvr-bob;
  animation-duration: 1.5s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-fill-mode: forwards;
  animation-direction: alternate;
}

/* "Make it big" closing section */

.make-it-big {
  font-size: 2.2rem;
}

@media screen and (min-width: 992px) {
  .make-it-big {
    font-size: 3.4rem;
  }
}

.make-it-big p:not(:last-of-type) {
  margin-bottom: 40px;
}

.make-it-big a {
  padding: 0.05em 0.1em;
  border: 2px solid rgba(46, 204, 113, 0.5);
  background-color: rgba(46, 204, 113, 0.2);
  color: rgba(46, 204, 113, 1);
}

.make-it-big a:hover {
  background-color: rgba(46, 204, 113, 1);
  border-color: rgba(46, 204, 113, 0.2);
  color: #fff;
}

.c_small-print {
  font-size: 0.25em;
  padding-top: 7em;
}

/* Drifting background numbers */

.c_matrix {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -2;
}

.c_matrix__num {
  position: absolute;
  color: rgba(46, 204, 113, 0.3);
  font-size: 3.6rem;
}

.c_matrix__num:nth-of-type(1)  { top: 20%; right: 10%; }
.c_matrix__num:nth-of-type(2)  { top: 71%; right: 22%; }
.c_matrix__num:nth-of-type(3)  { top: 22%; right: 87%; }
.c_matrix__num:nth-of-type(4)  { top: 74%; right: 74%; }
.c_matrix__num:nth-of-type(5)  { top: 92%; right: 8%; }
.c_matrix__num:nth-of-type(6)  { top: 6%;  right: 73%; }
.c_matrix__num:nth-of-type(7)  { top: 8%;  right: 93%; }
.c_matrix__num:nth-of-type(8)  { top: 44%; right: 88%; }
.c_matrix__num:nth-of-type(9)  { top: 29%; right: 18%; }
.c_matrix__num:nth-of-type(10) { top: 88%; right: 52%; }
.c_matrix__num:nth-of-type(11) { top: 92%; right: 92%; }
.c_matrix__num:nth-of-type(12) { top: 44%; right: 3%; }
.c_matrix__num:nth-of-type(13) { top: 67%; right: 97%; }
.c_matrix__num:nth-of-type(14) { top: 84%; right: 3%; }
.c_matrix__num:nth-of-type(15) { top: 4%;  right: 32%; }
