main header {
    width: 70%;
}

main .overlay{
    z-index: 3;
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.65);
    display:flex;
    justify-content: center;
    align-items: center;
}

main .login, main .register, .passwordDialog {
    width: 500px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    margin-top: 0;
    overflow: visible;
}

.beta {
    background-color: var(--main-color);
    padding: 0.5rem 2rem;
    text-align: center;
    margin: 0 -3rem;
}

.beta::before {
    content: "warning_amber";
    font-family: "Material Icons";
    margin-right: 0.5rem;
    vertical-align: top;
    font-size: 20px;
}

.margin-top {
    margin-top: 1rem;
}

nav h4, .activeGameContainer h4 {
	text-align: center;
}

.activeGameContainer h4 {
    padding: 1.33rem 0;
}

nav, .activeGameContainer h4 {
    margin-bottom: 2rem;
    border-bottom: 1px solid #BDBDBD;
}

nav h4 {
    grid-column-start: 2;
}

.tab ul {
    justify-content: space-around;
}

.menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    grid-column-start: 3;
    cursor: pointer;
}

.menu ul {
    list-style: none;
    padding: 0;
}

.menu li.dropdown {
    color: rgb(48,112,2);
    text-decoration: none;
    font-size: 18px;
    line-height: 32px;
    position: relative;
}

.menu li.dropdown li {
    display: none;
    padding: 0.5rem 1rem;
    box-sizing: border-box;
    color: black;
}

.menu li.dropdown li a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.menu li.dropdown ul {
    min-width: 160px;
    background-color: white;
    position: absolute;
    right: 0;
    -webkit-box-shadow: 0px 5px 5px -5px rgba(0,0,0,0.5);
    -moz-box-shadow: 0px 5px 5px -5px rgba(0,0,0,0.5);
    box-shadow: 0px 5px 5px -5px rgba(0,0,0,0.5);
    z-index: 2;
}

.menu li.dropdown:hover li {
    display: block;
}

.menu li.dropdown li:hover {
    background-color: #EEEEEE;
}

.menu li.dropdown .material-icons {
    padding-right: 0.2rem;
    width: 28px;
    height: 28px;
    font-size: 28px;
}

.menu li.dropdown div::after {
    content: "expand_more";
    font-family: "Material Icons";
    line-height: 32px;
    height: 32px;
    display: inline-block;
    vertical-align: middle;
    font-size: 20px;
    -webkit-font-feature-settings: 'liga' 1;
    -moz-font-feature-settings: 'liga' 1;
    font-feature-settings: 'liga' 1;
}

.games, .filter, nav {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr;
    column-gap: 1rem;
    row-gap: 1rem;
}

.game {
    background-color: #FAFAFA;
    padding: 1rem;
    box-sizing: border-box;
    min-height: 160px;
}

.game .material-icons {
    font-size: 20px;
}

.game.no-data {
    vertical-align: top;
    position: relative;
    background-color: transparent;
    border: 2px dashed #BDBDBD;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
}

.game.no-data .fab {
    background-color: #FFC107;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -24px;
    margin-top: -24px;
    -webkit-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.33);
    -moz-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.33);
    box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.33);
}

.game.no-data .fab .material-icons {
    color: white;
    font-size: 32px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -16px;
    margin-top: -16px;
}

.filter {
    margin-bottom: 2rem;
}

.filter select {
    padding: 0.25rem;
    width:100%;
}

.filter-item {
    place-self: flex-end stretch;
}

.filter-item p {
    font-weight: bold;
}

table {
    width: 100%;
    border-collapse: collapse;
}

.game table td {
    padding-top:1rem;
}

.game table th {
    text-align: left;
    padding-bottom: 1rem;
    border-bottom: 1px solid #BDBDBD;
}

.game table .right {
    text-align: right;
    min-width: 50%;
}

.game table th img {
    max-width: 24px;
    max-height: 14px;
}

.game table td button {
    width: 100%;
}

h1#logo::before, h1#logo::after {
    content: "";
    background-image: url("../img/laub.png");
    background-size: 50px 50px;
    display: inline-block;
    width: 50px;
    height: 50px;
    margin: 1rem;
    vertical-align: middle;
}

table .btn {
    border: none;
    border-radius: 4px;
    padding: 0.33rem;
    background-color: #FFC107;
    color: white;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

table .btn.disabled {
    cursor: not-allowed;
}

table .btn.observe, table .btn.disabled {
    background-color: #BDBDBD;
}

table .fa-lock {
    margin-right: 0.25rem;
}

.feedback{
    position: absolute;
    width: 400px;
    min-height: 400px;
    padding: 2.5rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    z-index: 3;
    border-radius: 3px;
    -webkit-box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.33);
    -moz-box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.33);
    box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.33);
}

.feedback textarea{
    resize:none;
}

.feedback .close{
    display: none;
    position: absolute;
    right: 0;
    top: 0;
}

.rating-container{
    display: flex;
    justify-content: center;
}

.rating-container span{
    color: var(--main-color);
    font-size: 50px;
    margin: 0.5rem;
    cursor: pointer;
}

@media screen and (max-width: 1439px){
    main header {
        width: 75%;
    }
}

@media screen and (max-width: 1197px){
    main header {
        width: 80%;
    }
}

@media screen and (max-width: 1023px){
    main header {
        width: 90%;
    }
}

@media screen and (max-width: 953px){
    main header {
        width: 95%;
    }
}

@media screen and (max-width: 850px), screen and (max-height: 600px){
    .bg.blurred {
        background: white;
    }

    main {
        justify-content: flex-start;
        height: initial;
    }

    .beta{
        margin: 0 -2rem;
    }

    main header {
        -webkit-box-shadow: none;
        -moz-box-shadow: none;
        box-shadow: none;
        overflow: visible;
        width: 100%;
        margin-top: 0;
        padding: 2rem;
    }

    main footer {
        margin-top: auto;
    }

    .feedback{
        position: fixed;
        inset: 0;
        transform:none;
        padding: 4rem;
        box-shadow: none;
        width: auto;
        height: auto;
        border-radius: 0px;
    }

    .feedback > *{
        padding: 1.5rem;
    }
    .feedback form {
    	padding: 0;
    }

    .feedback h2{
        font-size: xx-large;
    }

    .feedback .close {
        display: block;
    }
}

@media screen and (max-width: 818px){
    .games, .filter, nav {
        grid-template-columns: 1fr 1fr;
    }

    nav h4, .activeGameContainer h4 {
        text-align: left;
    }

    .filter-item:last-of-type, nav h4 {
        grid-column: 1 / span 2;
    }

    .filter-item p {
        margin-top: 0;
    }
}

@media screen and (max-width: 627px){
    .games {
        grid-template-columns: 1fr;
    }

    main .login, main .register, .passwordDialog {
        padding: 2rem;
        width: 80%;
    }
}

@media screen and (max-width: 518px){
    h1#logo::before, h1#logo::after {
        background-size: 32px 32px;
        width: 32px;
        height: 32px;
    }

    h1#logo::before {
        margin: 1rem 0.75rem 1rem 0;
    }

    h1#logo::after {
        margin: 1rem 0 1rem 0.75rem;
    }

    .filter {
        grid-template-columns: 1fr;
    }

    .filter-item:last-of-type {
        grid-column: 1;
    }

    .filter-item p {
        text-align: center;
    }

    main .login, main .register, .passwordDialog {
        padding: 2rem;
        width: 90%;
    }
}

@media screen and (max-width: 443px){
    h1#logo::before, h1#logo::after {
        background-size: 24px 24px;
        width: 24px;
        height: 24px;
    }

    h1#logo {
        font-size: 27px;
    }

    .game {
        width: 100%;
    }
}

@media screen and (max-width: 403px){
    h1#logo {
        font-size: 22px;
    }
}

@media screen and (min-width: 1800px){
    main header{
        width: 55%;
        font-size: larger;
    }

    .game table th img {
        max-width: 40px;
        max-height: 30px;
    }
}

@media screen and (min-width: 2500px){
    main header{
        width: 45%;
    }
}

@media screen and (max-height: 450px){

    main .register button, main .login button{
        padding: 0.5rem;
        margin-bottom: 0;
    }

    main .register h2, main .login h2{
        margin-bottom : 0.8rem;
    }

    img#logo-register, img#logo-login{
        width: 40px;
    }

    main .register input, main .login input{
        margin-bottom: 0.8rem;
        padding: 0.5rem;
    }
}

@media screen and (max-height: 386px){

    main .register, main .login{
        height: 98%;
        overflow-y: scroll;
    }
}