/*
======================================================================
FONTS - Slot Car Collector Edition 🏎️
======================================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:wght@300;400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin-top: 0;
}


html,
body,
div {
    margin: 0;
    padding: 0;
    font: 16px/1.65 "Titillium Web", "Segoe UI", Tahoma, Verdana, Arial, helvetica, sans-serif;
}

* {
    font:16px/1.65 "Titillium Web", "Segoe UI", Tahoma, Verdana, Arial, helvetica, sans-serif;
}

body {
    background-color: rgb(240, 240, 240);
}

input {
    padding: 0.2em;
    margin: 0;
}

textarea {
    padding: 0.2em;
    margin: 0;
}

select {
    padding: 0.2em;
    margin: 0;
}

input[type="button"] {
    width: 90px;
}

input[type="submit"] {
    width: 90px;
}

input[type="reset"] {
    width: 90px;
}

p {
    margin-top: 1em;
    margin-bottom: 1em;
}

table {
    border-collapse: collapse;
}

/*
   HEADINGS: Playfair Display
   - Vintage motorsport elegance
   - Bold, authoritative, nostalgic
   - Great for car names, event titles, brand headers
*/

h1 {
    /*font-family: 'Playfair Display', Georgia, "Times New Roman", serif;*/
    font-family: "Titillium Web", "Segoe UI", Tahoma, Verdana, Arial, helvetica, sans-serif;
    font-size: 1.65em;
    font-weight: 550;
    /*letter-spacing: -0.5px;*/
    color: #1a1a1a;
    margin-bottom: 0.3em;
}

h2 {
    /*    font-family: 'Playfair Display', Georgia, "Times New Roman", serif;

*/
    font-family: "Titillium Web", "Segoe UI", Tahoma, Verdana, Arial, helvetica, sans-serif;
    font-size: 1.2em;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #1a1a1a;
    margin-top: 1.2em;
    margin-bottom: 0.4em;
}

h3 {
    /*    font-family: 'Playfair Display', Georgia, "Times New Roman", serif;
*/
    font-family: "Titillium Web", "Segoe UI", Tahoma, Verdana, Arial, helvetica, sans-serif;
    font-size: 1.1em;
    font-weight: 700;
    font-variant: small-caps;
    letter-spacing: 0.5px;
    border: none;
    padding: 0.4em 0.5em;
    background-color: #f5f5f5;
    width: 100%;
    margin-top: 2em;
    margin-bottom: 0.3em;
    color: #222;
}

/*
   RACING SPECS: Orbitron
   - Futuristic, techy feel
   - Perfect for lap times, car numbers, stats
   - Use sparingly for maximum impact
*/

.racing-specs,
.lap-time,
.car-number,
.stat-value {
    font-family: 'Orbitron', "Courier New", monospace;
    font-weight: 700;
    letter-spacing: 1px;
    color: #cc0000;
}

/* STRUCTURE */

#pagewrap {
    width: 1440px;
    padding: 0px;
    margin: 0 auto;
    display: table;
}

#menu {
    width: 199px;
    padding-top: 1.5em;
    padding-bottom: 6em;
    margin: 0;
    float: left;
    display: table-cell;
}

#page {
    width: 1040px;
    padding: 0.5em;
    padding-top: 1.5em;
    padding-bottom: 6em;
    margin: 0;
    float: left;
    display: table-cell;
}

#side {
    width: 199px;
    padding: 0.5em;
    padding-top: 1.5em;
    padding-bottom: 6em;
    margin: 0;
    float: left;
    display: table-cell;
    line-height: 1.25em;
}

#frm {
    max-width: 600px;
}

#branding {
    font-family: 'Playfair Display', serif;
    color: #cc0000;
    font-variant: small-caps;
    font-weight: 900;
    font-size: 1.3em;
    letter-spacing: 2px;
    vertical-align: middle;
}

#lblmsg {
    height: 3em;
    min-height: 3em;
    vertical-align: middle;
    text-align: center;
    display: block;
    clear: both;
    overflow: hidden;
}

#lblmsg.ok {
    color: forestgreen;
}

#lblmsg.ko {
    color: red;
}

.footer {
    background-color: black;
    color: white;
}

.footer a {
    color: red;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/************************************************************************************
MEDIA QUERIES
*************************************************************************************/

@media screen {
    *,
    html,
    body {
        font-size: 1em;
    }

    #pagewrap {
        width: 1440px;
    }

    #menu {
        width: 15%;
        float: left;
    }

    #page {
        width: 70%;
        float: left;
    }

    #page-ex {
        width: 85%;
        float: left;
    }

    #side {
        width: 15%;
        float: left;
    }
}

@media screen and (max-width: 1400px) {
    #pagewrap {
        width: 1140px;
    }
}

@media screen and (max-width: 1024px) {
    #pagewrap {
        width: 960px;
    }
}

@media screen and (max-width: 880px) {
    *,
    html,
    body {
        font-size: 0.95em;
    }

    #pagewrap {
        width: 100%;
    }

    #menu {
        width: 20%;
        float: left;
    }

    #page {
        width: 80%;
        float: left;
    }

    #side {
        width: auto;
        clear: both;
        float: none;
        display: block;
    }

    #frm {
        width: 100%;
    }
}

@media screen and (max-width: 760px) {
    *,
    html,
    body {
        font-size: 0.9em;
    }

    #branding {
        display: none;
    }
}

@media screen and (max-width: 460px) {
    #pagewrap {
        width: 100%;
        display: block;
    }

    #menu {
        width: auto;
        float: none;
        display: block;
    }

    #page {
        width: auto;
        float: none;
        display: block;
        border-left: none;
        border-top: 1px solid whitesmoke;
        border-bottom: 1px solid whitesmoke;
    }

    #side {
        width: auto;
        float: none;
        display: block;
    }
}

/*
    ==================================================================================================
    Classi di pagina
    ==================================================================================================
*/

.hr {
    width: 100%;
    margin-top: 0.25em;
    margin-bottom: 0.25em;
    border-top: gainsboro 1px solid;
}

.tabNormal {
    border: 1px solid red;
    text-align: center;
    padding: 0.2em;
    min-width: 100px;
    display: inline-block;
    text-decoration: none;
    color: red;
    margin: 0;
}

.tabNormal.selected {
    color: white !important;
    background-color: red;
}

.label {
    min-width: 50px;
    display: inline-block;
    padding-right: 0.5em;
    font-size: 1em;
}

.caption {
    color: dimgray;
    font-size: 1em;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.info-box {
    min-height: 8em;
    border: 1px gainsboro solid;
    padding: 0.5em;
    background-color: whitesmoke;
}

.site-header {
    background-color: black;
}

.item-box {
    width: 32.85%;
    display: inline-block;
    overflow: hidden;
    text-align: center;
    outline: 1px solid gainsboro;
    padding: 0;
    margin-bottom: 2em;
}

.item-img {
    outline: none;
    height: 200px;
    padding-left: -1em;
    border: none;
    vertical-align: middle;
    overflow: hidden;
}

.site-banner {
    min-height: 140px;
    background-color: black;
    background-image: url(/Style/policar-head.jpg);
    background-position-y: -40px;
    background-position-x: right;
    background-repeat: no-repeat;
    background-size: 800px;
}

/*
    ==================================================================================================
    Menu
    ==================================================================================================
*/

.tbl-list {
    border-collapse: collapse;
}

.tbl-list th {
    background-color: whitesmoke;
    border: 1px solid gainsboro;
    padding: 3px;
}

.tbl-list td {
    padding: 3px;
}

.tbl-list tr {
    border-bottom: 1px #F0F0F0 solid;
}

.tbl-list tr:hover {
    background-color: #e6f2fa;
}

.tbl-list .eot {
    border-top: 2px solid gainsboro;
    border-bottom: none;
    font-weight: bold;
}

.tbl-ghost {
    border-collapse: collapse;
}

.tbl-ghost th {
    background-color: whitesmoke;
    border: 1px solid gainsboro;
    padding: 3px;
}

.tbl-ghost td {
    padding: 3px;
}

.tbl-ghost tr:hover {
    background-color: #e6f2fa;
}

.tbl-ghost .eot {
    border-top: 2px solid gainsboro;
    border-bottom: none;
    font-weight: bold;
}

.tbl-grid {
    border-collapse: collapse;
}

.tbl-grid th {
    background-color: whitesmoke;
    border: 1px solid gainsboro;
    padding: 3px;
}

.tbl-grid td {
    border: 1px solid #F0F0F0;
    padding: 3px;
}

.tbl-grid td:hover {
    background-color: #e6f2fa;
}

.tbl-grid tr:nth-child(even) {
    background-color: white;
}

.tbl-grid tr:nth-child(odd) {
    background-color: #FAFAFA;
}

.tbl-void {
    border-collapse: collapse;
}

.tbl-void tr {
    border: none;
}

.tbl-void th {
    border: none;
}

.tbl-void td {
    border: none;
}

.tbl-grid tr:nth-child(even) {
    background-color: transparent;
}

.tbl-grid tr:nth-child(odd) {
    background-color: transparent;
}

.site-logo {
    margin-top: 35px;
    width: 70px;
    height: 70px;
    float: left;
}

/*
    ==================================================================================================
    Navigation
    ==================================================================================================
*/

ul#navbar {
    margin: 0;
    padding: 0;
    height: 3em;
    list-style: none;
    clear: both;
    float: left;
}

ul#navbar li {
    float: left;
}

ul#navbar li a {
    font-family: 'Titillium Web', sans-serif;
    font-weight: 600;
    font-size: 0.85em;
    letter-spacing: 0.5px;
    color: white;
    display: block;
    width: 6em;
    min-width: 6em;
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
}

ul#navbar a.active,
ul#navbar a:hover {
    background-color: red;
}

ul#navbar li input {
    width: 14em;
}

ul#optbar {
    margin: 0;
    padding: 0;
    list-style: none;
    clear: both;
    float: right;
    color: white;
}

ul#optbar li {
    float: left;
}

ul#optbar li a {
    color: whitesmoke;
    padding-left: 0.35em;
    padding-right: 0.35em;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: normal;
}

ul#optbar li a:hover {
    text-decoration: underline;
    color: red;
}

#side a {
    color: rgb(239, 0, 0);
    text-decoration: none;
}

#side a:hover {
    text-decoration: underline;
}

#menu a {
    font-family: 'Titillium Web', sans-serif;
    font-weight: 400;
    display: block;
    color: rgb(239, 0, 0);
    line-height: 2em;
    height: 2em;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding-left: 0.5em;
    vertical-align: middle;
}

#menu a:hover {
    text-decoration: underline;
    background-color: rgb(239, 0, 0);
    color: white;
}

#menu a.selected {
    text-decoration: underline;
    background-color: rgb(239, 0, 0);
    color: white;
}

#menu a.sub-item {
    margin-left: 1em;
    font-size: small;
}

#page img {
    border: 1px solid gainsboro;
}

#page a {
    color: rgb(239, 0, 0);
    text-decoration: none;
}

#page a:hover {
    text-decoration: underline;
}

#page a img {
    border: 1px solid gainsboro;
}

#page #MySpamTrap {
    display: none;
}

/*
    ==================================================================================================
    Forum / Post Styles
    ==================================================================================================
*/

.of-title {
    font-size: 1.5em;
    float: left;
}

.of-desc {
    font-size: 1em;
    clear: both;
}

.of-msgcount {
    font-size: small;
    float: left;
}

.of-msgtitle {
    font-weight: bold;
}

.of-msguser {
    color: royalblue;
    display: inline-block;
    font-weight: bold;
    margin-right: 0.2em;
}

.of-msgtext {
    font-weight: normal;
    display: block;
}

.of-msgtime {
    font-size: smaller;
    color: gray;
    display: inline-block;
}

.of-msgreply {
    margin-bottom: 2em;
}