main > .container {
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}

.mosaicrow {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    margin-bottom: 1px;
}

.mosaiccell {
    width: 17px;
    height: 17px;
    border-radius: 4px;
    border: 1px solid black;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
    position: relative;
    margin-right: 3px;
    margin-bottom: 3px;
}

.mosaiccell::after {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 0.5rem;
}

@media (min-width: 506px) {
    .mosaiccell {
        width: 25px;
        height: 25px;
    }
    .mosaiccell::after {
        font-size: 0.8rem;
    }
}

@media (min-width: 768px) {
    .mosaiccell {
        width: 35px;
        height: 35px;
    }
    .mosaiccell::after {
        font-size: 1.2rem;
    }
}

@media (min-width: 992px) {
    .mosaiccell {
        width: 50px;
        height: 50px;
    }
    .mosaiccell::after {
        font-size: 1.5rem;
    }
}


.cube {
    margin-right: 10px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}

.mosaictable.small .mosaiccell {
    width: 10px;
    height: 10px;
}
.mosaictable.small .mosaiccell::after {
    font-size: 0.3rem;
}

.mosaictable.small .cube {
    margin-right: 3px;
    margin-bottom: 3px;
}



.cuberow {
    display: flex;
}

.mosaiccell.R {
    background-color: rgb(255, 0, 0);
}
.mosaiccell.R::after {
    content: 'R';
    color: rgb(128, 0, 0);
}

.mosaiccell.G {
    background-color: rgb(0, 255, 0);
}
.mosaiccell.G::after {
    content: 'G';
    color: rgb(0, 100, 0);
}
.mosaiccell.B {
    background-color: rgb(0, 0, 255);
}
.mosaiccell.B::after {
    content: 'B';
    color: rgb(0, 0, 128);
}
.mosaiccell.Y {
    background-color: rgb(255, 255, 0);
}
.mosaiccell.Y::after {
    content: 'Y';
    color: rgb(128, 128, 0);
}
.mosaiccell.O {
    background-color: rgb(255, 153, 0);
}
.mosaiccell.O::after {
    content: 'O';
    color: rgb(153, 76, 0);
}
.mosaiccell.W {
    background-color: rgb(255, 255, 255);
}
.mosaiccell.W::after {
    content: 'W';
    color: rgb(180, 180, 180);
}

.bordered-img { 
    border: 1px solid black;
}

.next-prev-buttons {
    display: flex;
    justify-content: space-between;
}

.cube-empty {
    position: relative;
}

.cube-empty::before {
    content: '';
    display: block;
    position: absolute;
    top: -4px;
    bottom: -2px;
    left: -4px;
    right: -2px;
    border: 2px solid #F00;
    border-radius: 8px;
}

.mosaicpreview {
    text-align: center;
}

.mosaicpreview img {
    border: 1px solid #000;
    max-height: 200px;
}


.sameasprev .mosaiccell:before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: fuchsia;
}