/* ALL */
body {
	font-family: Calibri, Arial, sans-serif;
	font-size: 14px;
	background: black;
	padding: 0px;
	margin: 0px;

    background-image: url("/media/sgbg.jpg");
    background-position: center 60px;
    background-repeat: no-repeat;
}

#container {
	margin: 0 auto 0 auto;
	padding: 0px;
}

h1 {
	color: white;
	text-align: center;
    margin: 0px;
	font-weight: normal;
	font-size: 33px;
    background: black linear-gradient(black, #1C1C1C);
}

#sg {
	font-weight: bold;
	font-family: "Times New Roman", Georgia, Serif, serif;
}

#header {
	background: linear-gradient(#1C1C1C, black);
	box-shadow: 0 5px 5px rgba(0, 0, 0, 0.8);
	margin-bottom: -1px;
}

#header:after {
	content: "";
	display: block;
	height: 1px;
	background: linear-gradient(to left, black 0%, white calc(50% - 400px), white calc(50% + 400px), black 100%);
}

#header, #footer {
	margin: 0 auto 0 auto;
	width: auto;
	text-align: center;
	font-size: 12px;
	background-color: black;
	color: white;
}

#header a {
	display: inline-block;
	margin: 0 auto;
	min-width: 96px;
	margin-left: 2px;
	margin-right: 2px;
	padding: 4px;
	padding-top: 2px;
	padding-bottom: 2px;
	border-top-left-radius: 0%;
	border-top-right-radius: 0%;
	font-size: 14px;
	text-decoration: none;
	background-color: black;
	border: 1px solid gray;
	border-bottom: none;
	color: #D0D0D0;
}


#headerwhatsnew {
    position: absolute;
}

#selected {
	background-color: #0A1B2A !important;
	border: 1px solid white !important;
	color: white !important;
}

#header a:hover {
	color: #CCCCFF;
	border-left: 1px solid #CCCCFF;
	border-top: 1px solid #CCCCFF;
	border-right: 1px solid #CCCCFF;
}

#content {
	margin: 0 auto 0 auto;

	background-color: rgba(100, 100, 100, 0.15);
	padding: 0px;
	padding-bottom: 15px;
	overflow: auto;
	height: 100%;
}

.entry {
	background-color: white;
	border-top: 2px solid black;
	border-bottom: 1px solid #CCCCFF;
    padding: 5px;
	margin-top: 0px;
	overflow: auto;
}

.entry:first-child {
	border-top: none;
}

h2 {
	margin: -5px;
	padding: 3px;
	color: white;
	background-color: #0A1B2A;
	padding-left: 15px;
}

.entry a {
	color: #0B243B;
}

.entry a:hover {
	color: #045FB4;
}

h3 {
	margin: 0px;
}

ul {
	margin: 0px;
	padding-left: 20px;
}

#ulsquare {
	list-style-type: square;
}

#aboot {
	position: fixed;
	width: 100%;
	text-align: center;
	bottom: 0;
}

#abouttxt {
	text-align: center;

	padding: 2px;
	background-color: black;
	color: white;
	margin: auto;
	margin-bottom: 15px;
	box-shadow: 0 -3px 3px rgba(0, 0, 0, 0.8);
}

#footer {
	position: fixed;
	bottom: 0;
	width: 100%;
	text-align: center;
	height: 15px;
	box-shadow: 0 -3px 3px rgba(0, 0, 0, 0.8);
}

#footer, #aboot, #abouttxt a {
	color: white;
}

#footer a {
    text-decoration: underline;
    color: white;
}

#about {
	display: inline;
	cursor: pointer;
	text-decoration: underline;
}

.popup {
	visibility: hidden
}

.bModal {
	visibility: hidden
}

.table {
	border-top: 1px solid #CCCCFF;
	width: 100%;
	overflow: hidden;
}

.colLeft {
	float: left;
}

td:nth-child(1) {
	width: 30%;
	font-weight: bold;
	color: #0B243B;
}

/* DESKTOP */
@media only screen and (min-width: 801px) {
	body {
		min-width: 800px;
		padding: 0px;
		margin: 0px;
	}

    ul {
        list-style-type: none;
    }

	#content {
		width: 800px;
        border-left: 2px solid #0A1B2A;
        border-right: 2px solid #0A1B2A;
	}

    .entry {
        margin: 0px 20px 20px 20px;
    }

    .text {
        float: left;
        width: 80%;
    }

    .entry img {
        max-height: 200px;
        float: right;
        margin-top: 10px;
        max-width: 145px;
    }

    .colRight {
        margin-left: 50%;
    }

    #abouttxt {
        width: 800px;
    }

    #headerwhatsnew {
        right: calc(50% - 410px);
    }

    #selected {
        border-bottom: 2px solid #0A1B2A !important;
        margin-bottom: -2px !important;
    }

    #headerwhatsnew {
        top: 2px;
    }

    #headerwhatsnew img {
        -webkit-backface-visibility: hidden;
        -webkit-transform: translateZ(0);
        transition: transform 0.2s;
        transform: translateZ(0) scale(0.8);
    }

    #headerwhatsnew img:hover {
        transform: scale(0.9);
    }
}

/* MOBILE */
@media only screen and (max-width: 800px) {

    body {
        min-width: 375px;
    }

    #headerwhatsnew {
        position: fixed;
        right: 0.1em;
        bottom: 0.5em;
    }

    #headerwhatsnew img {
        width: 4em;
        height: 4em;
    }

    #header a {
        display: inline-block;
        width: calc(33% - 1.5em);
        padding: 0.5em;
        margin: 0.5em 0 -3px 0;
        height: 1.5em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Full border around top 3 links */
    #header a:nth-child(-n+3) { border: 1px solid gray; }
    a:nth-child(-n+3)#selected  { border: 1px solid white !important; }
    a:nth-child(n+4)#selected  {
        border: 1px solid white !important;
        border-bottom: 2px solid #0A1B2A !important;
        margin-bottom: -5px !important;
    }

    #header a:nth-child(3)::after {
        content: '\A';
        white-space:pre;
    }

	#content {
		width: 100%;
		border: none;

        padding-bottom: 2em;
	}

    .entry {
        margin-left: 0px;
        margin-right: 0px;
        margin-bottom: 8px;
    }

    .entry .text {
        width: calc(100% - 110px);
        display: inline-block;
        text-align: justify;
        text-justify: inter-word;
    }

    .entry .text p {
        min-height: 150px;
    }

    .entry img {
        max-width: 100px;
        max-height: 150px;

        margin: 10px auto 0;
        display: inline-block;
        vertical-align: top;

        float: right;
    }

    .table {
        width: calc(100% + 100px);
        overflow: auto;
        text-align: left;
    }

    .colLeft {
        width: 50%;
        display: inline-block;
    }
    .colRight {
        width: 50%;
        display: inline-block;
    }
    #abouttxt {
        width: 100%;
    }
}