/* FONTS */
@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800&subset=latin-ext');

@font-face {
    font-family: 'KG Life Is Messy';
    src: url('font/KGLifeisMessy.eot');
    src: url('font/KGLifeisMessy.eot?#iefix') format('embedded-opentype'),
    url('font/KGLifeisMessy.woff') format('woff'),
    url('font/KGLifeisMessy.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* GENERAL */
html {
    width: 100%;
    height: 100%;
    overflow: auto;
    font-size: 14px;
}

body {
    width: 100%;
    height: 100%;
    background-color: #fff;
    color: #000;
    font-family: 'Open Sans', sans-serif;
    font-feature-settings: "kern";
    -moz-font-feature-settings: "kern";
    -webkit-font-feature-settings: "kern";
}

body * {
    image-rendering: -moz-crisp-edges;
    image-rendering: optimizeQuality;
    image-rendering:   -o-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a {
    cursor: pointer;
    color: inherit;
    transition: all 150ms;
}

a:hover {
    text-decoration: none;
    color: #fff;
}

a.ForgottenPassword {}

b, strong {
    font-weight: bold;
}

*, *:after, *:before {
    box-sizing: border-box;
}

hr {
    background-image: url("image/hr.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    border: 0 none;
    margin: 0;
    height: 0.16rem;
}

.Clearfix:before, .Clearfix:after {
    display: table;
    content: " ";
    clear: both;
}

/* FRAME */
#sizer {
    position: absolute;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: left top;
    background-size: cover;
}

#frameContent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.PageBackground {
    position: relative;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    z-index: auto;
    /*padding: 2.15rem 0 2rem 0;*/
}

/* HEADER */
.HeaderBar{
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 3.5rem;
    background: #000;
    z-index: 1;
}

.HeaderLogoBack{
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 8.6rem;
    height: 5rem;
    background: url("image/background-header-logo-back.png") no-repeat center;
    background-size: cover;
}

.HeaderLogo{
    content: '';
    position: absolute;
    left: 0.6rem;
    top: 0.7rem;
    width: 6.9rem;
    height: 3.5rem;
    background: url("image/logo-nagy-vasuti-kviz.png") no-repeat center;
    background-size: contain;
}

#header {
    position: absolute;
    width: 100%;
    top: 0;
    height: 3.5rem;
    line-height: 3.5rem;
    color: #fff;
    z-index: 2;
    background-color: #000;
}

#header .Brand {
    position: absolute;
    width: 6.65rem;
    height: 6.65rem;
    background-color: #fff;
    border-radius: 50%;
    top: 0;
    left: 0;
    margin: -2.2rem 0 0 -0.8rem;
    box-shadow: 1px 1px 1rem 0 rgba(0,0,0,0.2);
}

#header .Brand:after {
    content: "";
    position: absolute;
    width: 3.73rem;
    height: 1.2rem;
    background-image: url("image/icons/brand.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    left: 1.8rem;
    top: 3.2rem;
}

#header .Navigation {
    position: absolute;
    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);
    z-index: 1;
}

#header .Navigation ul li {
    float: left;
    margin-right: 2rem;
}

#header .Navigation ul li:last-child {
    margin-right: 0;
}

#header .Navigation ul li a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    /*text-transform: uppercase;*/
    font-size: 0.55rem;
}

#header .Navigation ul li a .Icon {
    display: inline-block;
    width: 1.33rem;
    height: 1.33rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    /*border-radius: 50%;*/
    /*background-color: #b42b40;*/
    margin-bottom: 0.5rem;
    vertical-align: middle;
    transition: all 150ms;
}

#header .Navigation ul li a:hover .Icon {
    /*background-color: #f39832;*/
}

#header .Navigation ul li.Toplist a .Icon { background-image: url("image/icons/toplist.png") }
#header .Navigation ul li.Game a .Icon { background-image: url("image/icons/game.png") }
#header .Navigation ul li.Prize a .Icon { background-image: url("image/icons/prize.png") }

#header .Navigation ul li a .Label {
    line-height: 1;
}

#header .Logout {
    position: absolute;
    display: block;
    right: 0;
    top: 0;
    width: 3.2rem;
    height: 100%;
    background-color: #004e9f;
    text-align: center;
    color: #fff;
    z-index: 1;
    cursor: pointer;
}

#header .Logout:hover {
    background-color: #7acef4;
    color: #000;
}

#header .Logout span {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    display: block;
    line-height: 2;
    font-weight: bold;
    font-size: 0.55rem;
}

#header .Logout span:before {
    content: "x";
    display: block;
    font-size: 1rem;
    font-weight: bold;
    line-height: 1;
}

/* PLAYER */
#player {
    margin-left: 5.85rem;
    float: left;
    padding-left: 2rem;
    margin-right: 2rem;
    min-width: 10rem;
    font-size: 0;
}

#player .Avatar {
    display: inline-block;
    width: 1.33rem;
    height: 1.33rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border-radius: 50%;
    background-color: #b42b40;
    margin-right: 0.4rem;
    vertical-align: middle;
}

#player .Name {
    display: inline-block;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.6rem;
    vertical-align: top;
}

#player .Avatar.Female { background-image: url("image/icons/female.png"); }
#player .Avatar.Male { background-image: url("image/icons/male.png"); }

/*  ----------  FOOTER  ----------  */
#footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    /*height: 2rem;*/
    height: auto;
    padding: 0.4rem 0.7rem;
    z-index: 1;
    /*background-color: #fff;*/
    color: #2b2b2b;
    text-align: center;
}

#footer > div {
    height: 100%;
}

#footer .Copyright {
    float: left;
}

#footer .Menu {
    float: right;
}

#footer ul {
    display: table;
    table-layout: fixed;
    height: 100%;
}

#footer ul li {
    display: table-cell;
    vertical-align: middle;
    font-size: 0.6rem;
    position: relative;
    padding: 0 0.7rem;
    line-height: 1;
}

#footer ul li a {
    color: #4d4d4f;
    text-decoration: none;
    display: inline-block;
}

#footer ul li a:hover,
#footer ul li.Project a:hover {
    color: #f39832;
}

#footer ul li.Project {
    border-right: 1px solid #e84844;
}

#footer ul li.Project a {
    font-weight: bold;
    text-transform: uppercase;
    color: #e84844;
    display: block;
    text-align: right;
}

#footer ul li.Social a {
    display: block;
    height: 1rem;
    line-height: 1rem;
    padding-left: 1.3rem;
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 1rem;
}

#footer ul li.Social.Facebook a {
     background-image: url("image/icons/facebook.png");
}

#footer ul li.Social.Instagram a {
    background-image: url("image/icons/instagram.png");
}

#footer ul li.Brand a {
    display: block;
    width: 3rem;
    height: 1rem;
    background-image: url("image/icons/brand.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    font-size: 0;
    color: transparent;
}

#footer .FooterText{
    font-size: 0.6rem;
    /*font-weight: bold;*/
}

#footer .Documents{
    font-size: 0.6rem;
    font-weight: bold;
    padding: 0.25rem 0;
}

/* PROGRESS */
#progress {
    position: absolute;
    background: url("image/preloader.gif") center center no-repeat no-repeat, #f5f5f5;
    background-size: 1.5em;
    border-radius: 0.25em;
    left: 50%;
    top: 50%;
    margin: -1.5em 0 0 -1.5em;
    width: 3em;
    height: 3em;
    display: none;
    z-index: 1000;
}

/* UPDATE */
#update {
    position: absolute;
    top: 50%;
    left: 50%;
    //background-color: #373b3c;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    //color: #d3d3d3;
    text-align: center;
    padding: 50px 20px;
}

#update p {
    font-size: 1.8em;
    line-height: 1.4em;
    margin: 1.4em 0;
}

#update p span {
    color: #004e9f;
    font-weight: 600;
}

#update p.Small {
    font-size: 1.4em;
}

#update .Icon {
    height: 12rem;
    margin: 0 auto;
    background-image: url(/elements/style/Portal/image/logo-nagy-vasuti-kviz.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

/* CONTENT PANELS */
.PanelContainer:before, .PanelContainer:after {
    display: table;
    content: " ";
    clear: both;
}

.ContentPanel {
    background-color: #fff;
    position: relative;
    float: left;
    border: 1px solid #ddd;
    height: 100%;
    border-radius: 0.1em;
    padding: 1% 1.5%;
    margin: 0 1.7% 1.7% 0;
}

.ContentPanel.PanelThird {
    width: 32.2%;
}

.ContentPanel.PanelHalf {
    width: 49.15%;
}

.ContentPanel.PanelFull {
    width: 100%;
    float: none;
    margin-right: 0;
}

.ContentPanel.PanelThird:nth-child(3n),
.ContentPanel.PanelHalf:nth-child(2n) {
    margin-right: 0;
}

.ContentPanel.PanelThird:nth-last-child(1),
.ContentPanel.PanelThird:nth-last-child(2),
.ContentPanel.PanelThird:nth-last-child(3),
.ContentPanel.PanelHalf:nth-last-child(1),
.ContentPanel.PanelHalf:nth-last-child(2),
.ContentPanel.PanelFull:nth-last-child(1) {
    margin-bottom: 0;
}

.ContentPanel > .Header {
    color: #6f6f6f;
    text-transform: uppercase;
    margin-bottom: 1em;
}

.ContentPanel > .Header:before, .ContentPanel > .Header:after {
    display: table;
    content: " ";
    clear: both;
}

.ContentPanel > .Header .Title {
    float: left;
    font-size: 1.2em;
    line-height: 1em;
    color: #6f6f6f;
}

.ContentPanel > .Header .Title span {
    color: #2bc191;
}

/* ERROR MONOLITH */
.ErrorMonolith {
    padding: 2.5% 25%;
    text-align: center;
    line-height: 1.2;
}

.ErrorMonolith a {
    color: #6f6f6f;
    text-decoration: none;
    font-weight: bold;
}

.ErrorMonolith .Image {
    width: 100%;
    height: 21.5em;
    background-image: url("image/error-monolith.jpg");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% auto;
    margin-bottom: 2em;
}

.ErrorMonolith .Text {
    font-size: 1.2em;
    margin: 0.5em 0;
}

.ErrorMonolith .Exception,
.ErrorMonolith .ErrorText {
    font-size: 1.2em;
    margin: 0.5em 0;
    color: #e2001a;
    font-weight: bold;
}

.ErrorMonolith .LinkToHome {
    font-size: 1em;
    margin: 0.5em 0;
}

/* CONTACT */
.Contact{
    position: absolute;
    bottom: 16.4%;
    left: 81.4%;
    right: 7.2%;
    text-align: center;
    padding: 0.6rem 0;
    line-height: 1.5;
    border-top: 1px solid #aaaaaa;
}

.Contact *{
    display: block;
    font-size: 0.6rem;
    color: #343740;
}

.Contact .Logo{
    width: 3.6rem;
    height: 0.8rem;
    margin: 0.2rem auto;
    text-indent: -9999%;
    background-image: url("image/logo-contact-mc.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* FEEDBACK MESSAGE & ERRORS */
.FeedBackMessage,
.Errors li {
    margin: 0.65rem auto;
    font-size: 0.65rem;
    line-height: 1.1;
    font-weight: bold;
}

.Dialog .FeedBackMessage,
.Dialog .Errors li {
    margin: 0.65rem 0;
}

.FeedBackMessage.Error, .Errors li { color: #9a3432; }
.FeedBackMessage.Success { color: #fff; }
.FeedBackMessage.Warning { color: #fff; }
