div{
	position: relative;
	box-sizing: border-box;
}

html{
	overflow: auto;
	height: 100%;
	margin: 0;
	padding: 0;
}

body {
	margin:0;
	background-color: white;
	padding:0;
	min-height: 100%;
	font-family: Raleway, sans-serif;
	color: #155f8d;
}

.main-container {
	display: none;
	width: 100%;
	left: 0;
	right: 0;
	margin: auto;
	flex-direction: column;
	min-width: 940px;
}
#bigLogin-form{
    margin-right: 50px;
    width: 350px;
    height: 250px;
    margin-top: 50px;
}

.btnBigLogin, #btnLeave{
    font-size: 20px;
    color: white;
    width: 100px;
    cursor: pointer;
    padding: 5px 30px 5px 30px;
    font-weight:bold;
    position: relative;
    background-color: #005D8C;
}

#devicesMenu, #deviceLinks{
    display: none;
    cursor:pointer;
    float:right;
    position: relative;
    bottom: 0px;
}
#noLogin{
    color:#155f8d;
    text-decoration: none;
}
#noLogin:hover{
    text-decoration: underline;
    cursor: pointer; 
}

.bigLogin-container{
    display: none;
    height: 350px;
    width: 400px;
    font-size: 16px;
    position:absolute;
    margin-left: auto;
    margin-right: auto;
    margin-top: 150px;
    top: 0;
    left: 0;
    right: 0;
    border: 1px solid #155f8d;
    text-align: center;
    padding: 30px;
    background-color: lightgray;
    border-radius: 15px;
}

.login-message{
    color:black;
    font-weight: bold;
}

#loginMail, #loginPassword{
    margin-bottom: 7px;
    height: 22px;
    width: 300px;
    padding: 7px;
    font-size: 15px;
    margin-bottom: 10px;
}

#loginPassword{
    margin-bottom: 30px;
}

#banner {
	background-image: url(../img/headers/7.jpg);
	background-size: cover;
	background-position: center 39%;
	height: 350px;
	border-bottom-color: #00558c;
	border-bottom-style: solid;
	border-bottom-width: 8px;
}

.main-container nav.links > * {
	color: white;
	text-decoration: none;
	font-size: 1em;
	margin-left: 20px;
	display: inline-block;
}

header {
    background: white;
    padding: 2px;
    outline-style: solid;
    border-bottom: solid 4px #00558c;
    margin-bottom: 2px;
    height: 40px;
    position: relative;
}

header nav.links{
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    width: 90%;
    color: #00558c;
    text-align: left;
    top: calc(50% - 9px);
    max-width: 1280px;
    background: initial;
    z-index: 1;
}

header .links a {
    text-decoration: none;
    font-weight: 300;
    color: inherit;
    font-size: 14px;
    margin-right: 30px;
}

.main-container main {
	border: solid;
	border-width: 8px 1px 0 1px;
	border-top-color: #4acc2b;
}

footer {
    position: absolute;
    bottom: 0;
    right:0;
    left:0;
    background-color: #155f8d;
    border-top-style: solid;
    border-top-color: #4acc2b;
    border-top-width: 8px;
    padding: 50px 10%;
    height: 250px;
    color: white;
    margin-top: 50px;
}


.main-container #banner .freirelogo {
    float: left;
}

.login-container {
    float: right;
    height: 200px;
    width: 400px;
    font-size: 16px;
    text-align: center;
    padding: 50px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 10px;
}

footer .logos {
    float: right;
    display: flex;
    flex-direction: column;
    text-align: center;
    line-height: 50px;
}

footer .logos img {
    margin: auto;
    max-width: 150px;
}

footer nav a {
    display: block;
    color: white;
}

footer h1 {
    font-size: 20px;
}

footer nav {
    line-height: 32px;
    float: left;
    width: 300px;
}

main h2 {
    text-align: center;
    color: #777;
}

main .game {
    float: left;
    border: 1px solid gainsboro;
    overflow: hidden;
    margin: 10px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    background-color: lemonchiffon;
}

main .game.large {
    width: 490px;
    height: 380px;
}

main .game.large img {
    width: 100%;
    padding-bottom: 57px;
    box-sizing: border-box;
}

main .game.small {
    width: 235px;
    height: 180px;
}

main .game h3 {
    margin: 8px 5px 0 10px;
    font-size: 13px;
}

main .game .bar {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: white;
}

main .game span.author {
    float: left;
    padding: 0px 5px 5px 10px;
    max-width: 90px;
    margin: 0px 10px 5px 0;
}

main .game span {
    font-size: 12px;
}

main .game.small h3 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

main .game.small img {
    width: 100%;
}

#otherLanguages {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: none;
}

.loginContainer input, .loginContainer submit, #g-signin2 {
    display: block;
    width: calc(100% - 30px);
    margin: 5px 15px 5px 15px;
    border: none;
    margin-bottom: 5px;
    background-color: white;
    border-radius: 3px;
    padding: 5px;
    color: black;
    font-size: 12px;
    height: 24px;
    box-sizing: border-box;
    position: relative;
    top: 15px;
}

#btnSubmitLoginForm {
    background-color: #4acc2b;
    cursor: pointer;
    text-align: center;
}

#g-signin2 {
    background: #58D;
    color: white;
    text-align: left;
    width:170px;
    padding: 0;
    overflow: hidden;
}

#lblCurrentUser {
    display: block;
    font-size: 2em;
    margin-bottom: 20px;
}

#btnEditor,#btnLeave {
    display:none;
    float: right;
    margin-right: 8px;
    cursor: pointer;
}

#btnLeave{
    margin-left: 14px;
    height: 20px;
    font-size: 15px;
    padding-bottom: 20px;
}

#welcomeBack {
    display: none;
}

main-header {
    display: block;
    font-weight: bold;
    max-width: 1280px;
    position: relative;
    height: 40px;
}

#search {
    display: initial;
    border-style: none;
    background: #DDD;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    right: 10px;
    top: 4px;
}

span#editorPicksTitle {
    margin-left: 10px;
    font-size: 25px;
}

.titleContainer {
    float: right;
    width: 1070px;
    height: 25px;
}

span#resultsTitle {
    display: none;
    margin-left: 10px;
    font-size: 25px;
}

game-list, package-list {
    max-width: 1280px;
    display: block;
    position: relative;
    clear: both;
}

game-list::after, package-list::after {
    content: "x";
    clear: both;
    visibility: hidden;
    display: block;
}

form#layerLogin, #deviceLinks {
    text-align: left;
    position: absolute;
    overflow: hidden;
    margin-top: 15px;
    right: -5px;
    background-color: #00558c;
    height: 0;
    border-radius: 0px 0px 10px 10px;
    box-sizing: border-box;
    transition: height 0.5s ease-in-out;
}
#deviceLinks{
    display: block;
    position: absolute;
    right: -34px;
    top: 20px;
}

#deviceLinks a {
    color: white;
    font-size: 20px;
    display: block;
    padding: 10px;
}


.loginContainer {
    cursor: pointer;
    float: right;
}


div#languageContainer {
    float: right;
    margin-right: 20px;
}

main .game img.subjectTag {
    position: absolute;
    top: 0;
    left: 0;
    width: 87px;
    padding: 0;
    height: 95px;
}


#seeMore {
    float: right;
    color: inherit;
    cursor: pointer;
    margin-right: 10px;
}


a#logo {
    float: left;
    top: -10px;
    position: relative;
    margin-right: 30px;
}

#logo img {
    position: relative;
}

main {
    padding: 28px 0 500px 0;
}

#banner img {
    position: absolute;
}

#banner #imgContainer {
    position: absolute;
    top: calc(50% - 77px);
    width: 100%;
    max-width: 940px;
    left: 0;
    right: 0;
    margin: auto;
}

.footerContent {
    height: 100%;
    max-width: 1280px;
    margin: auto;
}

.showStatistics .btnStatistics {
    position: absolute;
    width: 24px;
    height: 24px;
    background-image: url(../img/statistics.png);
    bottom: 0;
    right: 0;
}

/* regular desktop styles */

/* mobile only styles when the device is 0-700px in maximum width and is in portrait orientation */
@media only screen and (max-device-width: 770px) and (orientation: portrait){
    .login-message,#loginMail, #loginPassword,#editorPicksTitle,#noLogin,.btnBigLogin{
        font-size: 45px;
    }
    main .game.small, main .game.large {
        display: block;
        width: 600px;
        height: 360px;
        margin: 50px 30px 10px 200px;
    }
    main .game h3 ,main {
        font-size: 30px;
    }
    #btnLeave{
        padding-bottom:40px;
        padding-left: 60px;
        font-size: 30px;
        width: 200px;
    }
    .game span.author{
        font-size: 24px;
    }
    #editorPicksTitle{
        font-size: 45px !important;
    }
    
    #deviceLinks{
        top:60px
    }

    #deviceLinks a {
        font-size:35px;
    }

    #devicesMenu{
        width:50px;
        bottom: -5px;
    }

    .login-message{
        margin-bottom: 70px;
    }

    #loginMainLogo{
        width: 400px;
    }

    #search{
        font-size: 45px;
        max-width: 280px;
    }

    #logo img{
        width: 250px;
    }

    .bigLogin-container{
        height: 750px;
        width: 800px;
        margin: auto;
        bottom: 0;
    }

    #bigLogin-form {
        margin-right: 50px;
        width: 750px;
        height: 650px;
        margin-top: 50px;
    }

    #loginMail, #loginPassword {
        margin-bottom: 7px;
        height: 62px;
        width: 600px;
        padding: 12px;
        margin-bottom: 20px;
    }
    #loginPassword{
        margin-bottom:70px
    }
    .btnBigLogin{
        padding:30px
    }
    header {
        height: 120px;
    }

    header .links a {
        font-size: 30px;
        margin-right: 30px;
    }

}

/* mobile only styles when the device is 0-700px in maximum width and is in portrait orientation */
@media only screen and (max-device-width: 1000px) and (orientation: landscape){
    .login-message,#loginMail, #loginPassword,#editorPicksTitle,#noLogin,.btnBigLogin{
        font-size: 25px;
    }
    main .game.small, main .game.large {
        display: block;
        width: 600px;
        height: 360px;
        margin: 50px 30px 10px 200px;
    }
    main .game h3 ,main {
        font-size: 30px;
    }
    #btnLeave{
        padding-bottom: 28px;
        padding-left: 25px;
        font-size: 22px;
        width: 100px;
    }
    .game span.author{
        font-size: 24px;
    }
    #editorPicksTitle{
        font-size: 30px !important;
    }
    
    #deviceLinks{
        top: 20px;
    }

    #deviceLinks a {
        font-size:35px;
    }

    #devicesMenu{
        width: 40px;
        bottom: 0px;
    }

    .login-message{
        margin-bottom: 10px;
    }

    #loginMainLogo{
        width: 250px;
    }

    #search{
        font-size: 25px;
        max-width: 280px;
    }

    #logo img{
        width: 150px;
    }

    .bigLogin-container{
        height: 400px;
        width: 500px;
    }

    #bigLogin-form {
        margin-right: 0px;
        width: 450px;
        height: 300px;
        margin-top: 0px;
    }

    #loginMail, #loginPassword {
        margin-bottom: 7px;
        height: 22px;
        width: 400px;
        padding: 12px;
        margin-bottom: 20px;
    }
    #loginPassword{
        margin-bottom: 40px;
    }
    .btnBigLogin{
        padding: 10px;
    }
    header {
        height: 47px;
    }

    header .links a {
        font-size: 15px;
        /* margin-top: 18px; */
    }

}

