/* Import Roboto font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@700&display=swap');

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    text-align: center;
    background-color: #000f3c;
    font-weight: bold;
    color: white; /* Set text color to white */
    overflow-y: auto; /* Allow vertical scrolling */
}

h1, h2, p, button, input, label {
    font-weight: bold;
}

/* Improved styles */

h1 {
    text-align: center;
    margin-top: 20px;
}

#lists-container {
    max-width: 800px;
    margin: 0 auto;
}

#lists {
    list-style-type: none;
    padding: 0;
}

#lists li {
    margin: 10px 0;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    border-color: #ffffff; /* White border */
}

#lists li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
}

#lists li a:hover {
    text-decoration: underline;
}

.buttons-container {
    text-align: center;
    margin: 20px 0;
}

.buttons-container button {
    margin: 5px;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
}

/* Alert styles */
#alert {
    max-width: 800px;
    margin: 20px auto;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ced4da;
    color: #495057;
}

/* Scooter table styles */
#scooter-table {
    width: 90%;
    border-collapse: collapse;
    margin: 20px auto;
}

#scooter-table th, #scooter-table td {
    border: 1px solid #ffffff; /* Thin white line between columns and rows */
    padding: 10px;
    text-align: center;
}

#scooter-table th {
    background-color: #000f3c;
    color: #fff;
}

.validated {
    color: green;
}

.not-validated {
    color: red;
}

/* Center the scooter list */
#scooter-list-container {
    text-align: center;
}

table {
    margin: 0 auto; /* Center the table */
}

/* Style the sort buttons */
.sort-buttons {
    margin-bottom: 10px;
}

.sort-buttons button {
    margin-right: 5px;
}

#camera-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: black;
}

#video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: green;
    opacity: 0;
    transition: opacity 0.3s;
}

#scanned-scooter-id {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 24px;
    background-color: rgba(0,0,0,0.5);
    padding: 5px 10px;
    border-radius: 5px;
    display: none;
}

#list-name-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    font-size: 24px;
    background-color: rgba(0,0,0,0.5);
    padding: 5px 15px;
    border-radius: 30px;
    z-index: 2;
}

#pause-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #69d2aa;
    color: #000f3c;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2;
}

#button-container {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap */
    justify-content: center;
    align-items: center;
    margin: 5px;
    position: relative;
    z-index: 2;
}

#button-container button {
    margin: 5px;
    flex: 1 1 45%; /* Adjust width to fit two buttons per row */
    max-width: 200px; /* Set a maximum width for buttons */
}

/* Add media query for very small screens */
@media (max-width: 400px) {
    #button-container button {
        flex: 1 1 100%; /* Buttons take full width on very small screens */
    }
}

#list-container {
    position: relative;
    width: 100%;
    background-color: #000f3c;
    overflow-y: auto;
    border-top: 1px solid #ccc;
    color: white;
    z-index: 1;
    max-height: calc(100vh - 200px); /* Adjust as needed */
}

#scooter-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#scooter-list li {
    padding: 10px;
    border-bottom: 1px solid #69d2aa;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #69d2aa;
    color: #000f3c;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    opacity: 0.9;
}

input, label {
    font-weight: bold;
}

h1, h2, p {
    color: white;
}

#save-pwa-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
}

@media (max-height: 600px) {
    #camera-container {
        height: 60vh;
    }
    #list-container {
        max-height: 40vh;
    }
}

a {
    color: inherit; /* Inherit color from parent element */
    text-decoration: none; /* Remove underline */
}

a:hover {
    text-decoration: underline; /* Optional: Underline on hover */
}
