@font-face {
    font-family: 'BebasNeue';
    src: url('https://www.tac.vic.gov.au/road-safety/current-sponsorships/safe-jersey-competition/fonts/BebasNeue-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Cookie';
    src: url('https://www.tac.vic.gov.au/road-safety/current-sponsorships/safe-jersey-competition/fonts/Cookie-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Poppins';
    src: url('https://www.tac.vic.gov.au/road-safety/current-sponsorships/safe-jersey-competition/fonts/Poppins-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'PermanentMarker';
    src: url('https://www.tac.vic.gov.au/road-safety/current-sponsorships/safe-jersey-competition/fonts/PermanentMarker-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'BodoniModa';
    src: url('https://www.tac.vic.gov.au/road-safety/current-sponsorships/safe-jersey-competition/fonts/BodoniModa-VariableFont_opsz,wght.ttf') format('truetype');
}
@font-face {
    font-family: 'FranklinGothicBook';
    src: url('https://www.tac.vic.gov.au/road-safety/current-sponsorships/safe-jersey-competition/fonts/FranklinGothicBookRegular.ttf') format('truetype');
}

@font-face {
    font-family: 'FranklinGothicDemi';
    src: url('https://www.tac.vic.gov.au/road-safety/current-sponsorships/safe-jersey-competition/fonts/FranklinGothicDemiRegular.ttf') format('truetype');
}

@font-face {
    font-family: 'FranklinGothicCondensedBT';
      src: url('https://www.tac.vic.gov.au/road-safety/current-sponsorships/safe-jersey-competition/fonts/FranklinGothicCondensedBT.ttf') format('truetype');
}

.section-title {
    font-size: 34px;
    font-weight: bold;
    font-family: "FranklinGothicCondensedBT";
    line-height: 34px;
    margin-bottom: 8px;
}

.section-sub-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 40px;
    font-family: "FranklinGothicDemi";
}

#custom-text-dom {
    font-family: "BebasNeue";
    font-size: 90px;
    font-weight: bold;
    text-align: center;
    color: transparent;
    line-height: 1.05;
    text-transform: uppercase;
    white-space: normal;
    width: 100%;
    height: 100%;
}

.section {
    display: none;
    transition: opacity 0.5s ease;
}

.section.active {
    display: block;
    opacity: 1;
}

.jersey-gutter {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    max-width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.jersey-card {
    border-radius: 8px;
    background-color: #eee;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    text-align: center;
    border: 4px solid transparent;
}

.jersey-card.selected {
    border: 4px solid #DBE133;
    background-color: #dbe13354;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.jersey-card.selected .icon-selected {
    display: block;
}

.gap-button {
    margin-right: -10px;
    margin-left: -10px;
    margin-top: 20px;
    row-gap: 20px;
}

.button-container {
    align-self: flex-end;
    padding-left: 10px !important;
    padding-right: 10px !important;
    font-family: "FranklinGothicDemi";
}

.button-container div {
    height: 48px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: -webkit-fill-available;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-button {
    background-color: #bfbfbf;
    color: #000;
}

.next-button {
    background-color: black;
    color: white;
}

.next-button:hover {
    background-color: #333;
}

#jerseyGrid {
    margin-left: -12px;
    margin-right: -12px;
    row-gap: 20px;
}

.center-content {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

header {
    font-size: 18px;
    margin-bottom: 20px;
}

.header-back {
    font-size: 14px;
    color: #555;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    font-family: "FranklinGothicDemi";
}

h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.customizer-container {
    display: flex;
    gap: 20px;
}

.jersey-preview {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
}

.jersey-preview img {
    max-width: 100%;
    height: auto;
}

.controls {
    flex: 1;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

.controls h2 {
    font-size: 18px;
    margin-bottom: 15px;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.color-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    margin: 10px 15px 10px 0px;
    position: relative;
    flex: 0 0 auto;
}

.pattern {
    width: 36px;
    height: 36px;
    cursor: pointer;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 50%;
    position: relative;
    margin: 10px 15px 10px 0px;
    flex: 0 0 auto;
}

.hr {
    border: 1px solid #eee;
    margin: 10px 0;
    width: -webkit-fill-available;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    background-color: black;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
}

.input-style {
    border: 1px solid #979797;
    padding: .5rem .575rem;
    width: 100%;
    height: 48px;
    font-family: 'FranklinGothicBook';
}

.input-style:focus {
    border: 2px solid #B3B920;
    outline: none;
}

#length-custom-text, #length-reason-text {
    text-align: right;
    font-size: 14px;
    color: #979797;
}

.font-bebas-neue {
    font-family: 'BebasNeue';
}

.font-cookie {
    font-family: 'Cookie';
}

.font-poppins {
    font-family: 'Poppins';
}

.font-permanent-marker {
    font-family: 'PermanentMarker';
}

.font-bodoni-moda {
    font-family: 'BodoniModa';
}

.font-style {
    margin: 10px 20px 10px 0;
    border: #ddd solid;
    border-radius: 5px;
    height: 36px;
    width: 110px;
    text-align: center;
    line-height: 34.5px;
    position: relative;
    flex: 0 0 auto;
    cursor: pointer;
}

.font-style.active::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid #000;
    border-radius: 5px;
    z-index: -1;
    transition: all 0.3s ease;
}

.color-circle.selected::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 3px solid #000000;
    border-radius: 50%;
    z-index: -1;
    transition: all 0.3s ease;
}

.pattern.selected::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 3px solid #000000;
    border-radius: 50%;
    z-index: -1;
    transition: all 0.3s ease;
}

.item-list {
    display: flex;
    flex-wrap: wrap;
}

.item-list .color-circle:last-child {
    border: 2px solid #ddd;
}

.header-segment {
    justify-content: space-between;
    align-items: center;
    font-family: "FranklinGothicDemi";
}

.group-front-back {
    background-color: #eee;
    height: 46px;
    width: 172px;
    display: flex;
    align-items: center;
    padding: 0 6px;
    border-radius: 4px;
}

.group-front-back span {
    height: 34px;
    width: 80px;
    text-align: center;
    line-height: 34px;
    cursor: pointer;
}

.group-front-back span.selected {
    background-color: #000;
    color: #fff;
}

.segment-title {
    font-size: 18px;
    font-weight: bold;
}

.font-16-gothic-book {
    font-size: 16px;
    font-family: "FranklinGothicBook";
}

.pattern-colour {
    display: none;
}

.pattern-colour.selected.selected-flex {
    display: flex;
}

div[data-colors],
div[data-patterns],
div[data-fonts] {
    position: relative;
}

.overlay-color {
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 100%;
    background: linear-gradient(to left, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
    z-index: 1;
    display: none;
}

.display-none {
    display: none;
}

.display-none.selected {
    display: block;
}

.error {
    color: red;
    font-size: 14px;
    margin-top: 2px;
    display: none;
    font-family: "FranklinGothicDemi";
}

.label {
    font-size: 18px;
    margin-bottom: 3px;
    margin-top: 15px;
    font-family: "FranklinGothicDemi";
}

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

.custom-checkbox {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    border-radius: 3px;
    position: relative;
}

.custom-checkbox::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    width: 8px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    opacity: 0;
    transition: .2s;
}

#custom-checkbox:checked+.custom-checkbox::before {
    opacity: 1;
}

img.icon-selected {
    position: absolute;
    top: 15px;
    left: 15px;
    display: none;
    width: 30px;
    height: 30px;
}

#icon-checked, #icon-checked-2 {
    position: absolute;
    left: 50%;
    top: 52%;
    transform: translate(-50%, -50%);
    width: 70%;
    display: none;
}

#icon-checked.selected, #icon-checked-2.selected {
    display: block;
}

#group-checkbox, #group-checkbox-2 {
    position: relative;
    margin-right: 8px;
}

.checkbox {
    font-size: 18px;
    margin-bottom: 3px;
    margin-top: 15px;
    flex-wrap: nowrap;
    width: fit-content;
    align-items: center;
}

#svg-container,
#svg-back-container {
    width: 100%;
    max-width: 360px;
}

textarea.input-style {
    height: 150px;
}

/*  */
.landing-logo {
    width: 144px;
    margin: 20px 0 10px 0;
}

.landing-jersey-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin: 20px 0;
}
.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

.landing-button {
    background-color: #000;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin: 20px 0;
    height: 60px;
    font-family: 'FranklinGothicDemi';
}

.landing-title {
    font-family: 'FranklinGothicCondensedBT';
    line-height: initial;
}

.landing-subtitle {
    font-family: 'FranklinGothicDemi';
    line-height: initial;
}

.landing-content {
    font-family: 'FranklinGothicBook';
}

.next-button[data-loading="true"] {
    cursor: not-allowed;
    opacity: 0.5;
}

.back-container {
    order: 1;
}

.next-container {
    order: 2;
}
.label-checkbox {
    font-family: "FranklinGothicDemi";
}
.label-checkbox a{
    color: #000 !important;
    text-decoration-color: #000 !important;
    cursor: pointer;
}
.landing-title-ul {
    font-family: 'FranklinGothicDemi';
    margin-bottom: 5px;
}
.bottom-add-bar{
    display: none;
}
/*  */
@media (max-width: 768px) {
    #cadel-jersey {
        padding: 20px 30px
    }
    .item-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-left: 8px;
        scrollbar-width: none;
    }

    .color-circle,
    .pattern {
        width: 30px;
        height: 30px;
    }

    #text-custom-input {
        margin-left: 20px;
    }
    .md-padding-right-20 {
        padding-right: 20px;
    }

    div[data-colors],
    div[data-patterns],
    div[data-fonts] {
        padding-left: 12px;
    }

    .row-center {
        align-items: center;
    }

    .landing-title {
        font-size: 40px;
    }

    .landing-subtitle {
        font-size: 20px;
    }

    .landing-content {
        font-size: 16px;
    }

    .landing-button {
        font-size: 18px;
        width: 100%;
    }
}

@media (min-width: 769px) {
    #cadel-jersey {
        padding: 20px 120px
    }

    .jersey-card .jersey-select {
        max-height: 286px;
    }

    #svg-section-5 {
        padding: 0 10px;
    }

    .form-preview-jersey {
        padding-left: 50px;
    }

    .landing-title {
        font-size: 52px;
    }

    .landing-subtitle {
        font-size: 28px;
    }

    .landing-content {
        font-size: 18px;
    }

    .landing-button {
        font-size: 20px;
        width: 50%;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .jersey-card .jersey-select {
        max-height: 286px;
    }
}

@media (max-width: 480px) {
    .jersey-card .jersey-select {
        max-height: 160px;
    }

    .back-container {
        order: 2;
    }

    .next-container {
        order: 1;
    }
}