@font-face {
    font-family: "Comic Relief";
    src: url("/static/common/ComicRelief-Regular.ttf");
    font-display: swap;
}

body {
    margin: 0;
    padding: 0;
    background: url("/static/common/mizu.jpg") no-repeat center fixed;
    background-size: cover;
    font-family: "Comic Relief", "Comic Sans MS", cursive;
}

#wrapper {
    width: 90%;
    margin: auto;
    min-height: 100vh;
    background: url("/static/common/bg.png") repeat;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

@media screen and (max-width: 800px) {
    #wrapper {
        width: 100%;
    }
}

#header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
}

#search-bar {
    margin: 6px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

@media screen and (max-width: 800px) {
    #search-bar > label {
        display: none;
    }
}

#header {
    width: 100%;
    display: flex;
    flex-direction: row;
    background: url("/static/common/header.png");
}

@media screen and (max-width: 800px) {
    #header {
        align-items: center;
    }
}

#header > a {
    margin: 5px;
}

#logo {
    margin: 20px;
    height: 64px;
}

@media screen and (max-width: 800px) {
    #logo {
        margin: 10px;
        height: 48px;
    }
}

.expand {
    flex-grow: 1;
}

#header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#header-right > a, #header-right > a:visited {
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

#header-beans {
    font-size: 0.8em;
    color: #ad77f1;
    margin: 8px;
}

#header-ipods {
    font-size: 0.8em;
    color: #b3a6c9;
    margin: 8px;
}

#header-quarters {
    font-size: 0.8em;
    color: #5a697b;
    margin: 8px;
}

#header-welcome {
    margin: 2px;
}

#header-avatar {
    margin-right: 16px;
    margin-top: 5px;
    height: 72px;
}

#header-actions {
    display: flex;
    flex-direction: row;
}

#wrapper-2 {
    background: url("/static/common/button/bg.png") repeat-x;
}

#navbar {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0) 30%);
    display: flex;
    flex-direction: row;
    font-family: monospace;
}

@media screen and (max-width: 800px) {
    #navbar {
        flex-wrap: wrap;
        justify-content: space-between;
    }
}

#navbar > * {
    padding: 5px;
    border-right: 3px dotted rgba(0, 0, 0, 0.3);
}

@media screen and (max-width: 800px) {
    #navbar > * {
        border: none;
    }
}

#navbar > *:last-child {
    border-right: none;
}

@media screen and (max-width: 800px) {
    #navbar > *:last-child {
        border: none;
    }
}

#navbar > a, #navbar > a:visited {
    color: #545454;
    text-decoration: none;
}

#navbar > a:hover {
    color: #8b5cff;
}

#user-count > span {
    animation: alert 1s infinite linear;
}

@keyframes alert {
    100%, 0% {
        color: #ff0000;
    }
    50% {
        color: #0000ff;
    }
}

.message-counter {
    font-size: 0.8em;
    color: darkgrey;
}

.counter-too-long {
    color: red;
}

.sillycode-guide {
    font-size: 0.8em;
    color: darkgrey;
}

.advertisement {
    border: 1px solid #492d58;
}