/* ============== CSS Reset ============== */
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;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1.25;
}
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;
}

/* ============== General Styles ============== */

* {
  font-family: "BioRhyme", serif !important;
}

body {
  background-color: var(--body-bg-color);
}

a:link,
a:active,
a:visited,
a:hover {
  color: var(--text-color);
}

.bold {
  font-weight: 800;
}

.page {
  display: none;
  max-width: 500px;
  margin: 0px auto;
  position: relative;
  overflow: hidden;
}

footer {
  margin: 10px 0px;
  color: var(--item-bg-color);
  text-align: center;
  font-size: 14px;
}
footer a {
  font-weight: normal;
  text-decoration: none;
}

.shown {
  display: block;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 99px;
  width: 20px;
  height: 20px;
  background-color: var(--header-button-bg-color);
  padding: 5px;
  overflow: hidden;
}

a.button {
  font-size: 20px;
  font-weight: var(--header-weight);
  text-align: center;
  display: block;
  margin: 20px auto;
  width: 200px;
  padding: 10px;
  border-radius: 10px;
  background-color: var(--item-bg-color);
  text-decoration: none;
}

svg.icon {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

svg.icon > * {
  fill: var(--icon-color);
}

p.message {
  color: var(--text-color);
  margin: 10px;
}

/* ============== Header ============== */
header {
  padding: 10px;
  overflow: hidden;
  position: relative;
  background-color: var(--header-bg-color);
}

header h1 {
  font-weight: 800;
  font-size: 20px;
  margin-top: 5px;
  color: var(--header-text-color);
  font-weight: var(--header-weight);
}

header .button {
  right: 7px;
  width: 20px;
  height: 20px;
  border-radius: 99px;
  position: absolute;
  top: 10px;
  padding: 5px;
  background-color: var(--header-button-bg-color);
}

header #help-button {
  right: 50px;
}

header #settings-button {
  right: 10px;
}

#logo {
  height: 32px;
  margin: 0px 10px 0px 0px;
  position: relative;
  top: -1px;
  float: left;
}

/* ============== Item List ============== */

.item-list {
  margin-top: 10px;
  overflow: hidden;
}

h2 {
  font-weight: var(--header-weight);
  color: var(--section-title-color);
  font-size: 20px;
  margin: 30px 10px 10px 10px;
}

.item-list li {
  margin: 10px 0px;
  position: relative;
}

.item-list li a,
#new-item,
.block {
  display: block;
  border-radius: 8px;
  padding: 5px 45px 5px 65px;
  margin: 0px 10px;
  position: relative;
  min-height: 50px;
  text-decoration: none;
  background-color: var(--item-bg-color);
}

.item-list li img.icon {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 40px;
  border: 2px solid black;
  border-radius: 10px;
  opacity: var(--game-logo-opacity);
}

.item-list li h3 {
  font-weight: 800;
  font-size: 20px;
  margin: 3px 0px;
  color: var(--text-color);
  font-weight: var(--header-weight);
}

.item-list li p {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-color);
  font-weight: var(--copy-weight);
}

.item-list li .button {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  right: 15px;
  width: 20px;
  height: 20px;
  border-radius: 99px;
  background-color: var(--item-button-bg-color);
}

.item-list li .pin-button {
  top: 5px;
  width: 30px;
  height: 30px;
}

.item-list .pin-button img {
  width: 20px;
  height: 20px;
}

.item-list li .small-button {
  width: 30px;
  height: 22px;
  border-radius: 5px;
}

.item-list li .small-button img {
  width: 20px;
  height: 10px;
  margin: 1px 0px;
}

.item-list li .up-button {
  top: 5px;
}

.item-list li .down-button,
.item-list li .unpin-button {
  bottom: 5px;
}

.item-list .played h3,
.item-list .played p {
  color: var(--played-item-color);
}

.item-list .played a {
  background-color: var(--played-item-bg-color);
}

.item-list .new-ribbon {
  position: absolute;
  top: -3px;
  left: -3px;
  width: 40px;
}
#new-message {
  text-align: center;
}
#new-message p {
  color: var(--text-color);
}

#new-message a {
  font-weight: bold;
}

/* ============== Help Screen ============== */

#help h2 {
  text-align: center;
  margin: 20px auto;
  max-width: 400px;
  padding: 0px 20px;
  line-height: 1.25;
  font-size: 20px;
  font-weight: var(--header-weight);
  color: var(--section-title-color);
}

#help p {
  text-align: center;
  margin: 20px auto;
  font-size: 14px;
  max-width: 400px;
  padding: 0px 20px;
  line-height: 1.25;
  color: var(--text-color);
  font-weight: var(--copy-weight);
}

/* ============== Modal ============== */

#modal-wrapper {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

#modal-wrapper.modal-shown {
  display: flex;
}

#modal-block h2 {
  margin: 0px;
  color: var(--text-color);
  line-height: 1.25;
}

#modal-block p {
  margin: 10px 0px 0px 0px;
  color: var(--text-color);
  line-height: 1.25;
}

#modal-content .icon {
  background: var(--item-button-bg-color);
  color: var(--icon-color);
  padding: 5px;
  border-radius: 99px;
}

.icon-size {
  font-size: 20px;
}
#modal-block {
  width: 80%;
  max-height: 600px;
  max-width: 400px;
  overflow: auto;
  position: relative;
  background-color: var(--item-bg-color);
  border: 2px solid black;
  color: var(--text-color);
  border-radius: 10px;
  text-align: center;
  padding: 10px;
}
#modal-button {
  font-size: 20px;
  font-weight: 800;
  background: var(--item-button-bg-color);
  color: var(--icon-color);
  margin: 15px 0px 0px 0px;
  display: none;
  padding: 0px 10px;
  border-radius: 5px;
  border: 0px solid black;
}

#modal-button.shown {
  display: inline-block;
}

#theme-select h2 {
  color: var(--text-color);
  margin: 20px;
}

#theme-select li {
  margin: 5px;
  border-radius: 5px;
  padding: 8px;
  font-size: 20px;
  background-color: var(--played-item-bg-color);
}
#theme-select li img {
  height: 20px;
  margin: 0 10px 0 5px;
  position: relative;
  top: 2px;
}

#color-picker h2 {
  color: var(--text-color);
  margin: 20px;
}

#color-picker {
  text-align: center;
  padding-bottom: 10px;
}

#color-picker div {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin: 2px;
  border-radius: 3px;
  border: 2px solid black;
}

.modal-message {
  margin: 20px;
  text-align: center;
}

#add-form {
  overflow: hidden;
}

input {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--text-color);
  border-radius: 5px;
  color: var(--text-color);
  width: 100%;
  padding: 0px 8px;
  margin: 3px 0px;
}
#new-name {
  font-size: 20px;
}
#new-description {
  font-size: 14px;
}

.emoji-icon {
  text-align: center;
  line-height: 1;
  font-size: 30px;
  height: 30px;
  padding: 5px 0px;
  margin: 0px !important;
  font-weight: 800;
  color: #000000;
  position: absolute;
  top: 8px;
  left: 8px;
  width: 40px;
  border: 2px solid black;
  border-radius: 10px;
  opacity: var(--game-logo-opacity);
}

#change-color {
  position: absolute;
  top: 55px;
  left: 20px;
  width: 20px;
  height: 20px;
  border: 2px solid black;
  border-radius: 10px;
}

#add-form-submit {
  width: 100px;
  font-size: 20px;
  font-weight: 800;
  background: var(--item-bg-color);
  color: var(--text-color);
  margin: 10px;
  float: right;
}

#new-item-added {
  position: absolute;
  top: 30px;
  left: 0px;
  width: 100%;
  text-align: center;
}

#new-item-added .inner {
  background: var(--item-bg-color);
  color: var(--text-color);
  padding: 20px 30px;
  border-radius: 10px;
  display: inline-block;
}

.hidden {
  display: none;
}

#locked {
  text-align: center;
}
#locked p {
  margin: 20px auto;
  max-width: 270px;
  line-height: 1.3;
  color: var(--text-color);
}
#lockout-remaining {
  font-weight: 800;
}
