@keyframes text-cursor-animation {
  0% {
    opacity: 100%;
  }

  50% {
    opacity: 0%;
  }

  100% {
    opacity: 100%;
  }
}

:root {
  --ctp-mocha-rosewater: #f5e0dc;
  --ctp-mocha-flamingo: #f2cdcd;
  --ctp-mocha-pink: #f5c2e7;
  --ctp-mocha-mauve: #cba6f7;
  --ctp-mocha-red: #f38ba8;
  --ctp-mocha-maroon: #eba0ac;
  --ctp-mocha-peach: #fab387;
  --ctp-mocha-yellow: #f9e2af;
  --ctp-mocha-green: #a6e3a1;
  --ctp-mocha-teal: #94e2d5;
  --ctp-mocha-sky: #89dceb;
  --ctp-mocha-sapphire: #74c7ec;
  --ctp-mocha-blue: #89b4fa;
  --ctp-mocha-lavender: #b4befe;
  --ctp-mocha-text: #cdd6f4;
  --ctp-mocha-subtext1: #bac2de;
  --ctp-mocha-subtext0: #a6adc8;
  --ctp-mocha-overlay2: #9399b2;
  --ctp-mocha-overlay1: #7f849c;
  --ctp-mocha-overlay0: #6c7086;
  --ctp-mocha-surface2: #585b70;
  --ctp-mocha-surface1: #45475a;
  --ctp-mocha-surface0: #313244;
  --ctp-mocha-base: #1e1e2e;
  --ctp-mocha-mantle: #181825;
  --ctp-mocha-crust: #11111b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "JetBrains Mono", monospace;
  color: var(--ctp-mocha-text);
  background-color: var(--ctp-mocha-base);
}

h1 {
  font-family: "Nunito", sans-serif;
  font-weight: inherit;
}

a {
  display: inline-block;
  padding: 0.1rem;
  text-decoration: none;
  color: var(--ctp-mocha-blue);
  background-image: linear-gradient(
    var(--ctp-mocha-blue),
    var(--ctp-mocha-blue)
  );
  background-position: 0 100%;
  background-size: 100% 1px;
  background-repeat: no-repeat;
  transition: color 250ms, background-size 250ms ease;
}

a:hover {
  color: var(--ctp-mocha-base);
  background-size: 100% 100%;
}

hr {
  border: none;
  background-color: var(--ctp-mocha-text);
  height: 1px;
}

button,
a.button {
  font-family: "JetBrains Mono", monospace;
  font-size: 1rem;
  text-decoration: none;
  color: var(--ctp-mocha-base);
  background-color: var(--ctp-mocha-text);
  border: 1px solid var(--ctp-mocha-text);
  border-radius: 1rem;
  padding: 0.25rem 1rem;
  transition: color 250ms ease, background-color 250ms ease;
}

button:hover,
a.button:hover {
  color: var(--ctp-mocha-text);
  background-image: none;
  background-color: var(--ctp-mocha-base);
}

input {
  font-family: "JetBrains Mono", monospace;
  font-size: 1rem;
  color: var(--ctp-mocha-overlay0);
  background-color: var(--ctp-mocha-mantle);
  border: none;
  border-radius: 1rem;
  padding: 0.25rem 1rem;
  transition: color 250ms ease;
}

input:focus {
  outline: none;
  color: var(--ctp-mocha-text);
}

iframe {
  border: none;
  display: block;
  width: 100%;
  height: 100%;
}

.hidden {
  display: none;
}

.loading-bar {
  position: relative;
  border: 1px solid var(--ctp-mocha-text);
  background-color: var(--ctp-mocha-mantle);
  width: 16rem;
  height: 2rem;
  border-radius: 1rem;
}

.loading-bar::before {
  content: "";
  position: absolute;
  inset: 0.5rem;
  background-color: var(--ctp-mocha-text);
  border-radius: inherit;
  animation: loading-bar-animation 1s linear infinite;
}

.hero {
  width: 100vw;
  height: 100vh;
  padding: 0 25vw;
  background-image: radial-gradient(
    circle at bottom,
    var(--ctp-mocha-base),
    var(--ctp-mocha-crust)
  );
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero > div > * {
  margin: 1rem 0;
}

.hero .title {
  text-align: center;
}

.hero .sample {
  background-color: var(--ctp-mocha-base);
  border: 1px solid var(--ctp-mocha-text);
  border-radius: 1rem;
  min-width: 32rem;
}

.hero .sample .address {
  margin: 1rem;
  background-color: var(--ctp-mocha-mantle);
  padding: 0.25rem 1rem;
  border-radius: 1rem;
}

.hero .sample .address .dim {
  color: var(--ctp-mocha-overlay0);
}

.hero .sample .address::after {
  content: "█";
  animation: text-cursor-animation 1s linear infinite;
}

.hero .sample .content {
  font-family: "Times New Roman", Times, serif;
  color: #000000;
  background-color: #ffffff;
  padding: 1rem;
  border-radius: 0 0 1rem 1rem;
}

.hero .sample .content h1 {
  font-family: "Times New Roman", Times, serif;
}

.hero .sample .content hr {
  background-color: #000000;
}

.hero .buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.browser {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.browser > * {
  flex: 1;
}

.browser .title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-grow: 0;
  background-color: var(--ctp-mocha-base);
  padding: 0.5rem;
}

.browser .title > * {
  flex: 1;
}

.browser .title > .no-grow {
  flex-grow: 0;
}

.browser .content {
  background-color: #ffffff;
}
