@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600&display=swap");

:root {
  --color-bg: #0f0f0f;
  --color-text: #c5c5c5;
  --color-primary: #00c3ff;
  --color-secondary: #ff0090;
  --color-accent: #ffa500;
  --color-hover-bg: #1a1a1a;
  --color-dictionary-bg: #111111;

  --font-family-base: "Space Grotesk", sans-serif;
}

/* Common */

html,
* {
  box-sizing: border-box;
  margin: 0;
  transition: all 0.5s ease;
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family-base);
  transition: background-color 0.5s ease, color 0.3s ease;
}

body.light-mode {
  background-color: white;
  color: #333;
}

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

a:hover {
  color: var(--color-secondary);
}

button {
  background-color: var(--color-primary);
  color: var(--color-bg);
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background-color: var(--color-secondary);
}

#glossary-box {
  background-color: var(--color-dictionary-bg);
  color: var(--color-text);
  border-top: 2px solid var(--color-accent);
}

/* Estilos Elementos*/
h1 {
  color: var(--color-primary);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

h2 {
  color: var(--color-secondary);
  font-size: 2rem;
  margin-bottom: 15px;
}

h3 {
  color: var(--color-accent);
  font-size: 1.6rem;
  margin-bottom: 10px;
}

details {
  cursor: pointer;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
  margin-bottom: 10px;
}

input[type="submit"] {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2em;
  margin: auto;
}
input[type="submit"]:hover {
  background-color: var(--color-accent);
  transform: scale(1.05);
}

.modal-content input[type="submit"] {
  max-width: 50% !important;
}

/*displaying */

.hidden {
  display: none;
}

.flex {
  display: flex;
}

.justify-center {
  justify-content: center;
}

.justify-left {
  justify-content: left;
}

.align-center {
  align-items: center;
  align-content: center;
}

.grid {
  display: grid;
}
.grid.align-start {
  align-items: start;
}

.template-columns-2-1fr {
  grid-template-columns: repeat(2, 1fr);
}

.template-columns-3-1fr {
  grid-template-columns: repeat(3, 1fr);
}

.template-columns-5-1fr {
  grid-template-columns: repeat(5, 1fr);
}

.template-columns-6-1fr {
  grid-template-columns: repeat(6, 1fr);
}

.flex-row {
  flex-direction: row;
}

.flex-column {
  flex-direction: column;
}

/*spacing*/
.top1rem {
  margin-top: 1rem;
}

.top2rem {
  margin-top: 2rem;
}

.top3rem {
  margin-top: 3rem;
}

.top5rem {
  margin-top: 5rem;
}

.bottom1rem {
  margin-bottom: 1rem;
}

.bottom2rem {
  margin-bottom: 2rem;
}

.bottom3rem {
  margin-bottom: 3rem !important;
}

.bottom4rem {
  margin-bottom: 4rem;
}

.gap15px {
  gap: 15px;
}

.gap25px {
  gap: 25px;
}

.basis-2-5 {
  flex-basis: 40%;
}

.basis-3-5 {
  flex-basis: 60%;
}

#top-above {
  margin-top: -30px;
}

.min-height-full {
  min-height: 100vh;
}

.width-full {
  width: 100%;
}

.height-full {
  height: 100%;
}

.height5rem {
  height: 5rem;
}

/* text */
.centered-text {
  text-align: center;
}

.small {
  font-size: 0.85em;
}

.italic {
  font-style: italic;
}

.condensed-height {
  line-height: 0.8em;
}

/*Coloring*/
.color-accent {
  color: var(--color-accent);
}

.color-primary {
  color: var(--color-primary);
}

.color-secondary {
  color: var(--color-secondary);
}

.color-dark {
  color: var(--color-bg);
}

.color-clear {
  color: var(--color-text);
}

.color-white {
  color: white;
}

.bold {
  font-weight: bold;
}

.bg-dark {
  background-color: var(--color-bg);
}

.bg-accent {
  background-color: var(--color-accent);
}

.bg-secondary {
  background-color: var(--color-secondary);
}

.bg-primary {
  background-color: var(--color-primary);
}

.bg-clear {
  background-color: var(--color-text);
}

.bg-white {
  background-color: white;
}

/*buttons */

.btn-primary,
.btn-secondary {
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn-primary {
  color: #fff;
}

.btn-primary:hover {
  background: #333;
}

.btn-secondary {
  background: #333;
  color: var(--color-text);
}

.btn-secondary:hover {
  background: #5a5a5a;
}

/* sections y divs */

.common-container {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  height: auto;
  max-width: 1500px;
  padding: 1rem;
}

.cta-centered {
  width: 100%;
  padding: 2rem;
}

/*index //////////////////////////////////////////////////////////////////////////////////////////////////////////////*/

#logoSection img {
  max-height: 150px;
  width: auto;
}

#fixedTR {
  display: flex;
  position: fixed;
  bottom: 50px;
  right: 50px;
  width: 50px;
  height: 50px;
  border-radius: 50px;
  justify-content: center;
  align-items: center;
  align-content: center;
  cursor: pointer;
}

#fixedTR:hover {
  box-shadow: 0 0 15px var(--color-accent);
}

.borded {
  min-height: 30px;
  border-left: solid 1.5px white;
  border-top: solid 1.5px white;
  border-right: solid 1.5px white;
}

.spacer30px {
  min-height: 30px;
}

.borded-blue {
  min-height: 30px;
  border-left: solid 1.5px var(--color-primary);
  border-top: solid 1.5px var(--color-primary);
  border-right: solid 1.5px var(--color-primary);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.subtitle {
  font-size: 1.4rem;
  animation: fadeInUp 0.8s ease-out 0.5s forwards;
  opacity: 0; /* se mostrará tras animación */
}

.genesis {
  font-size: 1.2rem;
  /*animation: fadeInUp 0.8s ease-out 0.5s forwards;*/
  opacity: 0;
}

/* topbar /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/

.topbar {
  width: 100%;
  background-color: #1d1d1d;
  padding: 15px 30px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #2e2e2e;
}

.topbar .logo a {
  color: white;
  text-decoration: none;
  font-size: 1.5em;
  font-weight: bold;
}

.topbar h1 {
  margin: 0;
}

.token-advise {
  margin: 0;
  width: 100%;
  padding: 0 50px;
  display: flex;
  background-color: #333;
  border-bottom: solid 1px #999;
  flex-direction: row;
  gap: 15px;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
  position: relative;
}

.token-advise a {
  background-color: crimson;
  color: white;
  padding: 5px 20px;
  border-radius: 8px;
  align-items: center;
  margin: 0;
  text-decoration: none;
  transition: all 0.2s ease;
}

.close-btn {
  right: 0;
  margin-right: 2vw;
  font-size: 20px;
  color: white;
  cursor: pointer;
  position: absolute;
  z-index: 10;
}

@keyframes subtlePulse {
  0% {
    background-color: #333;
  }
  30% {
    background-color: #444;
  }
  60% {
    background-color: #333;
  }
  90% {
    background-color: #444;
  }
  100% {
    background-color: #333;
  }
}

.token-advise {
  animation: subtlePulse 6s ease-in-out infinite;
}

.token-advise:hover {
  background-color: #222;
  animation-play-state: paused;
}

.token-advise a:hover {
  box-shadow: 0 0 5px rgb(255, 255, 255, 0.7);
}

@media screen and (max-width: 768px) {
  .close-btn {
    padding: 10px;
  }
}

.nav {
  display: flex;
  gap: 25px;
  font-size: 1.1em;
}

.logo a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.link-style {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
  cursor: pointer;
  display: contents;
}

.nav a:hover,
.link-style:hover {
  color: var(--yellow-button-hov);
}

.menu-toggle {
  display: none;
  font-size: 1.8em;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav {
    display: flex;
    flex-direction: column;
    background-color: #1d1d1d;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    z-index: 100;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    padding: 0;
    margin-top: 25px;
  }

  .nav.show {
    max-height: 1000px;
    opacity: 1;
    padding: 10px;
  }

  .menu-toggle {
    display: block;
    color: white;
  }
}

/* tpobar elements */

.user-hash-wrapper {
  position: relative;
  display: inline-block;
}

.user-hash-content {
  display: none;
  opacity: 0;
  transition: opacity 0.3s linear;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 10px 20px;
  position: absolute;
  z-index: 10;
  max-width: 96%;
  overflow: hidden;
}

.logout_wrapper {
  margin-top: 15px;
}

@media screen and (max-width: 768px) {
  .user-hash-content {
    bottom: 25px;
    left: 2%;
  }

  .user-hash {
    font-size: 0.7em !important;
  }

  .user-hash-wrapper:hover .user-hash-content {
    display: flex;
    gap: 10px;
    opacity: 1;
    flex-direction: column;
    align-items: center;
  }
}

@media screen and (min-width: 769px) {
  .user-hash-content {
    min-width: 450px;
    max-width: 80%;
    top: 20px;
    right: 10px;
  }
  .user-hash-wrapper:hover .user-hash-content {
    display: flex;
    opacity: 1;
    min-height: 80px;
    gap: 10px;
    flex-direction: column;
    align-items: center;
  }
}

.user-hash {
  margin-bottom: 5px;
}

.logout-link {
  padding: 4px 5px;
  border-radius: 5px;
  background-color: var(--yellow-button);
  text-decoration: none;
  font-weight: bold;
  transition: all 1s;
}

.logout-link:hover {
  background-color: var(--yellow-button-hov);
}

#walletSelector {
  width: 100%;
  margin: 0 auto;
  padding: 0 10px;
}

.wallet-button {
  background-color: #444;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 15px 25px;
  margin: 10px auto;
  font-size: 1.2em;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet-button:hover {
  background-color: #666;
}

.wallet-logo {
  height: 24px;
  width: 24px;
}

#metaMaskHidden {
  color: var(--yellow-button);
  margin-top: 20px;
  display: none;
  font-size: 0.95em;
}

@media (max-width: 768px) {
  #walletSelector {
    width: 100%;
    padding: 0 10px;
  }

  .wallet-button {
    width: 100%;
    font-size: 1.1em;
    padding: 12px 20px;
  }

  h1 {
    font-size: 1.5em;
  }
}

.modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #2a2a2a;
  padding: 20px 40px;
  border: 1px solid var(--light-blue);
  width: 100%;
  max-width: 500px;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modal-content form {
  display: flex;
  flex-direction: column;
}

.modal-content label {
  margin-bottom: 10px;
}

.modal-content input[type="email"],
.modal-content input[type="password"] {
  margin-bottom: 20px;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 10, 0.8);
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.overlay-content {
  text-align: center;
  color: #fff;
}

.spinner {
  border: 5px solid #ccc;
  border-top: 5px solid #00b7ff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  margin: 1rem auto;
  animation: spin 1s linear infinite;
}

progress {
  width: 300px;
  height: 1rem;
  margin-top: 1rem;
  appearance: none;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.forgot-password {
  margin-top: 15px;
  text-align: center;
}

.forgot-password a {
  color: var(--acid-green);
  text-decoration: none;
}

.forgot-password a:hover {
  text-decoration: underline;
}

.join-us-button {
  margin-top: 0;
}

.join-us-container {
  text-align: center;
}

.join-us-container p {
  margin-top: 25px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* google icon  */

.material-symbols-outlined {
  color: var(--light-blue);
  font-variation-settings: "FILL" 0, "wght" 600, "GRAD" 0, "opsz" 24;
  font-size: 1.4em;
}

/* Footer /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// */
.footer {
  background-color: #0a0a0a;
  padding: 30px 0;
  text-align: center;
  color: #999;
  font-size: 0.9em;
}

.footer a {
  color: var(--yellow-button);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--yellow-button-hov);
}

.footer-content {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 20px 50px;
}

.footer-section {
  flex: 1;
  padding: 10px;
  color: #999;
}

.footer-section h3 {
  margin-bottom: 10px;
  font-size: 1.5em;
}

.footer-section p,
.footer-section ul,
.footer-section li {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1em;
}

.footer-section ul {
  padding-left: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a {
  color: #999;
}

.footer-section ul li a:hover {
  color: var(--yellow-button-hov);
}

.footer-bottom {
  color: var(--acid-green);
  padding: 10px 0;
  font-size: 0.9em;
}

.links {
  text-align: center;
}

.about {
  text-align: left;
}

.create-unft {
  width: 100%;
  padding: 40px 20px;
  text-align: center;
  background-color: #1d1d1d;
}

.create-unft h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: var(--light-blue);
}

.create-unft .button {
  margin-top: 0;
}

#messageBox {
  opacity: 1;
  transition: opacity 0.5s ease;
}

#messageBox.fade-out {
  opacity: 0;
}

.message {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.message-content {
  background-color: #fff;
  padding: 20px 40px;
  border-radius: 4px;
  text-align: center;
}

.message.success .message-content {
  background-color: var(--message-success);
  color: white;
  font-size: 2em;
}

.message.error .message-content {
  background-color: var(--message-error);
  color: white;
}

/* Invisible notary ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/

.faq-item p {
  color: var(--color-primary) !important;
}

.form-button {
  width: 100%;
  max-width: 300px;
  margin: 1rem auto 0 auto;
  display: block;
  padding: 1rem;
  font-size: 1rem;
}
