*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  box-sizing: border-box;
  font-size: 100%;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

ol,
ul {
  list-style: none;
  padding: 0 !important;
  margin: 0 !important;
}

li {
  list-style: none;
}

a {
  text-decoration: none !important;
  color: inherit !important;
}

button,
input,
textarea,
select {
  font: inherit;
  background-color: transparent;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

textarea {
  resize: none;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
textarea {
  border: 1px solid #ccc;
  padding: 0.5rem;
  border-radius: 4px;
  width: 100%;
}

input:focus,
textarea:focus {
  outline: none;
}

img,
picture,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

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

th,
td {
  padding: 0.5rem;
  text-align: left;
}

caption {
  text-align: center;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

legend {
  display: block;
  width: 100%;
  font-size: 1rem;
  font-weight: bold;
}

select {
  appearance: none;
}

::-webkit-input-placeholder {
  color: #aaa;
}

::-moz-placeholder {
  color: #aaa;
}

:-ms-input-placeholder {
  color: #aaa;
}

:-moz-placeholder {
  color: #aaa;
}

:focus {
  outline: 2px solid #4a90e2;
}

:focus:not(:focus-visible) {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
