html {
    margin-left: calc(100vw - 100%);
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 14px;
    color: #111;
    background: linear-gradient(318deg, #6473ff, #555d7d, #989898);
    /*background: linear-gradient(318deg, #eb40ec, #10b4e4, #661d90);*/
    background-size: 600% 600%;
    min-height: 100vh;

    -webkit-animation: YES 19s ease infinite;
    -moz-animation: YES 19s ease infinite;
    animation: YES 19s ease infinite;
}

@-webkit-keyframes YES {
    0%{background-position:17% 10%}
    50%{background-position:84% 80%}
    100%{background-position:17% 10%}
}
@-moz-keyframes YES {
    0%{background-position:17% 10%}
    50%{background-position:84% 80%}
    100%{background-position:17% 10%}
}
@keyframes YES {
    0%{background-position:17% 10%}
    50%{background-position:84% 80%}
    100%{background-position:17% 10%}
}

#progressModal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    overflow: hidden; 
    background-color: rgba(0, 0, 0, 0.5); 
}

#modalContent {
    position: absolute;
    top: 110px;
    left: 50%;
    transform: translate(-50%, 0);
    background-color: white;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    width: 80%;
    max-width: 400px;
}

.stage {
    display: none;
    margin-bottom: 20px;
    padding-left: 30px;
    padding-right: 30px;
    line-height: 1.4em;
}

.stage h3 {
    margin-block-end: 0;
}

.statusText {
    padding: 6px;
}

.try-again-btn {
    background-color: #ddd;
    color: #111;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

.try-again-btn:hover {
    background-color: #999;
    color: #111;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

.see-detail-btn {
    background-color: #666db7;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

.see-detail-btn:hover {
    background-color: #3f4cde;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

#processImage {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
}

.running-image {
    animation: spin 2s linear infinite;
}

/* Animation for spinning the running image */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animated dots for running process */
.dots-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dot {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: black;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) {
    animation-delay: -0.32s;
}
.dot:nth-child(2) {
    animation-delay: -0.16s;
}
.dot:nth-child(3) {
    animation-delay: 0s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.error-icon {
    width: 50px;
    height: 50px;
    background-color: orange;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    margin-bottom: 4px;
    margin-top: 10px;
}

#tripForm {
    text-align: center;
    background-color: #424a67;
    margin-left: 30px;
    margin-right: 30px;
    margin-top: 30px;
    margin-bottom: 50px;
    padding-left: 36px;
    padding-right: 36px;
    padding-top: 20px;
    padding-bottom: 1px;
    border-radius: 16px;
    border-color: #333;
    border-width: 1px;
}

h1 {
    font-family: 'Geist Mono', monospace;
    font-size: 17px;
    line-height: 0px;
}
h2 {
    font-family: 'Geist Mono', monospace;
    font-size: 15px;
    line-height: 0px;
}
h3 {
    font-family: 'Geist Mono', monospace;
    font-size: 14px;
    margin-top: 20px;
    margin-block-end: 8px;
}

button {
  display: inline-block;
  vertical-align: middle;
  border-radius: 30px;
  margin: .20rem;
  font-size: 1rem;
  color: #666666;
  background: #ffffff;
  border: 1px solid #666666;
}

button:hover {
  background: #666666;
  color: #ffffff;
}

/* Style text inputs, select boxes, and textareas */
input[type="text"], input[type="password"] {
    border: solid;
    border-radius: 4px;
    border-width: 1px;
    border-color: #bbb;
    padding: 4px;
    font-size: 14px;
    height: 25px;
    width: 224px;
}

input[type="select"] {
    border: solid;
    border-radius: 4px;
    border-width: 1px;
    border-color: #bbb;
    padding: 4px;
    font-size: 14px;
    height: 25px;
    width: 224px;
}

input[type="date"] {
    border: solid;
    border-radius: 4px;
    border-width: 1px;
    border-color: #bbb;
    padding: 4px;
    font-size: 14px;
    height: 25px;
}

input[type="submit"] {
    margin-left: 10px;
    border-radius: 20px;
    padding: 8px;
    padding-left: 12px;
    padding-right: 12px;
    border: none;
    font-size: 16px;
    background: #d6ff33;
    color: #14213d;
}

input[type="submit"]:hover {
    background: #f2ffc1;
}

#tripForm input[type="submit"] {
    display: block;
    margin-top: 10px;
    /*margin-bottom: -19px;*/
    margin-left: 0px;
    margin-right: auto;
    align-items: center;
    border-radius: 20px;
    padding: 10px;
    padding-left: 20px;
    padding-right: 20px;
    border: none;
    font-size: 16px;
    background: #d6ff33;
    color: #14213d;
}

#tripForm input[type="submit"]:hover {
    background: #f2ffc1;
}


#contact-button {
    /*display: none;*/
    margin-top: 10px;
    /*margin-bottom: -19px;*/
    margin-left: 0px;
    margin-right: 0px;
    align-items: left;
    border-radius: 20px;
    padding: 10px;
    padding-left: 20px;
    padding-right: 20px;
    border: none;
    font-size: 16px;
    color: #f2ffc1;
}

#contact-button:hover {
    color: #d6ff33;
}

/* Center the button inside the container */
#contact-button-detail {
    text-align: center;       /* centers the inline-block link */
    margin-top: 20px;         /* optional spacing above the button */
}

/* Style the link like a button */
#contact-button-detail a {
    display: inline-block;          /* allows padding, border-radius */
    padding: 12px 24px;             /* spacing inside the button */
    font-size: 16px;
    font-weight: bold;
    color: #14213d;                 /* text color */
    background-color: #d6ff33;         /* button background */
    border-radius: 20px;            /* rounded corners */
    text-decoration: none;          /* remove underline */
    cursor: pointer;                /* pointer on hover */
    transition: all 0.3s ease;     /* smooth hover effect */
}

/* Hover effect */
#contact-button-detail a:hover {
    background-color: #f2ffc1;         /* lighter background on hover */
}



.form-container {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px; /* Space between rows */
}

.form-item {
    display: flex;
    flex-direction: column;
    flex: 1 1 25%;
    box-sizing: border-box;
    margin-bottom: 16px;
    align-items: flex-start;
}

.form-item:nth-child(1) {
/*    margin-left: 8px;  /* Left spacing for first item */*/
}

.form-item:nth-child(3) {
    flex: 1 1 0%;  /* Reduce width for the third item */
/*    margin-right: 8px; /* Right spacing for third item */*/
}

.form-item label {
/*    width: 20%;*/
/*    font-size: 12px;*/
color: #f3f3f3;
    margin-bottom: 6px;
    text-align: left;
        border-bottom: 1px solid transparent;

}

.form-row {
    width: 100%; /* Full width for the new row */
    display: flex; /* Make it a flex container */
}

.form-row .form-item:nth-child(1) {
/*    margin-left: 8px;  /* Left spacing for first item */*/
}

.form-row .form-item:nth-child(3) {
    flex: 1 1 0%;  /* Reduce width for the third item */
/*    margin-right: 8px; /* Right spacing for third item */*/
}

.form-row #tryit.form-item {
    flex: 1 1 90%;  /* Reduce width for the third item */
/*    margin-right: 8px; /* Right spacing for third item */*/
}

/*.form-row .form-item {*/
/*    flex: 1 1 30%; /* Each takes up 45% of the row */*/
/*}*/

.form-control {
  appearance: none; /* Remove default styling */
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 4px;
  font-size: 14px;
  border-color: #bbb;
  cursor: pointer;
  position: relative;
}

.item-select {
  appearance: none; /* Remove default styling */
  height: 35px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 4px;
  font-size: 14px;
  border-color: #bbb;
  cursor: pointer;
  position: relative;
  width: 234px;
}

/* Tooltip container */
label.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted #bbb;
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: hidden;
  width: 240px;
  background-color: #888;
  color: #fff;
  text-align: center;
  padding: 8px;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  width: 240px;
  bottom: 100%;
  left: 0%;
  margin-left: -80px;
  margin-bottom: 4px;
}

.tooltip .tooltiptext::after {
  content: " ";
  position: absolute;
  top: 100%; /* At the bottom of the tooltip */
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #888 transparent transparent transparent;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
}

.avatar-initials {
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  vertical-align: middle;
  font-size: 18px;
  padding: 2px;
  text-align: center;
  border-radius: 50%;
  background: #aaaaaa;
}

.avatar-name {
  display: inline-block;
  vertical-align: middle;
  padding: 8px;
  font-size: 15px;
}

#left_value
{
    text-align: right;
    font-style: italic;
}

#content {
    padding-top: 10px;
    padding-left: 30px;
    padding-right: 30px;
    line-height: 18px;
}

#content h2 {
    line-height: 20px;
}

#container
{
    margin: 20px auto;
    width: 800px;
    padding: 10px;
    border-radius: 10px;
    background-color: #fff;
}

body, a, p, h2 {
    color: #14213D;
}

#header {
    position: relative;
    height: 44px;
    padding:8px;
    background: #f4f4f4;
}

#footer {
    position: relative;
    height: 22px;
    margin-top: 22px;
    padding:8px;
    background: #f4f4f4;
}

#header div {
    position: absolute;
}

#footer div {
    position: absolute;
}

.pagination {
    padding-top: 3px;
    padding-bottom: 3px;
    padding-left: 12px;
    padding-right: 12px;
    font-size: 10px;
/*    font-weight: bold;*/
    text-align: center;
    align-items: center;
    width: fit-content;
    margin: 0 auto;
    margin-top: 10px;
    margin-bottom: 10px;
/*    background-color: #efefef;*/
/*    border: solid;*/
/*    border-width: 1px;*/
/*    border-color: #eee;*/
}

.pagination a:link {
    text-decoration: none;
}

#container table {
/*    margin-top: 4px;*/
    width: 80%;
    border-spacing: 0 10px;
/*    border-collapse: collapse;*/
}

.rounded-row td {
/*  padding: 20px;*/
    text-align: left;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
/*  border-right: 1px solid transparent; /* Transparent borders to avoid gaps */*/
/*  border-left: 1px solid transparent;*/
}

/* Rounded corners and visible borders on the first and last cells */
.rounded-left {
    padding-left: 8px;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    border-left: 1px solid #ddd; /* Visible left border */
}

.rounded-right {
    padding-right: 8px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-right: 1px solid #ddd; /* Visible right border */
}

#results_table tr td {
    font-size: 12px;
    padding-top: 8px;
    padding-bottom: 8px;
    text-align: center;
}

/* Styling each row as a clickable button */
#results_table tr {
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Hover effect for rows */
#results_table tr:hover {
    background-color: #f2ffc1;
}

/* Make the table row look more like a button */
#results_table tr:active {
    background-color: #c3c0e9;
    color: #333;
    transform: scale(0.99);
}


#container table h3 {
    margin: 0px;
}

#container table a:link {
    text-decoration: underline;
}

#header a {
color : #888888;
}

#header a:hover {
color : #000000;
}

#footer a {
color : #888888;
}

#footer a:hover {
color : #000000;
}

a:link {
    text-decoration: none;
}
a:visited {
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
a:active {
    text-decoration: none;
}
