/* roboto-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/roboto-v48-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* syne-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Syne';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/syne-v23-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* syne-600 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Syne';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/syne-v23-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* syne-800 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Syne';
    font-style: normal;
    font-weight: 800;
    src: url('../fonts/syne-v23-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

* {
    margin: 0;
    padding: 0;
}

html, body {
    background-color: #000;
    background-image: url("images/houseofracing_lines.svg");
    background-size: cover; /* Adjust as needed */
    background-repeat: no-repeat;
    background-position: center;
    height: 100%;
    color: #fff;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-size: 20px;
    padding: 0 !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Syne", sans-serif;
    font-weight: 600;
}
h1 { font-size: 60px; font-weight: 900; text-transform: uppercase; }
h2 { font-size: 46px; margin: 0.75em 0 0.25em; }
h3 { font-size: 32px }
h4 { font-size: 24px }
h5 { font-size: 18px }
h6 { font-size: 16px }

@media (max-width: 600px) {
    body { font-size: 18px;}
    h1 { font-size: 30px; }
    h2 { font-size: 26px; }
    h3 { font-size: 20px }
    h4 { font-size: 18px }
    h5 { font-size: 18px }
    h6 { font-size: 18px }
}
@media (max-width: 500px) {
    body { font-size: 16px;}
    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
    h3 { font-size: 18px }
    h4 { font-size: 17px }
    h5 { font-size: 16px }
    h6 { font-size: 16px }
}


body > header {
    height: 200px;
    position: relative;
    flex: 0 0 200px;
}
body > header > nav > a.navbar-brand {
    display: block;
    background: #fff;
    padding: 48px 56px 20px 40px;
    width: 200px;
    border-radius: 0 0 15px 0;
    position: relative;
}

body > header > nav > a.navbar-brand:before {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 100%;
    background: #fff;
    transform: skew(0, -9deg);
    transform-origin: 100% 100%;
    z-index: 1;
    border-radius: 0 0 15px 0;
}
body > header > nav > a.navbar-brand img {
    width: 200px;
    height: auto;
    position: relative;
    z-index: 2;
}

@media (max-width: 380px) {
    body > header > nav > a.navbar-brand {
        padding: 20px 36px 5px 30px;
        width: 180px;
    }
    body > header > nav > a.navbar-brand img {
        width: 180px;
    }
}
@media (max-width: 340px) {
    body > header > nav > a.navbar-brand {
        padding: 20px 20px 5px 20px;
        width: 140px;
    }
    body > header > nav > a.navbar-brand img {
        width: 140px;
    }
}


body > header > nav > button {
    display: none;
}

body > header > nav #bdNavbar {
    position: absolute;
    top: 40px;
    right: 40px;
}
body > header > nav #bdNavbar h5 {
    display: none;
}
body > header > nav #bdNavbar ul {
    display: flex;
    list-style: none;
    font-family: "Syne", sans-serif;
    font-weight: 600;
    gap: 25px;
    font-size: 20px;
}
body > header > nav #bdNavbar ul li {
    display: block;
    list-style: none;
}
body > header > nav #bdNavbar ul li a {
    display: block;
    list-style: none;
    text-decoration: none;
    color: #fff;
}
body > header > nav #bdNavbar ul li.current a {
    color: #FF0000;
}

body > header > nav #bdNavbar ul.lang {
    position: absolute;
    top: -35px;
    right: 0;
}
body > header > nav .btn-close {
    display: none;
}

@media (max-width: 1200px) {
    body > header > nav #bdNavbar {
        display: none;
    }

    body > header > nav #bdNavbar.show {
        display: block;
        padding: 0;
        right: 0;
        top: 0;
        background: #000;
        z-index: 100;
    }

    body > header > nav > button {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        background: #000;
        border: 1px solid #fff;
        border-radius: 6px;
        padding: 6px;
        height: 52px;
    }
    body > header > nav > button svg {
        fill: #fff;
        width: 40px;
        height: 40px;
    }

    body > header > nav #bdNavbar ul {
        flex-direction: column;
        align-items: flex-end;
        gap: 1px;
    }

    body > header > nav #bdNavbar ul li {
        display: block;
        width: 100%;
    }

    body > header > nav #bdNavbar ul li a {
        padding: 20px 40px;
        background: #000;
        display: block;
        text-align: right;
    }

    body > header > nav #bdNavbar ul li.current a {
        background: #ff0000;
        color: #fff;
    }

    body > header > nav #bdNavbar ul.lang {
        display: flex;
        flex-direction: row;
        position: absolute;
        top: 0;
        right: 100px;
    }
    body > header > nav #bdNavbar ul.lang a {
        padding: 16px 25px;
    }
    body > header > nav .btn-close:before {
        content: "×";
    }
    body > header > nav .btn-close {
        display: block;
        background: #666666;
        color: #fff;
        padding: 8px;
        margin: 4px 4px 4px auto;
        font-size: 30px;
        width: 50px;
        text-align: center;
        border-radius: 6px;
    }
    body > header > nav .offcanvas-header {
        display: flex;
    }
}
body > footer {
    background: #fff;
    padding: 40px;
    color: #000
}
body > footer ul {
    list-style: none;
    color: #000;
}

#page {
    flex: 1;
}

#page > .banner {
    display: none;
}

#content {
    padding: 40px;
}
@media (max-width: 600px) {
    #content {
        padding: 20px;
    }
}
@media (max-width: 500px) {
    #content {
        padding: 10px;
    }
}

#page a {
    color: #ff0000;
    text-decoration: none;
}

ol.breadcrumb {
    padding: 6px 10px;
    margin: 0 30px;
    list-style: none;
    border-bottom: 1px solid #ffffff;
}
ol.breadcrumb li {
    list-style: none;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

#Form_RegistrationForm .btn-toolbar input,
.registration-form .btn-toolbar input,
form button {
    font-family: "Syne", sans-serif;
    font-size: 16px;
    font-weight: 600;
    border: 0 none;
    border-radius: 8px 8px 8px 8px;
    padding: 16px 24px 16px 24px;
    background-color: #FFFFFF;
    color: #000000;
}
form button:hover {
    background: #ff0000;
    color: #fff;
}


#BookPage_1 {
    text-align: center;
}

#BookPage_1 .el {
    display: flex;
    margin: 0 auto;
    align-items: stretch;
    justify-content: center;
}
#BookPage_1 .el a {
    background: #fff;
    color: #000;
    padding: 0 20px;
    display: flex;
    font-size: 40px;
    font-weight: 900;
    border-radius: 0 12px 12px 0;
    text-decoration: none;
    align-items: center;
}
#BookPage_1 .el a:first-child {
    border-radius: 12px 0 0 12px;
}
#BookPage_1 .el a:hover {
    background: #ff0000;
    color: #fff;
}

#BookPage_1 .el input {
    padding: 12px;
    text-align: center;
    background: #000;
    border: 1px solid #fff;
    font-size: 32px;
    color: #fff;
    width: 90px;
    border-radius: 0;
}

#Form_RegistrationForm,
.registration-form,
.card {
    background: #F5F5F5;
    padding: 20px 40px;
    border-radius: 12px;
    color: #000;
    width: auto;
    margin-top: 2em;
}
.card.confirm-date {
    max-width: 420px;
}
.card .card-header {
    margin: -20px -40px 20px -40px;
    padding: 12px 40px;
    background: #ff0000;
    color: #fff;
    border-radius: 12px 12px 0 0;
    font-family: "Syne", sans-serif;
    font-weight: 600;
}

.select-package .card,
.card.select-group-size,
.card.select-date {
    background: none;
    padding: 0;
    color: #fff;
    width: auto;
    margin: 0;
    max-width: unset;
}

#Form_RegistrationForm fieldset,
.registration-form fieldset {
    border: 0 none;
    padding: 0;
}

body.BookPage  h1,
.select-date .card-header,
.select-package h6,
#BookPage_1 .card-header {
    text-transform: none;
    font-family: "Syne", sans-serif;
    font-weight: 600;
    font-size: 32px;
    margin: 1em 0;
    background: none;
    padding: 0;
}

@media (max-width: 600px) {
    body.BookPage  h1,
    .select-date .card-header,
    .select-package h6,
    #BookPage_1 .card-header {
        font-size: 26px;
    }
}
@media (max-width: 500px) {
    body.BookPage  h1,
    .select-date .card-header,
    .select-package h6,
    #BookPage_1 .card-header {
        font-size: 24px;
    }
}


#calendarCarousel {
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    align-items: center;
}
#calendarCarousel .carousel-inner {
    width: 500px;
    display: block;
}

#calendarCarousel .carousel-inner .carousel-item {
    width: 500px;
    display: none;
}
#calendarCarousel .carousel-inner .carousel-item.active {
    display: block;
}

table.calendar {
    width: 500px;
}

table.calendar td,
table.calendar th {
    text-align: center;
}

table.calendar th {
    padding: 8px;
}
table.calendar td {
}
table.calendar td.void {

}
table.calendar td.past {
    color: #606060;
}

table.calendar td span,
table.calendar td a {
    display: block;
    padding: 12px;
    text-align: center;
    font-size: 1.25em;
}
@media (max-width: 600px) {
    table.calendar td span,
    table.calendar td a {
        padding: 8px;
    }
}
@media (max-width: 500px) {
    table.calendar td span,
    table.calendar td a {
        padding: 5px;
    }
}

table.calendar td a {
    background: #fff;
    color: #ff0000;
    text-decoration: none;
}

table.calendar td.current a,
table.calendar td a:hover {
    color: #fff !important;
    background: #ff0000 !important;
}

.calendar-control {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
}

.calendar-control button {
    -webkit-transform: skewX(0deg);
    -moz-transform: skewX(0deg);
    transform: skewX(0deg);
}
.calendar-control button:after {
    display: none;
}


.carousel-item:first-child .calendar-control [data-bs-slide="prev"] {
    opacity: 0.1;
}
.carousel-item:last-child .calendar-control [data-bs-slide="next"] {
    opacity: 0.1;
}

#page .container .calendar-control h3 {
    margin: 0;
    text-align: center;
}
#page .container .calendar-control button {
    margin-top: 0;
}

/* ---- */


.select-package {
    display: grid;
    grid-template-rows: auto 1fr;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 2em;
}

@media (max-width: 1200px) {
    .select-package {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 800px) {
    .select-package {
        display: flex;
        flex-direction: column;
    }
}

.select-package h6 {
    grid-column: 1 / -1; /* Make the first box span all columns */
}

.select-package .package {
    background: #666666;
    position: relative;
    border-radius: 0;
}

.select-package .package .package-body  {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 30px;
}

.select-package .package .package-body strong  {
    display: block;
    margin: -30px -30px 10px -30px;
    text-align: center;
    text-transform: uppercase;
    font-size: 1.7em;
    padding: 12px;
    background: #fff;
    color: #000;
}
.select-package .package .package-body p:first-of-type  {
    line-height: 160%;
    margin-bottom: 1.0em;
}
.select-package .package .package-body p:last-child {
    color: #ff0000;
    font-size: 1.25em;
    text-align: center;
    font-weight: 600;
    margin-top: 1.0em !important;
}

.select-package .package input {
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.select-package .package:hover .package-body strong,
.select-package .package input:checked + .package-body strong {
    background: #ff0000;
    color: #fff;
}
#page .container .select-package .package p {
    margin: 0;
}

.date-and-time {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: flex-start;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 40px;
}

.select-time-slot {
    display: flex;
    flex-direction: row;
    gap: 3px;
    margin: 88px 0 0 0;
    max-width: 500px;
    flex-wrap: wrap;
}


.select-time-slot a {
    display: flex;
    background: #fff;
    color: #ff0000;
    padding: 12px;
    flex: 0 0 50px;
    align-items: center;
    align-content: center;
    justify-content: center;
    text-align: center;
    font-size: 1.15em;
    text-decoration: none;
}

.select-time-slot a.current,
.select-time-slot a:hover {
    color: #fff !important;
    background: #ff0000 !important;
}

.select-time-slot a.no-booking,
.select-time-slot a.no-booking:hover {
    color: #666666 !important;
    background: #ddd !important;
    cursor: default;
}

@media (max-width: 1050px) {
    #calendarCarousel,
    #calendarCarousel .carousel-inner,
    #calendarCarousel .carousel-inner .carousel-item {
        width: 100%;
    }
    .date-and-time {
        flex-direction: column;
    }
    .select-time-slot {
        margin: 0;
        width: 100%;
        max-width: unset;
        display: grid;
        grid-template-rows: auto 1fr;
        grid-template-columns: repeat(7, 1fr);
        gap: 2px;
        margin-bottom: 2em;
    }
    .card.confirm-date {
        max-width: unset;
        width: auto;
    }
    .select-time-slot a {
        padding: 20px 12px;
    }
}

@media (max-width: 760px) {
    .select-time-slot {
        grid-template-columns: repeat(4, 1fr);
    }
}

#Form_RegistrationForm .btn-toolbar input,
.registration-form .btn-toolbar input,
.card button {
    margin-top: 1.5em;
}

.login-or-register {
    border-bottom: 2px solid #4e4e4e !important;
}

.book-summary form ul.payment {
    list-style: none;
    display: flex;
    flex-direction: row;
    padding: 0;
    margin-bottom: 25px;
}

ul.payment li,
.login-or-register > div.form-check {
    margin-bottom: 0.5em;
    padding: 0 !important;
    display: flex;
    flex: 1;
    position: relative;
    align-items: center;
    align-content: center;
}

ul.payment > li label,
.login-or-register > div label {
    margin-left: 1.0em;
    padding: 12px 0;
    display: block;
    flex: 1;
}

ul.payment > li input:checked + label,
.login-or-register > div input:checked + label {
    color: #ff0000;
}

.login-or-register > div.form-check:hover {
    background: #f3f3f3;
    color: #000;
}

.card table {
    margin-bottom: 1em;
    width: 100%;
}
.card table th {
    text-align: left;
}
.card table input {
    width: 90%;
}

form fieldset input,
form #login input,
form #register input,
form #guest input,
.card .card-body table  input {
    background: #fff;
    border: 1px solid #fff;
    font-size: 24px;
    padding: 8px;
    border-radius: 12px;
    margin-top: 6px;
    flex-grow: 10;
}

.book-summary h2 {
    font-size: 32px;
    color: #000;
}
.book-summary h3 {
    font-size: 32px;
    color: #ff0000;
    margin-bottom: 0.75em;
}

.book-summary .drivers-list {
    list-style: none;
    margin-top: 1em;
}

/* -- */

form #login,
form #register,
form #guest {
    display: flex;
    gap: 10px;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: flex-start;
}

.fieldholder-small,
form #login .mb-3,
form #register .mb-3,
form #guest .mb-3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-content: space-between;
    flex-direction: row;
    width: 100%;
}

.fieldholder-small label,
form #guest .mb-3 label,
form #register .mb-3 label,
form #login .mb-3 label {
    flex: 1 0 150px;
}

@media (max-width: 750px) {
    form #login,
    form #register,
    form #guest {

    }
    .fieldholder-small,
    form #login .mb-3,
    form #register .mb-3,
    form #guest .mb-3 {
        flex-direction: column;
        align-items: flex-start;
    }

    .fieldholder-small label,
    form #guest .mb-3 label,
    form #register .mb-3 label,
    form #login .mb-3 label {
        flex: 0 0 auto;
        margin: 0.5em 0 0.25em;
    }

    form fieldset input,
    form #login input,
    form #register input,
    form #guest input,
    .card .card-body table  input {
        width: 100%;
    }

}


.form-error {
    background: #00c900;
    color: #000;
    padding: 25px;
}

.form-error.text-danger {
    background: #FF0000;
    color: #fff;
}

/** */

.book-summary form ul.drivers-list {
    border-top: 1px solid #777;
}
.book-summary form ul.drivers-list li {
    list-style: none;
    padding: 10px;
    border-bottom: 1px solid #777;
    gap: 20px;
    display: flex;
}
.book-summary form ul.drivers-list li span.driver {
    flex: 1;
}
.book-summary form ul.drivers-list li span.driver .label:after {
    content: ":";
    margin-right: 6px;
}
.book-summary form ul.total li {
    display: flex;
}
.book-summary form ul.total li strong {
    flex: 1;
}
.book-summary form ul.total {
    margin-top: 35px;
    font-size: 1.2em;
    list-style: none;
}



/* End Booking Page */

#my-bookings {
    width: 100%;
    border-spacing: 0 6px;
    border-collapse: separate;
}

#my-bookings th {
    background: #ff0000;
    padding: 6px;
    text-align: left;
    border-spacing: 0;
}

#my-bookings tr {
    vertical-align: top;
}

#my-bookings tr td {
    background: #F5F5F5;
    color: #000;
    padding: 6px;
}

#my-bookings tr.new td {
    background: #f0f0f0 !important;
    color: #000;
}

#my-bookings tr.past td {
    background: #666666;
    color: #000;
}

@media (max-width: 900px) {
    table#my-bookings {
        display: block;
    }

    table#my-bookings thead {
        display: none;
    }

    table#my-bookings tbody {
        display: block;
    }

    table#my-bookings tr {
        display: block;
        padding: 20px 0;
    }

    table#my-bookings td {
        display: block;
        position: relative;
        padding: 4px 4px 4px 9em;
        background: #4e4e4e;
        background: -moz-linear-gradient(left, #FF0000 0%, #FF0000 8em, #F5F5F5 8.01em);
        background: -webkit-linear-gradient(left, #FF0000 0%, #FF0000 8em, #F5F5F5 8.01em);
        background: linear-gradient(90deg, #FF0000 0%, #FF0000 8em, #F5F5F5 8.01em);
    }

    table#my-bookings td:before {
        content: attr(data-title);
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 7em;
        color: #fff;
        padding: 4px 20px;
    }
}



.alternating-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.alternating-list li {
    display: block;
    background: var(--color-background);
    color: var(--color-text);
}
.alternating-list li .header,
.alternating-list li a {
    display: grid;
    align-items: center;
    font-size: 1.1em;
    text-decoration: none;
    grid-template-columns: 80px calc(60% - 80px) 20% 20%;
}
.alternating-list li a {
    height: 64px;
    color: var(--color-text) !important;
}

.alternating-list li a img {
    display: block;
}

.alternating-list li .icon-info {
    text-align: center;
}

.alternating-list li .header {
    padding: 6px 0;
    background: #ff0000;
    color: #fff;
    font-size: 1.0em;
}
.alternating-list li .header a {
    color: #fff !important;
}


.alternating-list.no-track li .header,
.alternating-list.no-track li a {
    grid-template-columns: 60% 20% 20%;
}

.alternating-list.no-track li span.title {
    padding-left: 20px;
}

.alternating-list .competition-title,
.alternating-list .track-title {
    padding-left: 20px;
}

.track-map svg {
    width: 80px;
    height: auto;
    max-height: 64px;
}

.board-headline form {
    margin: 0 0 1em auto;
    width: 30%;
}


form.board-form {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: stretch;
}

form.board-form input {
    background: #fff;
    border: 1px solid #ff0000;
    padding: 10px 12px;
    font-size: 16px;
    text-align: left;
    width: 240px;
    border-radius: 8px 0 0 8px;
}
form.board-form input.btn {
    background:  #ff0000;
    border-color: #ff0000;
    color: #fff;
    width: auto;
    border-radius: 0 8px 8px 0;
}

.blog-post img {
    max-width: 100%;
    height: auto;
}

table.table-times {
    width: 100%;
}

table.table-times th {
    padding: 6px 10px;
    background: #ff0000;
    color: #fff;
    font-size: 1.0em;
    text-align: left;
}
