/* Fonts */

@charset "UTF-8";

/* CSS Reset */

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;
}

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;
}

/* root for variables */

:root {
  font-size: 62.5%; /* 1 rem = 10px when default font-size for browser is 16px */
  /* varibles */
  --tts-green: rgba(88, 97, 74, 1);
  --tts-green-four-fifth: var(rgba(88, 97, 74, .80));
  --tts-green-half: rgba(88, 97, 74, 0.50);
  --tts-green-fifth: #58614a33;
  --tts-green-tenth: #58614a1a;
  --grey-light: #f3f3f3;
  --grey-less-light: #e6e6e6;
  --not-clicked-black: rgba(255, 255, 255, 0.68);
  --main-font: 'Lato', 'sans-serif';
}

/* Navigation */

#hamburger {
  display: none;
  float: right;
}

nav {
  height: 56px;
  background-color: var(--tts-green);
}

nav > ul {
  float: left;
}

nav ul {
  list-style-type: none;
}

nav ul {
  z-index: 999;
}

nav img {
  width: 40px;
  height: 40px;
  float: left;
  margin: 8px;
}

#logo {
  border-radius: 20px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.25);
  opacity: .8;
  transition: .1s opacity ease;
}

#logo:hover {
  opacity: 1;
}

nav ul li {
  display: inline-block;
}

nav ul li a {
  display: inline-block;
  width: 100%;
  height: 56px;
  line-height: 56px;
  box-sizing: border-box;
  padding: 0 .5em;
  color: var(--not-clicked-black);
  transition: color .1s ease;
  font-size: 1.5rem;
  font-family: var(--main-font);
  font-weight: 300;
  transition: .1s color ease;
}

nav ul li a:hover, nav ul li a.active {
  color: white;
}

nav ul .dropdown {
  background: no-repeat url(https://thetechslugs.com/images/design/arrow-down-white.svg);
  background-size: 7.5px;
  background-position: 50% 83%;
}

nav ul .dropdown:hover > ul {
  display: block;
}

/* nested navigation */

nav ul li > ul {
  display: none;
  position: absolute;
  min-width: 15em;
  background-color: white;
  box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.25);
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}

nav ul .dropdown > ul li {
  display: block;
  height: 56px;
}

nav ul .dropdown > ul li a {
  color: var(--tts-green);
}

nav ul .dropdown > ul li a:hover {
  color: var(--tts-green);
  background-color: var(--tts-green-tenth);
}

/* nested nested navigation */

nav ul .dropdown > ul > li ul,
nav ul .dropdown > ul > li > ul > li > ul  {
  position: relative;
  left: 100%;
  bottom: 56px;
  max-height: 40vh;

}

nav ul .dropdown > ul > li:last-child > ul { /* fix so last one does not cover below */
  bottom: 224px;
}

nav ul .dropdown > ul > li:hover > ul,
nav ul .dropdown > ul > li > ul li:hover > ul {
  display: block;
}

/* user nav */

#user-nav {
  float: right;
}

#nav-points {
  display: inline;
  height: 30px;
  padding: 7px;
  margin-right: .5em;
  color: white;
  font-weight: 400;
  border: .1em solid white;
  border-radius: 3px;
}

#nav-points:hover {
  color: var(--tts-green);
  background-color: white;
}

/* header */

#ad-header-container {
  width: 100%;
}

header {
  height: 50vh;
  box-shadow: inset 0 0 2em 0 rgba(0,0,0,.15);
}

.darken {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 3rem;
  background-color: rgba(0,0,0,.50);
}

.overlay {
  display: none;
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding-left: inherit;
  padding-right: inherit;
  left: 0;
  right: 0;
}

h1 {
  position: relative;
  top: 50%;
  left: 50%;
  color: white;
  transform: translate(-50%, -50%);
  font-size: 4.8rem;
}

h1 a {
  color: white;
  transition: .1s opacity ease;
}

h1 a:hover {
  opacity: .8;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--main-font);
}

h2 {
  font-size: 2.5rem;
  margin: .25em 0;
}

h3 { /* headings in article */
  font-size: 3.0rem;
  font-weight: 700;
  margin: .25em 0;
}

h4 { /* sub headings in article */
  font-size: 2.0rem;
  font-weight: 700;
  margin: .25em 0;
}

h5, table th { /* headings and table */
  font-size: 1.8rem;
  font-weight: 400;
  margin: .25em 0;
}

/* content */

main {
  margin: auto;
  overflow: auto;
}

article {
  width: 75%;
  float: left;
  box-sizing: border-box;
  padding: 3rem;
}

a {
  text-decoration: none;
  color: var(--tts-green);
}

article a, table a, #interact-window a {
  font-family: var(--main-font);
  font-weight: 700;
  color: var(--tts-green);
  opacity: .8;
  transition: .1s opacity ease;
}

article .date {
  margin: .5em 0;
}

.date, .lastpost, .topics, .posts {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--tts-green-half);
  font-family: var(--main-font);
}

article a:hover, table a:hover, #interact-window a:hover {
  opacity: 1;
}

article ul {
  list-style-type: disc;
}

article ol {
  list-style-type: decimal;
}

article ul, article ol {
  list-style-position: inside;
  padding-left: .5em;
}

li {
  font-family: var(--main-font);
}

article p {
  font-family: var(--main-font);
}

p, article li, form li {
  font-size: 1.6rem;
  line-height: 2;
  font-weight: 400;
  color: #333;
}

p {
  margin: 1.5em 0;
}

article img {
  max-width: 100%;
  height: auto;
}

strong, b {
  font-weight: 700;
}

i {
}

.youtube-center-container {
  width: 80%;
  margin: 1em auto;
  position: relative;
  padding-bottom: 40.25%;
  padding-top: 25px;
  height: 0;
}

.youtube-center-container iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.amazon {

}

.bttn-link, form select, .button1, input[type="submit"], button, .button, .button2 {
  width: auto;
  display: inline-block;
  font-size: 1.6rem;
  padding: .5em;
  margin: 1rem .25rem;
  color: var(--tts-green);
  opacity: 1;
  border: .1em solid var(--tts-green);
  font-family: var(--main-font);
  font-weight: 400;
  text-align: center;
  background-color: white;
  border-radius: 3px;
  transition: .1s all ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  -o-appearance: none;
  -ms-appearance: none;
}

.bttn-link:hover, form select:hover, .button1:hover, input[type="submit"]:hover, button:hover, .button:hover, .button2:hover {
  color: white;
  background-color: var(--tts-green);
  cursor: pointer;
}

button:focus {
  outline: none;
}

.ad {
  text-align: center;
}

.ad-top {
  margin-bottom: 2em;
}

.ad-aside, .ad-matched-content {
  margin: 2rem auto;
}

aside {
  width: 25%;
  float: right;
  box-sizing: border-box;
  padding: 3rem 3rem 3rem 0;
  text-align: center;
}

#search table {
  margin: 0;
}

#search td {
  padding: .25em;
}

.gsc-search-button-v2 {
  padding: 5px 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

table td {
  font-size: 1.6rem;
  font-weight: 300;
}

table th, table td {
  padding: .5em;
  font-family: var(--main-font);
  text-align: left;
  vertical-align: middle;
  color: var(--tts-green);
}

table img {
  width: 30px;
  height: 30px;
}

table tr:nth-child(even) {
  background-color: var(--grey-less-light);
}

table tr:nth-child(odd) {
  background-color: var(--grey-light);
}

table tr:last-child td:first-child {
    border-bottom-left-radius: 3px;
}

table tr:last-child td:last-child {
    border-bottom-right-radius: 3px;
}

table tr:first-child th:first-child {
    border-top-right-radius: 3px;
    border-top-left-radius: 3px;
}

.two-column-list {
	width: 80%;
	margin: 1em auto;
	overflow: auto;
}

.two-column-list li {
	width: 49%;
	float: left;
	text-align: center;
  margin: 2em 0;
}

.two-column-list li:nth-child(odd) {
	margin-right: 1%;
}

#recent-posts {
  overflow: auto;
}

#recent-posts h3 {
  color: var(--tts-green);
  text-align: center;
}

#recent-posts a {
  display: block;
  width: 46%;
  min-height: 100px;
  float: left;
  margin: 0 2%;
  padding: .5em;
  box-sizing: border-box;
  font-size: 1.8rem;
  border-top: .1em solid var(--tts-green-half);
}

footer {
  overflow-y: auto;
  padding: 4rem;
  font-family: var(--main-font);
  color: white;
  background-color: var(--tts-green);
}

footer a, #footer-links a {
  color: var(--not-clicked-black);
  transition: color .1s ease;
}

footer a:hover, #footer-links a:hover {
  color: white;
}

footer ul {
  float: left;
  display: inline-block;
  width: 20%;
  margin: 0 5% 2em 0;
}

footer ul h4 {
  margin-bottom: .5em;
}

footer ul li {
  padding: .25em 0;
  font-size: 1.4rem;
  font-weight: 300;
}

#copyright {
  width: 100%;
  box-sizing: border-box;
  padding: 2rem 4rem;
  font-family: var(--main-font);
  font-size: 1.4rem;
  font-weight: 300;
  background-color: var(--tts-green);
  color: white;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

#footer-links {
  float: right;
}

#footer-links a {
  padding: 0 1em;
}

/* archives page */

h5.sort-apps {
  color: var(--tts-green);
}

#archive-section h4 {
  padding: .5em 0;
  margin: 1em 0;
  border-bottom: .1em solid black;
  background-image: url('https://thetechslugs.com/images/design/show-less-green.svg');
  background-repeat: no-repeat;
  background-position: 100% 50%;
  background-size: 15px;
}

#archive-section .hidden {
  background-image: url('https://thetechslugs.com/images/design/show-more-green.svg');
}

#archive-section h4:hover {
  cursor: pointer;
}

#archive-section ul {
  list-style-type: none;
}

#archive-section li {
  display: inline-block;
  width: 33.333%;
}

/* Archive Page Styles */

.archive-app-img {
  height: auto;
  margin: 0 2% 2% 2%;
}

.archive-photo-container table {
  table-layout: fixed;
}

.archive-photo-container table .download {
  width: initial;
  position: relative;
}

.archive-app-img-container {
  width: 33%;
  margin: 0;
  display: inline-block;
}

.rate-stars {
  display: inline-block;
  width: 59%;
  float: left;
  margin: 0 2% 2% 2%;
}

.rate-stars h4 {
  margin: 0;
}

.rate-stars p {
  margin: 0;
}

.total-votes {
  font-size: 1.8rem;
}

[id^="overall_rating"]:hover {
  transition: .1s all ease;
  opacity: .6;
}

.no-fill-star, .fill-star {
  display: inline-block;
  width: 50px;
  height: 50px;
  padding: .5em 0em;
}

#vote-app-pay-time input, #vote-app-pay-time label {
  display: inline-block;
}

#vote-app-pays p, #vote-app-pay-time p {
  margin: 0;
}

.app-link img {
  width: initial;
  height: 1.6rem;
  margin: 0 0 0 .2em;
}

.archive-data-3-tables table {
  table-layout: fixed;
}

/* routine interactive */

#ajax-loader {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 50%;
  transform: translate(-50%, 50%);
  z-index: 51;
}

.lighten-background {
  /* used only for ajax requests */
  display: none;
  position: fixed;
  height: 100%;
  width: 100%;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.5);
}

#interact-preview {
  width: 100%;
  cursor: pointer;
}

.close, .alert_close {
  position: absolute;
  top: 0;
  right: 0;
  height: 1.5em;
  width: 1.5em;
  padding: .5em;
  background-image: url("https://thetechslugs.com/images/design/close.svg");
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  background-position: center center;
  background-color: white;
  cursor: pointer;
  z-index: 80;
  opacity: .5;
  transition: .2s opacity ease;
}

.close:hover, .alert_close:hover {
  opacity: 1;
}

.darken-background {
  /*perhaps use phpbb settings cross and change class */
  display: none;
  position: fixed;
  height: 100%;
  width: 100%;
  z-index: 50;
  background-color: rgba(0, 0, 0, 0.5);
}

#interact-window {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: 90%;
  width: 94%;
  z-index: 51;
  overflow: hidden;
  background-color: white;
  border-radius: 3px;
  border: 1px solid rgba(88, 97, 74, 1);
}

#interact-window p {
  font-family: var(--main-font);
  margin: 0;
}


/* forms */

form {
  box-sizing: border-box;
  padding: 2em;
  border-radius: 3px;
  background-color: var(--grey-light);
}

label, dl dt span, dd span {
  display: block;
  margin: .5em 0;
  font-family: var(--main-font);
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--tts-green);
}

form p {
  font-family: var(--main-font);
}

input {
  width: 60%;
}

input, textarea {
  display: block;
  font-family: var(--main-font);
  font-size: 16px;
  box-sizing: border-box;
  padding: .5em;
  border-radius: 3px;
  border: .1em solid var(--tts-green-half);
  color: #333;
  transition: .1s border-color ease;
}

textarea {
  width: 85%;
  min-height: 150px;
}

input:hover, textarea:hover, input[type="checkbox"]:hover, input[type="radio"]:hover {
  border-color: var(--tts-green);
}

input:focus, textarea:focus {
  outline: none;
}

input[type="checkbox"], input[type="radio"] {
  width: 15px;
  height: 15px;
  display: inline-block;
  -webkit-appearance: none;
  -moz-appearance: none;
  -o-appearance: none;
  -ms-appearance: none;
  padding: .5rem;
  margin: 0 .5em;
  border: .1rem solid var(--tts-green-half);
  border-radius: 3px;
  background-color: white;
}

input[type=range] {
  -webkit-appearance: none;
  -moz-appearance: none;
  -o-appearance: none;
  -ms-appearance: none;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, .7);
  border: .1em solid rgba(88, 97, 74, .7);
}

input[type=range]::-webkit-slider-thumb:hover {
  background-color: rgba(88, 97, 74, 1);
  cursor: pointer;
}

input[type="checkbox"]:checked {
  background: url('https://thetechslugs.com/images/design/check.svg') no-repeat;
  background-size: 10px;
  background-position: center;
}

input[type="radio"]:checked {
  background-color: var(--tts-green);
}

input[readonly] {
	border-top-left-radius: 3px;
	border-top-right-radius: 3px;
	border: none;
	border-bottom: .1em solid var(--tts-green-half);
	margin: auto;
	text-align: center;
}

input[readonly]:hover, input[readonly]:focus {
	border-radius: 3px;
	border: none;
	border-bottom: .1em solid var(--tts-green);
}

form select {
  -webkit-appearance: none;
  -moz-appearance: none;
  -o-appearance: none;
  -ms-appearance: none;
  background-image: url('https://thetechslugs.com/images/design/arrow-down-green.svg');
  background-repeat: no-repeat;
  background-position: 95% 50%;
  background-size: 30px;
}

form select:hover {
  background-image: url('https://thetechslugs.com/images/design/arrow-down-white.svg');
}

form select:focus {
  outline: none;
}

#notify-form {
  display: none;
}

.success, .error {
  padding: 1em;
  margin: .5em 0;
  font-size: 1.6rem;
  font-family: "Aleo", "Arial";
  font-weight: bold;
  border-radius: 3px;
}

.success {
  display: block !important;
  color: green;
  background-color: #d2ffd2;
}

.error {
  display: block !important;
  color: red;
  background-color: #ffd1d1;
}

#notify-invalid-input {
  margin: .5em 0;
  font-size: 1.6rem;
  font-family: var(--main-font);
  font-weight: 700;
  color: red;
}

@media (hover: none) {
    nav li a:hover { color: inherit; }
}

@media screen and (max-width: 720px) {
  /* navigation */

  #hamburger {
    display: block;
  }

  #user-nav, #main-nav {
    display: none;
  }

  nav {
    z-index: 999;
    min-height: 56px;
    height: auto;
  }

  nav ul {
    float: none;
    width: 100%;
    overflow: auto;
  }

  nav ul li {
    display: block;
    width: 100%;
    text-align: center;
  }

  nav ul .dropdown:hover > ul {
    display: inherit;
  }

  /* nested navigation */

  nav ul li > ul {
    position: relative;
  }

  nav ul .dropdown > ul li {
    height: auto;
  }

  /* nested nested navigation */

  nav ul .dropdown > ul > li ul, nav ul .dropdown > ul > li > ul > li > ul {
    left: auto;
    bottom: auto;
    max-height: initial;
  }

  nav ul .dropdown > ul > li:hover > ul,
  nav ul .dropdown > ul > li > ul li:hover > ul {
    display: inherit;
  }

  /* user nav */

  #user-nav {
    border-top: .1em solid rgba(255, 255, 255, 0.15);
    float: none;
  }

  /* header */

  header {
    height: 30vh;
  }

  /* content */

  h1 {
    font-size: 3rem;
  }

  article, aside {
    padding: 2rem;
    width: 100%;
    float: none;
  }

  .youtube-center-container {
    width: 100%;
    padding-bottom: 48.25%;
  }

  /* archives */

  .no-fill-star, .fill-star {
    width: 27px;
    height: 27px;
  }


  /* forms */

  input, textarea {
    width: 100%;
  }

  /* footer */

  footer ul {
    width: 45%;
  }

  #footer-links {
    float: none;
  }

  #footer-links a {
    padding: 1em 1em 1em 0;
  }

  .two-column-list {
    width: 100%;
  }

  .two-column-list li {
  	width: 100%;
  	float: none;
  	text-align: center;
  }

  .two-column-list li:nth-child(odd) {
    margin-right: 0;
  }



  /* archives page */



  /* routine interactive */



  /* forms */

}

/* other fixes (large screen help) */

@media screen and (min-width: 2000px) {
  :root {
    font-size: 90%;
  }

  main {
    width: 75%;
  }
}
