@font-face {
    font-family: 'tarjan';
    src: url('tarjan_bold.woff') format('woff');
}

@font-face {
    font-family: 'univers';
    src: url('univers_55_roman.ttf') format('truetype'),
         url('univers_55_roman.woff') format('woff');
}

@font-face {
    font-family: 'universext';
    src: url('univers_ex.woff') format('woff');
}

html {
  height: 100%;
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
  font-family: univers, Verdana,Tahoma,Arial,sans-serif;
  line-height: 130%;
}

body { 
    background-color: #222;
    /* background-image: url(bg-bright.png); */
    color: white;
    margin:0;
    padding:0.5em 0.5em 3.5em 0.5em;
    min-height:100%;
    position: relative;
}

h1 {
    font-size:1.65em;
}

h1, h2, h3, h4 { 
    font-family: tarjan; 
    font-weight: normal;
}
h1 i { 
    font-family: tarjan; 
    font-weight: normal;
    font-size:70%;
}

h1, h2 {
    color: #c7c08d;
}

#content {
  margin: 0 auto;
  width: 100%;
  /* min-height: calc(100vh - 150px); */
}

table {
    /* border: 1px solid #C6C08D; */
    border-collapse: collapse;
}

td, th {
    background: #3F3F3C;
    border: 0.1em solid #5F5F46;
    padding: 2px 4px;
}
th {
    background: #5F5F46;
    border-color: #878758;
    font-weight: normal;
    text-align: left;
}

th.c {
    text-align: center;
}

th.r {
    text-align: right;
}
.nd {
    background-color:#111;
}

input, textarea, select {
    border: 1px solid #5F5F46;
    background: #252522;
    color: white;
    font-size: 1em;
}
textarea {
    height: 5em;
}

input.error {
    background: #8a0000;
}

input[type="submit"], button, .button {
    padding:0.3em 0.8em;
    border: 2px outset #5F5F46;
    color: white;
    background: #4F4F3A;
    display:inline-block;
    text-decoration: none;
    cursor: pointer;
    font-size: 10pt;
}
.editbutton {
    white-space:nowrap;
    margin:0 .3em;
}

a {
    text-decoration: none;
    cursor:pointer;
    color:#C6C08D;
    border-bottom: 1px dotted #C6C08D;
    display:inline-block;
}

table.yearblock {
    margin: .5em;
    float: left;
    border: none;
}

table.yearblock a {
    border-bottom: none;
}
table.yearblock td.active a {
    color:#FFE400;
    cursor: default;
}

input[type="submit"]:hover, button:hover, .button:hover, a:hover {
    border-bottom-style: solid;
    border-bottom-color: #FFE400;
    color:#FFE400;
}

a.del, a.edit {
    font-size:12pt;
    white-space:nowrap;
    border: none;
    display: inline;
}
a.del small, a.edit small {
    font-size:7pt;
}
a.del:hover {
    color:red;
}

#header {
    margin-bottom: .5em;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-image: url(logo_72.png);
    background-repeat: no-repeat;
    background-position: 10px 0px ;
    padding-left: 140px;
    min-height: 72px;
}

#header > div, #header > h1, #header > form, #header > #ERR {
    vertical-align:top;
    margin: 0;
    padding:0.2em 0.4em;
    border-radius:6px;
    background: rgba(255,255,255,0.08);
    border: none;
}

#header > a.mainhome {
    display: block; 
    position: absolute; 
    left:10px; 
    top: 0.5em; 
    width:120px; 
    height:72px;
    border: none;
}

#header > h1 {
    padding-bottom: 0;
    /*margin-right: 5px;*/
    text-align: center;
}

#header > div > h2 {
    font-size:1.1em;
    font-weight: bold;
    text-align: center;
    padding:0;
    margin-bottom: 0;
    margin-top: .075em;
}
#header > div > h2 > a {
    border: none;
}

#header > #ERR {
    border:1px dotted #600000;
    background: rgba(80,0,0,0.35);
    color:#ff3030;
}

#header > #INFO {
    border:1px dotted #006000;
    background: rgba(0,80,0,0.35);
    color:#30ff30;
}

#header > div, #header > form, #header > #ERR {
    font-size:10pt;
}

#header .button { 
    padding: 0.15em 0.8em;
    margin-top: 0.15em;
}

/* Tabellen */

#realtimetable, #statictable { 
    border: none; 
}
#statictable {
    /* margin-left:1.4em; */
}
#realtimetable tr {
    position:absolute;
    /* left:1.6em; */
}

#realtimetable td, #statictable td {
    width: 3em; 
    height:1.95em;
    padding:0 0.25em;
    text-align:center;
    background: #111;
}
#realtimetable th, #statictable th {
    width: 3em; 
    height:1.95em;
    padding:0 0.25em;
}

#realtimetable td.nd, #statictable td.nd {
    background: #2d2d2d;
}

#realtimetable td.sum, #statictable td.sum, #realtimetable th.sum, #statictable th.sum {
    font-weight:bold;
    width: 3.5em;
}

td.pTop1, #realtimetable td.pTop1, #statictable td.pTop1 { background-color: #006D0B; }
td.pTop2, #realtimetable td.pTop2, #statictable td.pTop2 { background-color: #005D0B; }
td.pTop3, #realtimetable td.pTop3, #statictable td.pTop3 { background-color: #004D0B; }
td.pLast, #realtimetable td.pLast, #statictable td.pLast { background-color: #6D000B; }

/* seamless doublecell */
#statictable .pubname {
    width: 6em;
    max-width: 6em;
    border-right: none;
    overflow: hidden;
    white-space: nowrap;
    text-align: left;
}

#statictable .teamname {
    width: 16.5em;
    max-width: 16.5em;
    overflow: hidden;
    white-space: nowrap;
    text-align: left;
    border-left: none;
    letter-spacing: 1px;
}

#statictable .teamwide {
    width: 22em;
    max-width: 22em;
}

#statictable .teamname div {
    width: max-content;
    transform-origin: left;
}

/* teamentry und scoreentry */
.fbox {
    max-width: 95%;
    /* min-width: 24em; */
    float: left;
    margin: 0.4em;
    padding: 1em;
    padding-top:0.25em;
}
div.fbox {
    border: 1px solid #3F3F2F;
    background: rgba(255, 255, 255, 0.06);
}

/* Punkte eingetragen? */
.zero, .some, .all, .c {
    text-align: center;
}
.zero { color: red; }
.some { color: orange; }
.all  { color: lime; }

pre { clear: both; }

#profil input, #profil textarea {
    width:300px;
}
#profil textarea {
    height:5em;
}

#streamdiv {
    position: relative;
    /* padding-bottom : width == 16 : 9 */
    padding-bottom: 45%;
    padding-top: 0px;
    height: 0;
    width: 80%;
    margin: 0 10%;
}

#streamframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Admin */
#pubtab table tr:hover td {
    background: #2f2f2f;
}


/* Chat */
#chat {
    border: 1px solid #555;
    background:#111;
    float:none;
}
#chat input {
    width:calc(100% - 3.5em);
    margin-left:0.15em;
}
#chat button {
    width:2.9em;
}
#chatmsg {
    height:15em;
    width:25em;
    overflow: auto;
    font-size:0.85em;
    transition: all 0.1s ease-in-out;
}
#chatmsg.alert {
    background:#611;
}

#chatcontainer h3 a {
    padding: 2px;
    width:1em;
    height:1em;
    border:1px solid #C6C08D;
    display: block;
    float:right;
    line-height: 65%;
}

#notibanner {
    display: block;
    position: absolute;
    background: black; 
    padding: 0 0.25em;
    text-align: right;
    border:none;
    opacity: 0.3;
    transition: all 0.3s ease-in-out;
    width: 10em;
    margin-left: 13.5em;
}

#notibanner:hover {
    opacity: 1;
}



footer {
    color: #666;
    font-size:8pt;
    text-align:right;
    clear: both;
    margin-top:2em;
    border-top: 1px #444 dashed;
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 1em;
    background-color: #111;
}

footer a { color: #776; border-color: transparent; }
