body {
    margin: 0;
    background-color: #000;
    color: #fff;
    font-family: "Roboto", "Helvetica Neue", "Montserrat", sans-serif;
    font-size: 13px;
    line-height: 24px;
}

a {
    color: #ff0;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button {
    cursor: pointer;
    text-transform: uppercase;
}

canvas {
    display: block;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .jscolor-picker-wrap {
        top: 640px !important;
    }
}

@media (min-width: 1025px) and (max-width: 1440px) {
    .jscolor-picker-wrap {
        top: 660px !important;
    }
}

#container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: black;
    z-index: 1;
    overflow: hidden;
}

#info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 0px;
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    text-align: center;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    z-index: 1;
}

.dg.ac {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    z-index: 2 !important;
}

.jscolor {
    position: absolute !important;
}

.bike-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gif-capture-buttons {
    display: flex;
    gap: 12px; /* Space between buttons */
}

#color-picker-container,
.custom-dropdown {
    display: inline-block;
    position: relative;
}

#body-mat,
#inner-body-mat,
#front-rim-mat,
#rear-rim-mat,
#seat-mat,
#wind-shield-mat {
    z-index: 1000;
    display: none;
    position: absolute !important;
}

#body-mat-button,
#inner-body-mat-button,
#front-rim-mat-button,
#rear-rim-mat-button,
#seat-mat-button,
#wind-shield-mat-button,
#dropdown-button,
#generate-qr-button,
#sound-toggle-btn,
#reset-bike-button,
#get-started-btn,
.btn-inner-popup,
#information-button,
#bike-name-id {
    cursor: pointer;
    text-transform: uppercase;
    display: inline-block;
    position: relative;
    padding: 5px 25px;
    background: #292929;
    transition: background-color 0.3s;
    transform: skew(-20deg);
    font-weight: bold;
    border: 2px solid #fff;
    font-size: 18px;
}

#body-mat-button:hover,
#inner-body-mat-button:hover,
#front-rim-mat-button:hover,
#rear-rim-mat-button:hover,
#seat-mat-button:hover,
#wind-shield-mat-button:hover,
#dropdown-button:hover,
#generate-qr-button:hover,
#sound-toggle-btn:hover,
#reset-bike-button:hover,
#information-button:hover,
#bike-name-id:hover {
    background: #393939 !important;
    color: #ffffff !important;
}

a.button_link,
#generate-qr-button,
#sound-toggle-btn,
#reset-bike-button,
#get-started-btn,
.btn-inner-popup,
#information-button,
#bike-name-id {
    box-sizing: border-box;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    display: inline-block;
    position: relative;
    padding: 5px 25px;
    margin: 5px;
    background: rgba(0, 0, 0, 0.6);
    transition: background-color 0.3s, box-shadow 0.3s;
    font-weight: bold;
    border: 2px solid #ffffff;
    border-radius: 5px;
}

a.button_link:hover,
#generate-qr-button:hover,
#sound-toggle-btn:hover,
#reset-bike-button:hover,
#information-button:hover,
#bike-name-id:hover {
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

a.button_link > .name {
    display: inline-block;
    transform: skew(0deg);
}

a.button_link:before,
#generate-qr-button:before,
#sound-toggle-btn:before,
#reset-bike-button:before,
#get-started-btn:before,
.btn-inner-popup:before,
#information-button:before,
#bike-name-id:before {
    content: "";
    width: 2px;
    height: 90%;
    display: inline-block;
    top: -5px;
    left: 12px;
    position: absolute;
    background: #fff;
    z-index: 1;
    transition: all 0.3s;
}

a.button_link:hover:before {
    background: #ffffff;
}

.custom-dropdown-list {
    display: none; /* Hidden by default */
    position: absolute;
    left: 0;
    bottom: 100%; /* This positions the dropdown upwards */
    z-index: 1000;
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-dropdown-list .dropdown-item {
    cursor: pointer;
    text-transform: uppercase;
    display: inline-block;
    position: relative;
    padding: 5px 25px;
    background: #292929;
    transition: background-color 0.3s;
    transform: skew(-20deg);
    font-weight: bold;
    border: 2px solid #fff;
    font-size: 18px;
    box-sizing: border-box;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    margin: 5px;
    border-radius: 5px;
}

.custom-dropdown-list .dropdown-item:hover {
    background: #393939; /* Hover effect like button */
    color: #ffffff;
}

#sound-toggle-btn img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    stroke: currentColor;
}

#sound-icon {
    stroke: #ffffff;
}

.dropdown-item {
    font-size: 12px;
}

#toggle-btn {
    display: none;
}

#sticker-container label {
    position: relative;
    cursor: pointer;
    display: block;
    width: 50px;
    height: 30px;
    background: #cccccc;
    border-radius: 50px;
    transition: 300ms linear;
}

#sticker-container label:before {
    position: absolute;
    top: 50%;
    left: 2px;
    transform: translateY(-50%);
    content: "";
    display: block;
    width: 25px;
    height: 25px;
    background: #ffffff;
    border-radius: 50%;
    transition: left 300ms linear;
}

#sticker-container input:checked + label {
    background: #000000;
}

#sticker-container input:checked + label:before {
    left: 23px;
}

#sticker-container {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#dealership-info {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    color: #fff;
    padding: 20px;
    z-index: 500;
}

.dealership-header {
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
}

img {
    width: 60px;
    height: 60px;
}

.bike-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
}

.bike-name {
    font-size: 28px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
}

.bike-info {
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    margin: 0;
    color: #ccc;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding-left: 150px;
    padding-right: 150px;
}

.onboarding {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.title-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
}

.bike-header-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

#logo-icon {
    width: 35px;
    height: 35px;
}

.popup-title {
    font-size: 24px;
    font-weight: 600;
    color: #e9e9e9;
    text-transform: uppercase;
}

.popup-description {
    font-size: 18px;
    color: #e9e9e9;
}

.popup-content {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    padding: 24px;
    text-align: left;
    border: 2px solid #fff;
}

#get-started-btn,
.btn-inner-popup {
    display: flex;
    flex-direction: row;
    align-self: center;
}

/* Overlay for the modal */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Dark semi-transparent background */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 0.5s ease;
}

.modal-overlay.active {
    display: flex; /* Make it visible */
    opacity: 1;
}

/* Modal box styling */
.modal-box {
    background-color: #ffffff;
    padding: 20px;
    width: 400px;
    max-width: 90%;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Form section styling */
#form-section {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between inputs */
}

#form-section label {
    text-align: left;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

#form-section input {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* Submit button styling */
#submit-user-info {
    background-color: #4caf50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#submit-user-info:hover {
    background-color: #45a049;
}

/* QR Section styling */
#qr-section {
    display: none; /* Hidden initially */
    text-align: center;
}

#qr-section h3 {
    margin-bottom: 20px;
    color: #333;
}

#qr-code-container {
    margin-bottom: 20px;
}

/* Download and close buttons */
#download-qr-link,
#close-qr-modal {
    background-color: #f44336;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    margin: 10px 5px;
    transition: background-color 0.3s ease;
}

#download-qr-link:hover,
#close-qr-modal:hover {
    background-color: #d32f2f;
}

/* Responsive adjustments */
@media (max-width: 500px) {
    .modal-box {
        width: 90%;
        padding: 15px;
    }

    #submit-user-info,
    #download-qr-link,
    #close-qr-modal {
        font-size: 14px;
        padding: 8px 10px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .jscolor-picker-wrap {
        top: 640px !important;
    }
}

@media (min-width: 1025px) and (max-width: 1440px) {
    .jscolor-picker-wrap {
        top: 660px !important;
    }
}

/* Add this CSS to your main.css or in a <style> block */
#loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    z-index: 1000;
}

.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
