/* styles.css */
@font-face {
  font-family: 'QuantumFont';
  src: url('./fonts/AUdimat.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
    font-family: 'QuantumFont', Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

#overlay span {
    display: inline-block;
    font-weight: bold;
    position: relative;
}

#overlay span::after {
    content: '';
    display: inline-block;
    margin-left: 5px;
    width: 20px;
    height: 1em;
    vertical-align: middle;
    animation: dots 1.5s steps(3, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: '';
    }
    50% {
        content: '.';
    }
    60% {
        content: '..';
    }
    70% {
        content: '...';
    }
    100% {
        content: '';
    }
}

.container {
    max-width: 800px;
    margin: auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center; /* Center text and inline elements inside */
}

h1 {
    font-family: 'QuantumFont', Arial, sans-serif;
    color: #D31245;
    text-align: center;
}

label {
    font-weight: bold;
    display: block;
    margin-top: 20px;
}

select {
    width: 100%;
    padding: 8px;
    margin-top: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

button {
    padding: 8px 12px;
    margin: 5px;
    border: none;
    border-radius: 4px;
    background-color: #D31245;
    color: #fff;
    cursor: pointer;
    font-size: 0.9em;
}

button:hover {
    background-color: #A11245;
}

#deviceListContainer {
    border: 1px solid #ccc;
    max-height: 400px;
    overflow-y: auto;
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    border-radius: 4px;
    background: #fafafa;
    /* To center items inside this container, add: */
    text-align: center;
}

.device-item {
    padding: 5px;
    border: 1px solid #ddd;
    margin-bottom: 3px;
    cursor: pointer;
    border-radius: 3px;
    display: inline-block; /* Make them inline-block for horizontal centering if needed */
    width: auto; /* or specify width if desired */
}

.device-item:hover {
    background-color: #f0f8ff;
}

.selected {
    background-color: #cce5ff;
}

.submit-btn {
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #D31245;
    color: #fff;
    font-size: 1em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.submit-btn:hover {
    background-color: #A11245;
}

a {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 24px;
    background-color: #D31245;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

a:hover {
    background-color: #A11245;
}

/* Centered container with fixed max width */
.main-container {
    max-width: 900px;
    margin: 40px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    box-sizing: border-box;
    /* Center inline content inside this container */
    text-align: center;
}

#timer, .timer-label {
    font-size: 2em;
}
      
