@font-face {
  font-family: 'nasin-nanpa';
  src: url('nasin-nanpa.otf');
}

@keyframes kule {
    from { filter: hue-rotate(0deg); }
    to   { filter: hue-rotate(360deg); }
  }

@keyframes kama-lili {
  0%   { transform: scaleY(100%); }
  97%  { transform: scaleY(100%); }
  100% { transform: scaleY(0%); }
}

@keyframes tawa-sewi {
  0% {
    transform: translate(0, 0);
    color: url(--walo);
  }
  50% {
    transform: translate(0, 0);
    color: url(--walo);
  }
  100% {
    transform: translate(0, -18px);
    color: var(--jelo);
  }
}

@keyframes sike {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes toki-tawa {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-100%, 0, 0);
  }
}

:root {
  --ala: "flex";
  --sp: "none";
  --sl: "none";
  --ti: "none";

  --k-sp: #2F9;
  --k-sl: #29F;
  --k-ti: #F92;

  --walo: #FFF;
  --pimeja: #000;
  --laso: #2E5;
  --jelo: #EE2;
}

html {
  background-color: #354;
  font-family: Sans-serif;
  color: #EFE;
  padding: 10px;
  padding-left: 11px;
  padding-right: 11px;
}

body {
  width: fit-content;
  padding: 0.5rem;
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
  border: 2px solid #798;
  border-radius: 16px;
  position: relative;
  background-color: #323;
}

footer {
  text-align: center;
  border-top: 2px solid;
  padding-top: 8px;
  border-image: linear-gradient(to right, transparent 0%, #798 20%, #798 80%, transparent 100%) 100% 1;
}

#tan {
  top: 0px;
  left: 8px;
  font-size: 2em;
  position: absolute;
  font-family: 'nasin-nanpa';
}

#sewi {
  min-width: 300px;
  width: 100%;
  display: inline-grid;
  border-bottom: 2px solid;
  border-image: linear-gradient(to right, transparent 0%, #798 20%, #798 80%, transparent 100%) 100% 1;
}

#sike-pona {
  height: 25px;
  display: flex;
  user-select: none;
  padding: 4px 0;
  border-top: 1px solid;
  border-bottom: 1px solid;
  border-image: linear-gradient(to right, transparent 0%, #789 45%, #789 55%, transparent 100%) 100% 1;
  font-family: 'nasin-nanpa';
  font-size: 130%;
  max-width: 150px;
  margin: auto;
}

.sike-pona a {
  margin: auto;
}

#itan {
  margin-bottom: 10px;
}

#itan div {
  margin: auto;
  width: 42px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed var(--k-sp);
  background-image: url("/ijo/itan-lili.png");
}

#ante-toki-selo {
  display: flex;
  margin: auto;
}

#ante-toki-selo input {
  margin-left: 8px;
  margin-right: -4px;
}

.osp { color: var(--k-sp) }
.osl { color: var(--k-sl) }
.oti { color: var(--k-ti) }

#ante-toki {
  width: 100px;
  height: 24px;
  padding: 0;
  padding-top: 2px;
  padding-left: 10px;
  text-align: left;
  border: 0;
  border-radius: 10px;
  background-color: #656;
  color: #EFE;
}

#ala {
  margin-top: 8px;
  font-family: 'nasin-nanpa';
  font-size: 32px;
  display: var(--ala);
}

#kama-lili {
  display: inline-block;
  animation: 5s ease-in 10s infinite alternate kama-lili;
}

#tawa-sewi {
  display: inline-block;
  animation: 4s ease-in 3s infinite alternate tawa-sewi;
}

.kule {
  color: #0F4;
  animation: 10s linear 0s infinite kule;
}

.toki-tawa-selo {
  font-size: 4rem;
  overflow: hidden;
  padding-left: 100%;
}

.toki-tawa {
  padding-right: 100%;
  white-space: nowrap;
  display: inline-block;
  box-sizing: content-box;
  animation: 180s linear 0s infinite toki-tawa;
}

.album {
  margin: 4px;
  padding: 4px;
  height: 100px;
  display: flex;
  border-radius: 6.5px;
  border: 1px dashed #798;
  background-color: #655;
}

.album img {
  width: 100px;
  height: 100px;
  background-color: #000;
  border-radius: 1px;
  border: 1px solid black;
}

.album p {
  font-size: 10pt;
  color: var(--k-sp);
  margin: auto auto auto 0.5em;
}

#anpa {
  color: #00FF84;
}

#anpa:hover {
  color: #FF9B92;
}

h1 {
  margin-top: 0;
}

a {
  text-decoration: none;
  color: #0F4;
}

a:visited {
  color: #00FF84;
}

a:hover {
  color: #FF9B92;
}

details {
  margin: 0;
}

summary {
  cursor: pointer;
  list-style: none;
}

summary::before {
  content: "o open zz";
  font-family: 'nasin-nanpa';
  color: #0F4;
}

summary:hover,
summary:hover::before {
  color: #FF9B92;
}

details[open] summary::before {
  content: "o pini zz";
  font-family: 'nasin-nanpa';
}

#sijelo {
  height: 100%;
  table-layout: fixed;
  margin: auto;
}

#sijelo th {
  font-size: 1.2em;
  font-weight: bold;
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid;
	text-shadow: -10px 10px 10px black;
}

#sijelo th .teje {
  text-decoration: underline;
  margin-right: 10px;
}

#sijelo td {
  vertical-align: middle;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  padding-left: 2px;
  border: 1px solid;
  border-radius: 10px;
}

/*   sitelen pona   */
#sijelo th.sp,td.sp {
  width: 300px;
}
/* header */
#sijelo th.sp {
  font-size: 2em;
  color: var(--k-sp);
  border-image: linear-gradient(to right, transparent 0%, var(--k-sp) 20%, var(--k-sp) 80%, transparent 100%) 100% 1;
}
/*   data   */
#sijelo td.sp {
  padding-top: 0.5rem;
  padding-bottom: 0.1rem;
  border-image: linear-gradient(to right, var(--k-sp) 0%, transparent 40px) 1;
}

/*   sitelen Lasina   */
#sijelo th.sl,td.sl {
  width: 360px;
}
/*   header   */
#sijelo th.sl {
  color: var(--k-sl);
  border-image: linear-gradient(to right, transparent 0%, var(--k-sl) 20%, var(--k-sl) 80%, transparent 100%) 100% 1;
}
/*   data   */
#sijelo td.sl {
  border-image: linear-gradient(to right, var(--k-sl) 0%, transparent 40px) 1;
}

/*   English   */
#sijelo th.ti,td.ti {
  width: 420px;
}
/*   header   */
#sijelo th.ti {
  color: var(--k-ti);
  border-image: linear-gradient(to right, transparent 0%, var(--k-ti) 20%, var(--k-ti) 80%, transparent 100%) 100% 1;
}
/*   data   */
#sijelo td.ti {
  border-image: linear-gradient(to right, var(--k-ti) 0%, transparent 40px) 1;
}


.toki-ale th,td {
  width: 600px;
}

.sp {
  display: var(--sp);
  font-family: 'nasin-nanpa';
  font-size: 160%;
}

.sl {
  display: var(--sl);
}

.ti {
  display: var(--ti);
}

.nn {
  font-family: 'nasin-nanpa';
}

.sp-ala {
  font-variant-ligatures: none;
  font-size: 65%;
}

.ss {
  font-family: Sans-serif;
}

.insa {
  margin: auto;
  text-align: center;
}

.teje {
  float: right;
}

p {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

ul {
  margin-top: .5em;
  margin-bottom: 0.5em;
  padding-left: 1rem;
}

li {
  margin-bottom: 0.1em;
}

.sp ul {
  list-style-type: none;
  padding-left: 0;
}

.sp li {
  margin-bottom: 0.1em;
}

.sp li:before {
  content: ".";
  font-family: 'nasin-nanpa';
}
