/**
 *
 * CSS file serving as the main style of the theme
 *
 * This file is written by Yaya MNH48 and licensed under MIT
 *
 */

/* Base styling for page body */
body, html {
  text-align: justify;
  margin: 0;
  padding: 0;
  color: #ddd;
  background: #605;
  background-repeat: no-repeat;
  height: 100%;
}
body:lang(ms-Brgn), html:lang(ms-Brgn) {
  text-align: left;
}

/* Style the links to be green, underline on hover */
a {
  color: #71ee00;
  text-decoration: none;
}
a:active {
  color: #606;
}
a:visited {
  color: #39b756;
}
a:hover {
  color: #71aa44;
  text-decoration: underline;
}

/* For `disabled` class, don't make the link appear obviously*/
.disabled {
  pointer-events: none;
  cursor: default;
}

/* Set paragraph line height */
p {
  line-height: 1.2;
}

/* Set styling for headings in the page */
h1, h2, h3, h4, h5 {
  color: #eae;
  text-align: left;
  clear: both;
}

/* Set headers' links to use different shade */
h1 a, h2 a, h3 a, h4 a, h5 a {
  color:#ffcefe;
}

/* Set headers' margin and size */
h1 {
  margin: 0px 0px;
  font-size: 3em !important;
}
h2 {
  margin: 20px 0 10px 0;
  font-size: 2.5em !important;
}
h3 {
  margin: 20px 0 10px 0;
  font-size: 2em !important;
}
h4 {
  margin: 20px 0 10px 0;
  font-size: 1.6em !important;
}
h5 {
  margin: 20px 0 10px 0;
  font-size: 1.3em !important;
}

/* Set span in header to inherit size of header */
h1 span, h2 span, h3 span, h4 span, h5 span {
  font-size: inherit !important;
}

/* Styling for loading screen */
#loadingscn {
  border: 12px solid #403;
  border-radius: 50%;
  border-top: 12px solid #fff;
  width: 100px;
  height: 100px;
  animation: rotating 1s linear infinite;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}
@keyframes rotating {
  100% {
    transform: rotate(360deg);
  }
}

/* Set page's main header's styling */
header {
  background: #403;
  text-align: center;
  padding-bottom: 10px;
  padding-top: 80px;
}
.webmainicon {
  width: 250px;
  height: 200px;
  object-fit: cover;
  object-position: 50%;
}
.websitetitle {
  margin: -10px 0 0 0;
  text-align: center;
}
.webpagetitle {
  margin: 0px;
  text-align: center;
}

/* Set main and article base */
main {
  padding: 10px;
  margin: auto;
  width: 80%;
  max-width: 940px;
}
main:lang(ms-Brgn) {
  max-width: unset;
  max-height: 940px;
}
@media screen and (max-width: 770px) {
  main {
    width: auto;
    max-width: none;
  }
}
article {
  margin:0
}

/* Set properties for list items*/
li {
  line-height: 1.1;
  padding-bottom: 2px;
}
ul, ol {
  margin-left: 0px;
  margin-right: 0px;
  padding-left: 1em;
  padding-right: 0.2em;
  padding-bottom: 2px;
  padding-inline-start: 12px;
  list-style-position: inside;
}
ul:lang(ms-Arab), ol:lang(ms-Arab) {
  padding-left: 0.2em;
  padding-right: 1em;
}

/* Set codeblock to default to ltr */
.highlight {
  direction: ltr;
}

/* Styling for general buttons */
button, button:visited {
  border: 1px white solid;
  outline: none;
  background-color: #504;
  color: white;
  cursor: pointer;
  padding: 10px 10px 10px 10px;
  border-radius: 5px;
  font-size: 1.1em;
  line-height: 1em;
  margin-bottom: 0.25em;
  text-align: center;
}
button:hover {
  background-color: darkgray;
  cursor: pointer;
  text-decoration: none;
  color: #504;
  text-align: center;
}
.button a {
  background-color: #605;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  border-radius: 8px;
  border-style: solid;
  border-color: white;
  color: white;
  vertical-align: middle;
  display: inline-block;
  text-decoration: none;
  text-align: center;
  font-size: 1.2em;
  padding: 10px 20px 10px 20px;
}
.button a:hover, .button a:active {
  background-color: blue;
}
.button {
  text-align: center;
}
.button300 a {
  width: 300px;
}
.button300 a:lang(ms-Brgn) {
  width: unset;
  height: 300px;
}

/* Table styling */
table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid white;
  text-align: center;
}
td { 
  padding: 5px 5px 0px 5px;
  border-collapse: collapse;
  border-bottom: 1px solid white;
  color: white;
}
th {
  padding: 5px 5px 0px 5px;
  border-collapse: collapse;
  border-bottom: 1px solid white;
  color: white;
  cursor: pointer;
}

/* Add top menu navigation formatting */
#nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 0;
  background: #605;
  z-index: 50;
}
#nav li {
  display: inline-block;
  list-style: none;
}
#nav ul {
  list-style: none;
  display: flex;
  margin: 0 auto;
  padding: 0;
}
#nav li {
  display: inline-block;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
#nav li a {
  display: block;
  margin: 0;
  padding: 1em 0;
  text-align: center;
  font-size: 100%;
  color: #faadfa
}
#nav li a:hover {
  text-decoration: none;
  background: #716;
}
#nav .selected {
  background: #4c0c3c;
}

/* Add code to trigger undo unordered list */
.undo-ul, .undo-ul>li {
	display: inline-block;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Use Beringin numbers when ordered list is set to Beringin Malay */
@counter-style beringin-numbering {
  system: numeric;
  symbols: "" "" "" "" "" "" "" "" "" "";
  suffix: " ";
}
ol:lang(ms-Brgn) {
  list-style-type: beringin-numbering;
}

/* Format the footer link list */
footlist {
  margin: 0;
  padding: 0;
  display: inline-block;
  list-style: none
}
footer {
  padding: 17px;
  text-align: center;
  color: #f9d0fd;
  font-size: 90%;
}
footer ul {
  list-style: none;
  display: block;
}
footer ul li {
  list-style: none;
  display: inline;
  padding: 0 5px 0 10px;
}
footer ul li:lang(ms-Brgn) {
  list-style: none;
  display: inline;
  padding: 10px 0 5px 0;
}
footer:lang(ja) ul li, footer:lang(ja) ul li a, footer:lang(ja) p, footer:lang(ja) a {
  -webkit-font-feature-settings: 'dlig' 0, 'liga' 0, 'fwid' 0; 
  -moz-font-feature-settings: 'dlig' 0, 'liga' 0, 'fwid' 0; 
  font-feature-settings: 'dlig' 0, 'liga' 0, 'fwid' 0;
  letter-spacing: initial;
}
footer ul li a {
  color: #f284ff;
}
footer ul li a:visited {
  color: #f9c4ff;
}
footer ul li a:hover {
  color: #f7a6ff;
}
footer ul li:not(:nth-child(1))::before {
  content: '◆      ';
  font-size: 75%;
}
