*,
*::before,
*::after {
  box-sizing: border-box;
  letter-spacing: 0.03em;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--main-font, 'serif');
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  color: var(--theme-text-color, #000);
  background-color: var(--main-theme-color,#fff);
  min-width: 320px;

  -webkit-animation: fadein 1s;
  -moz-animation: fadein 1s;
  -ms-animation: fadein 1s;
  -o-animation: fadein 1s;
  animation: fadein 1s;
}

h1, h2, h3, h4, h5, h6, p, ul, li {
  margin: 0;
  padding: 0;
}

button, input {
  font-family: inherit;
}

a {
  color: inherit;
  transition: opacity .3s ease;
  display: inline-block;
  text-decoration: none;
}

a:hover {
  opacity: .4;
}

ul, ol {
  list-style: none;
}


/* COMMON */

.panel {
  border-radius: var(--panel-border-radius, 5px);
  background-color: var(--panel-bg-color, #fff);
  transition: 0.2s ease-in-out;
}

.white-black {
  filter: grayscale(100%);
}

a.panel:hover {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  opacity: 1;
  background-color: var(--current-theme);
  box-shadow: inset 0px 0px 0px 1px #fff;
  -webkit-box-shadow: inset 0px 0px 0px 1px #fff;
  -moz-box-shadow: inset 0px 0px 0px 1px #fff;
  color: white;
}

.link {
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.link_theme_light {
  border-bottom: 1px solid var(--current-theme);
}
