
/* == Imports ============================================================== */

/* == Variables ============================================================ */

:root {
  --view-width: 25rem;

  --color-background: #fafafa;
  --color-background-popup: #f8f8f9;
  --color-black: #606060;
  --color-green: #608060;
  --color-green-light: #e8f0e8;
  --color-gray-dark: #808080;
  --color-gray: #a0a0a0;
  --color-gray-midlight: #c0c0c0;
  --color-gray-light: #f0f0f0;
  --color-red: #b06060;
  --color-white: #ffffff;
}

.gg-chevron-right-o {
  margin-left: 1rem;
  --ggs: 1;
}


/* == Icons [https://css.gg] =============================================== */

.gg-chevron-right-o {
  box-sizing: border-box;
  position: relative;
  display: block;
  transform: scale(var(--ggs,1));
  width: 22px;
  height: 22px;
  border: 2px solid;
  border-radius: 100px
}
.gg-chevron-right-o::after {
  content: "";
  display: block;
  box-sizing: border-box;
  position: absolute;
  width: 6px;
  height: 6px;
  border-bottom: 2px solid;
  border-right: 2px solid;
  transform: rotate(-45deg);
  left: 5px;
  top: 6px
}

.gg-mail,
.gg-mail::after {
  display: block;
  box-sizing: border-box;
  height: 14px;
  border: 2px solid
}
.gg-mail {
  overflow: hidden;
  transform: scale(var(--ggs,1));
  position: relative;
  width: 18px;
  border-radius: 2px
}
.gg-mail::after {
  content: "";
  position: absolute;
  border-radius: 3px;
  width: 14px;
  transform: rotate(-45deg);
  bottom: 3px;
  left: 0
}

.gg-moon,
.gg-moon::after {
  display: block;
  box-sizing: border-box;
  border-radius: 50%
}
.gg-moon {
  overflow: hidden;
  position: relative;
  transform: rotate(-135deg) scale(var(--ggs,1));
  width: 20px;
  height: 20px;
  border: 2px solid;
  border-bottom-color: transparent
}
.gg-moon::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 18px;
  border: 2px solid transparent;
  box-shadow: 0 0 0 2px;
  top: 8px;
  left: 2px
}

.gg-sun {
  box-sizing: border-box;
  position: relative;
  display: block;
  transform: scale(var(--ggs,1));
  width: 24px;
  height: 24px;
  background:
  linear-gradient(to bottom,
  currentColor 4px,transparent 0)
  no-repeat 5px -6px/2px 6px,
  linear-gradient(to bottom,
  currentColor 4px,transparent 0)
  no-repeat 5px 14px/2px 6px,
  linear-gradient(to bottom,
  currentColor 4px,transparent 0)
  no-repeat -8px 5px/6px 2px,
  linear-gradient(to bottom,
  currentColor 4px,transparent 0)
  no-repeat 14px 5px/6px 2px;
  border-radius: 100px;
  box-shadow: inset 0 0 0 2px;
  border: 6px solid transparent
}
.gg-sun::after,
.gg-sun::before {
  content: "";
  display: block;
  box-sizing: border-box;
  position: absolute;
  width: 24px;
  height: 2px;
  border-right: 4px solid;
  border-left: 4px solid;
  left: -6px;
  top: 5px
}
.gg-sun::before {
  transform: rotate(-45deg)
}
.gg-sun::after {
  transform: rotate(45deg)
}


/* == Animations =========================================================== */



/* == Settings ============================================================= */

.gg-chevron-right-o {
  color: var(--color-red);
}



/* == Elements ============================================================= */

html, body {
  background: var(--color-background);
  height: 100%;
  justify-content: center;
}

body, body * {
  box-sizing: border-box;
  display: flex;
  font-family: sans-serif;
  margin: 0;
  outline: 0;
  padding: 0;
}

button {
  background: none;
  border: none;
  outline: none;
}


/* == Classes ============================================================== */

.separator {
  background: var(--color-gray-light);
  width: 3px;
  height: 50%;
}

.home {
  align-items: center;
  flex-direction: column;
  overflow: hidden;
}

.footer * {
  color: var(--color-gray-midlight);
}

.footer {
  padding: 2rem;
  width: 100%;
}

.footer .copy {
  color: var(--color-gray-midlight);
  font-size: .8rem;
  opacity: .6;
}

.footer .gg-mail {
  --ggs: 1.6;
}

.footer .gg-moon {
  display: block;
  --ggs: 1.3;
}

.footer .gg-sun {
  display: none;
  --ggs: 1.2;
}

.footer .link {
  text-decoration: none;
}

.footer .ui.button {
  align-items: center;
  cursor: pointer;
  height: 1.5rem;
  justify-content: center;
  width: 1.5rem;
}

.definitions {
  background-color: transparent;
  background-image: url(logo.svg);
  background-position: center right;
  background-repeat: no-repeat;
  background-size: contain;
  flex-direction: column;
  padding: 4.6rem 0;
}

.buttonset {
  align-items: center;
  border-color: var(--color-gray-light);
  border-style: solid;
  border-width: .2rem 0;
  justify-content: center;
  line-height: 1.5rem;
  margin: 0 2rem;
  padding: .25rem 0;
}

.text,
.term {
  color: var(--color-black);
  font-size: 1rem;
  line-height: 1.5rem;
}

.term.vbox {
  padding: .5rem;
  max-width: 20rem;
}

.term .name {
  font-size: 1.25rem;
  font-weight: bold;
}

.term .sound {
  opacity: .4;
}

.term .type {
  font-style: italic;
}

.term .define {
  padding-left: 1rem;
  flex-wrap: wrap;
}

.term .type,
.term .define {
  opacity: .7;
}

.action {
  color: var(--color-green);
  cursor: pointer;
  margin: .2rem;
  position: relative;
  text-transform: uppercase;
}

.action .title {
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
  padding: .4rem .3rem .3rem .3rem;
}

.action .description {
  align-items: center;
  color: var(--color-gray-dark);
  font-size: .9rem;
  height: 1.5rem;
  justify-content: center;
  margin-top: 4.5rem;;
  position: fixed;
  left: calc(50% - 10rem);
  opacity: 0;
  text-decoration: none;
  transition: visibility .5s, opacity .5s;
  visibility: hidden;
  width: 20rem;
}

.action:focus {
  background-color: var(--color-gray);
  border-radius: .5rem;
  color: var(--color-white);
}

.action:focus .description {
  visibility: visible;
  opacity: 1;
}

.action.disabled {
  cursor: auto;
  opacity: .3;
}

.action.disabled a {
  pointer-events: none;
}

.action.disabled i {
  display: none;
}

.hbox { flex-direction: row; }
.vbox { flex-direction: column; }

.hbox,
.vbox {
  flex-grow: 1;
  padding: .5rem;
}

.vscroll {
  overflow-y: auto;
}

.collapsed { display: none; }
.invisible { visibility: hidden; }

.positioner { position: relative; }
.positionee { position: absolute; }
.space { flex: 0 0 .5rem; }
.spring { flex-grow: 2; }

.darkmode {
  --color-background: #101010;
  --color-background-popup: #1a1a19;
  --color-black: #a0a0a0;
  --color-green-dark: #408040;
  --color-green: #608060;
  --color-green-light: #102810;
  --color-gray-dark: #909090;
  --color-gray: #707070;
  --color-gray-midlight: #606060;
  --color-gray-light: #404040;
  --color-red: #b06060;
  --color-red-light: #f0e8e8;
  --color-white: #000000;
}

.darkmode .definitions {
  filter: invert(.85);
}

.darkmode .term .sound {
  opacity: .6;
}

.darkmode .term .type,
.darkmode .term .define {
  opacity: 1;
}

.darkmode .action .description {
  color: var(--color-gray);
}

.darkmode .footer .gg-moon {
  display: none;
}

.darkmode .footer .gg-sun {
  display: block;
}

