@import url("https://use.typekit.net/rcr1opg.css");
@import url("https://use.fontawesome.com/releases/v5.2.0/css/fontawesome.css");
@import url("https://use.fontawesome.com/releases/v5.2.0/css/all.css");

/*# Where to define variables */
:root {
  /*? Basic colors */
  --red: #ff3860;
  --red-dark: #ff1443;
  --red-light: #ff5c7c;
  --blue: #498afb;
  --blue-dark: #2674fa;
  --blue-light: #6ca0fc;
  --orange: #fa8142;
  --orange-dark: #f96a1f;
  --orange-light: #fb9865;
  --green: #09c372;
  --green-dark: #07a15e;
  --green-light: #0be586;
  --purple: #9166cc;
  --purple-dark: #7d4bc3;
  --purple-light: #a481d5;
  --pink: #ff4088;
  --pink-dark: #ff1c72;
  --pink-light: #ff649e;
  --gray0: #f8f8f8;
  --gray1: #dbe1e8;
  --gray2: #b2becd;
  --gray3: #6c7983;
  --gray4: #454e56;
  --gray5: #2a2e35;
  --gray6: #12181b;
  /*? Navbar variables */
  --nav-bg: var(--gray5);
  --nav-height: 4em;
  --h-border: 2px dashed var(--gray4);

  --font-body: "sofia-pro", sans-serif;
  --font-head: "cubano", sans-serif;
  --font-code: "attribute-mono", monospace;

  --main-bg: var(--gray6);
  --text-color: var(--gray2);
  --h-color: var(--gray0);
  --accent-color: #ff8c00;
}

@media screen and (max-width: 768px) {
  :root {
    --nav-height: 3em;
  }
  .topnav-links {
    width: 0;
  }
  .hide-sm {
    visibility: hidden;
  }
  .item-icon span {
    margin: 0 0.5em;
  }
}
/* # Main properties */
html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--main-bg);
  color: var(--text-color);
  font-family: var(--font-body);

  scroll-behavior: smooth;
  overflow-x: hidden;
}
main {
  padding: 1rem;
  padding-top: calc(var(--nav-height) + 1em);
  background-color: var(--main-bg);
  color: var(--text-color);
  font-family: var(--font-body);
}
hr {
  border: none;
  border-top: var(--h-border);
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  font-weight: 400;
}
em,
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-color);
}
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.flex-center-column {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.link {
  color: var(--blue);
  text-decoration: none;
}
/* # Navbar styles */
.topnav {
  position: fixed;
  width: 100%;
  z-index: 999;
  max-height: var(--nav-height);
  background-color: var(--nav-bg);
  transition: all 0.3s ease;
  top: 0px;
  font-size: 1.2rem;
}
.topnav-links {
  font-weight: 400;
  font-family: var(--font-head);
  margin: 0 auto;
}
.topnav-links .item:hover {
  color: var(--h-color);
}

.footer {
  flex-direction: column;
  text-align: center;
  min-height: 180px;
  margin-top: 80px;
  font-size: 0.85em;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  justify-content: space-between;
}
.footer-links a {
  color: var(--green-light);
}
.footer-icons {
  padding: 20px 0;
  font-size: 1.5em;
  text-decoration: none;
}
.footer-icons a,
.footer-icons svg {
  text-decoration: none;
  color: var(--text-color);
  fill: var(--text-color);
}

.logo {
  width: var(--nav-height);
  max-width: var(--nav-height);
  height: var(--nav-height);
  max-height: var(--nav-height);
}
.logo img,
.logo svg {
  width: 2em;
  height: 2em;
}
.item-text {
  transition: color 0.3s;
  flex-direction: row;
  text-decoration: none;
}
.item-text svg {
  width: 1em;
  height: 1em;
  margin-right: 0.25em;
}
.item-icon {
  margin: 0 !important;
}
.item-icon svg {
  width: 1.5em;
  height: 1.5em;
  transition: all 0.3s ease;
}
.item {
  position: relative;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 1em;
}
.item-label {
  position: absolute;
  transition: all 0.3s ease;
  font-size: 0;
  font-family: var(--font-body);
}
a.item,
div.item {
  color: var(--text-color);
}
a.item-icon:hover .item-label,
div.item-icon:hover .item-label {
  font-size: 0.7em;
  transform: translateY(calc(var(--nav-height) / 8 * 5));
}
.tag {
  display: inline-block;
  padding: 0.2em 0.5em 0.3em;
  border-radius: 2px;
  margin: 0.25em 0.1em;
}
.tag-selectable {
  cursor: pointer;
  display: inline-block;

  font-weight: 600;
  font-size: 1.2em;

  padding: 0.3em 0.5em 0.3em;
  border-radius: 5px;
  margin: 0.25em 0.1em;

  background: var(--nav-bg);
  color: var(--text-color);
  text-decoration: none;
}

.tag-purple {
  background: var(--purple);
  color: #fff;
}
.tag-red {
  background: var(--red);
  color: #fff;
}
.tag-red-dark {
  background: var(--red-dark);
  color: #fff;
}
.tag-red-light {
  background: var(--red-light);
  color: #fff;
}
.tag-blue {
  background: var(--blue);
  color: #fff;
}
.tag-blue-dark {
  background: var(--blue-dark);
  color: #fff;
}
.tag-blue-light {
  background: var(--blue-light);
  color: #fff;
}
.tag-orange {
  background: var(--orange);
  color: #fff;
}
.tag-orange-dark {
  background: var(--orange-dark);
  color: #fff;
}
.tag-orange-light {
  background: var(--orange-light);
  color: #fff;
}
.tag-green {
  background: var(--green);
  color: #fff;
}
.tag-green-dark {
  background: var(--green-dark);
  color: #fff;
}
.tag-green-light {
  background: var(--green-light);
  color: #fff;
}
.tag-purple {
  background: var(--purple);
  color: #fff;
}
.tag-purple-dark {
  background: var(--purple-dark);
  color: #fff;
}
.tag-purple-light {
  background: var(--purple-light);
  color: #fff;
}
.tag-pink {
  background: var(--pink);
  color: #fff;
}
.tag-pink-dark {
  background: var(--pink-dark);
  color: #fff;
}
.tag-pink-light {
  background: var(--pink-light);
  color: #fff;
}

.row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.row-home {
  margin: 3em 4vw;
}
.row-home p {
  font-size: 1.4em;
  font-weight: 300;
}
.bg-color {
  fill: var(--main-bg);
}
.txt-color svg {
  fill: var(--text-color);
}
.hi-gradient {
  color: var(--gray0);
  background-image: linear-gradient(90deg, var(--blue-light), var(--pink));
  padding: 0 4px;
  border-radius: 3px;
}

.footer {
  flex-direction: column;
  text-align: center;
  min-height: 180px;
  margin-top: 80px;
  font-size: 0.85em;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  justify-content: space-between;
}
.footer-links a {
  color: var(--green-light);
}
.footer-icons {
  padding: 20px 0;
  font-size: 1.5em;
  text-decoration: none;
}
.footer-icons a,
.footer-icons svg {
  text-decoration: none;
  color: var(--text-color);
  fill: var(--text-color);
}

i svg {
  position: relative;
  width: 1em;
  margin: 0 3px;
  top: 0.125em;
}

img {
  max-width: 100%;
  height: auto;
}
.gde-logo {
  max-width: 300px;
}
.page-title,
.post-title {
  font-size: 3em;
  text-align: center;
  padding-bottom: 0.5em;
}
.border-bottom {
  border-bottom: var(--h-border);
}
.content-pad {
  padding: 0 3em;
  margin-bottom: 2em;
  font-size: 1.2rem;
}
.dropdown-menu {
  right: -0.8em;
  top: calc(var(--nav-height) + 0.2em);
  cursor: auto;

  z-index: 98;
  position: absolute;
}
.dropdown-menu div {
  transition: all 0.5s ease;
  border-radius: 2px;
  margin: 0.25em 0.1em;
  text-align: right;
  background-color: var(--nav-bg);

  font-size: 0;
  width: 0;
}
.dropdown-menu h2 {
  padding-bottom: 0.5em;
  margin-top: 0.5em;
}
.dropdown-menu ul {
  list-style-type: none;
}
a.item-icon:hover .dropdown-menu div,
div.item-icon:hover .dropdown-menu div {
  padding: 0.5em 1em 0.5em 1em;
  font-size: 0.7em;
  width: 200px;
}
.contact {
  min-width: 300px;
  padding: 30px;
  padding-top: 15px;

  color: var(--text-color);
}
.contact input[type="text"],
.contact input[type="password"],
.contact textarea {
  background-color: var(--nav-bg);
  font-family: var(--font-body);
  color: var(--text-color);
}

.sign-log-in {
  width: 300px;
  padding: 30px;
}

.contact__field {
  padding: 20px 0px;
  position: relative;
}

.contact__switch {
  border: none;
  border-bottom: 2px solid #d1d1d4;
  background: none;
  padding: 10px;
  padding-left: 24px;
  font-weight: 700;
  transition: 0.2s;
  display: inline-block;

  width: 100px !important;
}

.contact__link {
  color: var(--gray6);
  text-decoration: none;
}

.contact__icon {
  position: absolute;
  top: 30px;
  color: #7875b5;
}

.contact__input {
  border: none;
  border-bottom: 2px solid #d1d1d4;
  transition: 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) !important;
  padding: 10px;
  font-weight: 700;
  width: 75%;
  transition: 0.2s;
}

.contact__textarea {
  border: none;
  border-bottom: 2px solid #d1d1d4;
  transition: 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) !important;
  padding: 10px;
  font-weight: 700;
  width: 75%;
  transition: 0.2s;
}

.contact__input:active,
.contact__input:focus,
.contact__input:hover {
  outline: none;
  border-bottom-color: #6a679e;
}

.contact__textarea:active,
.contact__textarea:focus,
.contact__textarea:hover {
  outline: none;
  border-bottom-color: #6a679e;
}

.contact__switch.active,
.contact__input.active {
  outline: none;
  border-bottom-color: #6a679e;
}

.contact__submit {
  background: #fff;
  font-size: 14px;
  margin-top: 30px;
  padding: 16px 20px;
  border-radius: 26px;
  border: 1px solid #d4d3e8;
  text-transform: uppercase;
  font-weight: 700;
  display: flex;
  align-items: center;
  width: 100%;
  color: #4c489d;
  box-shadow: 0px 2px 2px #5c5696;
  cursor: pointer;
  transition: 0.2s;
}

.contact__submit:active,
.contact__submit:focus,
.contact__submit:hover {
  border-color: #6a679e;
  outline: none;
}

::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: var(--text-color);
  opacity: 1; /* Firefox */
}

:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: var(--text-color);
}

::-ms-input-placeholder {
  /* Microsoft Edge */
  color: var(--text-color);
}

/*# Alert messages */
.msg-box {
  position: absolute;
  bottom: calc(1rem + var(--offset));
  right: 1rem;
  border-radius: 5px;
  padding: 0.75rem 1rem;
  background-color: var(--blue);
  color: white;

  animation: slideIn 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}
.closebtn {
  margin-left: 15px;
  color: white;
  font-weight: bold;
  float: right;
  font-size: 22px;
  line-height: 20px;
  cursor: pointer;
  transition: 0.3s;
}

@keyframes slideIn {
  from {
    right: -50rem;
  }
  to {
    right: 1rem;
  }
}
.button {
  border-radius: 4px;
  background-color: var(--blue);
  border: none;
  color: #ffffff;
  text-align: center;
  padding: 20px;
  width: 220px;
  transition: all 0.5s;
  cursor: pointer;
  margin: 5px;
}

.button span {
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: 0.5s;
  font-family: var(--font-body);
}

.button span:after {
  content: "\00bb";
  position: absolute;
  opacity: 0;
  top: 0;
  right: -20px;
  transition: 0.5s;
}

.button:hover span {
  padding-right: 25px;
}

.button:hover span:after {
  opacity: 1;
  right: 0;
}
.warning-wrapper {
  transition: all 0.5s ease;

  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 90;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}
.position-relative {
  position: relative !important;
}
.hash-hover {
  cursor: copy;
  transition: all .5s ease;
}
.hash-hover.center { padding-left: 1.2rem; }
.hash-hover.center:hover { padding-left: 1.7rem; }
.hash-hover span::after {
  content: "#";
  opacity: 0;
  transition: all .5s ease;
}
.hash-hover:hover span::after {
  opacity: 1;
  padding-left: .5rem;
}