@font-face 
{
    font-family: Takumi;
    src: url("fonts/takumi2.ttf");
    unicode-range: U+0020-007F;
}

html, body {
    font-family: Takumi, consolas;
    /*background-color: #FFE8B5; /*#FFF7BE;*/
    width:  100%;
    height: 100%;
    margin: 0px;
    overflow: hidden;
    image-rendering: pixelated;
    color: #404040;
    text-align: center;
    text-rendering: optimizeSpeed;

    -webkit-user-select: none; /* Safari */        
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

#title
{
    font-size: 10vmin;
    margin-top: 2vmin;
    margin-bottom: -2vmin;
    cursor: pointer;
}

#credits
{
    width: 95%;
    max-width: 90vh;
    margin: 0 auto;
    height: 5vmin;
}

#maker
{
    font-size: 5vmin;
    float: right;
    color: #C6AEA1;
}

#story
{
    font-size: 5vmin;
    float: left;
}

#canvas
{
    width: 95%;
    max-width: 90vh;
    margin-left: -1.2vmin;
}

#border
{
    margin-bottom: -500px;
    pointer-events: none;
    z-index: 20;
}

#container{
    width: 100%;
    text-align: center;
    margin-top: 3vmin;
}

#story_list
{
    width: 95%;
    max-width: 85vh;
    margin: 0 auto;
    overflow-y: auto;
    height: 67.8vw;
    max-height: 61vh;
}
::-webkit-scrollbar {
    display: none;
}

.list_entry
{
    width: 96%;
    text-align: left;
    float: left;
    margin-top: 1.5vmin;
    margin-bottom: 1.5vmin;
    background: none;
    height: auto;
    margin-left: 2%;
    margin-right: 2%;
}
.list_entry:hover
{
    background: #FFDECC;
}
.list_entry:active
{
    background: none;
}
.icon
{
    float: left;
    width: 10vmin;
    margin-right: 2vmin;
}

.story_name
{
    font-size: 5vmin;
    display: inline-block;
}
.maker_name
{
    color: #C0C0C0;
    display: inline-block;
}

#sort
{
    width: 6vmin;
    margin-left: 0vmin;
    margin-bottom: -1.2vmin;
}

#sort_border
{
    margin-left: -21.8vmin;
    margin-bottom: -1.8vmin;
    height: 6.5vmin;
    pointer-events: none;
}

.styled-select
{
    margin-left: 1vmin;
    font-size: 5vmin;
    font-family: Takumi, consolas;
    height: 5.5vmin;
    width: 19vmin;
    color: #808080;
    border: none;
    border-width: 0px;
   -webkit-appearance: none; 
   -moz-appearance: none;
    outline: none;
    margin-bottom: 0.3vmin;
}

#searchbar
{
    font-size: 5vmin;
    font-family: Takumi, consolas;
    width: 35vmin;
    color: #808080;
    text-align: center;
    height: 5vmin;
    margin-left: 12vmin;
    border: none;
    outline: none;
}

#search_border
{
    margin-left: -37vmin;
    height: 6.5vmin;
    margin-bottom: -1.5vmin;
    pointer-events: none;
}

#loep
{
    height: 6vmin;
    margin-left: 0vmin;
    margin-bottom: -1.5vmin;
}

.stats
{
    text-align: left;
    float: right;
    width: 20%;
    color: #808080;
    margin-top: 1vmin;
}

.rating_container
{
    margin-top: -0.5vmin;
}

span
{
    font-size: 5vmin;
}

#options
{
    width: 95%;
    max-width: 85vh;
    margin: 0 auto;
    overflow-y: auto;
    margin-top: 3vmin;
}

#by_code
{
    font-size: 4vh;
    margin-top: 1vh;
    color: #C6AEA1;
}

#code
{
    font-size: 4vh;
    font-family: Takumi, consolas;
    width: 13vh;
    color: #404040;
    margin-right: 17vh;
}

.plays
{
    width: 5vmin;
    float: left;
    margin-right: 1vmin;
    margin-top: -0.75vmin;
}
.rating
{
    width: 5vmin;
    float: left;
    margin-right: 1vmin;
}
.stars
{
    width: 5vmin;
    float: left;
    margin-right: 1vmin;
}
.downloads
{
    font-size: 4vmin;
}
.rate
{
    font-size: 4vmin;
}

#controls
{
    width: 95%;
    max-width: 90vh;
    margin: 0 auto;
    height: 5vmin;
    margin-top: 2vh;
}

#embed
{
    height: 10vh;
    float: right;
    margin-right: 5vh;
    cursor: pointer;
}

#restart
{
    height: 10vh;
    margin: auto;
    cursor: pointer;
}
#back
{
    height: 10vh;
    float: left;
    margin-left: 3vh;
    cursor: pointer;
}

#overlay
{
    position: fixed; /* Sit on top of the page content */
    display: none; /* Hidden by default */
    width: 100%; /* Full width (cover the whole page) */
    height: 100%; /* Full height (cover the whole page) */
    top: 0; 
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.7); /* Black background with opacity */
    z-index: 2; /* Specify a stack order in case you're using a different order for other elements */
}

#embed_popup
{
    width: 50%;
    max-width: 50vh;
    position: absolute;
    top: 50%;
    left: 50%;
    color: #404040;
    background-color: #FFDECC;    
    transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    border-style: dotted;
    border-width: 0.75vmin;
    border-color: #FFFFFF;
}

#embed_title
{
    margin: 1vmin;
    font-size: 5vmin;
}

#embed_code
{
    margin-left: 1vmin;
    margin-top: 1vmin;
    float: left;
    font-size: 3vmin;
}

#embed_text
{
    -webkit-user-select: all; /* Safari */        
    -moz-user-select: all; /* Firefox */
    -ms-user-select: all; /* IE10+/Edge */
    user-select: all; /* Standard */

    border: none;
    width: 75%;
    margin: auto;
    margin-top: 1vmin;
    margin-bottom: 1vmin;
    font-family: courier;
    text-align: left;
    font-size: 2vmin;

    resize: none;
    outline: none;
}


input[type="checkbox"]
{
    width: 1.5vmin;
    height: 1.5vmin;
}

input[type="checkbox"] + label
{
    font-size: 2.25vmin;
    font-family: courier;
    margin-bottom: 1.5vmin;
    margin-right: 2vmin;
    margin-left: 0.5vmin;
}

#show_restart
{
    margin-bottom: 2vmin;
    margin-top: 1vmin;
}

a
{
    margin-top: 3vmin;
    font-size: 3.5vmin;
    color: #404040;
    text-decoration: none;

}

#next
{
    height: 7.5vmin;
    margin-bottom: -2.5vmin;
    margin-left: 0.5vmin;
}