/* Set default font family and align all items center*/
body {
    font-family: Arial, sans-serif;
    text-align: center;
}

/* Font sizing for timer-displays */
#stopwatch-total-elapsed-time , #stopwatch-current-process-time {
    font-size: 24px;
    margin: 0.5em;
}

/* Set font sizes for different text elements */
h1 {
    font-size: 48px;
    margin: 0.5em;
}

h2 {
    font-size: 28px;
    margin: 0.5em;
}

/* display timers inline with their respective titles */
#stopwatch-display-container div {
    display: flex;
    justify-content: center;
    align-items: center;
}

button {
    font-size: 20px;
    margin: 10px;
    padding: 10px 20px;
}

#task-definition-container, #process-details-container {
    margin: 20px auto;
    width: 90%;
}

/* Improved element list styling */
#element-list {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 0 auto;
}

#element-list li {
    cursor: pointer;
    background-color: #f0f0f0;
    margin: 5px;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-left: 5px solid #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    text-align: left;
}

#element-list li:hover {
    background-color: #e0e0e0;
    transform: translateX(5px);
}

/* Active and completed element styling */
.active-element {
    background-color: #4CAF50 !important;
    color: white;
    border-left: 5px solid #2E7D32 !important;
    font-weight: bold;
}

.completed-element {
    background-color: #E8F5E9;
    border-left: 5px solid #A5D6A7 !important;
}

/* Current task container styling */
#current-task-container {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 10px;
    margin: 15px auto;
    max-width: 600px;
}

#current-task-display {
    font-weight: bold;
    color: #4CAF50;
    font-size: 24px;
}

/* Notification styling */
.transition-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2196F3;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    animation: slide-down 0.5s ease;
}

.fade-out {
    opacity: 0;
    transition: opacity 0.5s;
}

@keyframes slide-down {
    from { top: -50px; opacity: 0; }
    to { top: 20px; opacity: 1; }
}

/* Progress bar styles */
#element-progress-container {
    margin: 20px auto;
    max-width: 600px;
    text-align: center;
}

#element-progress-bar {
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    margin: 10px 0;
    overflow: hidden;
}

#element-progress {
    height: 100%;
    background-color: #4CAF50;
    width: 0%;
    transition: width 0.5s ease;
}

/* Combine table borders and distance table from the buttons */
table {
    margin: 20px auto;
    border-collapse: collapse;
    width: 90%;
}

table,
th,
td {
    border: 1px solid black;
}

/* Align table entries to the center of the cells, and add padding. */
th,
td {
    padding: 10px;
    text-align: center;
}

/* New styles for inputs */
input {
    padding: 8px;
    margin: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

/* Style for table highlighting recent entry */
.recent-entry {
    background-color: #FFEB3B;
    animation: highlight-fade 3s forwards;
}

@keyframes highlight-fade {
    from { background-color: #FFEB3B; }
    to { background-color: transparent; }
}