internal/interface/web/assets/styles.scss
@tailwind base;
@tailwind components;
@tailwind utilities;

/* User styles */

@font-face {
  font-family: 'Switzer-Variable';
  src:
    url('/static/fonts/Switzer-Variable.woff2') format('woff2'),
    url('/static/fonts/Switzer-Variable.woff') format('woff'),
    url('/static/fonts/Switzer-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

:root {
  font-family: 'Switzer-Variable', sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color: #cdcdcd;
  background-color: #010101;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  display: flex;
  min-width: 320px;
  min-height: 100vh;
}

a {
  cursor: pointer;
}

a.visible {
  color: #f28c52;
  text-decoration: underline;
  &:hover {
    color: #f2bf52;
  }
}

input {
  border: none;
  color: #fbfbfb80;
  width: 100%;
  &.bg-white {
    color: #010101;
  }
  &:focus,
  &[type='text']:focus,
  &[type='password']:focus {
    border: none;
    box-shadow: none;
    color: currentColor;
    outline: none;
  }
}

select:focus {
  border: 1px solid #bc3f20;
  box-shadow: none;
  outline: none;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

div:has(> input:not(.hidden):not(.unframed)) {
  border: 1px solid #fbfbfb33;
}

div:has(> input:not(.hidden):not(.unframed):focus) {
  border: 1px solid #bc3f20;
}

#app {
  color: white;
  margin: 0 auto;
  max-width: 720px;
  width: 100%;
  &:has(div.fullscreen) {
    max-width: 100%;
    & #toast {
      max-width: 100%;
    }
  }
}

#modalContainer > div {
  max-width: 648px;
  width: 90%;
}

#htmx-result {
  padding: 2rem 0;
}

#toast {
  display: flex;
  max-width: 720px;
  padding: 0 12px;
  position: fixed;
  top: 50px;
  width: 100%;
}

.logo {
  height: 12em;
  padding: 2em;
  display: inline;
  will-change: filter;
  transition: filter 300ms;
  filter: drop-shadow(0 0 2em #f3c077aa);
}

.square {
  aspect-ratio: 1 / 1;
}

button,
.button {
  background-color: #fbfbfb0d;
  border-radius: 8px;
  border: 1px solid #fbfbfb33;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  font-family: inherit;
  padding: 0.75rem 1rem;
  text-align: center;
  transition: border-color 0.25s;
  &.single {
    padding: 0.5rem;
  }
  &.small {
    padding: 0.25rem 0.5rem;
  }
  &:hover:not(:disabled) {
    background-color: #fbfbfb1a;
    border-color: #fbfbfb4d;
  }
  &.orange {
    background-color: #fc8d4e;
    &:hover:not(:disabled) {
      background-color: #fc8d4ee0;
    }
  }
  &.red {
    background-color: #e04d4d;
    &:hover:not(:disabled) {
      background-color: #e04d4de0;
    }
  }
  &.white {
    background-color: #ffffff;
    color: #000000;
    &:hover:not(:disabled) {
      background-color: #ffffffe0;
    }
  }
}

.dots button,
.dots .button {
  background-color: transparent;
  border: none;
  &:hover:not(:disabled) {
    background-color: transparent;
    border: none;
  }
}

button:disabled,
button.disabled {
  opacity: 0.5;
}

button::first-letter {
  text-transform: capitalize;
}

.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

label {
  font-size: 0.8rem;
  color: #666;
}

.bg-radial-gradient {
  background: radial-gradient(
    85.35% 95.12% at 50% 11.59%,
    #f28c52 0%,
    #9c3b1c 100%
  );
}

.bg-orange-image {
  background-size: cover;
  background-repeat: no-repeat;
  background-image: url('/static/orange-bg.png');
}

.showOnRequest,
.htmx-request .hideOnRequest {
  display: none;
}

.htmx-request .showOnRequest {
  display: flex;
}

input[type=text]:focus,
input[type=number]:focus,
input[type=password]:focus {
  border: none;
  --tw-ring-shadow: none;
}