@font-face {
    font-family: 'Chunkfive';
    src: url('/content/fonts/chunkfive-webfont.eot');
    src: url('/content/fonts/chunkfive-webfont.eot?#iefix') format('embedded-opentype'),
         url('/content/fonts/chunkfive-webfont.woff') format('woff'),
         url('/content/fonts/chunkfive-webfont.ttf') format('truetype'),
         url('/content/fonts/chunkfive-webfont.svg#chunkfiveroman') format('svg');
    font-weight: normal;
    font-style: normal;
}
@media screen and (-webkit-min-device-pixel-ratio:0)
{
  @font-face
  {
    font-family: 'Chunkfive';
    src: url('/content/fonts/chunkfive-webfont.svg#chunkfiveroman') format('svg');
    font-weight: normal;
    font-style: normal;
  }
}

.hidden
{
	display: none;
}

html, body
{
	margin: 0;
	padding: 0;
	overflow: hidden;
	font-family: 'Chunkfive', 'sans-serif';
	height: 100%;
}

#wrapper
{
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
}

#menus
{
    position: absolute;
    background-color: white;
    top: 0;
    left: 0;
    bottom: 128px;
    width: 249px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 2;
    display: none;
}

#menu-selection
{
    position: absolute;
    bottom: 80px;
    z-index: 2;
    display: none;
    background-color: white;
    width: 249px;
    padding: 5px 0;
    text-align: center;
}

#menu-selection > div
{
    margin-left: 18px;
    margin-right: 18px;
    display: inline-block;
    cursor: pointer;
}

#author-info
{
    position: absolute;
    background-color: white;
    left: 0;
    bottom: 0;
    height: 78px;
    width: 249px;
    margin-bottom: 2px;
    padding: 0 5px;
    z-index: 2;
    display: none;
}

#author-info form
{
    display: inline-block;
    height: 25px;
    vertical-align: bottom;
}

#author-info div
{
    padding-top: 1px;
}

#menu-open
{
    position: absolute;
    bottom: 0;
    left: 0;
    margin: 0;
    padding: 6px 8px;
    background-color: transparent;
    border: none;
    z-index: 3;
}

#menu-open .icon-bar
{
    display: block;
    width: 22px;
    height: 4px;
    border-radius: 2px;
    background-color: #333;
}

#menu-open .icon-bar + .icon-bar
{
    margin-top: 4px;
}

#menu-close
{
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0 5px;
    background-color: transparent;
    border: none;
    z-index: 3;
    font-size: 32px;
    display: none;
}

#menu-overlay
{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 0;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2;
    display: none;
}

#menu-checkbox,
#collapsible-menu-checkbox-outer,
#dark-mode-checkbox-outer
{
    display: none;
}

#menu-checkbox:checked ~ #wrapper #menu-close,
#menu-checkbox:checked ~ #wrapper #menus,
#menu-checkbox:checked ~ #wrapper #menu-selection,
#menu-checkbox:checked ~ #wrapper #author-info,
#menu-checkbox:checked ~ #wrapper #menu-overlay
{
    display: block;
}

#menu-checkbox:checked ~ #wrapper #menu-open
{
    display: none;
}

#chat-wrapper
{
    position: absolute;
    bottom: 0;
    right: 0;
    max-width: 280px;
    font-size: 12px;
    margin-bottom: 0;
    z-index: 1;
}

#chat-header
{
    position: relative;
    padding-left: 10px;
    padding-top: 2px;
    padding-bottom: 2px;
    font-size: 14px;
    min-width: 120px;
}

#chat-header-label
{
    padding-top: 4px;
}

#chat-toggle
{
    position: absolute;
    right: 3px;
    bottom: 3px;
}

#chat-body
{
    padding-top: 4px;
    padding-bottom: 4px;
    max-height: 250px;
    background: white;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    word-wrap: break-word;
}

#chat-body ul
{
    padding-left: 0;
}

.chat-user-name
{
    padding-left: 5px;
    color: lightslategray;
}

.chat-message
{
    padding-left: 20px;
    padding-right: 4px;
}

.chat-system-message
{
    padding-left: 5px;
    padding-right: 5px;
    color: steelblue;
}

#game-menu,
#friends-menu,
#settings-menu
{
    width: 100%;
}

#settings-menu a
{
    display: block;

}

#game-menu
{
    display: block;
}

#list-games
{
    position: absolute;
    top: 46px;
    right: 0;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#friends-menu,
#settings-menu
{
    display: none;
}

.menu-header
{
    font-size: 32px;
    margin: 0 auto;
    display: block;
    text-align: center;
    padding-left: 35px;
}

.menu-header .fa
{
    font-size: 28px;
    cursor: pointer;
}

.menu-sub-header
{
    margin-left: 5px;
    margin-top: 4px;
    font-size: 16px;
}

.fa-github
{
    top: 7px;
    position: relative;
    width: 25px;
    height: 25px;
}

.fa-edit, .fa-plus-square-o
{
    top: 4px;
    position: relative;
    cursor: pointer;
    width: 28px;
    height: 28px;
}

#friends-list .fa-plus-square-o
{
    top: 2px;
    width: 14px;
    height: 14px;
}

.fa-trash-o
{
    position: relative;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.fa-user
{
    top: 2px;
    position: relative;
    width: 16px;
    height: 16px;
}

.fa-times
{
    top: 2px;
    position: relative;
    width: 28px;
    height: 28px;
}

.fa-comments, .fa-chevron-down, .fa-exclamation-triangle
{
    top: 2px;
    position: relative;
    width: 14px;
    height: 14px;
}

.menu-game-listing
{
    margin-left: 10px;
    margin-right: 10px;
    padding-top: 3px;
    border-radius: 5px;
    background-color: lightblue;
    cursor: pointer;
    border: black 1px solid;
}

.menu-game-listing .right-side
{
    float: right;
    margin-right: 3px;
}

.menu-game-listing .right-side .tile-count
{
    float: right;
}

.menu-game-listing .right-side .time-since
{
    float: right;
    margin-right: 2px;
}

.game-player-listing
{
    margin-left: 5px;
}

#add-friend-form
{
    margin-left: 10px;
    margin-right: 10px;
}

#username-info
{
    margin-left: 10px;
    margin-right: 10px;
    padding-top: 3px;
    margin-bottom: 5px;
}

#username-alert
{
    margin-left: 10px;
    margin-right: 10px;
    padding: 6px;
    margin-bottom: 5px;
    opacity: 0;
}

#friends-list
{
    position: absolute;
    bottom: 0;
    top: 118px;
    left: 0;
    right: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 15px;
}

.friend-listing,
#settings-menu a
{
    margin-left: 10px;
    margin-right: 10px;
    padding-top: 3px;
}

#settings-menu .checkbox,
#settings-menu .dropdown
{
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 10px;
}

#settings-menu label
{
    vertical-align: -2px;
    font-weight: normal;
}

#svg-wrapper
{
    background-color: green;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

#thin-stripes-pattern rect
{
    fill: #f5f5f5;
}

#thin-stripes-pattern path
{
    stroke: #e0e0e0;
}

#btc-donate
{
    cursor: pointer;
}

.qtip
{
    max-width: 350px;
}

.btc-qr
{
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#expansion-header
{
    padding-top: 5px;
}

.expansion-label
{
    margin-bottom: 0;
}

.iconmelon,
.im
{
    position: relative;
    width: 32px;
    height: 32px;
    display: block;
    fill: #272727;
}

.iconmelon.menu-selected
{
    fill: #808080;
}

.iconmelon:after,
.im:after
{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#expansion-header
{
    padding-top: 5px;
}

.expansion-label
{
    margin-bottom: 0;
}

.turn-marker
{
    pointer-events: none;
}

@media (min-width: 768px) {
    #collapsible-menu-checkbox-outer:not(:checked) ~ #wrapper #menus,
    #collapsible-menu-checkbox-outer:not(:checked) ~ #wrapper #menu-selection,
    #collapsible-menu-checkbox-outer:not(:checked) ~ #wrapper #author-info
    {
        display: block;
    }

    #collapsible-menu-checkbox-outer:not(:checked) ~ #wrapper #menu-open,
    #collapsible-menu-checkbox-outer:not(:checked) ~ #wrapper #menu-close,
    #collapsible-menu-checkbox-outer:not(:checked) ~ #wrapper #menu-overlay
    {
        display: none !important;
    }

    #collapsible-menu-checkbox-outer:not(:checked) ~ #wrapper #svg-wrapper
    {
        left: 249px;
    }

    #collapsible-menu-checkbox-outer:not(:checked) ~ #wrapper #chat-wrapper
    {
        max-width: 300px;
    }
}

/* Dark mode settings */

:root 
{
    --dark-primary-color: #155579;
    --dark-text-primary-color: #dedede;
    --dark-text-secondary-color: #606060;
    --dark-surface-primary-color: #1e1e1e;
    --dark-surface-secondary-color: #2f2f2f;
    --dark-surface-tertiary-color: #9a9a9a;
}

#dark-mode-checkbox-outer:checked ~ *
{
    color: var(--dark-text-primary-color);
    fill: var(--dark-text-primary-color);
    background-color: var(--dark-surface-primary-color);
}

#dark-mode-checkbox-outer:checked ~ * #menus,
#dark-mode-checkbox-outer:checked ~ * #menu-selection,
#dark-mode-checkbox-outer:checked ~ * #author-info 
{
    background-color: var(--dark-surface-primary-color);
}

#dark-mode-checkbox-outer:checked ~ * .menu-game-listing 
{
    background-color: var(--dark-surface-secondary-color);
}

#dark-mode-checkbox-outer:checked ~ * #thin-stripes-pattern rect
{
    fill: var(--dark-surface-primary-color);
}

#dark-mode-checkbox-outer:checked ~ * #thin-stripes-pattern path
{
    stroke: var(--dark-surface-secondary-color);
}

#dark-mode-checkbox-outer:checked ~ * #score-bg 
{
    fill: var(--dark-surface-tertiary-color);
}

#dark-mode-checkbox-outer:checked ~ * .iconmelon
{
    fill: var(--dark-text-secondary-color);
}

#dark-mode-checkbox-outer:checked ~ * .iconmelon.menu-selected
{
    fill: var(--dark-text-primary-color);
}

#dark-mode-checkbox-outer:checked ~ * #chat-body
{
    background-color: var(--dark-surface-secondary-color);
}

#dark-mode-checkbox-outer:checked ~ * .panel-primary,
#dark-mode-checkbox-outer:checked ~ * .panel-primary > .panel-heading
{
    background-color: var(--dark-primary-color);
    border-color: var(--dark-primary-color);
}

#dark-mode-checkbox-outer:checked ~ * #chat-message-form button
{
    background-color: var(--dark-primary-color);
    border-color: var(--dark-primary-color);
}

