/**
 * @wpn Onboarding - Stylesheet
 * 
 * Minimalist, clean CSS with only used styles
 * 
 * @project @wpn Onboarding
 * @license MIT License
 * @authors Claude (Anthropic), woodpeckersnest.space/eu
 */

:root {
  /* Colors */
  --error: #dc3545;
  --primary: #FF6D4C;
  --secondary: #212529;
  --border-color: #1c1f23;
  --button-text: #fff;
  --button-focus: 0 0 0 0.25rem rgb(66 70 73 / 50%);
  --link-color: #FAEBD7;
  --text-main: #959593;
  --text-bright: #FF6D4C;
  --notice-color: #FF6D4C;
  --background-body: #121212;
  --main-bg: #121212;
  
  /* Input colors */
  --input-text-color: #faebd7;
  --input-placeholder-color: #4c545e;
  --input-background-color: #22272e;
  --input-border-color: #373e47;
  --input-focus: 0 0 0 2pt rgb(49, 132, 253, 0.5);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* Hide scrollbars */
  scrollbar-width: none !important;
  scrollbar-color: transparent transparent !important;
}

::-webkit-scrollbar {
  display: none;
}

/* Body - centered layout */
body {
  font-family: "Noto Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  word-wrap: break-word;
  color: var(--text-main);
  background: var(--background-body);
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* Main container */
main {
  background-color: var(--main-bg);
  max-width: 700px;
  width: 100%;
  padding: 0.5rem;
}

/* Header */
header {
  text-align: center;
}

h1 {
  padding: 5px 0;
  font-size: 1.5rem;
  font-weight: normal;
  text-align: center;
  color: #7FFFD4;
}

p {
  margin-bottom: 0.5rem;
}

pre {
  font-family: monospace;
}

/* Links */
a {
  text-decoration: underline;
  color: var(--link-color);
}

a:hover {
  text-decoration: underline;
}

a:focus {
  box-shadow: var(--button-focus);
  border-radius: 3px;
  outline: none;
}

/* Forms */
form {
  font-size: 0.9rem;
  max-width: 700px;
}

form > div {
  margin-bottom: 0.75rem;
}

form > button {
  display: block;
  width: 100%;
}

/* Labels */
label {
  margin-bottom: 5px;
  vertical-align: top;
  width: 100%;
}

label + label {
  margin-left: 1rem;
}

/* Inputs, textareas, buttons */
input,
button,
textarea {
  font: inherit;
}

input,
textarea {
  background-color: var(--input-background-color);
  color: var(--input-text-color);
  border: 1px solid var(--input-border-color);
  border-radius: 3px;
  display: inline-block;
  padding: 0.5rem 0.75rem;
  width: 100%;
  font-family: inherit;
  font-size: 0.80rem;
}

input::placeholder,
textarea::placeholder {
  color: var(--input-placeholder-color);
}

input:focus,
textarea:focus {
  outline: none;
  box-shadow: var(--input-focus);
}

input[type="checkbox"],
input[type="radio"] {
  vertical-align: baseline;
  width: auto;
}

/* Error messages */
input + small,
textarea + small,
label + small {
  color: var(--error);
}

small {
  color: #7FFFD4;
}

/* Buttons */
button {
  background: var(--primary);
  color: var(--button-text);
  border-radius: 0.25rem;
  font-size: 1rem;
  font-weight: 400;
  border: 1px solid var(--primary);
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  text-align: center;
  padding: 0.375rem 0.75rem;
  cursor: pointer;
}

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

button:focus {
  outline: none;
  color: var(--button-text);
  background-color: var(--secondary);
  border-color: var(--border-color);
  box-shadow: var(--button-focus);
}

/* Custom sections */

.space-between {
  display: flex;
  justify-content: space-between;
  font-size: 0.70rem;
}

#account {
  text-align: center;
}

#notice {
  text-align: center;
  color: var(--notice-color);
  font-size: 0.80rem;
  margin-bottom: 1rem;
}

#notice2 {
  color: var(--notice-color);
  font-size: 0.80rem;
}

/* Mobile responsive */
@media only screen and (max-width: 400px) {
  main {
    max-width: 400px;
    width: 100%;
    padding: 0.5rem;
  }
  
  pre {
    font-size: 12px;
  }
  
  #account {
    font-size: 0.8rem;
  }
  
  input, 
  textarea {
    font-size: 0.8rem;
  }
  
  #notice {
    font-size: 0.6rem;
  }
}
