* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
a {
    outline: none;
}
html {
    background-color: black;
}
html, body {
    background-image: url('../img/body-back.jpg');
    background-repeat: repeat-x;
    background-position: top center;
    background-attachment: fixed;
    margin: 0;
    font-family: Verdana,Geneva,sans-serif; 
    font-size: 12px;
}
body.open-sidebar {
    position: relative;
    overflow: hidden;
}
.body-wrapper {
    margin: 0px auto;
    max-width: 830px;
    box-shadow: 0px 0px 30px 10px #000000;
    display: flex;
    position: relative;
}
section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    flex: 3;
    /*max-width: 625px*/;
    background: url('../img/black-square-pattern.png') #444444;
    box-shadow: 5px 5px 5px 0px rgba(255, 255, 255, 0.35) inset;
    position: relative;
}
.inner-wrapper {
    height: 100%;
    background-color: #2e2d2d;
    margin: 23px 0px 0px 23px;
    border-radius: 40px 0px 0px 0px;
    border: 1px solid #cacaca;
    border-right-color: #666666;
    box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.75) inset;
    z-index: 1;
    max-width: 600px;
}
header {
    width: 100%;
    max-width: 600px;
}
.header {
    position: relative;
    background: linear-gradient(#646464, #414340 30%, #242424 65%, #222222, #555555);
    box-shadow: 0px 0px 5px 5px rgba(0, 0, 0, 0.85) inset;
    border-radius: 40px 0px 0px 0px;
    text-align: center;
}
.decoration {
    background: url('../img/nav-top.gif') top left repeat-x;
    width: 100%;
    height: 9px;
    border-bottom: 1px solid black;
}
nav {
    border-bottom: 1px solid #848484;
    background: linear-gradient(#2e2d2d 0%, #696969 10%, #515151 40%,#242424 50%, #000000 125%);
    width: 100%;
    font-size: 0px;
    text-align: center;
}
nav a {
    font-size: 12px;
    font-weight: bold;
    color: #bcbcbc;
    text-decoration: none;
    display: inline-block;
    border-left: 1px solid #848484;
    border-right: 1px solid #000000;
    line-height: 36px;
    padding: 0px 20px;
    text-align: center;
    outline: 0;
}
.navigation-wrapper {
    display: inline-block;
    border-left: 1px solid #000000;
    border-right: 1px solid #848484;
}
nav a:hover {
    background: linear-gradient(#000000 -7%, #444444 20%, #010101 90%);
    color: white;
}
nav a.active {
    color: yellow;
    background: linear-gradient(rgba(255, 255, 255, 0.10), #2e2d2d 40%);
    position: relative;
    top: 1px;
    border-top: 1px solid white;
    border-right-color: #848484;
}
nav a.active + a {
    border-left-color: #000000;
}
nav a.active:hover {
    color: white;
    text-decoration: underline;
}
main {
    flex: 1;
    padding: 25px;
    max-width: 600px;
}

.post {
    background-color: #555555;
    border: 1px solid #6a6a6a;
    color: white;
    margin: 0px auto 0.5cm auto;
    max-width: 530px;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.75);
    border-radius: 5px;
}
.post.new {
    border-color: lime;
}
.post-title {
    background: linear-gradient(rgba(0, 0, 0, 0.75), #555555);
    border-bottom: 1px solid black;
    text-align: center;
    border-radius: 5px 5px 0px 0px;
}
.post-title a {
    display: block;
    text-decoration: none;
    color: white;
    padding: 0.5em;
    transition: color 0.3s;
}
.post-title a:hover {
    color: lime;
}
.post-body {
    display: flex;
    border-top: 1px solid #848484;
}
.post-date {
    flex: 1;
    text-align: center;
    max-width: 90px;
    padding-top: 1em;
}
.post-summary {
    flex: 1;
    padding: 1em 1em 1em 0px;
    line-height: 1.3em;
    margin: 0;
}
.post-summary a img {
    vertical-align: top;
    float: left;
    outline: 0;
    margin: 0px 1em 0.5em 0px;
    border-radius: 4px;
}
a.post-comments::before {
    content: "\a\a";
    white-space: pre-wrap;
}
a.post-comments {
    margin-top: 2em;
    color: #848484;
}
a.post-comments:hover {
    color: white;
    text-decoration: none;
}
.pagination {
    margin-top: 1cm;
    font-size: 0;
}
.pagination .current {
    color: white;
    padding: 3px 7px;
    font-size: 12px;
}
.pagination a {
    font-size: 12px;
    border: 1px solid white;
    padding: 3px 7px;
    color: black;
    text-decoration: none;
    font-weight: bold;
    background: linear-gradient(#cccccc, #646464 20%, #646464 80%, #cccccc);
    border-radius: 4px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.65);
    margin-right: 5px;
    background-position: 0px;
}
.pagination a:hover {
    background: linear-gradient(#646464, #242424);
    transition: color 0.3s;
    color: white;
}

.corner-wrapper {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(rgba(0, 0, 0, 0), #2e2d2d);
    border-top: 1px solid black;
    border-right: 1px solid #848484;
}
.corner {
    width: 100%;
    height: 100%;
    border-top: 1px solid #848484;
    border-right: 1px solid black;
}
.dot {
    box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.5)8;
    border: 1px solid #111111;
    width: 11px;
    height: 11px;
    font-size: 0;
    border-radius: 50%;
    display: block;
    margin: 15px 0px 0px 7px;
    background: linear-gradient(135deg, #999999 0%,#2e2d2d 50%)
}
.rss-feed {
    position: absolute;
    top: 3px;
    left: 3px;
}
a.trans-image img, *[src].trans-image {
    transition: opacity 0.3s;
    opacity: 0.75;
}
a.trans-image:hover img, *[src].trans-image:hover {
    opacity: 1;
}
.ovals-light {
    width: 55px;
    height: 90px;
    background: rgba(255, 255, 255, 0.10);
    border-radius: 50%;
    position: absolute;
    top: 135px;
    left: 6px;
}
.ovals-dark {
    width: 35px;
    height: 50px;
    background: #2e2d2d;
    border-radius: 50%;
    box-shadow: 3px 0px 5px 3px rgba(0, 0, 0, 0.85) inset;
    position: absolute;
    top: 19px;
    left: 7px;
}


footer {
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    color: white;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.25), rgba(0, 0, 0, 0.25) 60%);
    padding: 5px 0px 5px 40px;
    text-shadow: 1px 1px 2px #000000;
    max-width: 625px;
}
aside {
    /*flex: 1;*/
    background: linear-gradient(90deg, #737373, #3f3f3f 2%, #303030 96%, #191919 100%);
    z-index: 2;
    position: relative;
    right: 0px;
    /*height: 100%;*/
}
.sidebar {
    width: 207px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}
.toggler {
    position: absolute;
    top: 21px;
    left: -38px;
    width: 39px;
    height: 180px;
    background: url('../img/panel-toggler.png') no-repeat;
}
aside .upper {
    min-height: 206px;
    max-height: 206px;
    position: relative;
    flex: 1;
}
.backtotop {
    position: absolute;
    left: 5px;
    bottom: 0px;
    cursor: pointer;
    width: 25px;
    height: 20px;
    background: url('../img/backtotop.gif') no-repeat 50% 50%;
    white-space: nowrap;
}
aside .search-box {
    text-align: center;
    height: 40px;
}
aside .search-box form {
    margin: 0 auto;
    padding: 0.5em 0;
    display: inline-block;
    border-bottom: 1px solid #848484;
}
.search-submit {
    border: none;
    background: url('../img/search.png') no-repeat;
    background-size: 24px 24px;
    width: 25px;
    height: 25px;
    cursor: pointer;
}
input.text-input {
    background: linear-gradient(180deg, #000000, #242424 50%);
    border: 1px solid #7d7d7d;
    width: 140px;
    color: white;
    border-radius: 4px;
    font-size: 12px;
    padding: 2px;
    line-height: 20px;
    transition: all 0.3s;
}
input.text-input:focus {
    border-color: #cccccc;
}
.search-box input[type=image] {
    height: 24px;
    vertical-align: top;
}
.random-picture-box {
    color: white;
    text-align: center;
    padding: 7px;
    height: 130px;
}
.random-picture-box .title {
    font-size: 10px;
    font-weight: bold;
    display: block;
}
.random-picture-box .frame {
    background-color: #D00;
    box-shadow: 0px 0px 4px 4px rgba(0, 0, 0, 0.75) inset;
    padding: 8px 13px;
    display: inline-block;
    margin: 5px;
    border-radius: 5px;
}
.random-picture-box .frame img {
    border: 1px solid black;
    vertical-align: middle;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.45);
}
.random-picture-box .subtitle {
    display: block;
    font-size: 10px;
}
.random-picture-box .subtitle a {
    color: white;
    font-weight: bold;
    text-decoration: none;
    font-style: italic;
    position: relative;
}
.random-picture-box .subtitle a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    content: "";
    height: 1px;
    width: 0px;
    background: red;
}
.random-picture-box .subtitle a:hover {
    transition: color 0.3s;
    color: red;
}
.random-picture-box .subtitle a:hover::after {
    width: 100%;
    transition: width 0.5s;
}

.utilities-title {
    background: url('../img/utilities-title-background.png') 50% 50% no-repeat;
    font-weight: bold;
    font-size: 12px;
    color: white;
    text-align: center;
    width: 100%;
    height: 28px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 7px;
}
.utilities-wrapper {
    width: 195px;
    margin: 0px auto 23px auto;
    background: url('../img/black-square-pattern.png') #2e2d2d;
    box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.75) inset;
    border-right: 1px solid #666666;
    padding-top: 0.5cm;
    color: white;
    flex: 1;
}
.djundj, .djundj-online {
    width: 100%;
    line-height: 16px;
    text-shadow: #000000 1px 1px 2px;
    border-top: 1px solid black;
    padding: 0px 0.7em;
    box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.50);
}
.djundj {
    background: linear-gradient(#400, #930000, #400, #930000 80%);
    color: #dcdcdc;
}
.djundj-online {
    background: linear-gradient(#0B2D00, #1d7200, #0B2D00, #1d7200 80%);
    font-weight: bold;
}
.djundj a, .djundj-online a {
    color: white;
    text-decoration: none;
}
.djundj a:hover, .djundj-online a:hover {
    color: white;
    text-decoration: underline;
}
.right {
    float: right;
}
.utility-body {
    font-size: 11px;
    padding: 1.5em;
    overflow: hidden;
    text-overflow: ellipsis;
}
.login {
    margin: 0px auto;
    text-align: center;
}
.login input:not([type=image]) {
    margin-bottom: 5px;
}
input.submit {
    margin: 10px auto 5px auto;
    display: block;
}
.utility-body a {
    display: block;
}
a.grey, .article-text a {
    color: #848484;
    text-decoration: underline;
}
a.grey:hover, .article-text a:hover {
    transition: color 0.3s;
    color: white;
    text-decoration: none;
}
.bright:hover {
    filter: brightness(150%);
    transition: filter 0.3s;
}
.rotate:hover {
    transition: transform 0.3s;
    transform: rotate(360deg);
}
input.error {
    border-color: red;
}
input.error::placeholder {
    color: red;
}
input:focus::placeholder {
    color: transparent;
}
.center { text-align: center; }
.bold { font-weight: bold; }
.underline { text-decoration: underline; }
.italic { font-style: italic; }
.left { float: left; }
.right { float: right; }
.red { color: red; }
.lime { color: lime; }
.yellow { color: yellow; }
.padding { padding: 2em; }
.unbold { font-weight: normal; }
.help { cursor: help; }
.hidden { display: none; }
.mt10 { margin-top: 10px; }
.mr1 { margin: 1em; }
.transp { opacity: 0.5; }
.invisible { opacity: 0; }


.date-grid { font-size: 0; }
.date-grid br { display: none; }
.date-grid br:nth-child(7n+7) { display: block; }
.day-of-week div, .date-grid > span, .date-grid > a {
    display: inline-block;
    width: 19px;
    font-size: 11px;
    text-align: center;
}
.date-grid > a, .date-grid > span {
    margin: 2px;
}
.month-indicator {
    margin-bottom: 15px;
    text-transform: capitalize;
}
.day-of-week { font-weight: bold; margin-bottom: 10px; }
.date-grid { color: grey; }
.date-grid a {
    font-weight: bold;
    text-decoration: none;
    outline: 0;
}
.date-grid .today {
    border: 1px solid red;
    color: white;
}
.holiday-box {
    background: linear-gradient(135deg, #484848, #242424);
    color: white;
    border: 1px solid rgb(94, 90, 90);
    margin: 5px 0px 0px 2px;
    padding: 5px;
    position: relative;
    border-radius: 5px;
    box-shadow: 5px 5px 5px 0px rgba(0, 0, 0, 0.65);
    margin-top: 15px;
}
.holiday-box .close {
    width: 15px;
    position: absolute;
    right: 5px;
    cursor: pointer;
}
.holiday-box #date {
    margin-bottom: 10px;
}
.friends a:not(:last-child) {
    margin-bottom: 15px;
}
.friends img {
    border-radius: 4px;
}
.inner > article {
    color: white;
    padding: 0em 1em 1em 1em;
    max-width: 520px;
    margin: 0px auto;
}
.inner > article h1 {
    font-size: 22px;
    font-family: monospace;
    font-weight: 700;
    margin: 0px;
}
.bottom-line {
    border-bottom: 1px solid white;
    padding-bottom: 5px;
    margin-bottom: 20px;
}
.article-text {
    text-align: justify;
}
div.code {
    border: 1px dashed yellow;
    background-color: #4e4d4d;
    color: white;
    padding: 5px;
    font-family: monospace;
    white-space: pre-line;
    word-wrap: break-word;
    overflow-x: auto;
    text-align: left;
}
.article-text img {
    max-width: 100%;
    height: auto;
    border: 1px solid white;
    cursor: zoom-in;
    cursor: -webkit-zoom-in;
    cursor: -moz-zoom-in;
}
.inner article #comments {
    margin-top: 1cm;
}
.inner article .post-title {
    height: 30px;
    padding: 10px;
    font-size: 10px;
}
.inner article .post-title a {
    display: initial;
}
.inner article .post-summary { padding-left: 1em; }
#comment-form { margin-top: 1cm; }
#comment-form .text-input {
    margin-bottom: 10px;
}
#poll-results div {
    margin: 5px 0px;
    padding: 2px;
}
.gallery-grid {
    font-size: 0px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.album-box {
    width: 145px;
    height: 165px;
    position: relative;
    background: #464646;
    border-radius: 5px;
    border: 1px solid #FFFFFF;
    box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.75);
    transition: all 0.4s;
    font-size: 11px;
    margin: 10px;
}
.album-box:hover {
    background: #646464;
}
.album-box .cover {
    height: 70px;
    background-color: #666666;
    border-bottom: 1px solid #AAAAAA;
    transition: all 0.4s;
    border-radius: 5px 5px 0px 0px;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    box-shadow: 15px 0px 20px 5px #666666 inset, -15px 0px 20px 5px #666666 inset;
    filter: grayscale(50%);
}
.album-box:hover .cover {
    background-color: #D1D1D1;
    border-bottom-color: #FFFFFF;
    box-shadow: 15px 0px 20px 5px #D1D1D1 inset, -15px 0px 20px 5px #D1D1D1 inset;
    filter: grayscale(0%);
}
.album-box .summary {
    padding: 5px;
    position: absolute;
    bottom: 0px;
}
.album-box .title {
    padding: 15px 0px 10px 0px;
    background: url('../img/separator.gif') no-repeat bottom center;
}
.album-box .files, .album-box .date {
    padding-left: 20px;
    margin-bottom: 5px;
}
.album-box .files {
    background: url('../img/images.gif') no-repeat;
}
.album-box .date {
    background: url('../img/date.gif') no-repeat;
}
.album-box a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
[type=radio] {
    display: none;
}
[type=radio] + label {
    position: relative;
    padding-left: 20px;
    line-height: 24px;
    cursor: pointer;
}
[type=radio] + label::before,
[type=radio]:not(:checked) + label::after,
[type=radio]:checked + label::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}
[type=radio] + label::before {
    width: 12px;
    height: 12px;
    top: 0px;
    left: 0px;
    border: 1px solid #646464;
    background: linear-gradient(135deg,#444444,transparent);
}
[type=radio]:checked + label::before {
    border-color: #999999;
    transition: all 0.3;
    background: transparent;
}
[type=radio]:not(:checked) + label { color: #CCCCCC; }
[type=radio]:not(:checked) + label:hover,
[type=radio]:checked + label { color: #FFFFFF; }
[type=radio]:checked + label::after,
[type=radio]:not(:checked) + label::after {
    width: 8px;
    height: 8px;
    top: 3px;
    left: 3px;
}
[type=radio]:checked + label::after {
    background: yellow;
    transition: all 0.3s;
}
.error-404 {
    font-size: 70px;
    margin-bottom: 20px;
}
.error-title {
    text-transform: uppercase;
    padding-bottom: 10px;
}
#register-form { display: table; width: 100%; }
#register-form > div { display: table-row; }
#register-form > div > * {margin: 5px 0px;}
#register-form .random-code img {
    border: 1px solid white;
    border-radius: 5px;
    margin: 5px 0px;
    background: #444444;
}
.random-code span {
    display: inline-block;
    font-size: 10px;
    width: 150px;
}
.error-message {
    font-size: 10px;
}
.calendar-title {
    display: flex;
}
.calendar-title a {
    flex: 1;
    color: #fff;
}
.calendar-title a:hover {
    text-decoration: none;
    color: lime;
}
.calendar-title a:first-child {
    text-align: left;
    margin-right: 1cm;
}
.calendar-title a:last-child {
    text-align: right;
    margin-left: 1cm;
}
.full-calendar-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    background: #242424;
    margin-top: 2em;
    box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.35);
}
.full-calendar-wrapper .calendar {
    padding: 10px;
    flex-grow: 1;
    border-left: 1px solid #848484;
    border-top: 1px solid #848484;
    border-right: 1px solid #000000;
    border-bottom: 1px solid #000000;
    transition: background 0.3s;
    box-shadow: 0px 0px 35px -10px rgba(0, 0, 0, 0.55) inset;
}
.full-calendar-wrapper .month-indicator {
    text-shadow: 1px 1px 2px #000000;
    color: #DDDDDD;
    transition: 0.3s;
}
.full-calendar-wrapper .calendar .month-indicator,
.full-calendar-wrapper .calendar .day-of-week {
    color: #CCCCCC;
}
.full-calendar-wrapper .calendar:hover {
    background-color: #333333;
}
.full-calendar-wrapper .calendar .date-grid {
    transition: 0.3s;
}
.full-calendar-wrapper .calendar:hover .month-indicator,
.full-calendar-wrapper .calendar:hover .date-grid {
    color: #CFCFCF;
}
.full-calendar-wrapper .day-of-week div, .full-calendar-wrapper .date-grid > span, .full-calendar-wrapper .date-grid > a {
    width: 16px;
}
.full-calendar-wrapper .calendar.active {
    background: #151515;
    box-shadow: none;
}
.full-calendar-wrapper .date-grid [title] {
    cursor: help;
    font-weight: bold;
}
fieldset {
    padding: 1em;
    text-align: center;
}
fieldset .text-input {
    min-width: 230px;
    width: 80%;
}
fieldset .sections {
    margin: 1em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
fieldset .sections label { margin-right: 1.3em; margin-bottom: 1em; }
fieldset .sections [type="radio"] + label { line-height: initial; }
fieldset .warning {
    max-width: 320px;
    margin: 1em auto 0px auto;
}
fieldset [type=submit] {
    border: none;
    padding: 0.3em 2em;
    border-radius: 4px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.85);
    cursor: pointer;
    transition: all 0.3s;
}
fieldset [type=submit]:hover {
    background: white;

}
.results-wrapper {
    margin-top: 4em;
}
.results {
    margin-top: 2em;
}
.results .post.gallery .post-body {
    padding: 0.5em 1em;
}
.results .post.gallery .post-body .image-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
}
.results .post.gallery .post-body .image-link img {
    max-width: 100%;
    max-height: 100%;
    border: 1px solid #242424;
    margin: 0px auto;
    border-radius: 3px;
}
.results .post.gallery .post-body .image-caption {
    display: flex;
    align-items: center;
}
.results .post.gallery .post-body div {
    padding-left: 1em;
}
.results .post-title {
    height: auto;
    padding: 0 !important;
}
.results .post-title a {
    display: block !important;
    line-height: 30px;
    padding: 0;
}


.results .calendar-table {
    display: flex;
    width: 100%;
    height: auto !important;
}
.results .calendar-table span {
    flex: 1;
    line-height: 30px;
    font-weight: bold;
    text-transform: uppercase;
}
.results .calendar-table span:not(.center) {
    text-align: left;
}
.calendar-table-row {
    display: flex;
    background-color: #555555;
    border-top: 1px solid #848484;
    border-bottom: 1px solid #000000;
    align-items: center;
}
.calendar-table-row span {
    flex: 1;
    align-content: center;
    padding: 0.5em 0em;
}
.calendar-table-row span:nth-child(1),
.results .calendar-table span:nth-child(1) {
    max-width: 70px;
}
.calendar-table-row span:nth-child(2),
.results .calendar-table span:nth-child(2) {
    max-width: 80px;
}
.calendar-table-row span:first-child strong {
    display: block;
    font-size: 1.5em;
}
.calendar-table-row span:first-child em {
    display: block;
    font-size: 0.8em;
}
video {
    max-width: 100%;
    height: auto;
}
.post-summary img {
    max-width: 100%;
}
.iframe-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 35px;
    height: 0;
    overflow: hidden;
}
.iframe-wrapper iframe {
    position: absolute;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
