@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Chewy&display=swap");

/* Apply box-sizing globally */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Change the text selection highlight color to yellow */
::selection {
    background: yellow;
    color: black;
}

/* For better browser support, include vendor prefixes */
::-moz-selection {
    background: yellow;
    color: black;
}

::-webkit-selection {
    background: yellow;
    color: black;
}

html,
body {
    font-size: 12px;
    font-family: Roboto, sans-serif;
    overflow-y: scroll;
    margin: 0;
    padding: 0;
    color: white;
}

.main {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: 1s;
}

.main h1 {
    text-align: center;
    font-size: 4em;
    color: white;
    height: 120px;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
}

#main_text {
    text-align: center;
    font-family: "Chewy", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 4em;
    color: white;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    height: auto;
}

.main p {
    text-align: center;
    color: white;
    pointer-events: none;
    user-select: none;
    font-size: 1.25em;
}

.light_bg {
    background-color: rgb(15, 15, 75);
}

.dark_bg {
    background-color: #4d4dcc;
}

.second_bg {
    position: absolute;
    background-color: #f2ff81;
}

.center_container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: auto;
    width: 100%;
    max-width: 500px;
    display: none;
}

.preview_container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0 auto;
    width: auto;
    height: auto;
}

.preview_container img {
    width: 300px;
    height: 300px;
}

.estimate_result {
    display: none;
    position: relative;
    width: 100%;
}

.text_button {
    text-align: center;
    color: white;
    cursor: pointer;
    text-decoration: none;
}

.text_button:hover {
    text-decoration: underline;
}

.button_container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.submit_button {
    display: flex;
    justify-content: center;
    align-content: center;
    flex-direction: column;
    padding: 10px 30px;
    text-align: center;
    background-color: white;
    width: auto;
    height: 40px;
    font-size: 1.25em;
    transition: 0.25s;
    cursor: pointer;
}

.standard:hover {
    background-color: rgb(248, 248, 162);
    color: black;
}

.express:hover {
    background-color: rgb(84, 221, 84);
    color: white;
}

.emoji {
    display: inline;
    padding: 0;
    margin: 0;
    white-space: nowrap;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
}

.header_container {
    position: absolute;
    height: 100%;
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.header_title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    margin: 0;
    font-size: 1.25em;
    color: white;
}

.corner {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    color: white;
    font-size: 1.25em;
    margin: 0;
    text-align: right;
    cursor: pointer;
}

.corner:hover {
    text-decoration: underline;
}

.job_list {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
}

/* Dashboard table */
.tel {
    user-select: all;
}

.tel:hover {
    cursor: pointer;
}

.table_title {
    margin: 0 0 10px 0;
}

.table_title h2 {
    font-size: 1.5em;
    color: white;
    text-align: left;
    display: inline;
}

.table_title select {
    display: inline;
}

.draggable-table {
    position: relative;
    top: 0;
    left: 50%;
    width: 100%;
    max-width: 800px;
    transform: translateX(-50%);
    text-align: center;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 0 10px 8px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    margin-bottom: 50px;
}

.draggable-table__drag {
    font-size: 1em;
    font-weight: normal;
    text-transform: capitalize;
    position: absolute;
    width: 100%;
    text-indent: 50px;
    border: 1px solid #f1f1f1;
    z-index: 10;
    box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, 0.05);
    opacity: 1;
    color: black;
}

thead th {
    height: 50px;
    text-align: center;
    font-weight: 400;
    text-transform: capitalize;
    padding: 10px;
    user-select: none;
    color: gray;
}

tbody tr {
    color: black;
    height: 20px;
}

tbody td {
    font-size: 1em;
    font-weight: normal;
    padding: 10px 20px;
    user-select: none;
    text-align: center;
    line-height: 20px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    height: 20px;
    border-top: 1px solid whitesmoke;
}

tbody tr:nth-child(even) {
    background-color: #f7f7f7;
}

tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

tbody tr.is-dragging {
    background: #f2ff81;
}

tbody tr.is-dragging td {
    color: #ffe683;
}

#material_mass {
    width: 80px;
}

#cost_per_gram {
    width: 50px;
}

#cost_adjustment {
    width: 80px;
}

/* Textbox */
.tb_container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
}

.textbox {
    position: relative;
    font-size: 1.5em;
    width: 350px;
    text-align: center;
    color: black;
    font-weight: 300;
    display: block;
    justify-content: center;
    padding: 5px 20px;
    height: 40px;
    border-radius: 40px;
    border: 1px solid white;
    margin: 10px 0;
    background-color: white;
    box-sizing: border-box;
    transition: 0.25s;
    left: 50%;
    transform: translateX(-50%);
}

.textbox:hover {
    color: black;
}

.textbox::placeholder {
    color: rgb(128, 128, 128);
}

.textbox:focus {
    outline: none;
    border: 2px solid white;
}

.tb_container button {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    height: 40px;
    border-radius: 40px;
    background-color: transparent;
    border: 1px solid white;
    box-sizing: border-box;
    text-align: center;
    width: 350px;
    color: white;
    cursor: pointer;
    font-size: 1.5em;
}

.tb_container button:hover {
    background-color: rgba(255, 255, 255, 0.11);
}

.tb_container button:focus {
    outline: none;
}

.tb_container p {
    color: rgb(255, 88, 88);
    font-size: 1em;
    text-align: center;
    display: none;
}

/* Links */
a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a:hover {
    text-decoration: underline;
}

#login_error_message {
    color: red;
}

/* Accordion */
.accordion {
    width: 100%;
    max-width: 800px;
    margin: 0;
}

.accordion-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, 0.05);
}

.accordion-header {
    position: relative;
    width: 100%;
    padding: 15px;
    cursor: pointer;
    margin: 0;
    color: white;
    font-size: 1.25em;
    user-select: none;
    box-sizing: border-box;
}

.accordion-content {
    display: none;
    padding: 15px;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.accordion-content p {
    text-align: right;
}

.accordion-content h3 {
    text-align: right;
    font-weight: normal;
}

.accordion-content h3 b {
    font-weight: bold;
    font-size: 2.5em;
}

.header_text {
    display: inline;
    margin-left: 50px;
}

.accordion-header input {
    position: absolute;
    right: 20px;
    transform: scale(200%);
    text-align: right;
    display: inline;
    pointer-events: none;
}

.user_input input {
    width: 100%;
    height: 50px;
    font-size: 1.5em;
    text-align: center;
    box-sizing: border-box;
    background-color: transparent;
    color: white;
    border: 2px solid white;
    transition: 0.25s;
}

.user_input input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.25);
}

.user_input input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.accordion_selected {
    background-color: rgba(255, 255, 255, 0.05);
}

#comments {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    min-height: 100px;
    max-height: 500px;
    background-color: transparent;
    color: white;
    border: 1px solid white;
    padding: 10px;
}

#comments::placeholder {
    color: white;
}

#comments:focus {
    border-color: white;
    outline: none;
}

.next_btn_container {
    display: flex;
    width: auto;
    align-items: right;
    justify-content: right;
    margin: 20px 0;
}

.big_next {
    background-color: transparent;
    border: 2px solid white;
    outline: none;
    padding: 15px 30px;
    color: white;
    box-sizing: border-box;
    font-size: 1em;
    cursor: pointer;
}

.big_next:hover {
    background-color: rgb(53, 199, 72);
    border: 2px solid transparent;
}

/* Colour picker */
.colour_container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-content: flex-start;
}

.colour {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px solid white;
    box-sizing: border-box;
    padding: 10px;
    background-color: transparent;
    cursor: pointer;
    color: white;
    width: 100px;
    height: 60px;
    transition: 0.1s;
    font-weight: bold;
}

.colour:hover {
    box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.selected {
    border-width: 4px;
}

.disabled {
    user-select: none;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 50%;
}

.wide {
    width: 200px;
}

/* Project page */
.project_container {
    margin: 100px 100px;
    position: relative;
}

.project_title {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 20px;
}

.page1 {
    pointer-events: none;
}

/* Statuses */
.status {
    margin: 0;
    display: inline-block;
    padding: 10px 50px;
    height: 30px;
    color: black;
    margin-bottom: 20px;
}

.attribute {
    font-size: 1em;
}

.attribute b {
    font-size: 2em;
}

/* Feedback page */
.feedback-container {
    font-family: Arial, sans-serif;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    width: 100%;
    max-width: 500px;
}

.feedback-title {
    text-align: center;
    margin-bottom: 20px;
}

.feedback-form {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.feedback-label {
    margin-bottom: 8px;
    font-weight: bold;
}

.feedback-input,
.feedback-textarea {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.feedback-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 12px;
    background: linear-gradient(90deg, #28a745 0%, #80e27e 100%);
    outline: none;
    opacity: 0.9;
    transition: opacity 0.2s;
    margin-bottom: 15px;
    position: relative;
}

.feedback-slider:hover {
    opacity: 1;
}

.feedback-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background-color: #ffffff;
    border: 2px solid #28a745;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.feedback-slider::-webkit-slider-thumb:hover {
    background-color: #28a745;
    transform: scale(1.2);
}

.feedback-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background-color: #ffffff;
    border: 2px solid #28a745;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.feedback-slider::-moz-range-thumb:hover {
    background-color: #28a745;
    transform: scale(1.2);
}

.feedback-slider::-ms-thumb {
    width: 24px;
    height: 24px;
    background-color: #ffffff;
    border: 2px solid #28a745;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.feedback-slider::-ms-thumb:hover {
    background-color: #28a745;
    transform: scale(1.2);
}

.rating-value {
    display: inline-block;
    padding: 5px 10px;
    background-color: #28a745;
    color: #ffffff;
    margin-left: 10px;
}

.feedback-submit {
    padding: 12px;
    background-color: #28a745;
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

.feedback-submit:hover {
    background-color: #218838;
}

/* Print Colours */
#white-pla:hover {
    color: black;
}

.loader_container {
    display: none;
}

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #b0d2e900;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin: 0 auto;
}

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

/* Slider container styling */
.slider-container {
    margin-bottom: 10px;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    transition: background 0.3s ease;
    margin: 10px auto;
}

/* Slider thumb styling */
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border: 2px solid #888;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #ffffff;
    border: 2px solid #888;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
}

.slider:hover::-webkit-slider-thumb {
    background: #2b07a1;
}

.slider:hover::-moz-range-thumb {
    background: #f0f0f0;
}

/* Mobile Responsive Styles */
@media only screen and (max-width: 675px) {
    .feedback-container {
        max-width: 100%;
        padding: 50px;
    }

    .feedback-label {
        font-size: 1.25em;
    }

    .rating-value {
        margin-top: 30px;
    }

    .feedback-input,
    .feedback-textarea {
        font-size: 1.5em;
        margin-bottom: 50px;
    }

    .feedback-slider {
        margin-bottom: 30px;
    }

    .page3 {
        padding: 20px;
    }
}

/* Flex Preview Container and Item */
.flex_preview_container {
    display: flex;
    gap: 20px;

    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.flex_preview_item {
    background-color: gray;
    width: 500px;
    height: auto;
}

/* Prompts */
.accept_prompt {
    /* Style as needed */
}

.prompt {
    font-size: 2em;
}

.prompt_options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.prompt_yes,
.prompt_no {
    padding: 10px 20px;
    border: 2px solid white;
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
}

.prompt_yes:hover {
    background-color: rgb(84, 221, 84);
}

.prompt_no:hover {
    background-color: rgb(88, 88, 88);
}
