html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    color: #fff;
}
#tp-menu {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
}

#tp-menu .gradient {
    background: url('images/greyh.png') repeat-x;
    line-height: 30px;
    font-weight: bold;
    text-align: center;
}

#tp-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: normal; /* ← this is the key */
}

#tp-menu a:hover {
    color: #990000;
}
.warning{
    color:#FF0000;
    font-weight:bold;
    text-decoration:none;
}
.table2px {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px; 
	font-style: normal;
	color: #FFFFFF;
	border-collapse: collapse;
	background-repeat: no-repeat;
background-size: 100%;
}
.inbox-head { font-size: 10px; font-weight: normal; }
h1 {
    font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px;
	font-style: normal;
	color: #FFFFFF;
	font-style: bold;
}
h2 {
    font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px;
	font-style: normal;
	color: #FFFFFF;
	font-style: bold;
}
.foot {
	border: 1px solid #666;
	font-size: 9px;
}
.foot a {
	color: #CCC;
	text-decoration: none;	
	font-weight: bold;
	font-style: italic;
	border-bottom: 1px solid #333;
}
.custombutton {
	font-family: Verdana;
	font-size: 10px;
	font-weight: bold;
	height: 20px;
	width: 92px;
	background-image: url(images/button.gif);
	color: #FFFFFF;
	vertical-align: middle;
	border: 0px solid #000000;
}
a:link {
	text-decoration: none;
	color: #33CCFF;
	font-weight: bold;
}
a:visited {
	text-decoration: none;
	color: #33CCFF;
	font-weight: bold;
}
a:active {
	text-decoration: none;
	color: #33CCFF;
	font-weight: bold;
}
a:hover {
	color: #FFFFFF;
	font-weight: bold;
	text-decoration: blink;
	
}.textbox {
	font-family: Verdana;
	font-size: 10px;
	color: #000000;
	background-color: #ffffff;
	border: none;
}
.table1px {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px; 
	font-style: normal;
	border: 1px solid #000000;
	color: #FFFFFF;
	border-collapse: collapse;
	background-color: #000000; 
	box-shadow: 1px 1px 5px #000;
	padding: 5px;
}
.tablebackground {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px;
	font-style: normal;
	line-height: normal;
	color: #FFFFFF;
	background-color: #000000;
	background-repeat: no-repeat;
	background-position: center top;
	background-size: cover;
	padding: 5px;		
}
.tableborder2 {
	font-family: Verdana;
	font-size: 10px;
	font-style: normal;
	line-height: normal;
	color: #FFFFFF;
	background-color: #000000;
	background-image: url(images/tableback.png);
	background-repeat: no-repeat;
	background-position: center top;
	padding: 5px;		
}
.tablert {
	font-family: Verdana;
	font-size: 10px; 
	font-weight: bold;
	border: 1px solid #000000;
	color: #FFFFFF;
	border-collapse: collapse;
	background-position: center bottom;
	background-repeat: no-repeat;
	padding: 5px;		
}
.tablebj {
	font-family: Verdana;
	font-size: 10px; 
	font-weight: bold;
	border: 1px solid #000000;
	color: #FFFFFF;
	border-collapse: collapse;
	background-position: center bottom;
	background-repeat: no-repeat;
	padding: 5px;		
}
.tablebackgroundlogo {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px;
	font-style: normal;
	line-height: normal;
	color: #FFFFFF;
	background-color: #000000; 
	background-repeat: no-repeat;
	background-position: center top;
	padding: 5px;		
}
.worldstatsb1 {
	border: 2px double #FFFFFF;
}
.holes {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px;
	font-style: normal;
	line-height: normal;
	color: #FFFFFF;
	background-color: #000000; 
	background-image: url(images/holes.png);
	background-repeat: no-repeat;
	background-position: center top;
	padding: 5px;	
	border: 1px solid #000000;
	border-collapse: collapse;
}
.gradient {
	font-family: Verdana;
	font-size: 12px;
	font-style: normal;
	text-align:center;
	line-height: 30px;
	font-weight: bold;
	color: #FFFFFF;
	background-image: url(images/greyh.png);
	background-repeat:repeat-x;
}
.gradient2 {
	font-family: Verdana;
	font-size: 12px;
	font-style: normal;
	text-align:center;
	line-height: 30px;
	font-weight: bold;
	color: #FFFFFF;
	background-image: url(images/gradient2.gif);
	background-repeat: repeat-x;
}
.gradientO {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px;
    line-height:30px;
    height: 30px;
	font-style: normal;
	text-align:center;
	font-weight: bold;
	color: #FFFFFF;
	background-image: url(images/orange.png);
}
.gradient2 {
    font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px;
	line-height: 25px;
	font-style: normal;
	text-align:center;
	font-weight: bold;
	color: #FFFFFF;
}
.tableborder { 
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px; 
	font-style: normal;
	line-height: normal;
	border-color: #000000;
	color: #FFFFFF;
	background-color: #000000;
	padding: 4px;	
} 
.tableback {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px; 
	font-style: normal;
	line-height: normal;
	color: #FFFFFF;
	height: 267px; 
	width: 450px;
	background-repeat: no-repeat;
	background-position: center top;
	padding: 3px;		
}
.leftboxtop2 {
background-image: url(images/farmbg.png);
background-repeat: no-repeat;
border-right: 1px solid #000000;
border-bottom: 1px solid #000000;
border-top: 1px solid #000000;
width: 280px;
height: 250px;
}
.leftboxbottom2 {
background-image: url(images/growbg.PNG);
background-repeat: no-repeat;
padding: 5px; 
border-right: 1px solid #000000;
width: 280px;
height: 250px;
}
.rightboxtop2 {
background-image: url(images/workersbg.PNG);
background-repeat: no-repeat;
padding: 5px; 
border-bottom: 1px solid #000000;
border-top: 1px solid #000000; 
width: 280px;
height: 250px;
}
.rightboxbottom2 {
background-image: url(images/sellbg.PNG);
background-repeat: no-repeat;
padding: 5px; 
width: 280px;
height: 250px;
}
.success {
    width: 500px;
	color: #FFFFFF;
	padding-top: 6px;
	padding-bottom: 6px;
	opacity: 0.7;
	margin: 0 auto;
	text-align: center;
	border: 1px solid #000000;
	background: url(/images/suc-grad.png); font: 15px Arial;
}
.failed {
    width: 500px;
	color: #FFFFFF;
	padding-top: 8px;
	padding-bottom: 7px;
	opacity: 0.7;
	margin: 0 auto;
	text-align: center;
	border: 1px solid #000000;
	margin-bottom: -5px;
	background: url(/images/reg-grad.png); font: 15px Arial;
}
.foot{border:1px solid #000000;}[size="44"]{width:237px;}[cols="95"]{width:496px;}[cols="114"]{width:700px;}[cols="118"],[cols="119"],[cols="120"]{width:600px;}
/* --- Car Image Rarity Borders --- */

/* GTA Car Images */
img.car-img {
    max-width: 400px;
    width: 100%;
    height: auto;
    padding: 6px;
    background: #000;
    border: 4px solid #555;
    box-sizing: border-box;
}

/* Common */
img.car-common {
    border-color: #888;
}

/* Uncommon */
img.car-uncommon {
    border-color: #2ecc71;
    box-shadow: 0 0 14px rgba(46, 204, 113, 0.9);
}

/* Rare */
img.car-rare {
    border-color: #e74c3c;
    box-shadow: 0 0 16px rgba(231, 76, 60, 0.95);
}

/* Epic */
img.car-epic {
    border-color: #9b59b6;
    box-shadow:
        0 0 18px rgba(155, 89, 182, 1),
        0 0 30px rgba(155, 89, 182, 0.8);
}

/* Legendary */
img.car-legendary {
    border-color: #f1c40f;
    box-shadow:
        0 0 20px rgba(241, 196, 15, 1),
        0 0 36px rgba(241, 196, 15, 0.85);
}

/* Special (not GTA) */
img.car-special {
    border-color: #3498db;
    box-shadow:
        0 0 18px rgba(52, 152, 219, 1),
        0 0 30px rgba(52, 152, 219, 0.85);
}

/* === GARAGE GROUP CONTAINER === */
.garage-group {
    width: 85%;
    margin: 12px auto;
    border: 1px solid #1f1f1f;
    background: #0b0b0b;
}

/* === GROUP HEADER (TABLE-LIKE) === */
.garage-header {
    display: grid;
    grid-template-columns: 30px 1fr auto 30px;
    align-items: center;
    padding: 6px 8px;
    background: linear-gradient(#1e1e1e, #0f0f0f);
    border-bottom: 1px solid #222;
    font-size: 12px;
    color: #fff;
}

.garage-group-bar {
    background: #0a0a0a;
    border: 1px solid #222;
    padding: 6px 10px;
    margin: 6px auto;
    width: 100%;
    font-size: 11px;
    display: flex;
    align-items: center;
}

.group-title {
    width: 30%;
    font-weight: bold;
}

.group-meta {
    width: 25%;
    color: #aaa;
}

.group-value {
    width: 25%;
    text-align: right;
}

.toggle-group {
    width: 10%;
}

.group-row {
    background: #0b0b0b;
    font-style: italic;
}

.group-row td {
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

/* === CAR ROWS === */
.garage-cars {
    display: none;
}

.garage-car-row {
    padding: 6px 8px;
    border-bottom: 1px solid #1a1a1a;
    background: #000;
    color: #ddd;
    font-size: 11px;
}

.garage-car-row:nth-child(even) {
    background: #0b0b0b;
}

.garage-car-row:nth-child(odd) {
    background: #0c0c0c;
}

/* === ACTIONS === */
.garage-actions {
    width: 85%;
    margin: 12px auto;
    text-align: center;
}

.garage-toolbar {
    width: 85%;
    margin: 10px auto;
    display: flex;
    gap: 6px;
}

.garage-toolbar input,
.garage-toolbar select {
    background: #000;
    border: 1px solid #333;
    color: #fff;
    padding: 4px;
}

/* === MOBILE === */
@media (max-width: 600px) {
    .garage-header {
        grid-template-columns: 30px 1fr 30px;
    }

    .garage-meta {
        display: none;
    }

    .garage-car-row {
        grid-template-columns: 30px 1fr;
        gap: 4px;
    }
}

.car-preview-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 9999;
}

.car-preview-box {
    width: 420px;
    max-width: 90%;
    margin: 60px auto;
    background: #000;
    border: 2px solid #222;
}

.car-preview-header {
    background: url(images/gradx.png);
    padding: 8px 10px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-preview {
    cursor: pointer;
}

.car-preview-image {
    text-align: center;
    background: #111;
    padding: 10px;
}

.car-preview-image img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.car-preview-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #222;
}

.info-box {
    padding: 10px;
    text-align: center;
    border-right: 1px solid #222;
    border-bottom: 1px solid #222;
}

.info-box:nth-child(2) {
    border-right: none;
}

.info-box.full {
    grid-column: span 2;
}

/* rarity colours */
.rarity-common { color: #aaa; }
.rarity-uncommon { color: #2ecc71; }
.rarity-rare { color: #e74c3c; }
.rarity-epic { color: #9b59b6; }
.rarity-legendary { color: #f1c40f; }