body {
    background-image: url(/images/entrance/bgtile.gif);
    margin: 0;
    padding: 0;
    font-family: 'mainfont';
}

.buttonbox {
    text-align: center;
    gap: 10px;
    margin-top: 40px;
}

.buttonbox a {
    padding: 10px;
    background-color: #a8a8a8;
    color: black;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    border: outset 1px;
    border-color: #FFFFFF #595959 #595959 #FFFFFF;
}

.centerdiv {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.graybox {
    background-color: #a8a8a8;
    color: #000;
    border: outset 2px;
    border-color: #FFFFFF #595959 #595959 #FFFFFF;
    padding: 8px;
}

.outerdiv {
    display: flex;
    align-items: stretch;
    box-sizing: border-box;
    overflow: hidden;
    height: 200px;
    /* contains floats */
}

.innerdiv {
    width: 100%;
    margin-right: 2px;
    align-items: center;
}

.username {
    background-color: #7e7e7e;
    color: white;
    height: 1.7em;
}

.avatar {
    height: 100%;
}

/* phone */
@media screen and (min-width: 320px) {
    .outerdiv {
        width: 95%;
    }
}

/* anything in between a phone and a laptop */
@media screen and (min-width: 600px) {
    .outerdiv {
        width: 70%;
    }
}

/* desktop laptop etc */
@media screen and (min-width: 1100px) {
    .outerdiv {
        width: 45%;
    }
}

/* 4K, ultrawide, TV and other rich stuff */
@media screen and (min-width: 2000px) {
    .outerdiv {
        width: 30%;
    }
}