@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  --color-brand-900: #593000;
  --color-brand-100: #FFB714;
}

/* proper spacing */
*, *:after, *:before {
  box-sizing: border-box;
  outline: 0;
}

html, body {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
  overflow-x: hidden;
}

body {
  width: 100vw;
  height: 100vh;
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 150%;
  letter-spacing: -0.05rem;
  background: white;
  color: var(--color-brand-900);

  &.index {
    padding: 1.5rem;
  }
}

.content {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
}

a {
  color: var(--color-brand-900);
  text-underline-offset: 4px;
  text-decoration-color: transparent;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration-color: var(--color-brand-900);

  &:hover,
  &:focus {
    text-underline-offset: 2px;
    text-decoration-color: var(--color-brand-900);
  }
}

h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 90%;
  margin-bottom: 1.5rem;

  &.logo-home {
    background: var(--color-brand-900);
    color: var(--color-brand-100);
    width: 256px;
    border-radius: 40px;
  }
}

.logo-add {
  position: relative;
  top: 0.375rem;
  display: inline-flex;
  background: var(--color-brand-900);
  color: var(--color-brand-100);
  width: 66px;
  height: 28px;
  border-radius: 40px;
  margin-top: -0.75rem;
}

pre {
  display: inline-block;
  margin: calc(260px + 1.5rem) 1.5rem 1.5rem;
  line-height: 140%;
  white-space: break-spaces;
}

.input-wrap {
  position: fixed;
}

input[type="text"].ip-input {
  padding: 8px 1.5rem 1.5rem;
  font-size: 96px;
  border: 0;
  width: 100vw;
  height: 260px;
  background: var(--color-brand-100);
  color: white;

  &::placeholder {
    color: white;
    opacity: 0.5;
  }
}

.loading {
  opacity: 0;
  position: absolute;
  top: calc(50% - 36px);
  right: 72px;
  width: 72px;
  height: 72px;
  border: 4px solid transparent;
  border-top-color: white;
  border-bottom-color: white;
  border-radius: 50%;
  transition: opacity 0.1s;
  animation: rotate 0.6s linear infinite;

  &.on {
    opacity: 1;
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(360deg);
  }
}
