:root {
    /* Colors */
    --color-bg: #101010;
    --color-bg-fallback: #000;
    --color-bg-image: url(https://cdn-azure.al-group.uk/midnight-mafia.com/_NewFramelessLayout/assets/img/BG_Nighttime.jpg);
    --color-box-bg: rgba(21, 25, 26, 0.72);
    --color-box-border: rgba(210, 210, 210, 0.1);
    --color-box-shadow: rgba(0, 0, 0, 0.75);
    --color-text: #fff;
    --color-link: #aaa;
    --color-main: #5e865e;
    --color-text-secondary: #ccc;
    --color-dark-bg: #151515;
    --color-gradient-start: #333333;
    --color-gradient-end: #212121;
    --color-box-top: #2d2d2d;
    --color-block-text: #666;
    --color-box-stats-text: #bbb;
    --color-input-border: #444;
    --color-select-border: #636161;
    --color-hover-bg: #2e4b2e;
    --color-hover-shadow-inset: #111;
    --color-hover-shadow: #555;
    --color-focus-border: #43402c;
    --color-focus-shadow: #394d54;
    --color-fsi-bg: rgba(1, 1, 1, 0.35);
    --color-leaderboard-bg: rgba(0, 0, 0, 0.2);
    --color-leaderboard-bg-even: rgba(0, 0, 0, 0.05);
    --color-leaderboard-hover: #2e4b2e;
    --login-bg: rgba(10, 10, 10, 0.5);
    --heading-border: 1px dashed rgba(255, 255, 255, 0.3);

    /* Fonts */
    --font-main: 'Fira Sans Condensed', sans-serif;
    --font-heading: 'Fira Sans Condensed', sans-serif;
    --base-font-size: 14px;
    --small-font-size: 10px;
    --algroup-large-font-size: 40px;
    --algroup-small-font-size: 24px;

    /* Spacing & Dimensions */
    --padding-small: 4px;
    --padding-medium: 8px;
    --padding-large: 12px;
    --margin-small: 2px;
    --margin-medium: 4px;
    --margin-large: 14px;
    --fsi-width: 44px;
    --fsi-height: 34px;
    --login-input-width: 180px;
    --box-width-default: 1200px;
    --box-width-narrow: 95%;

    /* Border Radius */
    --border-radius-small: 4px;
    --border-radius-box: 8px;

    /* Shadows */
    --box-shadow-box: 0 0 85px 3px var(--color-box-shadow);
    --box-shadow-input: inset 0 0 6px #000, 0 0 4px #454545;
    --box-shadow-login: 0 0 8px 0 rgba(0, 0, 0, 0.5);
    --player-hover-shadow: 0 0 15px var(--color-leaderboard-hover);

    /* Transitions */
    --transition-fast: all 0.1s ease;
    --transition-medium: all 0.2s ease;
    --transition-slow: all 0.5s ease;

    /* Gradients */
    --loginbox-base: #333333;
    --loginbox-gradient: linear-gradient(to bottom right, var(--loginbox-base) 0%, var(--color-gradient-end) 100%);
}

/*EXTERNAL FONTS*/
@font-face {
    font-family: 'Heavitas';
    src: url('../Fonts/Heavitas.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: var(--color-main);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-main);
}

.topIcon{
    font-family: "Font Awesome 6 Pro" !Important;
    color: var(--color-link) !Important;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    color: white;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    font-size: 24px;
    user-select: none;
}

.loader {
    border: 16px solid #f3f3f3;
    border-top: 16px solid var(--color-main);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Desktop vs Mobile */
.hideForDesktop {
    display: none;
}
@media only screen and (max-width: 767px) {
    .hideForDesktop {
        display: unset;
    }

    .hideForMobile {
        display: none;
    }
}

@media (min-width: 768px) {
    .desktopStyle {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
        padding: 16px;
        padding-top: 4px;
    }
}

/* Media Queries */
@media only screen and (max-width: 480px) {
    .qtip-dark,
    .qtip-largetext {
        font-size: var(--small-font-size) !important;
        padding-right: 10px !important;
    }

    .algroupGaming span {
        font-size: var(--algroup-small-font-size) !important;
    }

}

@media only screen and (max-width: 639px) {
    .pure-u-1-3,
    .pure-u-8-24,
    .pure-u-12-24 {
        width: 100% !important;
    }

    #boxStats {
        font-size: 12px !important;
    }
}

@media (min-width: 640px) and (max-width: 780px) {
    .logininput {
        width: 100% !important;
    }
}

@media only screen and (max-width: 1198px) {
    .algroupGaming {
        width: 100% !important;
    }

    .padding-top {
        padding: 50px 0 0 !important;
    }

    #box {
        width: var(--box-width-narrow) !important;
    }

    .loginBox {
        font-size: 11px;
    }

    .fsi {
        margin-bottom: 5px;
        margin-left: 5px !important;
        margin-right: 5px !important;
    }
}

@media only screen and (max-width: 480px) {
    .fsi {
        margin-bottom: 5px;
        margin-left: 2px !important;
        margin-right: 2px !important;
    }
}

/* Global Styles */
.padding-top {
    padding: 0;
}

* {
    box-sizing: border-box;
}

*:focus {
    outline: none;
}

body {
    background-color: var(--color-bg);
    background: var(--color-bg-image) no-repeat center center fixed var(--color-bg-fallback) !important;
    margin: 0;
    padding: 0;
}

#box {
    border: 2px solid var(--color-box-border);
    width: var(--box-width-default);
    margin: auto;
    background: var(--color-box-bg);
    color: var(--color-text);
    text-align: center;
    border-radius: var(--border-radius-box);
    overflow: hidden;
    box-shadow: var(--box-shadow-box);
}

label {
    cursor: pointer;
}

ul,
li {
    padding: 0;
    margin: 0;
}

.col-sm-2 {
    max-width: 100%;
}
.social_login
{
    margin-top: 10px;
}
.social_login i
{
    float: left;
    width: 25px;
    border-radius: 5px;
    padding:5px 0px;
    color: #fff;
    text-align: center;
    font-size: 12px;
}
.social_login i.fa-facebook
{
    background: #3a589a;
}
.social_login i.fa-twitter
{
    background: #4099ff;
}
.social_login i.fa-google
{
    background: #e9544f;
}
.social_login i.fa-microsoft
{
    background: #00A4EF;
}
.social_login i.fa-microsoft
{
    background: #00A4EF;
}

.social_login i.fa-amazon
{
    background: #FF9900;
}
.social_login i.fa-discord
{
    background: #7289DA;
}


html,
.box td,
.pure-g [class *= "pure-u"] {
    font: var(--base-font-size) var(--font-main);
}

button,
input,
select,
.sub,
textarea,
option {
    font: var(--base-font-size) var(--font-main);
    color: var(--color-text);
}

.algroupBottomBox {
    height: 20px;
    color: #8b8484;
}

.promoVehicle {
    width: 99%;
}

.promoVehicleText {
    width: 99%;
    font-family: var(--font-heading);
    color: var(--color-text-secondary);
}

.promoVehicleTextNew {
    width: 99%;
    font-family: var(--font-heading);
    color: #ffffff;
    text-shadow: 2px 2px 4px black;
    font-size: 22px;
    opacity: 1.0;
}

#algroupGamingLogo{
    color: var(--color-link);
    font-family: 'Heavitas', sans-serif;
    font-size: 38px;
}

#leftBox {
    position: absolute;
    top: 14px;
    left: 30px;
    text-align: left;
    font-family: var(--font-heading);
}

#rightBox {
    position: absolute;
    top: 14px;
    right: 30px;
    text-align: right;
    font-family: var(--font-heading);
}

#leftBox a:link,
#leftBox a:visited,
#leftBox a:active,
#rightBox a:link,
#rightBox a:visited,
#rightBox a:active {
    color: var(--color-link);
    font-weight: bold;
}

#leftBox a:hover,
#rightBox a:hover {
    color: var(--color-main);
    font-weight: bold;
    text-decoration: none;
}

.algroupGaming {
    text-align: center;
    padding: var(--padding-small);
    padding-bottom: 8px;
    margin-left: auto;
    margin-right: auto;
    width: var(--box-width-default);
    color: var(--color-link);
    position: relative;
}

.algroupGaming span {
    font-family: var(--font-heading);
    font-size: var(--algroup-large-font-size);
    color: var(--color-main);
}

.algroupGaming i {
    font-family: var(--font-heading);
    color: var(--color-main);
    padding-bottom: 4px;
}

@-moz-keyframes spin {
    100% {
        -moz-transform: rotate(360deg);
    }
}

@-webkit-keyframes spin {
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

#boxContent {
    overflow: hidden;
    padding-bottom: 20px;
}

#boxContent .col {
    margin-bottom: -99999px;
    padding-bottom: 99999px;
}

input,
textarea,
button {
    color: var(--color-text);
    border: 1px solid var(--color-input-border);
    padding-left: 8px;
    padding-right: 8px;
    background-color: var(--color-dark-bg);
}

input {
    transition: var(--transition-fast);
    padding-top: 4px;
    padding-bottom: 4px;
}

select {
    transition: var(--transition-fast);
    color: var(--color-text);
    border: 1px solid var(--color-select-border);
    padding: 2px;
    background-color: var(--color-bg);
}

.sub,
button {
    transition: var(--transition-fast);
    margin-top: 4px;
    padding-left: 8px;
    padding-right: 8px;
    cursor: pointer;
    box-shadow: var(--box-shadow-input);
}

textarea {
    font-size: 12px;
}

.sub:hover,
input:hover,
textarea:hover,
button:hover {
    background-color: var(--color-hover-bg) !important;
    box-shadow: inset 0 0 6px var(--color-hover-shadow-inset),
    0 0 6px var(--color-hover-shadow);
}

.sub:focus,
input:focus,
textarea:focus,
button:focus {
    background-color: var(--color-hover-bg) !important;
    border-color: var(--color-focus-border) !important;
    box-shadow: inset 0 0 6px var(--color-hover-shadow-inset),
    0 0 6px var(--color-focus-shadow);
}

.fancy {
    transition: var(--transition-slow);
}

.hover:hover {
    opacity: 1 !important;
    transition: var(--transition-medium);
}

.fade {
    opacity: 0.4;
}

.section {
    clear: both;
    padding: 0;
    margin: 0;
}

.col {
    display: block;
    float: left;
    margin: 0;
}

.col:first-child {
    margin-left: 0;
}

.group:before,
.group:after {
    content: "";
    display: table;
}

.group:after {
    clear: both;
}

.group {
    zoom: 1;
}

#boxTop {
    background-color: var(--color-box-top);
    padding: 8px;
}

#boxTop .block {
    background-color: var(--color-box-top);
    height: 30px;
    font-size: 12px;
    font-family: var(--font-main);
    color: var(--color-block-text);
}

#boxStats {
    background-color: var(--color-box-top);
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 14px;
    font-family: var(--font-main);
    color: var(--color-box-stats-text);
    text-align: center;
}

a:link img,
a:active img,
a:visited img,
a:hover img {
    border: 0;
}

a:hover,
a:active,
a:focus,
a:active {
    outline: none;
}

a:link,
a:visited,
a:active {
    color: var(--color-text);
    text-decoration: none;
}

a:hover {
    color: var(--color-text);
    text-decoration: underline;
}

.fsi {
    background: var(--color-fsi-bg);
    border-radius: var(--border-radius-small);
    display: inline-flex;      /* Changed from inline-block to inline-flex */
    justify-content: center;   /* Centers child elements horizontally */
    align-items: center;       /* Centers child elements vertically */
    height: var(--fsi-height);
    width: var(--fsi-width);
    margin-left: 14px;
    margin-right: 14px;
    cursor: pointer;
    opacity: 0.75;
    border: 1px solid var(--color-main);
}

.fsi:hover {
    opacity: 1;
}

.algroupIconHeader{
    color: #666666;
}

.fsiIcon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: var(--color-fsi-bg);
    border-radius: var(--border-radius-small);
    height: var(--fsi-height);
    width: var(--fsi-width);
    margin-left: 14px;
    margin-right: 14px;
    cursor: pointer;
    opacity: 0.75;
    border: 1px solid var(--color-main);
}

.fsiIcon i {
    font-size: 24px;
    color: inherit;
    background-position: center;
    background-size: 24px 24px;
    background-repeat: no-repeat;
    /* Remove the fixed line-height so flexbox can center properly */
    line-height: normal;
    text-align: center;
}

.loginContentDescription{
    width: 100% !important;
}

.loginBox {
    background: var(--loginbox-base) var(--loginbox-gradient);
    border-radius: var(--border-radius-small);
    width: var(--box-width-narrow);
    min-height: 100px;
    box-shadow: var(--box-shadow-login);
    text-align: left;
    padding: 12px;
}

.heading {
    color: var(--color-main);
    font-family: var(--font-heading);
    font-size: 16px;
    border-bottom: var(--heading-border);
    display: block;
    padding-bottom: 5px;
    margin-top: 0;
    padding-top: 0;
}

.headingOpacity {
    color: var(--color-main);
    font-family: var(--font-heading);
    font-size: 16px;
    border-bottom: var(--heading-border);
    display: block;
    padding-bottom: 5px;
    margin-top: 0;
    padding-top: 0;
    z-index: 1;
    opacity: 1 !important;
}

.playerblock {
    display: inline-block;
    margin-right: 12px;
    margin-bottom: 4px;
    opacity: 0.5;
}

.playerblock:hover {
    opacity: 1;
    box-shadow: var(--player-hover-shadow);
}

.contentblock {
    width: 180px;
    text-align: left;
    font-family: var(--font-heading);
    color: var(--color-text-secondary);
}

.logininput {
    border-radius: var(--border-radius-small);
    background-color: var(--login-bg);
    border: 1px solid var(--color-main);
    width: var(--login-input-width);
    margin-bottom: 4px;
    margin-top: 2px;
}

.loginbutton {
    border-radius: var(--border-radius-small);
    background-color: var(--login-bg);
    border: 1px solid var(--color-main);
    margin-bottom: 4px;
    margin-top: 2px;
    padding: 2px;
    padding-left: 12px;
    padding-right: 12px;
}

.gameLeaderboard td {
    padding: 4px;
    font-family: var(--font-main);
    font-size: 12px;
}

.gameLeaderboard tr {
    background-color: var(--color-leaderboard-bg);
    color: var(--color-text-secondary);
}

.gameLeaderboard tr:nth-child(even) {
    background-color: var(--color-leaderboard-bg-even);
}

.gameLeaderboard tr:hover {
    background-color: var(--color-leaderboard-hover);
    color: var(--color-text);
}

body {
    min-height: 100%;
}

/*LIGHTBOX*/

.lightboxPictures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    justify-content: center;
}

.lightboxPictures img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}
