/**
* COLOR SCHEME
* UI:           #001A2E     rgb(0, 26, 46)
* Background:   #030303     rgb(3, 3, 3)
* Main:         #183859     rgb(24, 56, 89);
* Detail:       #005AA1     rgb(0, 90, 161)
* Text:         white       rgb(255, 255, 255)
* Text-shadow:  black       rgb(0, 0, 0)
**/

/* General text */
@font-face {
    font-family: 'Body';
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/selawkl.ttf') format('truetype');
}


/* Titles */
@font-face {
    font-family: 'Titles';
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/selawk.ttf') format('truetype');
}

/* Speech */
@font-face {
    font-family: 'Speech';
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/selawk.ttf') format('truetype');
}

/* Fancy titles */
@font-face {
    font-family: 'Fancy Titles';
    font-style: normal;
    font-weight: 400;
    src: local('Armalite Rifle'),
        url('../fonts/armalite-rifle.ttf') format('truetype'),
        url('../fonts/armalite-rifle.woff') format('woff');
}

/* Interface */
@font-face {
    font-family: 'Interface';
    font-style: normal;
    font-weight: 400;
    src: local('Source Sans Pro Regular'), local('SourceSansPro-Regular'),
        url('../fonts/source-sans-pro-v10-latin-regular.woff2') format('woff2'),
        url('../fonts/source-sans-pro-v10-latin-regular.woff') format('woff');
}

/* Inputs - Monospace */
@font-face {
    font-family: 'MonoInput';
    font-style: normal;
    font-weight: 400;
    src: local('Ubuntu Mono'), local('UbuntuMono-Regular'),
        url('../fonts/ubuntu-mono-v6-latin-regular.woff2') format('woff2'),
        url('../fonts/ubuntu-mono-v6-latin-regular.woff') format('woff');
}

html {
    height: 100%;
}

body {
    font-family: "Body";
    margin: 0;
    min-height: 100%;
    background-color: #030303;             /* Background */
}

a {
    text-decoration: none;
}

a:link, a:visited {
    color: white;               /* Text */
}

p, h1, h2, h3, h4, h5, h6 {
    margin: 0px;
}

button:focus, textarea:focus {
    outline: 0;
}

/* Speech-color. */
.blue {
    font-family: "Speech";
    color: #005AA1; /* Static */
}

/* Speech-color. */
.cyan {
    font-family: "Speech";
    color: #00A2E8; /* Static */
}

/* Speech-color. */
.greyishblue {
    font-family: "Speech";
    color: #5878A8; /* Static */
}

/* Speech-color. */
.pink {
    font-family: "Speech";
    color: #FF6EC7; /* Static */
}

/* Speech-color. */
.palepink {
    font-family: "Speech";
    color: #E4B1AB; /* Static */
}

/* Speech-color. */
.purple {
    font-family: "Speech";
    color: #AC3BE4; /* Static */
}

/* Speech-color. */
.yellow {
    font-family: "Speech";
    color: #C4BC1A; /* Static */
}

/* Speech-color. */
.brightred {
    font-family: "Speech";
    color: #BE2625; /* Static */
}

/* Speech-color. */
.red {
    font-family: "Speech";
    color: #AF111C; /* Static */
}

/* Speech-color. */
.darkred {
    font-family: "Speech";
    color: #800000; /* Static */
}

/* Speech-color. */
.pinkred {
    font-family: "Speech";
    color: #91273b; /* Static */
}

/* Speech-color. */
.green {
    font-family: "Speech";
    color: #61B329; /* Static */
}

/* Speech-color. */
.milgreen {
    font-family: "Speech";
    color: #669048; /* Static */
}

/* Speech-color. */
.white {
    font-family: "Speech";
    color: white; /* Static */
}

/* Speech-color. */
.black {
    font-family: "Speech";
    color: #191919; /* Static */
}

/* Speech-color. */
.brown {
    font-family: "Speech";
    color: #B47B2E; /* Static */
}

/* Speech-color. */
.orange {
    font-family: "Speech";
    color:  #FF6600; /* Static*/
}

/* Used in scenes and throughout the project. */
.bold {
    font-weight: bold;
}

/* Used in scenes and throughout the project. */
.italic {
    font-style: italic;
}

/* Used in scenes and throughout the project. */
.underline {
    text-decoration: underline;
}

/* Used in scenes and throughout the project. */
.strikethrough {
    text-decoration: line-through;
}

/* Used in scenes and throughout the project. */
.small {
    font-size: 12px;
}

/* Used in scenes and throughout the project. */
.big {
    font-size: 20px;
}

/* Used in scenes and throughout the project. */
.nomargin{
    margin-bottom: 0px !important;
}

/* Used in stat changes and scenes. */
.center{
    text-align: center !important;
}

/* Various parts that are not yet done. */
.todo{
    color: red;
    background-color: yellow;
}

/* Fancy titles. */
.fancy{
    font-family: 'Fancy Titles' !important;
}

/* Delete button in save and load tab. */
.warning{
    background-color: #BE2625;  /* Danger */
}

/* Inventory tab. Scenes. */
.warningtext{
    color: #BE2625;             /* Danger */
}

/* Inventory tab. Scenes. */
.sneakytext{
    color: #C0C0C0;             /* Sneaky */ 
}

/* Fixes button inner-outline in Firefox. */
button::-moz-focus-inner {
    border: 0;
}

/* 600 pixels wide image (super wide margins) */
.image-smallest{
    width: 600px;
}

/* 700 pixels wide image (wide margins) */
.image-smaller{
    width: 700px;
}

/* 750 pixels wide image (decent margins) */
.image-small{
    width: 750px;
}

/* 800 pixels wide image (standard margins) */
.image-standard{
    width: 800px;
}

/* 850 pixels wide image (text and then some) */
.image-medium{
    width: 850px;
    margin-left: -25px;
}

/* 900 pixels wide image (from side to side) */
.image-wide{
    width: 900px;
    margin-left: -50px;
}

/* Main titles. */
.title{
    font-family: "Titles";
    font-size: 50px;
    text-align: center;
    margin-bottom: 50px;
    text-shadow: 1px 1px 2px black; /* Text-shadow */
}

/* Main subtitles. */
.subtitle{
    font-size: 32px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Main subsubtitles. */
.subsubtitle{
    font-size: 24px;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 15px;
}

/* Main subsubsubtitles. */
.subsubsubtitle{
    font-size: 20px;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Paragraph. */
.text{
    text-align: justify;
    font-size: 16px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px black; /* Text-shadow */
}

/* Header, above the content, contains the topbar. */
.header {

}

/* Bar at the top of the page, containing the menu. */
.topbar {
    background-color: #001A2E; /* UI */
    width: calc(100% - 350px);
    padding-left: 40px;
    height: 40px;
}

/* A single menu entry. */
.topbar-entry {
    height: 40px;
    width: 80px;
    color: white;   /* Text */
    cursor: pointer;
    float: left;
    line-height: 40px;
    text-align: center;
    transition: background-color 0.4s;
    user-select: none;
}

/* Logo at the top left of the page. */
.topbar-logo {
    width: 36px;
    height: 36px;
    float: left;
    margin-top: 4px;
    margin-left: 4px;
}

/* KA logo at the top of the page. */
.topbar-ka-logo {
    width: 36px;
    height: 36px;
    float: right;
    margin-top: 4px;
    margin-right: 4px;
}

/* A single menu entry on hover. */
.topbar-entry:hover {
    background-color: #005AA1; /* Detail */
}

/* A single menu entry on click. */
.topbar-entry:active {
    background-color: #030303; /* Background */
    transition: background-color 0.1s;
}

/* A single menu entry on the right hand side of the topbar. */
.topbar-entry-right {
    float: right;
}

/* A single component of a topbar toggle. */
.topbar-toggle-component {
    float: left;
}

/* Switch of the topbar toggle component. */
.topbar-toggle-switch {
    position: relative;
    display: inline-block;
    width: 45px;
    height: 22px;
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 9px;
    margin-bottom: -5px;
    pointer-events: none;
}

/* Hide the actual topbar toggle input. */
.topbar-toggle-switch input {
    display: none;
}

/* Pretty eye-shape for the topbar toggle input. */
.topbar-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: .4s;
    border-radius: 100%;
    background-color: #030303; /* Background */
}

/* Pretty eyeball-shape for the topbar toggle input. */
.topbar-toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    transition: .4s;
    border-radius: 50%;
    background-color: white; /* Text */
}

/* Move the topbar slider. */
input:checked + .topbar-toggle-slider:before {
    transform: translateX(23px);
}

/* Global mute button at the right hand side of the topbar. */
.globalmute{
    background-repeat: no-repeat;
    background-position: center;
}

/* Global mute button, muted. */
.globalmuteon{
    background-image: url("../img/icons/audio-off.png");
}

/* Global mute button, unmuted. */
.globalmuteoff{
    background-image: url("../img/icons/audio-on.png");
}

/* The main section, which holds the current page of the comic. */
.main {
    position: relative;
    padding-top: 20px;
    padding-bottom: 20px;
    width: calc(100% - 310px);
    min-height: calc(100vh - 80px);
}

/* The current page of the comic. */
.page {
    position: relative;
    margin: auto;
    width: 800px;
    padding: 50px;
    padding-bottom: 30px;
    background-color: #183859;  /* Main */
    color: white;               /* Text */
}

/* The four corners. */
.corner {
    background-color: transparent;
    position: absolute;
    width: 40px;
    height: 40px;
}

/* Top right corner. */
.corner-top-left {
    top: 0px;
    left: 0px;
    background-image: linear-gradient(135deg, #001A2E 28px, transparent 28px); /* UI */
    /* background-image: radial-gradient(circle at 100% 100%, rgba(0,0,0,0) 93px, rgb(0, 26, 46) 111px); */
    /* ^ for box size 100, add two more radial gradients to make the edges smooth */
}

/* Top right corner. */
.corner-top-right {
    top: 0px;
    right: 0px;
    background-image: linear-gradient(225deg, #001A2E 28px, transparent 28px); /* UI */
}

/* bottom right corner. */
.corner-bottom-right {
    bottom: 0px;
    right: 0px;
    background-image: linear-gradient(315deg, #001A2E 28px, transparent 28px); /* UI */
}

/* Top right corner. */
.corner-bottom-left {
    bottom: 0px;
    left: 0px;
    background-image: linear-gradient(45deg, #001A2E 28px, transparent 28px); /* UI */
}
/* Sidebar, contains the logo, recent links, latest link, last link and others. */
.sidebar {
    position: absolute;
    top: 0px;
    right: 0px;
    min-height: 790px;
    height: calc(100% - 10px);
    width: 300px;
    padding: 5px;
    background-color: #001A2E;  /* UI */
    color: white;               /* Text */
}

/* Image logo. */
.logo {
    width: 300px;
}

/* Single segment of the sidebar. */
.sidebar-segment {
    width: calc(100% - 10px);
    padding: 5px;
    margin-bottom: 20px;
}

/* Title of a sidebar segment. */
.sidebar-segment-title {
    font-weight: normal;
    font-size: 20px;
    margin-bottom: 7px;
}

/* Single entry of a segment of the sidebar. */
.sidebar-segment-entry {
    padding-left: 10px;
    margin-bottom: 5px;
    width: calc(100% - 10px);
    transition: background-color 0.2s;
}

/* Single entry of a segment of the sidebar, without hovering. */
.sidebar-segment-entry-nohover {
    margin-left: 10px;
    margin-bottom: 5px;
    width: calc(100% - 10px);
}

/* Pretty hover effect. */
.sidebar-segment-entry:hover {
    background-color: #005AA1;  /* Detail */
}

/* The credits. */
.sidebar-credits {
    position: absolute;
    bottom: 5px;
    right: 5px;
    text-align: right;
    font-size: 10px;
}

/* A single credits entry. */
.sidebar-credits-entry {
    width: 100%;
}

/* Credits link. */
.sidebar-credits-entry a {
    font-weight: bold;
}

/* Credits link. */
.sidebar-credits-entry a:hover {
    background-color: #005AA1;  /* Detail */
}

/* Small text at the top of content that mentions the chapter. */
.chapter-guide  {
    color: #C0C0C0;             /* Sneaky */ 
    font-size: 12px;
}

/* Small text to the right that mentions the page number. */
.page-number  {
    float: right;
}

/* Titlescreen button. */
.titlescreenbutton{
    background-color: #030303;  /* Background */
    border-radius: 5px;
    padding: 20px;
    border: 0px;
    font-family: "Titles";
    font-size: 32px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    display: block;
    transition: all 0.8s ease;
    display: inline-block;
}

/* Titlescreen button hover. */
.titlescreenbutton:hover{
    padding: 30px;
    margin-top: 0px;
    margin-bottom: 0px;
}

/* The title screen button when clicked. */
.titlescreenbutton:active {
    background-color: #005AA1; /* Detail */
    transition: background-color 0.1s;
}

/* Container for choices that prevents text from spilling out 
   into the remainder of the horizontal space.*/
.choicecontainer{
    margin-top: 50px;
    width: 100%;
}

/* Continue button on the right hand side of the choice container. */
.continuebutton  {
    float: right;
}

/* A link to another page of the comic. */
.pagelink {
    transition: background-color 0.2s;
    padding: 5px;
}

/* Pretty hover effect. */
.pagelink:hover {
    background-color: #005AA1;  /* Detail */
}

/* Hlines. */
.smallseparator{
    width: 400px;
    border: 0px;
    background-color: #005AA1;  /* Detail */
    height: 2px;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Chapter titles on the list page. */
.list-title {
    font-size: 24px;
    margin-bottom: 3px;
}

/* Make things work on small screens. */
@media (max-width: 1170px) {
    .sidebar {
        display: none;
    }
    .corner {
        display: none;
    }
    .topbar {
        width: calc(100% - 40px);
    }
}
