/*
 * IPOM shared CSS stuff
 */

/* For phones... */
@media screen and (max-width: 800px) {
    /* don't display the margins of ninja stars */
    body {
        background: black;
        margin: 0 0;
    }

    /*
     * These should never show up on mobile or take up space
     */
    .castle, .logo {
        width: 0px;
        height: 0px;
        display: none;
        visibility: hidden;
    }

    /* By default we hide the whole header */
    div.header {
        display: none;
        position: relative;
    }

    /* on mobile, make it clear these tables are scrollable */
    div.table-hscroll-container table {
        border-top: 1px solid;
        border-bottom: 1px solid;
    }
}

/* Specifically for _not_ phones */
@media screen and (min-width: 801px) {
    body {
        background: url('/images/star_high_bg.jpg');
        /* top/bottom, left/right */
        margin: 0 7% auto;
    }

    div.header {
        position: sticky;
        top: -120px;
        /* This keeps images from scrolling over us */
        z-index: 1;
    }
}


/*
 * Setup the core stuff
 */
body {
    font-family: Arial,Tahoma,Helvetica,sans-serif;
    color: white;
}

a:link, .link-like-button {
    /* this is what's needed for both */
    color: #64ffff;
    text-decoration: none;
    /*
     * This is just for the button, and is already the case
     * for links, but we want these to share CSS
     */
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    line-height: inherit;
    font-weight: inherit;
}

a:visited, .link-like-button:visited {
    color: #ffff00;
    text-decoration: none;
}

a:hover, .link-like-button:hover, .link-like-button:focus {
    text-decoration: underline;
}

.square-button {
    border: none;
    border-radius: 0;
    display: inline-flex;
    transition: background-color 0.3s;
}

div.main {
    padding: 0px 0px 10px 0px;
    margin: 0px 0px 10px 0px;
    background-color: black;
    width: 100%;
    height: 100%;
    color: white;
    /*
     * this ensures we don't get a gap between
     * the black background and the menu caused
     * by the H* headings having a margin
     */
    overflow: hidden;
}

.main div.content {
    background-color: black;
    margin: 0px auto;
    padding-left: 25px;
    padding-right: 25px;
    /* Need at least 1 for the background to behave */
    padding-top: 1px;
    padding-bottom: 25px;
    color: white;
}

/*
 * BEGIN HEADER/MENU STUFF
 */

div.header {
    width: 100%;
    margin: 0;
    padding: 0;
    color: white;
    clear: both;
    background: black;
}

div.logo {
    float: left;
}

div.castle {
    float: right;
    margin-right: 5px;
}

#login {
    float: right;
    width: 100%;
    text-align: right;
    margin: 5px 0px 5px 0px;
}

/*
 * COMMON CLASSES
 */

.center {
    text-align: center;
}

.strong {
    font-weight: bold;
}

.lastupdated {
    font-size: small;
}

.smallnote {
    font-size: small;
}

/* for left-to-right divs*/
div.left {
    float: left;
    margin: 5px;
}

/*
 * Used for the top menu on News-like stuff (news, boards, WATN, MM)
 *
 * Ensures that text doesn't wrap around it and that it stays centered
 */
table.menu {
    text-align: center;
    border: 0;
    /* The special centering trick */
    margin-left: auto;
    margin-right: auto;
}

table.menu td {
    padding: 4px;
    margin: 3px;
}

h1 {
    text-align: center;
    text-transform: uppercase;
}

h2.category {
    text-align: center;
    color: #DC5336;
}

h2.error {
    text-align: center;
}

.error-text {
    color: red;
}

/*
 * Apparently fonts aren't inherited from the doc?
 * TODO: Check this is needed
 */
td {
    font-family: Arial,Tahoma,Helvetica,sans-serif;
}

th {
    font-family: Arial,Tahoma,Helvetica,sans-serif;
    background-color: #333333;
}

th.spacer {
    font-family: Arial,Tahoma,Helvetica,sans-serif;
    background-color: #000000;
}

table.form {
    /* The special centering trick */
    margin-left: auto;
    margin-right: auto;
}

table.form td {
    padding: 4px;
}

/*
 * used for "AUTHOR: Phil" type stuff, where type is
 * "AUTHOR"
 */
table td.type {
    background-color: #333333;
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    width: 13%;
}

/*
 * Where it's what someone said - message boards, quotes, etc.
 */
table td.quote {
    background-color: #333333;
    color: #ffffff;
    padding: 30px;
}

/* Message subject, etc. */
.quote caption {
    font-size: large;
    text-align: left;
    color: red;
}

img {
    border: 0;
}

div.quick_menu {
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
}

div.maingb {
    text-align: center;
    font-size: large;
}

p.disclaimer {
    font-size: small;
}

.searchsummary {
    text-transform: uppercase;
    text-align: center;
    font-size: large;
    color: #DC5336;
}

/*
 * Used for lots of news-like things (news, LT, Disco), as well as the "NEW"
 * tag in a bunch of places.
 */
.headline {
    color: red;
    font-weight: bold;
    text-transform: uppercase;
}

/*
 * Tooltips used all over
 *
 * from http://www.menucool.com/tooltip/css-tooltip
 *
 */
.tooltip {
    display: inline-block;
    position: relative;
    /* border-bottom: 1px dotted #666; */
    text-align: left;
}

.tooltip .right {
    min-width: 200px;
    top: 50%;
    left: 100%;
    margin-left: 20px;
    transform: translate(0, -50%);
    padding: 10px 20px;
    color:#FFFFFF;
    background-color:#000000;
    font-weight: normal;
    font-size: 13px;
    border-radius: 8px;
    position: absolute;
    z-index: 99999999;
    box-sizing: border-box;
    border: 1px solid #ffffff;
    box-shadow: 0 1px 8px #CCC;
    display: none;
}

.tooltip .left {
    min-width: 200px;
    top: 50%;
    right: 100%;
    margin-right: 20px;
    transform: translate(0, -50%);
    padding: 10px 20px;
    color:#FFFFFF;
    background-color:#000000;
    font-weight: normal;
    font-size: 13px;
    border-radius: 8px;
    position: absolute;
    z-index: 99999999;
    box-sizing: border-box;
    border: 1px solid #ffffff;
    box-shadow: 0 1px 8px #CCC;
    display: none;
}

.tooltip:hover .right,
.tooltip:hover .left {
    display: block;
}

.tooltip .right i,
.tooltip .left i {
    position: absolute;
    top: 50%;
    right: 100%;
    margin-top:-12px;
    width: 12px;
    height: 24px;
    overflow: hidden;
}

.tooltip .right i::after,
.tooltip .left i::after {
    content:'';
    position: absolute;
    width: 12px;
    height: 12px;
    left: 0;
    top: 50%;
    transform: translate(50%,-50%) rotate(-45deg);
    background-color:#000000;
    border: 1px solid #ffffff;box-shadow: 0 1px 8px #CCC;
}
