/* CSS */
.results-container {
    margin: 5px;
    padding: 5px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #003087;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.4rem;
    line-height: 1.4;
}

h3 {
    color: #2196f3;
    margin: 10px 0;
}

button {
    background-color: #003087;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 20px;
    transition: background-color 0.2s;
}

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

.section {
    margin-bottom: 15px;
}

.top-values {
    margin-top: 10px;
}

.values-category {
    margin: 10px 0;
    padding: 10px;
    background-color: #e3f2fd;
    border-radius: 5px;
}

.category-list {
    margin: 10px 0;
}

.category-item {
    padding: 8px;
    margin: 8px 0;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.highlight {
    border-left: 4px solid #2196f3;
}

.instructions {
    margin: 20px 0;
    padding: 15px;
    background-color: #fff3e0;
    border-radius: 5px;
    border: 1px solid #ffe0b2;
}

.info-text {
    /*color: #666;*/
    margin-bottom: 20px;
    /*font-size: 1.1rem;*/
    line-height: 1.5;
}

.user-header {
    margin: 20px;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 5px;
}

.user-header h1 {
    color: #003087;
    margin: 0;
    font-size: 1.8rem;
}

/* Progress Bar Styles */
.progress-section {
    margin-bottom: 30px;
}

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

.progress-fill {
    height: 100%;
    background-color: #2196f3;
    transition: width 0.3s ease;
}

/* Sortable List Styles */
#sortable {
    list-style-type: none;
    padding: 0;
    width: 100%;
    max-width: 500px;
    margin: 20px 0;
    touch-action: none;
}

.sortable-item {
    margin: 8px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    cursor: move;
    transition: background-color 0.2s, transform 0.2s;
    user-select: none;
    color: #007bff;
    font-weight: bold;
}

.sortable-item.sortable-ghost {
    opacity: 0.4;
    background-color: #e3f2fd;
}

.sortable-item.sortable-chosen {
    background-color: #e3f2fd;
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sortable-item:active {
    cursor: grabbing;
}

.draggable-list {
    list-style: none;
    padding: 0;
    touch-action: none;
    margin: 0;
}

.draggable-item {
    color: #007bff;
    padding: 8px;
    margin: 8px 0;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: move;
    touch-action: manipulation;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.handle-icon {
    color: #999;
    margin-right: 5px;
    flex-shrink: 0;
}

.draggable-item:hover {
    background-color: #e9e9e9;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.draggable-item:active {
    cursor: grabbing;
    background-color: #e3f2fd;
}
@media only screen and (max-width: 768px) {
    .draggable-item {
        width: 60%; /* Set the width to 80% on mobile devices */
        /*margin: 0 auto; /* Center the element horizontally */
    }
}
.sortable-ghost {
    opacity: 0.4;
    background-color: #e3f2fd;
    touch-action: none;
}

.sortable-chosen {
    background-color: #e3f2fd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
    touch-action: none;
}

.top-three {
    background-color: #e3f2fd;
    border: 2px solid #2196f3;
}

.rank-indicator {
    font-weight: bold;
    min-width: 24px;
    flex-shrink: 0;
}

.item-text {
    flex-grow: 1;
}
.form-group {
    margin-bottom: 8px;    
}
.formlabel {
    width: 100px;
    float: left;
}
/* Unique Styles from the New Code */
/*body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    width: 90%;
    max-width: 600px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}
*/
h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333333;
}

p {
    font-size: 14px;
    margin: 10px 0;
    /*color: #9999;*/
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 10px 0;
}

ul li {
    margin: 5px 0;
    font-size: 14px;
    /*color: #666666;*/
}

.message {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 5px;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

button:hover {
    background-color: #0056b3;
}
.correction-link {
    text-align: center;
    margin-top: 15px;
}