/* SHARED */
:root {
  --fg-colour: #000;
  --bg-colour: #eee;
  --title-fs: 3rem;
  --med-fs: 1.5rem;
  --text-fs: 1.25rem;
  --small-fs: 1rem;
}
@media only screen and (max-width: 40em) {
  :root {
    --title-fs: 2rem;
    --med-fs: 1.25rem;
    --text-fs: 1rem;
    --small-fs: 0.75rem;
  }
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background-color: var(--bg-colour);
  color: var(--fg-colour);
  font-family: sans-serif;
}

p {
  margin-block: 1lh;
}

.main {
  max-width: calc(100% - 1em);
  width: 1200px;
  margin: auto;
}

.footer {
  border-top: 1px solid #000;
  padding: 1em;
  font-size: var(--small-fs);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  background-color: white;
  font-size: var(--text-fs);
}
header ul {
  display: flex;
  margin: 0;
  padding: 0;
}
header li {
  display: inline-block;
  margin: 0;
}

header a {
  color: #777;
  padding: 0.35em 0.7em 0.5em;
  text-decoration: none;
  display: inline-block;
}

header a:hover {
  background: #ddd;
}

div.lang {
  display: inline-block;
  margin-right: 0.4em;
}
div.lang form {
  display: inline-block;
}

.title {
  font-weight: 600;
  font-size: var(--title-fs);
  text-align: center;
  margin-top: 0.5em;
}

.msg {
  text-align: center;
  font-size: var(--med-fs);
  margin-top: 0.35em;
  margin-bottom: 0.5em;
}
.msg.success {
  color: #009300;
  font-weight: 500;
}
.msg.error {
  color: #c00;
  font-weight: 500;
}

/* VOTE PAGE */

.options {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 24px;
}

.option {
  max-width: calc(100% - 2em);
  width: 500px;
  color: #000;
  flex-shrink: 0;
  padding: 0.65em;
  border: 0.65em solid;
  border-radius: 1rem;
}

.pkmn-name {
  margin: auto;
  margin-bottom: 1rem;
  text-align: center;
  font-size: var(--title-fs);
}

.pkmn-name .number {
  font-size: 0.625em;
  color: gray;
}

.artwork img {
  max-width: 100%;
  height: auto;
  background-color: white;
  display: block;
  margin: auto;
  object-fit: contain;
  border-radius: 16px;
}

.types {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  justify-content: space-evenly;
  margin-block: 0.6em;
}
.types img {
  max-width: 40%;
}

.pkdex-entry {
  font-size: var(--text-fs);
  padding: 0.5em;
  border-radius: 0.5em;
  color: #000;
  background: #fff;
}

button.votebutton {
  width: 100%;
  height: 3lh;
  font-size: var(--med-fs);
  margin-top: 0.5em;
  border-radius: 0.5em;
}

/* RANKING PAGE */
table {
  font-size: var(--text-fs);
  text-align: right;
  margin: 1em auto;
  width: calc(100% - 0.4em);
  max-width: 32em;
}

table,
table th,
table td {
  border: 1px solid var(--fg-colour);
  border-collapse: collapse;
}

table th,
table td {
  padding: 0.1em 0.2em;
}

table th:nth-child(2),
table td:nth-child(2) {
  text-align: left;
}

/* COLORS */

.blue {
  background: #9ecdff;
  border-color: #75a3df;
}
.gray {
  background: #ccc;
  border-color: #888;
}
.pink {
  background: pink;
  border-color: #e895ac;
}
.purple {
  background: #ccb5ff;
  border-color: #b07cdb;
}
.black {
  background: #333;
  border-color: black;
  color: white;
}
.green {
  background: #b0eab0;
  border-color: #63b176;
}
.brown {
  background: #d0bca2;
  border-color: #764;
}
.red {
  background: #ffa6a6;
  border-color: #cc6363;
}
.yellow {
  background: #fbf0c7;
  border-color: #c8ae25;
}
.white {
  background: #ddd;
  border-color: #bbb;
}
