/** Override */

:root {
  --cassiopeia-color-primary: #ff0000;
  --cassiopeia-color-link: #ff0000;
  --cassiopeia-color-hover: #393939;
}

body {
    background-color: snow !important;
}

hr {
    border: 4px solid #f7f2f2;
    opacity: 1;
}

.container-header {
    background: none;
    background-color: #f7f7f7 !important;
}

.card {
    background: none;
    background-color: #393939 !important;
    color: white;

    border: 6px solid #383838 !important;
}

.card .card-header {
    background-color: #ff0000 !important;
    color: white;

    border-bottom: 3px solid #dfe3e7 !important;
}

.card .card-body {
    border-bottom: 3px solid #dfe3e7 !important;
}

.sidebar-right.card a,
.sidebar-right.card a:focus,
.sidebar-right.card a:visited {
    color: white;
}

.sidebar-right.card a:hover,
.sidebar-right.card a[aria-current=page],
.sidebar-right.card li.nav-item.active > a:first-child {
    color: #ff0000;
}

.menu {
    background-color: #393939 !important;
}

header > .grid-child {
    background-image: url(../images/retro_games_v3_banner.png);

    background-repeat-y: no-repeat;
    background-position-x: right;
    background-size: auto 100%;
    background-repeat-x: no-repeat;
    background-repeat: no-repeat;
}

header .brand-logo img {
    background-color: #f7f7f7;
    border-radius: 16px;
}

footer {
    background-color: #393939 !important;
    background-image: none !important;
}

footer .footer2 img {
    max-width: 100px;
    height: auto;
}

footer .footer2 a {
    display: inline-block;
    text-align: center;

    padding: 10px;
    margin: 8px;
    margin-bottom: 0px;
    margin-right: 16px;
}

footer .footer2 .whois {
    border-radius: 4px;
}

footer .footer2 .support {
    max-width: 150px;
}

.com-content-article__body img,
.com-content-category-blog__item img {
    padding: 4px;
    margin: 12px;
    border: 4px solid #dfe3e7;
    cursor: pointer;
}

.btn {
    border: 4px solid transparent;
}

.btn-secondary,
.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    border-color: #dfe3e7;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    color: #ff0000;
}

.item-content .readmore {
    clear: both;
    margin-left: 12px;
}

ul.pagination {
    justify-content: center !important;
}

.com-content-category-blog__pagination {
    clear: both;
}

.com-content-category-blog__counter {
    float: none !important;
    text-align: center;
}

/** Online Games Module */

#online-games img {
    width: 64px;
    height: 64px;
}

#online-games .flex-column {
    width: 50%;
    text-align: center;
    margin-bottom: 12px;
}

/** Content Extra */

.extra img {
    border-width: 0px;
}

.extra img.icon {
    width: 64px;
    height: 64px;
    margin: 0px;
}

.extra h3 {
    text-align: center;
}

.extra .tile {
    text-align: center;
    margin-right: 12px;
}

.extra .tile .d-flex {
    justify-content: center;
}

.extra iframe {
    margin-left: auto;
    margin-right: auto;
    display: block;
	max-width: 100%;
}

.extra p {
    text-align: center;
}

.extra .tile h3 {
    font-size: 1rem;
}

.extra .flex-row {
    justify-content: center;
}

.extra .btn {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.extra .cheat p {
    text-align: left;
}

.com-content-category.category-list .cat-children > h3 {
    display: none;
}

.com-content-article .com-content-article__body code {
    background-color: #393939 !important;
    color: #eaeaea;
    border: 4px solid #dfe3e7;
    font-family: monospace;
    white-space: pre;
    display: block;
    padding: 8px;
}

/** MOD_DOWNLOADS */

.mod-downloads .tile {
    min-width: 275px;
    width: auto;
    min-height: 200px;
    height: auto;
    margin-right: 1rem;
}

.mod-downloads .tile .icon {
    height: 32px;
    width: auto;
    margin-bottom: 10px;
}

.mod-downloads .tile .icon-link {
    height: 32px;
    width: auto;
    margin-right: 8px;
}

.mod-downloads a {
    color: #ff0000;
}

.mod-downloads a:hover {
    color: white;
}

.mod-downloads h3 {
    font-size: 1rem;
}

.bottom-a.module-light {
    background: transparent !important;
    border-width: 0px !important;
}

.bottom-a.module-light .card-header {
    background-color: #f7f2f2 !important;
    color: rgb(34, 38, 42) !important;
}

.bottom-a.module-light .card-body {
    border-bottom-width: 0px !important;
}

.mostread.mod-list li {
    display: flex;
}

.mostread.mod-list img {
    margin-right: 8px;
    width: 32px;
    height: 32px;
}

.mod-tagspopular-cloud span.tag {
    margin-right: 10px;
}

/** Image modal, courtesy of w3schools */

#image-modal {
    z-index: 10;
}

#image-modal img {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

#image-modal img:hover {opacity: 0.7;}

#image-modal.modal {
    display: none;
    position: fixed;
    z-index: 10;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}

#image-modal .modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

#image-modal #caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

#image-modal .modal-content, #image-modal #caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes image-modal-zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

#image-modal .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

#image-modal .close:hover,
#image-modal .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@media only screen and (max-width: 700px){
    #image-modal .modal-content {
        width: 100%;
    }
}

@media only screen and (max-width: 500px){
    footer .footer2 {
        flex-direction: column;
    }
}

@media only screen and (max-width: 768px) {
    header .navbar.navbar-expand-md {
        width: 100%;
    }

    header .navbar-collapse {
        text-align: center;
    }

    header .nav-item a {
        font-weight: 600;
        font-size: 1.5rem;
    }
}