:root {
  /* Colors */
  --primary-aidan: #226114;
  --primary-echo: #969696;
  --primary-mallory: ##d53131;
  --primary-mari: #ff981a;
  --primary-mira: #3cd2ff;
  --primary-nara: #bf5e89;
  --primary-star: #2cce28;
  --primary-tera: #2a77c8;
  --primary-yuko: #744119;
  --background: #1c3352;
}

@font-face {
  font-family: 'leko';
    src: url('assets/leko majuna sin.ttf');
}

@font-face {
  font-family: 'mari';
   src: url('assets/PixelifySans-VariableFont_wght.ttf');
}

a {
  color: var(--primary-mari);
  text-decoration: none;
}

a:hover {
  color: var(--primary-nara);
}

body {
  background-color: var(--background);
  width: auto;
  color: #f0f0f0;
  margin: 5rem auto auto auto;
  border: 1px solid var(--primary-mari);
}

h2 {
  color: var(--primary-mari);
}

header {
  display: flex;
  flex-direction: row;
  align-items: center;
}

html {
  background-image: url(assets/images/background-stars-half.png);
  background-repeat: repeat;
}

main {
  position: relative;
  text-align: left;
  margin: 0 max(5em,2%) 0 max(5em,2%);
  padding: 1em;
  max-width: min(70vw,700px);
}

nav {
  text-align: center;
}

nav strong {
  color: var(--primary-mira);
}

nav weak {
  color: var(--primary-star);
}

section.dialog {
  display: flex;
  flex-flow: column wrap;
}

container.dialog.line {
  display: flex;
  flex-flow: row nowrap;
  width: 100%;
  margin-bottom: .3em;
}

container.dialog.icon {
  width: 80px;
}

img.dialog.icon {
  min-height: 20px;
  width: auto;
  max-width: 80px;
  max-height: 80px;
  margin-bottom: 1em;
}

img.dialog.icon.mari.base {
  content:url("assets/images/mari-icon-base.gif");
}

img.dialog.icon.mari.sad {
  content:url("assets/images/mari-icon-embarrass.gif");
}

li {
  padding: 0;
}

span.dialog.text {
  padding: .3em;
  border-radius: 5px;
  color: #f0f0f0;
  padding-left: 1em;
  width: 100%;
}

span.dialog.text.new {
  margin-left: 1em;
  flex-grow: 1;
}

span.dialog.text.continue {
  margin-left: 0;
  width: 100%;
}

span.dialog.text.mari {
  border: 2px solid #ff981a;
  background-color: rgba(189, 113, 21, .3);
}

span.dialog.text.mari.en {
  font-family: mari, Arial, sans-serif;
  font-size: larger;
}

ul.double {
  columns: 2;
  -webkit-columns: 2;
  -moz-columns: 2;
}

ul.no-bullet {
   list-style-type: none;
}

::selection {
  color: lime
}

.flex-container {
  display: flex;
  flex-direction: row;
  flex-basis: auto;
  justify-content: space-between;
}

.kulupu-mun {
  height: 2rem;
  background-image: url(assets/images/stars.png);
  background-repeat: repeat-x;
  background-size: 8rem;
  opacity:0.6;
  width: 96%;
  margin-left: 1rem;
  margin-right: 1rem;
}

.lili {
    font-size: large
}

.leko {
  font-family: leko, Arial, sans-serif;
  font-feature-settings: "liga" 1;
  font-variant-ligatures: common-ligatures;
  letter-spacing: 1px;
  font-size: x-large;
}

.logo {
  content:url("assets/images/malenkule-2-white.png");
  max-height: max(12vh,170px);
  margin: 0 0 0 0;
  flex-flow: row wrap;
  text-align: right;
}

.poki-pi-sitelen-kule {
  padding-top: 1rem;
  flex-flow: row wrap;
  height: auto;
  width: 100%;
  margin: 0 0 5px 0;
  display: flex;
  justify-content: center;
}

.poki-pi-sitelen-kule.img {
  flex-grow: 2;
}

.poki-wawa {
  width: 70vw;
  flex-flow: row wrap;
}

.sitelen-anpa {
  margin-top: .5em;
}

.sitelen-lon-insa {
  text-align: center;
}

.sitelen-suli-wawa {
  font-size:2rem;
}

.stamp {
  height:31px;
}

.suli {
    font-size: xx-large;
}

.toki-ante {
  width: 10vw;
  margin-top: 2em;
  flex-flow: row wrap;
}

/* Tooltip stuff */
.tooltip {
  display: inline;
  position: relative;
  border-bottom: 3px dashed #0f0f0f;
}

.tooltip .tooltiptext {
  visibility: hidden;
  background-color: #0f0f0f;
  color: #f0f0f0;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
  width: 60vw;
  top: 100%;
  left: 50%;
  margin-left: -30vw;
  font-size: smaller;
  font-style: italic;
 
  position: absolute;
  z-index: 1;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

@media screen and (min-width: 800px) {
  body {
    width: 800px;
  }

  container.language {
    font-size: smaller;
  }

  nav {
    text-align: left;
  }

  .flex-container section {
    width: min-content;
  }

  .wawa {
    font-size: 22px;
  }
}

@media screen and (max-width: 499px) {
  header {
    flex-direction: column;
  }

  main {
    position: relative;
    text-align: left;
    margin: 0 0 0 2rem;
    max-width: 80vw
  }

  ul.double {
  columns: 1;
  -webkit-columns: 1;
  -moz-columns: 1;
  }

  .flex-container {
    flex-direction: column;
  }

  footer.poki-pi-sitelen-kule {
    flex-flow: column;
    height: auto;
    margin: 0 0 5px 0;
  }
}
