@font-face {
    font-family: 'InterBlack';
    src: url('./fonts/Inter-Black.woff2');
}

@font-face {
    font-family: 'InterBold';
    src: url('./fonts/Inter-Bold.woff2');
}

@font-face {
    font-family: 'InterExtraBold';
    src: url('./fonts/Inter-ExtraBold.woff2');
}

@font-face {
    font-family: 'InterMedium';
    src: url('./fonts/Inter-Medium.woff2');
}

html, body
{
    padding: 0;
    margin: 0;
    background-color: #fff;
    user-select: none;
}

h1
{
    font-family: 'InterBlack', 'sans-serif';
    color: #fff;
    font-size: 25px;
    background-color: #e66926;
    padding: 10px 16px 10px 36px;
    margin: 0;
    width: 345px;
    clip-path: polygon(0 0, 100% 0, 86% 100%, 0% 100%);
}

#header-hack
{
    position: absolute;
    left: 0px;
    top: 0px;
    pointer-events: none;
}

h2.selectedVehicleLabel
{
    font-family: 'InterBlack', 'sans-serif';
    color: #fff;
    font-size: 40px;
    position: absolute;
    top: -20px;
    right: 60px;
}

main
{
    background-color: #565656;
    width: 1440px;
    height: 732px;
    margin: auto;
    display: block;
    position: relative;
}

img {
    pointer-events: none;
}

::-webkit-scrollbar {
    width: 8px;
    background-color: #1A1A1A;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background-color: #5C5C5C;
    border-radius: 5px;
}

#shadow-top, #shadow-left, #shadow-right {
    position: absolute;
}

#shadow-top {
    top: 0;
    left: 0;
    width: 100%;
    height: 134px;
}

#shadow-left {
    top: 0;
    left: 0;
    width: 603px;
    height: 100%;
    transform: scaleX(-1);
}

#shadow-right {
    top: 0;
    right: 0;
    width: 603px;
    height: 100%;
}

#threeCanvas {
    height: 545px;
    margin-top: -78px;
}

.popup {
    user-select: none;
    position: absolute;
    font-family: 'InterBold', 'sans-serif';
    font-size: 12px;
    color: #969696;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    /* pointer-events: none; */
}

.popup p {
    margin: 0;
    padding: 0;
}

#popup-close {
    pointer-events: auto;
    position: absolute;
    top: -5px;
    right: -6px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

#announcement-popup {
    top: 65px;
    left: 170px;
    width: 270px;
    height: 40px;
    display: flex;
	flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px;
}

#announcement-popup-icon {
    width: 33px;
    height: 33px;
    margin-left: 4px;
    margin-right: 4px;
}

#bedwood-prompt-popup {
    top: 73px;
    left: 173px;
    width: 205px;
    height: 137px;
    display: flex;
	flex-direction: column;
}

#bedwood-prompt-popup .icon {
    width: 43px;
    height: 43px;
}

#bedwood-prompt-popup #top {
    height: 54px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

#bedwood-prompt-popup #bottom {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-left: 15px;
    padding-right: 15px;
    font-family: 'InterMedium', 'sans-serif';
    gap: 6px;
}

#bedwood-prompt-popup button {
    pointer-events: auto;
    font-family: 'InterBold', 'sans-serif';
    font-size: 14px;
    width: 145px;

    background-color: #59B6A1;
    color: #fff;
    border-radius: 20px;
    position: relative;
    border: none;
    margin: 0 5px;
    padding: 8px 20px;
}

#bedwood-popup {
    top: 73px;
    left: 173px;
    width: 205px;
    height: 387px;
    display: flex;
	flex-direction: column;
}

#bedwood-popup #top {
    height: 54px;
    display: flex;
    justify-content: left;
    padding-left: 20px;
    align-items: center;
    gap: 5px;
}

#bedwood-popup #categories {
    display: flex;
    align-items: center;
    flex-direction: row;
    padding-left: 10px;
    padding-right: 10px;
}

#bedwood-popup #categories button {
    pointer-events: auto;
    font-family: 'InterBold', 'sans-serif';
    font-size: 11px;
    width: 100px;
    background-color: #706F6F;
    color: #fff;
    border-radius: 20px;
    position: relative;
    border: none;
    margin: 0 5px;
    padding: 6px 0px;
}

#bedwood-popup #categories button.selected {
    background-color: #59B6A1;
}

#bedwood-popup #selected {
    display: flex;
    align-items: center;
    flex-direction: row;
    font-size: 11px;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 8px;
}

#bedwood-popup #scroll-rect {
    position: relative;
    margin-top: 4px;
    height: 270px;
    overflow-y: auto;
    margin-left: 12px;
    margin-right: 12px;
}

#bedwood-popup #scroll-rect-inner {
    width: 163px;
    background-color: rgba(0, 0, 0, 1);
    border-radius: 16px;
    padding-top: 10px;
}

#bedwood-popup #scroll-rect-inner div {
    justify-content: center;
    color: #fff;
}

#bedwood-popup #buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 4px;
}

.rotationSlider {
    height: 1.3px;
    width: 556px;
    margin: -30px auto 30px auto;
    background-image: url('./images/bmr-design-slide-line.png');
}

.verticalSlider {
    position: absolute !important;
    right: 225px;
    top: 150px;
    width: 1px;
    height: 231px;
    background-image: url('./images/bmr-design-slide-line-vert.png');
}

.rotationSlider .thumb, .verticalSlider .thumb {
    cursor: pointer;
    background-image: url('./images/bmr-design-slide-toggle.png');
    width: 24px;
    height: 24px;
    outline: none;
}

.rotationSlider .thumb {
    margin-top: -12px;
}

.verticalSlider .thumb {
    margin-left: -12px;
}

#buildStepsFooter
{
    position: absolute;
    bottom: 35px;
    width: 100%;
}

#buildStepsDivider {
    width: 1023px;
    position: absolute;
    transform: translate(-50%, 0%);
    left: 50%;
}

#buildSteps {
    width: 1100px;
    margin: auto;
    padding-top: 15px;
    text-align: center;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

#buildSteps button {
    font-family: 'InterBold', 'sans-serif';
    font-size: 14px;
    width: 145px;

    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    border-radius: 20px;
    position: relative;
    border: none;
    margin: 0 5px;
    padding: 8px 20px;
}

#buildSteps button.selected {
    background-color: #E66926;
}

#buildSteps button.disabled {
    background-color: #6C6B6B;
}

#buildSteps .build-step-popup {
    position: absolute;
    left: 0px;
    top: -50px;
    opacity: 0;
    animation: fadeInOut 1s forwards;
    font-family: 'InterBlack', 'sans-serif';
    font-size: 18px;
    color: #e66926;
    pointer-events: none;
}

@keyframes fadeInOut {
    0% {opacity: 0; top: -25px}
    20% {opacity: 1; top: -55px}
    40% {opacity: 1; top: -50px}
    80% {opacity: 1;}
    100% {opacity: 0;}
}

.build-step-popup {
    animation: fadeInOut 2s forwards;
    z-index: 1;
}

.footerContent {
    position: absolute;
    transform: translate(-50%, -50%);
    top: 574px;
    left: 50%;
    width: 1100px;
    height: 116px;
    margin: auto;
    user-select: none;
}

#sample {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
}

.leftColumnHeader {
    position: absolute;
    display: block;
    width: 188px;
    left: 50%;
    top: -10%;
    transform: translate(-50%, -50%);
}

.finishButton {
    position: absolute;
    transform: translate(-100%, -50%);
    left: 100%;
    top: -25px;
    background-image: url('./images/bmr-design-btn-finish.png');
    background-color: rgba(0, 0, 0, 0);
    font-family: 'InterBold', 'sans-serif';
    font-size: 16px;
    padding-left: 12px;
    color: white;
    width: 133px;
    height: 30px;
    border: none;
    cursor: pointer;
}

#makeFooter, #modelFooter, #wheelFooter {
    display: grid;
    grid-template-columns: 1fr 4.2fr;
    gap: 10px;
}

.footerPanel {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    height: 116px;
    position: relative;
}

#makeFooter #leftColumn {
    display: flex;
	flex-direction: column;
    align-items: center;
}

#makeFooter #leftColumn .brandLogo{
    display: block;
    max-width: 100%;
    max-height: 100%;
    margin: auto;
}

#makeFooter #centerColumn{
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 4px;
    box-sizing: border-box;
    padding-left: 6px;
}

.makeFooterButton, .makeFooterButtonSelected {
    position: relative;
    background-image: url('./images/bmr-make-logo-bg-small.png');
    font-family: 'InterBlack', 'sans-serif';
    font-size: 6px;
    text-align: left;
    width: 93px;
    height: 102px;
    align-items: center;
}

.makeFooterButtonSelected {
    background-image: url('./images/bmr-make-logo-bg-small-roll.png');
}

.makeIcon {
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    max-width: 110px;
}

#makeFooter .textOptions {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    padding-left: 12px;
    padding-right: 12px;
}

.factoryPaintChip
{
    width: 45px; 
    height: 43px; 
    border: 1px solid white;
    padding: 0;
}

#paintFooter {
    display: grid;
    grid-template-columns: 207px 467px 195px 204px;
    gap: 10px;
}

#paintFooter h3 {
    color: white;
    font-family: 'InterBlack', sans-serif;
    margin-top: 13px;
    margin-bottom: 6px;
    font-size: 13px;
}

#paintChipContainer {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#paintChipShadow {
    position: absolute;
}

#paintFooter #info {
    display: flex;
    text-align: center;
    justify-content: left;
    align-items: center;
    padding-left: 10px;
    padding-right: 10px;
    font-family: 'InterMedium', sans-serif;
    font-size: 10px;
}

#paintFooter #info .selectedColorContainer {
    margin-left: 10px;
    margin-right: 10px;
}

#paintFooter #chips {
    padding-left: 15px;
    padding-right: 15px;
    font-family: 'InterExtraBold', sans-serif;
}

#paintFooter #chips .factoryPaintChips {
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-auto-flow: column;
    justify-content: left;
}

#paintFooter #finish {
    padding-top: 0px;
    padding-left: 15px;
    padding-right: 15px;
}

.textOptions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 15px);
    grid-auto-flow: column;
    column-gap: 10px;
    row-gap: 10px;
    box-sizing: border-box;
}

.textOption, .textOptionSelected {
    font-family: 'InterBold', 'sans-serif';
    font-size: 14px;
    text-align: left;
    background-color: #ffffff00;
    color: #6e6e6e;
    padding: 0px 0px;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: left;
}

.textOptionSelected {
    font-family: 'InterBlack', 'sans-serif';
    color: #fff;
}

.textOptionHash {
    position: relative;
    width: 5px;
    height: 100%;
    border-radius: 3px;
}

.textOption .textOptionHash {
    background-color: #6E6E6E;
}

.textOptionSelected .textOptionHash {
    background-color: #F67A07;
}

#paintFooter #picker {
    display: grid;
    height: 169px;
    text-align: center;
    justify-content: center;
    align-content: center;
    transform: translate(0%, -53px);
}

#paintFooter .finishButton {
    top: -78px;
}

#paintFooter .sketch-picker {
    width: 179px !important;
    height: 144px !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: unset !important;
    background: unset !important;
    border: 1px solid white;
}

#paintFooter .sketch-picker div:nth-child(2) div {
    padding: 0 !important;
    margin: 0 !important;
}

#paintFooter .sketch-picker div:nth-child(3),
#paintFooter .sketch-picker div:nth-child(4) {
    display: none !important;
}

#paintFooter .selectedColorContainer p {
    color: white;
    font-family: 'InterBold', sans-serif;
}

#wheelFooter #centerColumn{
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 38px, rgba(0, 0, 0, 0.4) 38px);
    padding-left: 15px;
    padding-right: 15px;
}

#wheelFooter #wheelBrands {
    width: 100%;
    height: 39px;
    margin-left: 8px;
    margin-top: 6px;
    margin-bottom: 6px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}

#wheelFooter #wheelBrands button {
    font-family: 'InterBold', 'sans-serif';
    font-size: 10px;
    width: 155px;

    background-color: rgba(0, 0, 0, 0.4);
    color: #6e6e6e;
    border-radius: 20px;
    position: relative;
    border: none;
    padding: 5px 20px;
}

#wheelFooter #wheelBrands button.selected {
    background-color: #E66926;
    color: white;
}

#wheelFooter .textOptions {
    grid-template-rows: repeat(2, 20px);
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    padding-left: 12px;
    height: 100%;
    align-content: center;
}

.loadingSpinner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.loadingSpinner img {
    width: 75px;
    height: 75px;
    animation: spin 4s linear infinite;
    margin-top: 75px; /* Manual offset to sit slightly lower than center*/
}

#download-bedwood-popup {
    top: 200px;
    left: 135px;
    width: 205px;
    height: 90px;
    display: flex;
	flex-direction: column;
    transform: scale(1.739);
}

#download-bedwood-popup .icon {
    width: 43px;
    height: 43px;
}

#download-bedwood-popup #top {
    height: 54px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
}

#download-bedwood-popup #bottom {
    display: flex;
    /* align-items: right; */
    text-align: right;
    flex-direction: column;
    padding-left: 15px;
    padding-right: 15px;
    font-family: 'InterMedium', 'sans-serif';
    color: #fff;
}

@keyframes spin {
    from {transform:rotate(0deg);}
    to {transform:rotate(360deg);}
}