/* OVERLAY */
.Overlay {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    text-align: center;
    background-color: rgba(77,77,79, 0.85);
}

.Overlay:before {
    content: "";
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.Overlay.Transparent {
    background: none;
}

/* DIALOG WINDOW */
.Dialog {
    position: relative;
    width: 39%;
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0 0 1.8rem 0 rgba(0,0,0,0.35);
    border-radius: 1.33rem;
}

.Dialog.Hidden {
    display: none;
}

/* CONTENT */
.Dialog > .Content {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
}

/* HEADER */
.Dialog .Header {
    position: relative;
    background-color: #007c35;
    color: #fff;
    display: table;
    table-layout: fixed;
    width: 100%;
    text-align: center;
    border-top-left-radius: 1.33rem;
    border-top-right-radius: 1.33rem;
    height: 4.53rem;
    padding: 1rem 1.7rem;
}

.Dialog .Header .Text {
    display: table-cell;
    vertical-align: middle;
    width: 100%;
}

.Dialog .Header .Title {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.15;
}

/* MIDDLE */
.Dialog .Middle {
    background-color: #fff;
    padding: 1.7rem;
    font-size: 0.75rem;
    line-height: 1;
    position: relative;
}

.Dialog .Middle:before,
.Dialog .Middle:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 1.7rem;
    left: 0;
}

.Dialog .Middle:before {
    top: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%,rgba(0,0,0,0) 100%);
}

.Dialog .Middle:after {
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.25) 100%);
}

.Dialog .Middle .Title {
}

.Dialog .Middle .Description {
}

.Dialog .Middle .Scrollable {
    height: 100%;
    overflow: auto;
}

/* FOOTER */
.Dialog .Footer {
    background-color: #007c35;
    border-bottom-left-radius: 1.33rem;
    border-bottom-right-radius: 1.33rem;
    padding: 0.5rem 1.7rem;
    min-height: 1.33rem;
}

.Dialog .Footer .Buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

.Dialog:not(.Account):not(.Started) .Footer .Buttons button {
    flex: 1 1 auto;
    margin-right: 0.5rem;
    background-color: #fff;
    color: #007c35;
}

.Dialog .Footer .Buttons button:last-child {
    margin-right: 0;
}

/* ERROR, ERROR REPORT */
#errorReportForm {
    display: none;
}


.Dialog.Logout .Description{
    line-height: 1.5;
}

.Dialog.Logout .Description h3{
    text-align: center;
}

/* GAME OVER */
.Overlay.GameOver{

}

.Overlay.GameOver .Dialog{
    width: 60%;
}

.Overlay.GameOver .Dialog .Header .Title{
    font-size: 1.4rem;
}
.Overlay.GameOver .Dialog .Header .Title span{
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.7;
}

.Overlay.GameOver .Dialog.GameOver .Footer .Buttons button{
    min-width: 7.7rem;
    flex: 0;
    display: inline-block;
    margin: auto;
}

.Overlay.GameOver .Dialog .Description > p{
    text-align: center;
    font-size: 0.7rem;
}

.Overlay.GameOver .Dialog .Description .ContactLink{
    text-align: center;
}

.Overlay.GameOver .Dialog .Description .ContactLink .Button{
    width: auto;
    line-height: 2rem;
    margin:1rem auto 0.5rem;
}

.Overlay.GameOver .Dialog .Description .ContactLink .Button:hover{
    color: #fff;
}

.Overlay.GameOver .Dialog .Description .MiniGameResults{
    display: flex;
    height: 12rem;
}

.Overlay.GameOver .Dialog .Description .MiniGameResults > div{
    width: 50%;
    padding: 0.5rem 1.5rem 0.5rem 0.5rem;
}

.Overlay.GameOver .Dialog .Description .MiniGameResults > div > p{
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.8rem;
    width: 90%;
    line-height: 1.3;
    margin-top: 0.5rem;
}

.Overlay.GameOver .Dialog .Description .MiniGameResults .Result{
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.Overlay.GameOver .Dialog .Description .MiniGameResults .Result .Text{
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.7rem;
    font-weight: 600;
    margin: 0.3rem 0;
}

.Overlay.GameOver .Dialog .Description .MiniGameResults .Result .Text .Type{

}
.Overlay.GameOver .Dialog .Description .MiniGameResults .Result .Text .Value{

}

.Overlay.GameOver .Dialog .Description .MiniGameResults .Result .Line{
    content: '';
    position: relative;
    height: calc(0.7rem - 2px);
    border-radius: 1rem;
    border: 1px solid #9ccf76;
    margin-top: 1px;
    width: 100%;
}

.Overlay.GameOver .Dialog .Description .MiniGameResults .Right .Result .Line{
    border: 1px solid #f39832;
}

.Overlay.GameOver .Dialog .Description .MiniGameResults .Result .Line .Fill{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 1rem;
    background-color: #9ccf76;
}

.Overlay.GameOver .Dialog .Description .MiniGameResults .Right .Result .Line .Fill{
    background: #f39832;
}