/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

/* Remove blue overlay on touch */
* {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  max-width: 100%;
  box-sizing: border-box;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-track {
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 10px;
}

::selection {
  background: #57bfff;
  color: black; /* Optional: You can specify the text color when highlighted */
}

html {
  background: #F0EEE9;
}

body {
  line-height: 1.3;
  background: #F0EEE9;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

a {
  all: unset;
  cursor: pointer;
}

a:hover {
  opacity: 0.8;
}

a:active {
  opacity: 0.5;
}


b {
  font-weight: bold;
}

body,
input,
button,
textarea {
  font-family: "Quicksand", sans-serif;
}

h1 {
  font-size: 40px;
  margin: 5px;
}

h2 {
  font-size: 35px;
  margin: 5px;
  padding-left: 2px;
}

h3 {
  font-size: 30px;
  margin: 5px;
  padding-left: 3px;
}

p,
li {
  padding-left: 3px;
}

p,
input,
button,
li,
textarea {
  font-size: 20px;
  margin: 5px;
}

input,
textarea {
  padding: 0 10px;
  height: 50px;
  border-radius: 5px;
  box-sizing: border-box;
}

/* Hide spin buttons in WebKit browsers (Chrome, Safari, etc.) */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Hide spin buttons in Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

textarea,input {
outline: none;
border: solid 2px black;
}

textarea {
  padding: 10px;
  width: 100%;
  min-height: 200px;
  overflow-y: hidden; /* Prevent vertical scrolling */
  resize: none; /* Disable manual resizing */
}

select {
  display: block;
  padding: 0 10px;
  height: 50px;
  border-radius: 5px;
  width: 100%;
  outline: none;
  border: solid 2px black;
  font-size: 20px;
  margin: 5px;
}

button {
  padding: 0 20px;
  height: 50px;
  border: none;
  outline: none;
  color: #fff;
  background: #111;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 5px;
}

button:before {
  content: "";
  background: linear-gradient(45deg,
      #ff0000,
      #ff7300,
      #fffb00,
      #48ff00,
      #00ffd5,
      #002bff,
      #7a00ff,
      #ff00c8,
      #ff0000);
  position: absolute;
  top: -2px;
  left: -2px;
  background-size: 400%;
  z-index: -1;
  filter: blur(5px);
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  animation: glowing 20s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  border-radius: 5px;
}

button:active {
  color: black;
}

button:active:after {
  background: white;
}

button:hover:before {
  opacity: 1;
}

button:after {
  z-index: -1;
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #111;
  left: 0;
  top: 0;
  border-radius: 5px;
}

@keyframes glowing {
  0% {
    background-position: 0 0;
  }

  50% {
    background-position: 400% 0;
  }

  100% {
    background-position: 0 0;
  }
}

section {
  margin: 50px auto;
  padding: 30px;
  width: 640px;
}

section:first-child {
  margin-top: 0;
}

#character {
  width: 50px;
}

#loading {
  width: 30px;
  margin: auto;
  display: block;
}

* {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
