@import url("https://fonts.googleapis.com/css2?family=Eater&display=swap");

@font-face {
  font-family: impacted;
  src: url("./impacted.ttf");
}

body {
  margin: 0;
  overflow-y: hidden;
  font-size: 18px;
  align-items: center;
  background: color-mix(in srgb, var(--gray-light), white);
  top: 0 !important; /* get rid of cursed google translate bar */
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

h1 {
  text-shadow: none;
  color: black
}

* {
  letter-spacing: 0;
}

a {
  text-decoration-color: currentColor;
}

section:first-of-type h1 {
  font-size: 2.5em;
}

main {
  padding: 50px;
  height: calc(100vh - 75px);
  max-width: 100%;
  position: absolute;
  top: 75px;
  overflow-y: scroll;
  overflow-x: hidden;
  box-shadow: inset 0 2px 100px rgba(50, 75, 100, 0.1);
}

header, header.scrolled {
  animation: none;
  transform: translateY(0);
  overflow-x: auto;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 0 25px;
  display: flex;
  align-items: center;
  height: 75px;
  background: linear-gradient(#eeeeee, #dddddd);
  justify-content: space-between;
  width: 100vw;
}

img {
  display: inline-block;
  border-radius: 4px;
}

#scratch {
  display: block;
  margin-top: 25px;
  height: 300px;
  box-shadow: 2px 2px 8px #c5c5c5;
  border-radius: 0;
}

#good-example {
  display: inline-block;
  margin: 20px 0;
}

#logo {
  width: 220px;
  filter: drop-shadow(2px 2px 0 #b8860bcc);
}

#education {
  display: inline-block;
  animation: fade-in 2s ease-out forwards;
  font-family: monospace;
}

@keyframes fade-in {
  0% {
    opacity: 0;
    scale: 0.7;
    translate: 0 -300px;
  }
  50% {
    opacity: 1;
  }
}

header .big-link {
  /* text-shadow: -2px -2px 4px rgba(255, 255, 255, 0.3); */
  font-family: impacted;
  /* mix-blend-mode: exclusion; */
  white-space: nowrap;
  color: #6a6a6a;
  font-size: 23px;
  text-decoration: none;
  margin-left: 20px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  transform: scale(0.95, 1.05);
  transition: transform 0.2s ease-in-out;
}

header a:is(:hover, :focus-visible) {
  transform: scale(1, 1.05);
}

header a img {
  filter: drop-shadow(1px 1px 5px goldenrod);
}

.sub-header-link {
  font-size: 15px !important;
  max-width: 20ex;
}

#ad {
  max-height: calc(100% - 100px);
  position: fixed;
  top: 100px;
  right: 0;
  z-index: 1000;
}

#no-ads {
  float: right;
  margin-right: 200px;
}

#no-ads > span {
  text-transform: uppercase;
  font-size: 0.675em;
  color: blue;
  text-shadow: 0 0 4px gray;
  margin-left: 10px;
  cursor: pointer;
}

#no-ads > span:hover {
  text-shadow: 0 0 8px #c5bb09;
}

code {
  font-family: monospace;
  box-shadow: inset 1px 1px 2px gray;
  padding: 2px;
  background: #eaeaea;
  border-radius: 4px;
}

kbd {
  font-family: monospace;
  box-shadow: inset -1px -1px 2px gray;
  padding: 2px 4px;
  background: #eaeaea;
  border-radius: 4px;
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: black;
}

kbd:active {
  box-shadow: inset 1px 1px 2px gray;
  background: #c0c0c0;
}

.hidden {
  display: none;
}

.header-image {
  height: 1em;
  filter: invert(1);
  margin-left: 10px;
}

#headlines {
  margin-top: 25px;
  transition: transform 0.2s ease, height 0.1s ease;
  transform-origin: top;
  transform: scaleY(0);
  height: 0;
  list-style-type: none;
}

#headlines li {
  counter-increment: headlines-counter;
}

#headlines li::before {
  display: inline-block;
  font-size: 2em;
  transform: scaleY(1.5) translateY(-0.75em);
  padding-bottom: 10px;
  margin-right: 10px;
  content: counter(headlines-counter);
}

#headlines img {
  height: 100px;
  border-radius: 0;
}

section:not(:first-of-type) {
  border-top: 2px solid silver;
  padding-top: 50px;
}

section {
  padding-bottom: 50px;
}

#google-extension-versions li {
  position: relative;
  left: 10ex;
}

#google-extension-versions li::before {
  content: "Version ";
  display: inline-block;
  position: relative;
  left: -10ex;
}

.inline-img {
  height: 25px;
  transform: translateY(25%);
}

#disable-ads {
  position: relative;
  top: -50px;
  width: 200px;
  cursor: pointer;
  border: 2px solid silver;
  border-radius: 0;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
  font-size: 1.05em;
  margin-bottom: -25px;
  background: white;
  margin-top: 25px;
}

#disable-ads:active {
  box-shadow: none;
  transform: translate(2px, 2px);
}

#finalsite {
  position: absolute;
  bottom: 0;
  right: 100px;
  height: 20px;
  z-index: 1000;
  opacity: 0.2;
  transition: opacity 0.3s linear;
  cursor: pointer;
}

@media (max-width: 800px) {
  #finalsite {
    right: 50px;
  }
}

@media (max-width: 600px) {
  #finalsite {
    right: 0;
  }
}

#finalsite:hover {
  opacity: 0.8;
}

#finalsite img {
  height: 100%;
  border-radius: 0;
}

.extension-preview {
  max-height: 300px;
  border-radius: 6px;
}
#hide-headlines::after, #show-headlines::after {
  display: none;
}
#hide-headlines::before, #show-headlines::before {
  background: radial-gradient(#0002, #fff2);
}
#hide-headlines, #show-headlines {
  font-family: sans-serif;
  padding: 5px 20px;
  margin-left: 12px;
  border: none;
  background: transparent;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s linear, box-shadow 0.07s linear;
  font-size: 0.35em;
  vertical-align: middle;
}
#hide-headlines:hover, #show-headlines:hover {
  color: darkblue;
  background: rgb(231, 233, 241);
}
button:active {
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

#list {
  margin: 25px 50px;
  margin-right: 0;
}
a:not(header a) {
  color: rgb(0, 149, 255);
}
a:not(header a):hover, a:focus-visible {
  color: blue;
}
a:visited:not(header a) {
  color: purple;
}
a:active:not(header a), a:visited:not(header a):active {
  color: red;
}

a[download] {
  display: inline-block;
  color: white;
  text-decoration: none;
  text-shadow: 0 -1px rgba(0, 0, 0, 0.2);
  padding: 10px 15px;
  font-size: 0.9em;
  background: linear-gradient(to bottom, #04ff57, #00882d);
  font-size: 1em;
  border-radius: 5px;
  box-shadow: inset 2px 2px rgba(255, 255, 255, 0.5), inset -2px -2px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  margin: 10px 0;
  margin-left: -5px;
  transition: transform 0.1s ease-out, box-shadow 0.1s linear;
}
a[download]:is(:hover, :focus-visible) {
  transform: scale(1.03);
  box-shadow: 1px 1px 3px gray;
}
a[download] img {
  filter: drop-shadow(0 -1px rgba(0, 0, 0, 0.2));
}
a[download]::after {
  background: linear-gradient(to top, color-mix(in srgb, #04ff57, #00882d), color-mix(in srgb, color-mix(in srgb, #04ff57, #00882d), transparent 60%));
  inset: 2px;
  border-radius: 5px 0 5px 0;
}
a[download]:is(:hover, :focus-visible) {
  color: white;
}

#useful {
  position: relative;
}

li h2 {
  padding-top: 25px;
  border-top: 1px solid black;
}
li:first-of-type h2 {
  border-top: none;
}

s, s a {
  opacity: 0.7;
  text-decoration: line-through;
}
.outdated {
  display: block;
  position: relative;
}
.outdated::after {
  display: block;
  content: "this extension is outdated ↴";
  position: absolute;
  top: 1em;
  left: 0;
  width: max-content;
  font-size: 10px;
  color: rgb(95, 0, 0);
}

#instructure {
  outline: 2px solid #f7ce00;
  outline-offset: 20px;
  border-radius: 10px;
  margin-top: 75px;
  position: relative;
  background: radial-gradient(#ffffe355, transparent);
  list-style: none;
}
#instructure a[download] {
  margin-left: auto;
  margin-right: auto;
  color: white;
}
#instructure::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -50px;
  height: 1px;
  background: black;
}
#instructure h2 {
  padding-top: 0;
  border: none;
  margin-top: 0;
}

footer {
  padding: 50px;
  position: relative;
  left: -50px;
  bottom: -50px;
  width: calc(100% + 100px);
  margin-top: -50px;
  background: linear-gradient(to bottom, color-mix(in lab, white 90%, #f4ae14), white, white, white, white);
  border-top: 5px solid #f4ae14;
  display: flex;
  position: relative;
}
footer > div, footer > form {
  flex-basis: 100%;
  height: 100%;
}
#footer-left {
  height: 100%;
}
#footer-right {
  padding-left: 20px;
  border-left: 1px solid #dfdfdf;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
#footer-right h2 {
  width: 100%;
  margin: 0;
}

#footer-right input, #footer-right textarea {
  border-radius: 0;
}
@media (max-width: 700px) {
  footer {
    flex-direction: column;
  }
  #footer-left {
    width: 100%;
    padding-bottom: 20px;
  }
  #footer-right {
    padding-left: 0;
    padding-top: 20px;
    border-left: none;
    border-top: 1px solid #dfdfdf;
  }
}
#footer-right ::placeholder {
  color: #c1c1c1;
}
#footer-right input:not([type="submit"]) {
  width: calc(50% - 5px);
}
[data-title="https://shields.io/badges"]:focus-visible {
  filter: drop-shadow(0 0 4px var(--blue-dark));
}
#footer-right textarea {
  flex-grow: 1;
  resize: vertical;
  min-height: 55px;
}
#footer-right input:not([type="submit"]), #footer-right textarea {
  background: white;
  border: 1px solid #dfdfdf;
  border-bottom-color: #b2b2b2;
  padding: 3px 6px;
}
#footer-right :not([type="submit"]):focus {
  outline: 2px solid var(--blue-dark);
  outline-offset: -1px;
  box-shadow: inset 0 2px 4px #d3d3d355;
}

select {
  appearance: none;
  border-radius: 0;
  padding: 3px 10px;
  padding-right: 25px;
  cursor: pointer;
  min-width: 100px;
  background-color: #f5f5f5;
  border: 1px solid #dcdcdc;
  color: #444;
  box-shadow: inset 0 1px #fdfdfd;
  font-family: sans-serif;
  font-size: 16px;
  background-image: url("./caret.png");
  background-position: calc(100% - 5px) center;
  background-size: 20px;
  background-repeat: no-repeat;
  height: 25px;
}
select:hover {
  box-shadow: inset 0 -1px rgba(0, 0, 0, 0.03);
  border-bottom-color: #cacaca;
}

.translated-rtl section, .translated-rtl input, .translated-rtl textarea {
  direction: rtl;
}
.translated-rtl #google-extension-versions li {
  left: unset;
  right: 10px;
}

#send-form, #footer-right > font {
  box-shadow: inset 0 1px #fdfdfd;
  border-radius: 0;
  width: 100%;
  padding: 2px;
  border: 1px solid #dcdcdc;
  border-bottom-color: #dcdcdc;
  width: 100%;
  background: linear-gradient(to bottom, white, whitesmoke);
}
#footer-right > font {
  border: none;
  padding: 0;
}
#send-form:hover {
  background: #f5f5f5;
  border-color: #cacaca;
}
#send-form:active {
  background: #f2f2f2;
  color: #444;
}
#send-form::after {
  display: none;
}
#send-form:focus {
  box-shadow: none;
}

.title {
  background-image: url("./te_bk.gif");
  color: #444;
  border-radius: 0;
  box-shadow: 0 0 8px 1px #999;
  /* background-size: 100%; */
}

#x {
  position: absolute;
  left: 48px;
  transform: translateY(-1.1em);
  padding: 0;
  border-radius: 0;
  box-shadow: none !important;
  cursor: default;
  opacity: 0.65;
}
#x::after, #x::before {
  display: none;
}
#x img {
  height: 21px;
  width: 21px;
}

#translate {
  font-size: 0.8em;
  transform: translateX(20px);
  display: inline-block;
  color: #5b5b5b;
}
.skiptranslate *:not([id=":0.targetLanguage"], [id=":0.targetLanguage"] *), body > div.VIpgJd-ZVi9od-aZ2wEe-wOHMyf.VIpgJd-ZVi9od-aZ2wEe-wOHMyf-ti6hGc > div {
  display: none;
}

.skiptranslate.goog-te-gadget {
  color: transparent;
  font-size: 0;
}

.VIpgJd-yAWNEb-VIpgJd-fmcmS-sn54Q {
  box-shadow: none !important;
  background: transparent !important;
}

#goog-gt-tt {
  display: none !important;
}

#install-extensions {
  margin-top: 50px;
}

.google-extension-button {
  padding: 10px 15px;
  height: 36px;
  border: 1px solid #047db7;
  background: rgb(40, 40, 40);
  /* width: 128px; */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a8c7fa;
  font-size: 13px;
  font-family: system-ui, -apple-system, sans-serif;
  border-radius: 20px;
  /* outline: 3px solid rgb(40, 40, 40); */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  margin: 7px;
  /* cursor: pointer; */
  letter-spacing: 0;
}

.google-extension-button .button {
  padding: 0;
  color: inherit;
}

.google-extension-button .button:active {
  color: inherit;
  transform: translateY(1px);
}

#dev-mode {
  margin: 10px 0;
}

.important-star {
  color: #e50011;
  font-size: 1.1em;
}

.google-extension-button + .important-star {
  display: inline-block;
  transform: translate(-5px, -10px);
  width: 2px;
}

#why {
  /* why not? */
  font-size: 0.75em;
  float: right;
}

#button {
  display: flex;
  align-items: center;
  padding: 5px;
  margin-left: calc(100% - 150px);
  width: 150px;
  height: 45px;
  border-radius: 3px;
  background: #a7d9ff;
  box-shadow:
		0 0.2rem 0.4rem rgba(0, 0, 0, 0.4),
		0 -0.3rem 0.6rem rgba(0, 0, 0, 0.2) inset;
  transition: box-shadow 0.1s linear, transform 0.15s ease;
  border: 1px solid #0091ff;
  margin-bottom: -50px;
}
#button ::selection {
  background: #0091ff;
}
#button::before {
  display: none;
}
#button img {
  height: 2em;
  margin-right: 5px;
}
#button span {
  transform: scaleY(2);
}
#button img, #button span {
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.2));
}
#button:active {
  box-shadow:
		0 0.2rem 0.4rem transparent,
		0 -0.3rem 0.6rem rgba(0, 0, 0, 0.2) inset;
    transform: translateY(3px);
}
#button::after {
  content: "";
  background-color: #ffffff;
  width: 75%;
  height: 12.5%;
  position: absolute;
  top: 0.15rem;
  left: 12.5%;
  border-radius: 50%;
  filter: blur(0.15rem);
  transform: scale(1);
  opacity: 1;
}

#button:focus-visible {
  outline: 2px solid salmon;
}

::-webkit-scrollbar-thumb {
  /* border-radius: 2px; */
  background: #a0a0a0;
}
::-webkit-scrollbar-thumb:hover {
  background: #aaaaaa;
}
::-webkit-scrollbar-thumb:active {
  background: #808080;
}

::-webkit-scrollbar-track {
  background: lightgray;
}
::-webkit-scrollbar-track:hover {
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar {
  max-width: 10px;
  max-height: 7px;
}

#brexit-wrapper {
  border-radius: 10px 10px 30px 30px;
  position: sticky;
  top: -40px;
  box-shadow: 2px 2px 8px #c5c5c5;
  transition: all 0.2s ease;
}

#brexit {
  border-radius: 0 0 30px 30px;
  width: 100%;
  max-width: 100% !important;
  margin-top: 0 !important;
  height: var(--height);
}

#brexit-span {
  display: flex;
  background: linear-gradient(to bottom, #efefef, #e0e7ea);
  padding: 10px;
  width: 100%;
  background-size: 100%;
  border-radius: 10px 10px 0 0;
  border: 1px solid lightgray;
  border-bottom: 1px solid darkcyan;
  transition: all 0.2s ease, border-radius 0s linear;
}

#brexit-wrapper.closed #brexit-span {
  transition: all 0.2s ease, border-radius 0.2s 0.2s ease;
}

#brexit-wrapper.closed {
  height: 45.5px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: -40px;
}

#brexit-wrapper.closed #brexit-span {
  border-radius: 10px;
  border-bottom-color: lightgray;
}

#reload-brexit {
  padding: 0 4px;
  min-height: 0;
}

#extension-alert {
  border: 2px solid darkred;
  background: pink;
  padding: 25px;
  float: right;
  z-index: 10000;
  border-radius: 5px;
  max-width: min(700px, calc(100vw - 472px));
  margin: 10px;
  margin-top: -100px;
  transition: opacity 0.5s linear;
  box-shadow: 0 4px 8px #926b72;
}

@media (max-width: 850px) {
  #extension-alert {
    float: unset;
    position: absolute;
    right: 0;
    max-width: 100vw;
  }
}

#extension-alert.fade {
  opacity: 0;
}

#close-alert {
  float: right;
  padding: 10px;
  margin-right: -20px;
  margin-top: -20px;
  height: 30px;
  width: 30px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
  box-shadow: none !important;
}

#close-alert:hover {
  color: rgb(60, 60, 60);
}

#close-alert:active {
  transform: translateY(1px);
}

#check-out-extensions {
  display: block;
  color: black;
  background: var(--yellow-mid);
  margin: 0 auto;
  width: max-content;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 100px;
  transform: translateY(10px);
}

#check-out-extensions:hover {
  box-shadow: 0 1px 2px #926b72;
}

#check-out-extensions:active {
  box-shadow: 0 2px 4px #926b72;
}
