/* PTT CSS bundle: bbs-common + bbs-base + bbs-custom + pushstream + bbs-print (print 部分包在 @media print) */

/* === bbs-common.css === */
@charset "UTF-8";

/* Copyright (c) 2015 ptt.cc */
/* Licensed under The MIT License. */

.center {
    text-align: center;
}

.btn-big {
    font-size: 16px;
    padding: 10px;
    margin: 0 10px;
}

.clear {
    clear: both;
}

/* === bbs-base.css === */
@charset "UTF-8";

/* Copyright (c) 2015 ptt.cc */
/* Licensed under The MIT License. */

@import url(//fonts.googleapis.com/css?family=Inconsolata);

/* ansi colors */
.b0 { background-color: #000; }
.b1 { background-color: #b00; }
.b2 { background-color: #0b0; }
.b3 { background-color: #bb0; }
.b4 { background-color: #00b; }
.b5 { background-color: #b0b; }
.b6 { background-color: #0bb; }
.b7 { background-color: #bbb; }

.f0 { color: #000; }
.f1 { color: #900; }
.f2 { color: #090; }
.f3 { color: #990; }
.f4 { color: #009; }
.f5 { color: #909; }
.f6 { color: #099; }
.f7 { color: #999; }

.hl { color: #fff; }
.hl.f0 { color: #666; }
.hl.f1 { color: #f66; }
.hl.f2 { color: #6f6; }
.hl.f3 { color: #ff6; }
.hl.f4 { color: #66f; }
.hl.f5 { color: #f6f; }
.hl.f6 { color: #6ff; }
.hl.f7 { color: #fff; }

/* main layout */
.bbs-screen {
	color: #bbb;
	background-color: #000;
	line-height: 100%;
	overflow-wrap: break-word;
	word-wrap: break-word;
	margin: 0 auto;
    padding: 0;
	width: 100%;
}

.bbs-content {
	font-family: "細明體", "AR PL UMing TW", "Inconsolata", "LiSongPro", monospace;
}

.bbs-footer-message {
    text-align: center;
    margin-top: 1em;
}

.center {
    text-align: center;
}

.warning-box {
    border: 1px solid #555;
    background-color: #333;
}

#topbar-container {
	position: fixed;
	top: 0;
	width: 100%;
	height: 40px;
	z-index: 99;
	background-color: #0c0a66;
	overflow-y: hidden;
	overflow-x: auto;
}
#topbar {
	margin: 0 auto;
    width: 100%;
	height: 40px;
	box-sizing: border-box;
	color: #aaa;
}
#topbar > * {
	display: inline-block;
	height: 100%;
	line-height: 40px;
	vertical-align: middle;
	padding: 0 5px;
	float: left;
}
#topbar a:hover {
	background-color: #338;
	color: #fff;
}
#topbar a:link, #topbar a:visited, #topbar a:hover {
	text-decoration: none;
}
#topbar .board {
	color: #fff;
}
#topbar .board-label {
	font-size: small;
	vertical-align: middle;
}
#topbar > *.right {
	float: right;
}

.small {
	font-size: small;
}

#main-container {
	margin: 0;
	padding: 0 0 3ex 0;
	position: relative;
}

#main-content {
	position: relative;
	white-space: pre-wrap;
}
#main-content a:link {
    text-decoration: none;
    box-shadow: inset 0 -2px #555;
}
#main-content a:hover {
    box-shadow: inset 0 -2px #777;
}

a:link {
	color: #aaa;
}
a:hover {
	color: #333;
	background-color: #ccc;
}
a:visited {
	color: #888;
}

body {
	background-color: #000;
	margin: 0;
	padding: 40px 0 24px 0;
}

#logo {
	padding: 0 10px;
}
#logo:link, #logo:visited, #logo:hover {
	text-decoration: none;
	color: #ff6;
}

#navigation-container {
	position: fixed;
	bottom: 0;
	width: 100%;
	z-index: 1;
	background-color: #ccc;
}
#navigation {
	margin: 0 auto;
	width: 100%;
	height: 40px;
	box-sizing: border-box;
	color: #333;
}
#navigation > * {
	display: inline-block;
	height: 100%;
	line-height: 40px;
	vertical-align: middle;
	padding: 0 5px;
	float: left;
}
#navigation a:link, #navigation a:visited {
	color: #333;
	text-decoration: none;
}
#navigation a:hover {
	color: #222;
	background-color: #eee;
	text-decoration: none;
}
.share {
	line-height: 40px;
	vertical-align: middle;
}
.brdname {
	float: right;
}
#navigation .board {
	padding: 0 10px;
}
#navigation .bar {
	background-color: #888;
	width: 4px;
	height: 100%;
	padding: 0;
}

.push {
	line-height: 130%;
	white-space: normal;
	clear: both;
    position: relative;
}
.push > span {
	white-space: pre-wrap;
}
.push-tag {
	display: inline-block;
	min-width: 3.5ex;
	white-space: normal;
}
.push-content {
}
.push-ipdatetime {
	float: right;
}

.richcontent {
    position: relative;
	text-align: center;
    width: 100%;
    margin: 0.5em auto;
    max-width: 800px;
}
.resize-container {
    position: relative;
    width: 100%;
}
.resize-container:before {
    content: "";
    display: block;
    padding-top: 56.25%;
}
.resize-content {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}
.youtube-player {
    width: 100%;
    height: 100%;
}

.article-metaline {
	margin: 0;
	padding: 0;
	background-color: #008;
}
.article-metaline-right {
	position: absolute;
	right: 0;
	top: 0;
	background-color: #008;
}
.article-meta-tag {
	padding: 0 1ex;
	background-color: #999;
	color: #008;
}
.article-meta-value {
	padding: 0 1ex;
	background-color: #008;
	color: #999;
}

img {
	max-width: 100%;
	max-height: 800px;
}

/* article list */
#action-bar-container {
	position: fixed;
	width: 100%;
	background-color: #000;
	padding: 40px 0 0 0;
	top: 0;
	left: 0;
	overflow-y: hidden;
	overflow-x: auto;
	z-index: 98;
}
.action-bar {
	padding: 0;
	margin: 0 auto;
	height: 40px;
	box-sizing: border-box;
    text-align: center;
}
.action-bar .btn {
	height: 100%;
	line-height: 40px;
}
.action-bar > * {
	display: inline-block;
	box-sizing: border-box;
	height: 100%;
}
.btn-group {
	padding: 0;
	border: 0;
	font-size: 0;
}
.btn-group .btn {
	margin: 0;
}
.btn-group .btn + .btn {
	margin: 0 0 0 -1px;
}
.btn {
	position: relative;
	display: inline-block;
	border: 1px solid #666;
	background-color: #444;
	padding: 0 1ex;
	text-decoration: none;
	color: #ddd;
	box-sizing: border-box;
	font-size: small;
    text-align: center;
}
.btn.wide {
}
.btn:not(.disabled):hover {
	border-color: #eee;
	background-color: #bbb;
	color: #000;
	z-index: 2;
}
.btn.disabled {
	border-color: #111;
	background-color: #222;
	color: #666;
	z-index: 0;
	cursor: default;
}
.pull-right {
	float: right;
}
.btn:link, .btn:visited {
	color: #ddd;
}
.btn.selected {
	border-color: #ccc;
	background-color: #bbb;
	color: #000;
	z-index: 2;
}
.btn.selected:hover {
	border-color: #eee;
}

/* board list table */
.b-list-container {
	padding-top: 10px;
}
.b-ent {
    position: relative;
    width: 100%;
	margin: 0;
	line-height: 120%;
	vertical-align: middle;
}
.b-ent .board {
    position: relative;
    display: block;
	padding: 0.5ex 0;
    width: 100%;
    text-decoration: none;
}
.b-ent .board > * {
    display: inline-block;
    font-size: normal;
    font-family: Inconsolata, sans-serif;
}

.action-bar-margin {
	margin-top: 40px;
}

.search-bar {
	padding: 1ex 0;
}
.search-bar .query {
	box-sizing: border-box;
	width: 100%;
	font-size: inherit;
	border: 1px solid #333;
	background-color: #222;
	padding: 0.8ex;
	color: #ccc;
}
.search-bar .query:focus {
	border: 1px solid #666;
	background-color: #333;
	outline: none;
}

/* article list table */
.r-list-container {
	padding-top: 10px;
}
.r-ent {
	position: relative;
	width: 100%;
	line-height: 120%;
	vertical-align: middle;
}
.r-ent > * {
	display: inline-block;
	vertical-align: middle;
    min-height: 1em;
}
.r-ent .nrec {
	width: 4ex;
	text-align: right;
	float: left;
	font-family: serif;
}
.r-ent .mark {
	width: 2ex;
	text-align: center;
	font-weight: bold;
	font-family: Inconsolata, sans-serif;
}
.r-ent .nrec, .r-ent .title {
	padding: 0.5ex 0 0 0;
}
.r-ent .title, .r-ent .meta {
	display: block;
}
.r-ent .title a {
	text-decoration: none;
}
.r-list .title a, .r-list .title a:link {
	text-decoration: none;
	color: #ddd;
}
.r-list .title a:hover, .r-list .title a:hover:visited {
	background-color: #aaa;
	color: #000;
}
.r-list .title a:visited {
	color: #999;
}
.r-ent .meta {
}
.r-ent .meta > * {
	display: inline-block;
	padding: 0.5ex 0;
}
.r-ent .meta .mark, .r-ent .meta .date {
	float: right;
	text-align: right;
	margin: 0 0 0 5px;
}
.r-ent .date {
	font-family: serif;
	min-width: 6ex;
}
.r-ent .author {
	font-family: Inconsolata, serif;
}
.r-list-sep {
    height: 0.5ex;
    width: 100%;
    background-color: #555;
}

.article-menu {
	position: relative;
	float: right;
	width: 4ex;
	margin-left: 1ex;
}
.article-menu .trigger {
	text-align: center;
	height: 100%;
	margin: 0 0 0.5ex 0;
	cursor: pointer;
}
.article-menu.shown {
	background-color: #333;
}
.article-menu .dropdown {
	position: absolute;
	right: 0;
	background-color: #444;
	z-index: 90;
	display: none;
	white-space: nowrap;
}
.article-menu.shown .dropdown {
	display: block;
}
.article-menu .item a {
	display: block;
	padding: 1ex;
	text-decoration: none;
}
.article-menu .item a:hover {
	color: #000;
}

/* man list table */
.m-list-container {
	margin-top: 40px;
	padding-top: 10px;
}
.m-ent {
	position: relative;
	width: 100%;
	line-height: 120%;
	vertical-align: middle;
}

/* === bbs-custom.css === */
@charset "UTF-8";

/* Copyright (c) 2015 ptt.cc */
/* Licensed under The MIT License. */

/* Desktop */
@media screen and (min-width: 800px) {
    .bbs-screen, #topbar, #navigation, .action-bar, #article-polling {
        min-width: 600px;
        max-width: 1200px;
    }

    .bbs-content, #article-polling {
        font-size: 24px;
    }

    .b-ent .board {
        font-size: 20px;
    }
    .b-ent .board > * {
        box-sizing: border-box;
    }
    .b-ent .board > :first-child {
        padding: 0 0 0 1ex;
    }
    .board-name {
        width: 20ex;
    }
    .board-nuser {
        width: 9ex;
        text-align: right;
        padding: 0;
        padding-right: 1ex;
    }
    .board-class {
        width: 6ex;
    }

	.search-bar {
		font-size: 20px;
	}

    .r-ent {
        margin: 1ex 0;
        padding: 0.5ex 0;
        background-color: #111;
    }
    .r-ent > * {
        font-size: 20px;
    }
    .r-ent .title {
        margin: 0 5ex;
    }
    .r-ent .meta {
        margin: 0 0 0 5ex;
    }

    .m-ent {
        padding: 0.5em;
    }
    .m-ent > * {
        font-size: 20px;
    }

    .action-bar {
        text-align: left;
    }
    .btn-group-paging {
        float: right;
    }
    .btn {
        padding: 0 2ex;
        font-size: initial;
    }
    .btn.wide {
        padding: 0 3ex;
    }

    div.over18-notice {
        margin: 20px;
    }
    .over18-button-container {
        display: inline-block;
    }
}

/* Mobile */
@media screen and (max-width: 799px) {
    .b-ent {
        border-bottom: 1px #aaa solid;
    }
    .b-ent .board {
        line-height: 120%;
    }
    .b-ent .board > * {
        box-sizing: border-box;
        clear: both;
    }
    .board-name {
        width: 100%;
        padding: 0 1ex;
    }
    .board-nuser {
        position: absolute;
        float: right;
        top: 0;
        right: 0;
        padding: 0.5ex 1ex;
    }
    .board-class {
        min-width: 7ex;
        padding: 0 0 0 1ex;
        font-size: small;
    }
    .board-title {
        padding: 0 1ex 0 0;
        font-size: small;
    }

    .r-ent {
        border-bottom: 1px solid #444;
    }
    .r-ent .title, .r-ent .meta {
        margin-left: 5ex;
        margin-right: 2ex;
    }
    .r-ent .date, .r-ent .mark {
    }

    .m-ent:first-child {
        border-top: 1px #aaa solid;
    }
    .m-ent {
        padding: 0;
        border-bottom: 1px #aaa solid;
    }
    .m-ent .title a {
        display: block;
        box-sizing: border-box;
        padding: 0 1ex;
        line-height: 200%;
        text-decoration: none;
    }

    .action-bar {
        /* If the screen is too small, we want buttons to overflow. */
        white-space: nowrap;
    }
    .btn-group-dir {
        width: 33%;
    }
    .btn-group-paging {
        width: 66%;
    }
    .btn-group-dir > .btn {
        width: 50%;
    }
    .btn-group-paging > .btn {
        width: 25%;
    }
    .btn-group-cls {
        width: 100%;
    }
    .btn-group-cls > .btn {
        width: 50%;
    }

    div.over18-notice {
        padding: 0 1ex;
    }
    .over18-button-container {
        box-sizing: border-box;
        width: 100%;
        padding: 1ex;
    }
    .over18-button-container button {
        width: 80%;
    }
}

/* === pushstream.css === */
@charset "UTF-8";

/* Copyright (c) 2015 ptt.cc */
/* Licensed under The MIT License. */

@keyframes new-push-animation {
    0%, 80% { background-color: #333; }
    100% { background-color: transparent; }
}
@-webkit-keyframes new-push-animation {
    0%, 80% { background-color: #333; }
    100% { background-color: transparent; }
}
@-moz-keyframes new-push-animation {
    0%, 80% { background-color: #333; }
    100% { background-color: transparent; }
}

.new-push {
    animation: new-push-animation 2.5s;
    -webkit-animation: new-push-animation 2.5s;
    -moz-animation: new-push-animation 2.5s;
}

#article-polling {
    background-color: #222;
    color: #999;
    cursor: pointer;
    /* bbs-screen */
	margin: 10px auto;
    padding: 0;
    width: 100%;
}

#article-polling.fatal-error {
    background-color: #a22 !important;
    color: #fff !important;
    cursor: auto !important;
}

.push-stream-info {
    background-color: #00b;
    color: #888;
}

/* === bbs-print.css (media=print) === */
@media print {
@charset "UTF-8";

/* Copyright (c) 2015 ptt.cc */
/* Licensed under The MIT License. */

.bbs-content {
    font-size: 12px !important;
	font-family: "細明體", "AR PL UMing TW", "Menlo", "LiSongPro", monospace;
}

.bbs-screen {
    width: auto !important;
}

#main-content {
    white-space: pre;
}

#navigation div {
    display: inline-block;
    margin: 0 4px;
}

#banner {
    text-align: center;
    width: 100%;
    text-decoration: none;
}

.richcontent {
    text-align: center;
    margin: 1em;
}

img {
    max-width: 100%;
    max-height: 70%;
}
}
